4,734 karma · joined Jul 6, 2015 (11y ago) · 1,825 submissions
comment 4mo ago · link · parent
The idea seems mind-bogglingly simple, instead of
y = model(sample_latent()) # generate one output (from noise, a mask, …)
loss = recon_loss(y, x) # score it against the data target x
loss.backward()
you do losses = []
for _ in range(K): # explore K candidate outputs
y = model(sample_latent()) # generate one candidate
losses.append(recon_loss(y, x)) # score each against x
min(losses).backward() # train only the closest candidate
I guess the intuition is that if you just generate one output and score it, your loss function forces it to split the difference between all samples and converge to the average (even if it produces _a_ valid output, if it's not the exact target being trained on it gets penalized). Whereas if you do basically best-of-n, it's not penalized for generating other valid samples as well.153.
Speculative Decoding, Visualized(adaptive-ml.com ↗)
2 points · by krackers · 4mo ago · discuss
comment 4mo ago · link · parent
All of these are individually solved problems, you just can't buy a bulb that's an e26 retrofit that satisfies all of them for whatever reason. If LED bulbs actually lasted 10 years, then there'd be 10 year warranties. Yet even the most expensive boutique LEDs (e.g. from YujiLED) are only 3 years at best.
comment 4mo ago · link · parent
I guess that's probably why you still need some MLA layers in there.
comment 4mo ago · link · parent
https://x.com/waterloo_intern/article/2081762065392541951
and in particular this image which clarifies the key essential difference between liner attention and delta network by examining the case of two tokens with same key but different value
https://pbs.twimg.com/media/HOPCc7BaEAAQDtO.jpg?format=jpg&n...
I think for comparison it would also have been good to have how original quadratic attention handles it: since both keys are identical, the attention would be "evenly divided" between both values so the final output would be the average of both values, as opposed to the latest value
comment 4mo ago · link · parent
Why do you say this? I've admittedly never done a proper complex analysis course but I got the impression that that complex differentiability was a very strong condition that results in holomprhic functions behaving "nicely" in ways that real functions do not
comment 4mo ago · link · parent
Assuming you mean C^2 -> C^2, Do you have a link? If so it would be good to add to the wikipedia page. Also I'm not sure, but does the fact that there's a disproof for n=3 imply that it's false in all n>=3, or could there be higher dimensions where it still holds (I'd guess not since you could probably trivially "embed" this in higher dimensions in some way)
comment 4mo ago · link · parent
comment 4mo ago · link · parent
The Jacobian conjecture roughly asks what whether local invertibility gives you global invertibility when you restrict only to polynomials (which we might hope "behave nicely"). Apparently for polynomials over reals this was disproved a while back, but up until now the general case of polynomials over complex numbers was open.
comment 4mo ago · link · parent
(Just as a note for myself, I had to think of why the fact that such jacobians are constant is a byproduct, I guess it's because of lioville's theorem implying that any polynomial over C that never hits 0 must be a constant [because the reciprocal is bounded and thus must also be a constant])
comment 4mo ago · link · parent
Does anyone more familiar with this know why this _wasn't_ found earlier, when it seems like you could brute-force through some low-order polynomials?
comment 4mo ago · link · parent
This is probably the only reason why "naturopaths" and other "holistic" doctors are still in business, because they'll actually bother to consider a broader picture of a symptom as hinting at some structural imbalance rather than solely treating the symptom as a localized issue to resolve.
comment 4mo ago · link · parent
Peter Naur explained this decades ago
>Peter Naur argues that programming is fundamentally a human activity of building a mental "theory" - a deep conceptual insight into how a system's parts match the real-world problem it solves. He rejects the prevailing view that programming is merely the mechanical production of source code, specifications, and documentation. Instead, Naur posits that the true product of programming is the shared mental model held in the minds of the developers who built it.
As a human you're the one with the problem you want code to solve, so it's worth having an understanding the problem. Otherwise you risk an X/Y situation, where the LLM ends up solving a problem that may not actually satisfy what you need.
I think what LLMs allow you to do is better abstract away everything that's _not_ essential to the problem you care about, in the same way that libraries or any higher-level programming language does. Ultimately there's still a "core" of the problem that needs to be expressed formally though. When you see people "vibe coding" by prompting the LLM to add constraints at a time until they reach their desired end-goal, this is ultimately "programming" in a sloppy, non-formal way. Better to get the LLM to write everything else _surrounding_ the problem, so you can write and understand the core yourself.