Hacker News new | ask | show | jobs
by crabmusket 42 days ago
You can debug a compiler. If an LLM writes code you don't like, how would you debug that? You wouldn't. You'd just ask again and hope it does a better job.
1 comments

Not 1 in 1000 software engineers has the ability to debug a compiler. And you can absolutely debug agent failures, but similarly almost no does. In both cases for the mast majority of engineers, they are black boxes.
Could you go into more detail about how you'd debug LLM output?

I don't really care about what "most engineers" do. I did phrase it lazily but I am trying to point out something fundamental about LLMs and compilers.

You look at the inputs to the model at the trace level to root cause context construction vs model deficiency. You collect examples of the failure cases, build eval sets, and run ablations. That's black box debugging, but systematic debugging nonetheless.
I mean debugging within the model, not the harness. Harnesses are software like any other.

The model itself is more or less a black box - if tokens come out that you don't like, it seems like there's no equivalent to "this LLVM release fixed a code generation issue on platform X relating to situation Y".

I'm not sure why people are so motivated to say these are the same thing when they are clearly not.

And yes, rigorous approaches can be taken to systems built on and with LLMs, as you say. That doesn't make them the same as compilers.

Why is an LLVM release any different than a frontier model release? Well known, concrete issues get identified, evaluated against, RLVR'd on, and a new release comes out that doesn't have that issue. Or you can do that process yourself on an open-source model if you have the resources.

LLMs are not magic things that are out of your control, they are simply complicated. But there are concrete issues that are identified, people sit down and decide to fix it, build evals, run ablations, and they produce a model without that deficiency. It happens every day.

Would you reject the characterisation of model weights as a black box then?

I suppose if LLVM's source code has a similar size in bytes then it would be similarly difficult to work with. However, it would still remain source code readable by a human, not binary data with no semantic content when examined plainly.