▲ | vrighter 5 days ago | |||||||||||||||||||||||||||||||||||||
you can't use a system with the exact same hallucination problem to check the work of another one just like it. Snake oil | ||||||||||||||||||||||||||||||||||||||
▲ | bcrosby95 5 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
I don't think it's that simple. Fundamentally, unit tests are using the same system to write your invariants twice, it just so happens that they're different enough that failure in one tends to reveal a bug in another. You can't reasonably state this won't be the case with tools built for code review until the failure cases are examined. Furthermore a simple way to help get around this is by writing code with one product while reviewing the code with another. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
▲ | adastra22 4 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
Yes you can, and this shouldn't be surprising. You can take the output of an LLM and feed it into another LLM and ask it to fact-check. Not surprisingly, these LLMs have a high false negative rate, meaning that it won't always catch the error. (I think you agree with me so far.) However the probability of these LLM failures are independent of each other, so long as you don't share context. The converse is that the LLM has a less-than-we-would-like probability of detecting a hallucination, but if it does then verification of that fact is reliable in future invocations. Combine this together: you can ask an LLM to do X, for any X, then take the output and feed it into some number of validation instances to look for hallucinations, bad logic, poor understanding, whatever. What you get back on the first pass will look like a flip of the coin -- one agent claims it is hallucination, the other agent says it is correct; both give reasons. But feed those reasons into follow-up verifier prompts, and repeat. You will find that non-hallucination responses tend to persist, while hallucinations are weeded out. The stable point is the truth. This works. I have workflows that make use of this, so I can attest to its effectiveness. The new-ish Claude Code sub-agent capabilities and slash commands are excellent for doing this, btw. | ||||||||||||||||||||||||||||||||||||||
▲ | simonw 5 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
It's snake oil that works surprisingly well. | ||||||||||||||||||||||||||||||||||||||
▲ | ben_w 5 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
Weirdly, you can not only do this, it somehow does actually catch some of its own mistakes. Not all of the mistakes, they generally still have a performance ceiling less than human experts (though even this disclaimer is still simplifying), but this kind of self-critique is basically what makes the early "reasoning" models one up over simple chat models: for the first-n :END: tokens, replace with "wait" and see it attempt other solutions and pick something usually better. | ||||||||||||||||||||||||||||||||||||||
|