Look-Alike Law: Superseded Statutes as the Hard Noise in Policy Extraction

Researchers who study why a tax or regulation works in one region and fails in another need a fine-grained record of what the rule actually was, place by place and year by year. They would like language models to read legislative archives and fill that record in. The difficulty is that legal corpora are full of near-duplicates. The retired 1987 version of a state's sales tax section reads almost exactly like the 1991 version now in force, and the neighboring state's statute uses the same wording with a different number. Existing work on "distraction" in language models, meaning the drop in accuracy when a prompt contains irrelevant text, has mostly studied topically unrelated passages. We argue that in policy corpora the damaging noise is relevant-looking text that belongs to the wrong jurisdiction or the wrong year. This is the text that current filters score as highly relevant.

We propose to handle this noise with labels the corpus already contains. Session laws announce their own amendments ("Section 12 of chapter 40 is hereby amended to read…", "…is repealed"). Parsing that language automatically yields noisy labels saying which provision was in force where and when. This is distant supervision, the practice of generating training labels by aligning text with structure that already exists instead of annotating by hand. We use these labels to train a filter that is aware of jurisdiction and time. The filter sits between retrieval and the reader model. We also test a second claim that ties extraction error to policy science: confusions with look-alike text are not random noise. They copy values from similar places and earlier years, so they should systematically shrink the regional differences in policy effect that econometricians are trying to measure.

Core Claim

The claim has two parts. First, on questions of the form "what was the rate or rule for tax type T in state S in year Y," most errors made by retrieval-augmented language models will reproduce the value of a superseded same-state provision or a sister-state provision. They will not be arbitrary hallucinations. Methods built for topical distraction will fix few of these errors, and a filter trained on amendment-chain labels will fix many. Second, when the extracted policy panel feeds a heterogeneous-effect estimator, look-alike errors will bias the estimated spread of regional effects toward zero more than random errors at the same rate do. Extraction accuracy alone therefore understates the harm to downstream policy conclusions.

Research Program

The corpus is the U.S. state session laws used by Machine Extraction of Tax Laws from Legislative Texts. That work used code section headers as distant labels to classify about 2.5 million statutes from 1910–2010 into tax versus non-tax, and then into nine revenue sources. It is our source of labels and domain structure. It stopped at topical classification and found that BERT and CNN models did not beat bag-of-words classifiers. We go further, from classification to extracting parameters such as rates, thresholds and exemptions, and we make time and place the central difficulty. Its 72.8% multinomial accuracy and its noisy "Other" category, which covers 28% of the data, tell us to use its classifier only as a first-stage filter and not as the extractor.

The build has three stages. In the first, pattern rules and a small learned tagger turn amendment and repeal language into a supersession graph. Nodes are provisions tagged with state, chapter and section. Edges record "amends," "repeals," or "adds," with effective dates when stated. Like all distant labels, these are noisy: amendments can cite renumbered sections, and sunsets can be implicit. We will measure that noise on a hand-checked sample and not assume it away. In the second stage, the graph supplies free training pairs of a query (state, year, tax type) and a passage labelled in force or not in force. The hard negatives come from the graph itself: earlier versions of the same section and the analogous section from other states that the tax classifier assigns to the same revenue class. We train a cross-encoder reranker, a model that scores query and passage together, on these pairs. It passes only the top in-force passages to an off-the-shelf reader, so the method does not depend on any one generator. That independence answers the transfer limitation of reward-trained adapters. In the third stage, a reader extracts the numeric parameter and cites the passage it used.

The evaluation set is 1,500 cells of the form (state, year, tax type), with values verified by annotators who have legal training. The cells are stratified by decade so that scanned, pre-1950 text is represented. Every cell also records which superseded and sister-state passages contain competing values. This lets us label each wrong answer as a look-alike copy or something else.

For the downstream test we use a semi-synthetic design. We take the gold and the extracted panels as treatment intensities. We then simulate outcomes with the spatial data-generating process of Benchmarking Regression Models Under Spatial Heterogeneity, which varies how much effects change over space and how noisy they are. Finally we estimate regional effects with geographically weighted regression, random forests, and the transformer effect estimator of Exploring Transformer Backbones for Heterogeneous Treatment Effect Estimation. Because the outcomes are simulated, the true heterogeneity is known, and extraction error is the only thing that differs between conditions. That is the reason we do not attempt real causal claims here. The motivation comes from studies such as Identifying the Impact of Climate Policy on Urban Carbon Emissions and Does an Emissions Trading Policy Improve Environmental Efficiency?. Both find strong regional differences in effect, but both reduce statutes to yearbook dummies and admit they cannot see statutory detail. Our work asks what happens to such findings when that detail is extracted by machine.

