Hacker News new | ask | show | jobs
by breakwaterlabs 18 days ago
"Reason about it" is where your abstraction has sprung a leak.

LLMs do what they say on the tin: they model language. If you ask an LLM "find security vulnerabilities in my code" for hello_world.rs, the next likely tokens are "I found the following vulnerabilities", regardless of what logic or reason say.

It happens to be true that predicting next tokens on your own output mocks actual reasoning fairly well. But it still just a simulacrum rather than the real thing, and when held as an abstraction it leaks everywhere.

Understanding this is critical to avoiding the common failure case of scope creep and code slop.

3 comments

I only used "reason about" as shorthand for the computation that takes place between input text gets tokenized and output tokens gets translated back to text. There are a lot of layers in the middle where the tokens no longer represent text directly but rather a combination of the different tokens through the attention and MLP projections.
No decent modern LLM is going to start its reply with “I found the following vulnerabilities” when you ask it to find security vulnerabilities in a straightforward hello world.
This was a reduced argument for the point of brevity; I can give actual examples (below) but they're fundamentally the same thing. That LLMs no longer trip over `strawberry` doesn't mean we've fixed the underlying problem but that training sets and fine tuning have removed that particular manifestation.

As an actual example, imagine an LLM harness that provides execution approval modes. These are famously leaky (and intractable to fix), but serve to provide some modicum of control.

Now imagine that you want to integrate sandbox detection so that you can set different approval modes depending on whether the sandbox is active. You could detect env variables and check for things like seccomp to infer trust state in a moderately robust manner.

Throw this through the LLM (any of the latest ones) for a security review and it will flag that the user can pass in envs to fake stuff, and the user can modify the binary or settings to bypass things, and they could fake some of the other signals too.

All of those are fake findings and is conceptually alike the `hello_world.rs` example, even if that particular issue has been fine-tuned away. A child process of equivalent-or-lesser-privilege cannot fundamentally prevent its parent process from gaslighting it, so either the feature is untenable or its purpose is NOT ironclad robustness against a hostile operator (which an LLM harness cannot defend against). But the next-token nature of an LLM almost demands a response of "findings", and those findings will follow the common patterns of such reviews even when they're fundamentally mis-premised.

There’s enough experience with LLMs now and comparisons to our own thinking that we can say LLMs are thinking and doing so not so differently from us - at least for some aspects of reasoning.

Trying to pretend otherwise at this point doesn’t help us to utilize them or understand their limits. We’re better off accepting that intelligence isn’t unique to us as a species. Then we can see that modeling language as a tool for us as a vehicle for thinking and reasoning, which philosophers like Wittgenstein already landed upon before LLMs.