Verifying the work of an AI agent
FirstPrinciples builds AI agents that assist with research in physics. An agent of this kind reads the literature, plans a study, derives results, writes and runs code, and reports back.
With several colleagues, I built a hybrid sub-system that verifies what the agent produces. It combines symbolic (non-LLM-based), numerical, and conceptual checks.
| Layer | How the verdict is reached | What it catches |
|---|---|---|
| Symbolic | Each step is checked symbolically and deterministically. No language model takes part in the verdict. | A dropped factor, a wrong sign, units that do not match. |
| Numerical | A language model proposes numerical tests, such as a known limit or an independent recomputation. The tests are executed and the result decides. | Code that runs without complaint and returns a plausible, wrong number. |
| Conceptual | Agents built on models from different vendors review the substance of the work. | Correct mathematics on a wrong premise. An approximation used outside its range. |
Test suite
Cases with a known answer, work with one or many planted errors, twins (the same work with and without a planted error), public and private benchmarks, adversarial inputs, etc.
The work also includes a custom ledger, translation layers, deep integration with our scientific platform, a watchdog system, repair loops, and a research toolkit for ablation studies.