Baselines

The naive reference points are two. The first is a single long-context reader given the state's entire title for the target period with no retrieval. The second is plain BM25 keyword retrieval with the top-k passages concatenated. UDA motivates both. It reports that GPT-4 scored 45.9 with retrieval but 0.4 with long context and no retrieval on FinHybrid, and that BM25 often beat dense retrievers on exact numbers. We therefore expect BM25 to be a strong simple retriever, not a straw man.

The strongest existing method for distraction is Distraction-aware Answer Selection (DAS) from Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents. It combines an "answer unanswerable if unsure" instruction with reranking of answers by the probability of the query given each document. The paper reports a 64% average Exact Match gain over naive zero-shot readers, and a 231% gain on SQuAD with 100 DPR-retrieved documents. DAS is the sharpest competitor because it targets exactly the reader-level distraction we study. We predict it will fail on look-alikes: a superseded section explains the query about as well as the section in force. The second strong competitor is PRCA, a 0.4-billion-parameter BART adapter trained with reinforcement learning to compress context. It reports gains of +3% on SQuAD, +6% on HotpotQA and +9% on TopiOCQA with four times fewer tokens. We retrain PRCA on our training queries with the same reader, the same retrieval pool, and a matched number of training steps.

We also run two structure-aware heuristics. One filters by metadata (same state, enacted on or before Y). The other adds "latest enacted version wins" on top of that filter.

Every system uses the same reader models, one open 7–8B model and one strong API model, the same BM25 top-50 candidate pool, and the same budget of hyperparameter trials, and tuning is done on a held-out set of states. No result on this task is reported on Lacuna, so every baseline number here will be our own measurement.

Beating the baselines means exceeding the best of DAS, PRCA and latest-version-wins by a margin larger than the bootstrap confidence interval on held-out states. The gain must be concentrated in the look-alike error class.

Two ablations isolate the key ingredient. The first trains the same reranker with random negatives in place of graph-derived look-alike negatives. The second replaces supersession-graph labels with date-only labels. Together they test whether the amendment chain matters or only the extra training.

Why not just…?

Why not just filter by state and take the latest-dated provision? This is the real threat. If it matches our method, the problem is data engineering, not modeling, and we will report exactly that. It will likely remove cross-state confusion, but it can fail in several ways. Partial amendments leave older subsections in force. A rate can sit in a different chapter from the section that defines the tax. Sunsets and retroactive dates break date order. Historical scans often lack clean section identifiers. Our error attribution shows directly how many residual errors are temporal supersession cases that the heuristic cannot see. If that fraction is small, we narrow the claim.

Why not just tell the model that later law supersedes earlier law? TheoremQA found that putting theorem definitions in the prompt gave little gain, because knowing a rule is not the same as applying it. Supersession is a similar procedural rule. We include a prompted baseline that states the rule and shows two worked examples. If it closes the gap, the knowledge gap is shallower than we assume.

Why not just use the bag-of-words classifiers that already work on this corpus? They reach 95.2% accuracy at detecting tax statutes, but they label topics and cannot output a rate or tell a retired version from a live one. We keep them as the first-stage revenue-class filter. We do not treat them as a competitor for extraction.

Why not just hand-code the panel as econometricians do? For a few policies over a few decades, hand coding is better, and we use it for the gold set. The argument for automation is scale, across fifty states, a century, and nine revenue types. The downstream experiment measures what automation costs in bias. That cost is what a user choosing between the two approaches needs to know.

Proposed Experiments and Decisive Checks

The first check is diagnostic. On the gold cells, we measure what share of each baseline's wrong answers equal a value found in a superseded same-state or sister-state passage. The noise claim holds only if this share is clearly above what chance matching of numbers would produce. We estimate that chance rate by comparing against values from randomly chosen passages that contain numbers.

The second check is the main comparison. We report numeric exact match (within a stated rounding tolerance) and in-force citation accuracy, broken down by decade and by look-alike versus other errors, for all baselines, the ablations, and the full method.

The third check is the downstream test. We compute the ratio of estimated to true variance of regional effects across data-generating settings. We compare our method's extracted panel with a control panel carrying the same number of errors placed at random. The prediction is falsifiable: the look-alike errors should give a ratio clearly below one, and the random errors should give a ratio closer to one. If both shrink heterogeneity equally, the second claim fails, and extraction accuracy is a sufficient summary for downstream users.