Agvel

Inferred, not stated. Ask a language model for a confidence score beside each field, and it starts naming a country for towns that do not exist. A paper on ISO 20022 address structuring, and the benchmark it released.

Read the findingsSource on GitHub

At a glance

17models
108invented towns
61,110answers published

The question. When a model fills in a country the address never states, can anything downstream tell?

Cross-border payments have long carried a party's address as up to four free-text lines of 35 characters. ISO 20022 replaces them with labelled elements: street, building number, postcode, town and country. Banks hold large backlogs of legacy addresses, and language models are an obvious way to split them.

A model can fail in two ways. It can leave a field empty, which stops the payment for a person to fix: slow, but safe. Or it can fill the field with a value the input does not state. ISO 20022 has no way to mark an element as inferred, so a guessed country passes every format check and reads downstream exactly like one the sender wrote. Sanctions screening and routing act on it.

Accuracy against labelled fields cannot see this, because an unplaceable town has no correct country to compare against. So the paper pairs real addresses, where a country can be right or wrong, with invented towns, where any country is unsupported, and changes only the output format.

What it tests. The country is removed from every input. Each card shows one input and the answer the test expects.

Real addresses

4,195 addresses

Legal addresses from the public GLEIF register in 28 countries, with the country taken out. Here a country can be right or wrong.

A registered address in Tottenham, a suburb of Melbourne.

Expected
AU, or blank
Common miss
GB

Invented towns

108 towns

The start of one real town joined to the end of another, at least three edits from every GeoNames name and absent from OpenStreetMap. No country is correct.

HAUPTSTRASSE 12, ALTABLITZ. No postcode, no country.

Expected
blank
Common miss
DE

Street control

216 variants

The same towns on a street in another language, and with no street at all, to show what a guessed country rests on.

VIA ROMA 12, ALTABLITZ. The street is Italian, the name parts Austrian.

Expected
blank
Common miss
IT

How it was tested. Every prompt asks for the same five fields. Only the format of each value changes.

  1. Plan firstThe analysis plan, data rules and outcomes were committed before the main runs. Every later change is logged, and analyses added after the results are labelled exploratory.
  2. Hard cases on purposeEach town is matched against GeoNames: unique, dominant, ambiguous, misleading or unknown. Models see 336 addresses that oversample the hard strata, and rates are reweighted to the full sample.
  3. Seventeen models in three groupsClosed-weight, open-weight through a hosted gateway, and small open models run locally at 4-bit. The planned design is Claude Opus, Sonnet and Haiku 5.5, with three runs each, and Llama 3.1 8B.
  4. Intervals that respect countriesAddresses cluster by country, so every interval and test resamples countries, not items. Holm's correction holds within each family of tests, and every wrong answer was audited by hand.

One model, every format

Share of invented towns that Claude Opus 5.5 gave a country, by output format. Mean of three runs.

ObjectsA value-only JSON object for each field. The baseline.15%
ReasonAdds a free-text source for each value.20%
LengthAdds the value's character count, a number that asks for no judgement.15%
ConfidenceAdds a probability that the value is correct.98%
Certainty, probabilityThe same request, reworded twice.97%, 100%
CautiousConfidence, plus an instruction to leave unsupported fields empty.0%

Results. The confidence field lowers the bar for guessing. Asked for a score, the planned models name a country for towns that do not exist far more often.

A score licenses a guessValue-only objects, then the same objects with a confidence score.

Only a score does itOpus 5.5 by output format. A reason or a length field stays near the baseline.

Leave it empty works, at a costConfidence plus one instruction to leave unsupported fields empty.

Every wording, every planned modelConfidence, certainty and probability ask for the same score, and all three do it. A reason does not.

A cutoff works only if the score is honestOpus never scored an invented country above 0.85. Llama gave most of them 0.9 or more.

Share of 108 invented towns given a country, unless marked. Claude 5.5 values average three runs; the other models ran once. From the preprint Inferred, Not Stated, 4 Dec 2026. Each rise for the planned models survives Holm's correction (adjusted p < 0.001).

Real addresses are mostly safe

at most 1.4%

Wrong countries for the Claude 5.5 models without a postcode, reweighted to the full sample. Even the 89 towns no gazetteer lists came back right at least 94% of the time.

Errors gather on town names a gazetteer lists only under another country. A gazetteer lookup is no safer: 21.0% wrong.

