Reasoning and verification

How I check an AI answer before I build on it

What test-time compute, independent verification, and my work with software and market forecasting taught me about checking AI reasoning.

A workbench with branching brass channels and a precision gauge at the far end.
AI-generated editorial illustration.

I love to code. That is a big part of why I like working with AI coding tools. I can read what they produce, see the shape of an idea, and figure out what has to change. The part I still find interesting is the point where a very convincing explanation meets a system that has its own opinion. The compiler, the database, or the clock will tell you something the explanation missed, if you give it a chance.

What more thinking buys you

A model can spend extra computation while answering a question. It can try several solutions, revise one, or use a tool to check intermediate results. This is often called test-time compute. Training changes the model across many examples. Test-time work spends resources on the specific question in front of it. As an engineer, I look at those extra seconds or dollars the same way I look at any other budget. What failure are they buying down?

In research by Charlie Snell and colleagues, the most useful way to allocate extra computation depended on the difficulty of the problem. That makes intuitive sense if you imagine a coding assistant handling both a rename and a change to a retry policy. The rename should be cheap. The retry change has more places to go wrong, especially if a request can succeed and then time out before its caller hears back.

Self-consistency is another tactic. Sample multiple reasoning paths and choose the answer they converge on. Wang and colleagues found gains on a range of reasoning tasks. I like this for problems with a clear final answer and meaningful variation between attempts. The catch is shared assumptions. Five answers derived from the same mistaken API documentation amount to one bad premise with five witnesses.

Take the check outside the answer

For a code change, I want a check with a different failure mode from the model that proposed it. A compiler establishes that the types and syntax line up. A narrow test exercises the promised behavior. A recorded response from the actual service can establish what the service says under particular conditions. A design review can still be necessary to decide whether that behavior is what we should ship.

Suppose an assistant patches an importer that retries writes when a partner service goes quiet. Its explanation tells a nice story about exponential backoff. I would test the request where the first write succeeds and the response goes missing. Then I would retry with the same operation identifier, inspect the resulting rows, and count the side effects. Good backoff and duplicate prevention are separate pieces of behavior. The story needs a check for each.

The draft can generate useful test ideas too. I routinely find it productive to ask for edge cases and then read the assertions myself. A test that repeats the implementation inside the test body is easy to satisfy for the wrong reason. I prefer assertions tied to what a caller or operator can observe. When I can, I compare against existing behavior first so I know what my new test actually isolates.

A verification loop for one change Each step records evidence that someone else can inspect.
  1. State the claimRetrying the same logical write produces one visible result.
  2. Create the hard casePersist the first request and drop its response.
  3. Observe the boundaryRetry, then inspect durable state and downstream events.
  4. Review the evidenceConfirm the observed behavior before approving the change.

The clock is part of the evidence

At Black Box Crypto, working with the MLTFT forecasting architecture has made me picky about the phrase “the model knew.” In forecasting, the clock defines what the model could have known. A backtest can look excellent if a feature has been revised after the fact or if data that arrives late is quietly treated as available earlier. Everything still looks like tidy tabular data by the time the model sees it.

I start with an information cutoff, a forecast horizon, and a baseline. A prediction for next week is a different claim from a prediction for tomorrow. A direction classifier and a forecast range are different products too. I want each one compared against something simple that had access to the same information. Only after that do I care how impressive the model architecture sounds.

This translates surprisingly well to generative AI. A support assistant answering what a policy was on Tuesday needs a version effective on Tuesday. A release assistant saying the build passed needs the result from the commit going out. I want evidence with a date and a scope attached. Those two pieces are often enough to expose an answer that would otherwise pass a quick read.

Pick a check that can settle the question

The strongest checker depends on the claim. If the result is arithmetic, I can recompute it. If the claim describes a document, I can look at the relevant passage and confirm whether it actually supports the wording. If the claim is a prediction, I need later observations. If the decision is about whether a change is acceptable, I need the person who owns that decision and enough context for them to make it.

I distinguish a check from a veto. A policy gate can veto an action even when a factual claim is correct. Say an assistant has accurately identified an account in a support ticket. The assistant still needs permission before it can change that account. The gate answers a question about authority with its own rules and evidence. Mixing these decisions is how you end up with a fluent answer that the system treats as a permission slip.

Some things need two kinds of checking. In a technical reference, a cited document may prove a feature exists, while a controlled test shows it behaves the way the article says. If reports disagree and I can reproduce the difference, I would publish the conditions that matter. Where I cannot settle the difference, the uncertainty belongs right beside the claim.

Four claims and what would settle them The verifier has to see the evidence that matters for that kind of claim.
  • CalculationRecompute the result from the input values.
  • ReferenceOpen the source and check the passage and its scope.
  • Software behaviorRun the case and inspect the state that callers see.
  • ForecastScore outcomes after the forecast window closes.

Decide when you have enough

An assistant that keeps reconsidering can burn a lot of time without learning anything new. My stopping rule starts with the cost of being wrong. I will accept a cheap smoke test for a local formatting change. For a change capable of losing data, I want the failure cases reproduced, a way back, and a clear account of what the tests covered. Those conditions are concrete enough to plan for.

One question I like is what would make me change my mind about the answer. If I have no idea, I probably have a vague requirement or an attractive story. If I know the evidence I need, I can ask the assistant to go get it or tell me precisely what is missing. That is the kind of extra thinking I am happy to spend time on.

Connect with me on LinkedIn