76 points · by Anon84 · 6h ago · 31 comments
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) < (b) ? (b) : (a))
and the arguments were being clamped with MAX(x, 0). Well, if x is negative zero, it is not less than 0, so the macro returns x. The square root then looks at the sign bit and fails. Negative zero is a perfectly possible result from a series of calculations that destructively cancel.Every FP standard I know of that has negative zero requires that sqrt(-0) == 0. Eg (IEEE754-2008, probably the most popular and I don't have a PDF for 1985 or whatever):
> The operation squareRoot(x) computes √ x. It has a positive sign for all operands ≥ 0, except that squareRoot(−0) shall be −0.
> [Invalid operation if] g) squareRoot if the operand is less than zero [emphasis added]
So that's a clear-cut compiler / FP library bug.
The real answer would be something like 0i, but that's not available.
About a decade ago, I found a ton of "mistakes" (with legacy discussions I was unaware of at the time) that affected SciPy modules for things like hamming and jaccard. Was totally different than the intended mathematical definitions!
I wonder if it's also because ML stuff is just pretty insensitive to numerical issues, so users don't notice it.
https://openai.com/index/nonlinear-computation-in-deep-linea...
In this case, the "bug" actually allows the neural net to be more powerful than designed.
And yeah, ML is pretty resistant to this sort of bug.
Like I think L-BFGS has less support than the other optimizers, since no one really uses it on large models. But its implementation could have been improved a lot for people who do use it on small models. (IDK stuff is probably better now with AI-assisted dev vs. when I last looked)
I really, REALLY want whoever at Anthropic is okay with the tiny pool of annotators that their model is way WAY too over RL'd on to reincarnate into a durian fruit or something.
I don't care that the author used AI to write something. I do care that the ensuing prose is really crappy.
Pangram, for what it's worth, thinks the paper is a mix of human and AI, though it's possible it could be getting tripped up by the formatting: https://www.pangram.com/history/4df21841-c6cb-4345-9a5b-8a68...
I personally think it’s kinda a dumb premise: models write like this because in many cases they lack true understanding of the meaningful aspects of a problem. If models had true understanding, then you could tell them to write succinctly, specifically, and pragmatically and then they’d produce the sorts of beautiful explanations one finds in good textbooks, or well-abstracted/architected large systems. Translating the ineffable remains difficult. RL will continue to be used to attempt alignment though
(It's not <x>, it's <y>)
The system is sort of trapped by its causal mask
The abstract at least doesn't really set off my claudar. "The sign is only the visible part of a silent failure." is the one sentence that does give a bit of a reading. But you also have sentence (fragments) like "With the repaired code they all but vanish." which feels disconnected and is worse prose than current AI models would output. If the paper itself has been authored by an AI model, my guess it has undergone human revisions.
"The sign is only the visible part of a silent failure."
Ugh.
Pangram detects the abstract as 100% AI.
The prose is awful, but that's the bed ML made, and now they should lie in it.