The guess follows the cue left

96%

Of 430 Claude answers for towns on a foreign street, the share that named the street's country rather than the town's.

With no street, the score still adds 19 to 44 points, and 80% of those countries match where the name parts came from.

Not only the country

11 to 26%

Real addresses whose removed postcode Claude filled back in under the confidence prompt, against under 10% without it.

Opus and Sonnet mostly recall the real one. Haiku's are wrong for 11% of addresses, and some other models make postcodes up.

Across 17 models

+16 points

The pooled effect of the score over the 13 models from other labs, with a 95% interval of +8 to +23. It survives correction for five of the twelve exploratory ones.

The models disagree far more than sampling explains: a new model could land anywhere from −14 to +46. Test it on yours.

The score ranks guesses low

0.89 to 0.97

For Claude, the chance that a correct real country is scored above a country named for an invented town. Opus never scored a guess above 0.85.

Ranking low is not the same as staying low: for most other models, a quarter or more of their guesses scored 0.9 or higher.

A cutoff is not a guard

1 of 15

Models for which some cutoff beat a plain "do not guess" on review, wrong and invented countries at once, on the same data. Tuned on half the countries, no cutoff held up on the other half.

An instruction not to guess removed nearly every wrong and invented country for Opus and Sonnet, at the price of 30 to 36% manual review.

What to do with it. The finding is about provenance before accuracy. On real addresses inference mostly helps, and the output still does not say which values were read and which were guessed.

Test a confidence field before adding itRun it on unplaceable inputs and shared town names first. It changes the values, not just the metadata.
Record where each value came fromEmit each element as {"v", "source", "conf"}, with source stated, inferred or absent, and demote a claimed stated whenever the value does not occur in the input. On the paper's answers that check alone flags every invented country and every restored postcode.
Prefer "do not guess" to a cutoffAn explicit instruction is the simplest control. No tuned cutoff held up on held-out countries.
Keep the postcode in the inputRemoving it raised wrong countries for Sonnet and Haiku, and invites a postcode the sender never wrote.

The benchmark. NotStated v1.0.0 packages the invented towns, the street control, the real addresses and the scorer, so any model can be put through the same test.

Case files6
Calls in a full run2,836
Answers from the study59,394
Released4 Dec 2026

Run it on your model

One command, with the provider's key set. It prints your scores next to Claude 5.5's. The scorer needs only Python's standard library.

shell
python3 benchmark/run.py --provider anthropic --model <model>

What it doesn’t claim. The result is how models behave when the country is missing, not how often it is missing in real payments.

The design rests on ClaudeThe planned models are three Claude models and one small open model. Every other model is a cheaper tier, run once and added after the main results. The title names Claude for that reason.
Cleaner than client dataRegistry addresses are tidier than payment data, and the country was removed on purpose. The sample is not uniform, and the strata rest on gazetteer name matching.
Settings and prompts differClaude and Gemini ran at provider defaults, the gateway and local models at temperature 0. The size of the effect depends on the base prompt: a more careful one shrank it for Opus from 84 to 33 points.
Small effects are hard to seeIntervals resample 27 source countries, so effects under about ten points are hard to detect for one-run models. The only non-model baseline is a GeoNames lookup.

Licence and source. The project keeps its own MIT licence, and the benchmark data is CC BY 4.0. Every address is a registered legal entity's, from the public GLEIF register. No customer or employer data is used.

Code and write-upMIT
NotStated dataCC BY 4.0
GLEIF LEI recordsCC0
GeoNamesCC BY 4.0
OpenStreetMap, via NominatimODbL

54 Australian and New Zealand trusts with no business marker were removed for privacy, and the list is not published. GeoNames and OpenStreetMap were used for matching and checks only. Agvel's Apache 2.0 and CC BY 4.0 apply to Agvel's own releases, not to this project.

One script regenerates every number, table and figure in the paper from the committed answers.

Cite this paper. A preprint for now, so the citation points to the repository that holds the paper and every answer behind it.

@misc{gopalsamy_inferred_2026,
  title  = {Inferred, Not Stated: A Confidence Field Can Make LLMs
            Fill Country Fields Their Input Does Not Support
            in ISO 20022 Address Structuring},
  author = {Gopalsamy, Ashwin},
  year   = {2026},
  note   = {Preprint},
  url    = {https://github.com/ashwingopalsamy/address-fidelity}
}

More from Agvel