LEX Norms Bench building codes
A question set that shows how accurately a model or an AI system answers from building codes. Construction needs not a paraphrase but the exact value from a clause or a table — a wrong number is a wrong design. Retrieval and answering are scored separately, with confidence intervals and every run published. The set covers our first jurisdiction module; the same pipeline takes any country's codes.
Loading data…
Protocol and submission
A system receives only the question. For each question it returns what it found (document, kind, number, page) and, optionally, an answer. Scoring is by script, by document and number.
{"id": "nqa-…", "retrieved": [
{"doc": "СП 54.13330.2022", "kind": "clause", "ref": "7.2.1", "page": 31},
{"doc": "СП 54.13330.2022", "kind": "table", "ref": "7.1"}],
"answer": "не менее 1,2 м"}Scoring script — bench/score.py: hit@1/3/5/10 strict and with equivalent targets, MRR, path recall for multi-hop, answer accuracy, document-level bootstrap. We score the hidden split.
Download
Release files (dev, test, datasheet) will be published on Hugging Face with a dataset card. Every file carries a canary line, so contamination of training data can be detected.
Annotations — CC BY 4.0, code — MIT. Code texts are not redistributed: only the designation, target number, page, a quote of up to 300 characters and a hash of the full quote.
Limitations
Synthetic questions
Written by a model (Haiku) from a fragment; labels are silver — checked automatically, not yet by people. Only the answer-evaluation sample (2,019 questions) was audited by a model.
Skewed to GOST standards
≈75 % of questions come from GOST / GOST R standards, 20 % from SP codes. ≈20 % are about specimens and tests: real for a lab, not for a designer.
One target per question
The same answer often sits elsewhere, so the strict metric understates retrieval; the equivalent-target metric is computed on dev only so far.
Few long chains
Three hops — 79 questions in public splits; intervals are wide.
Figures are experimental
Figure answers can be muddled; their scoring rules are coarser.
One fact only
Compound questions — comparing documents, summaries across several codes — are not in version 1: their answers cannot be checked unambiguously. They are a separate level for later versions.
Models on subsamples
Opus — 176 questions, web — 83: an order-of-magnitude estimate, not a leaderboard.
Hypothesis: codes of other countries
Codes and technical regulations almost everywhere follow one layout: scope, normative references, terms and definitions, a main body of numbered clauses, tables and appendices. So the same approach — a clause as the retrieval unit, tables and figures kept apart, a reference graph — is likely to give similar results on other countries' regulatory bases. We will test this in later versions and, where possible, release the same kind of benchmark for other countries.
Further work
- An expert-verified subset (a few hundred questions) to measure the quality of the labels themselves.
- “Not in the base” questions and chains into documents outside the base: a system must be able to abstain.
- More 3+ hop chains and more designer-driven questions.
- Human spot checks of the judge; a figure-answer metric.
- Full agents: several search calls, reading a document, citing a clause.
- A reranker of our own for building codes: distillation and fine-tuning on dev.
- Codes of other countries — testing the hypothesis above.
- A leaderboard on the hidden split and submissions from other systems.
How to cite
@misc{lexnormsbench2026,
title = {LEX Norms Bench: Retrieval and Question Answering over Russian Building Codes},
author = {{Lex Tech}},
year = {2026},
note = {Version 1.0 (draft)},
url = {https://global.lexbuild.tech/bench}
}