Same Facts, Different Dialect: Solver-Built Training Data for Benefit Eligibility

When someone applies for unemployment insurance, they describe what happened in their own words. They explain why they left the job, how much they earned, and whether they can work now. A legal AI system has to turn that story into the facts a statute cares about, then apply the rule. Language models are measurably worse at reasoning when the same question is asked in a non-standard dialect such as African American Vernacular English. In a pipeline that feeds extracted facts to a rule engine, one misread fact ("got let go" read as a voluntary quit) turns straight into a wrong denial. We propose to build an eligibility engine from real state rules and use it to generate unlimited labeled training and test data. From a single set of ground-truth facts, the engine produces many paired stories that describe the same situation in different English dialects. The engine knows the correct verdict for every story, so it can measure exactly where dialect breaks extraction. It can also concentrate training data on the facts that actually flip a verdict.

In two sentences: formal legal rules turn eligibility into a checkable computation, so a solver can manufacture exactly labeled citizen stories, including dialect-paired versions of the same facts, which labeled legal data has never offered. We test whether a small model trained on solver-chosen, dialect-paired stories beats frontier models with retrieval, translate-first pipelines, and dialect-adapted pretraining. Success means higher worst-dialect verdict accuracy and more consistent answers across dialects on stories written by native speakers.

Core Claim

The scarcity that limits formal reasoning and the scarcity that limits dialect fairness have the same cure when the domain has an executable rule. AutoOR showed the recipe in operations research: it samples solver programs, back-translates them into text, and trains on solver feedback. With this recipe its 8B model reached 94% on Hard-MIP against Gemini 2.5 Pro's 84%. We carry the recipe into statutory eligibility and add two ingredients that do not exist in mathematical programming. The first is dialect-paired rendering, where one fact assignment produces parallel stories across dialects. The second is decision-boundary targeting: the solver identifies which facts are pivotal, meaning that changing that one fact would change the verdict, and oversamples stories built around those facts. The claim is that these two ingredients, and not model scale or dialect-specific pretraining, are what close the dialect gap in legal fact extraction.

Relation to Prior Work

The closest system is L4L. It turns statutes into logical clauses checked by the Z3 solver, extracts (Actor, Action, Condition) fact tuples with adversarial prosecutor and defense agents, and sends solver errors back to the agents. It reports 39.08% statute-prediction F1 on LeCaRDv2 versus 31.14% for GPT-5.2. L4L uses the solver only at inference time and only on standardized case narratives. Its authors identify extraction as the garbage-in point. We use the solver upstream, as a data generator and a source of labels, and we make dialect variation the object of study.

Two papers motivate the gap. ReDial shows an 11.6% zero-shot drop for GPT-4o from standardized English to AAVE, and roughly 30% on multi-step planning. It also shows that translating to standard English first never restores the standard-English score. LaborBench shows that retrieval-augmented frontier models reach only 0.691 F1 on expert-phrased boolean unemployment-insurance questions, and swing from 0.52 to 0.81 F1 across states. Neither paper combines the two concerns: ReDial has no legal domain and no verifier, and LaborBench has no lay or dialectal phrasing.

Other work supplies the method. We borrow compiler-style filtering from Lean Workbook: it keeps a candidate only if the checker accepts it and a back-translation agrees. We borrow AutoOR's template-instantiate-back-translate loop and its reward from solver execution. For dialect rendering we reuse MDial's rule-based LLM transformation across nine English dialects. We also follow its finding that most dialect grammar should not be mirrored back to the user, so our system must understand dialect but answer in plain standard prose.

Other work constrains the design. Rule-based dialect perturbation misses organic grammar, and Dialetto, ma Quanto Dialetto? shows that treating dialects as discrete buckets hides degradation. We therefore never report a headline number on synthetic dialect text. The final test set is human-written. The manual cost of formalizing law is real: Soltana et al. report 3.3 person-hours per rule diagram in Luxembourg tax modeling. We therefore keep the statute encoding small and human-verified. Automatically formalizing statutes is a different problem, and so is autoformalization drift, which is when a formal translation no longer means what the original text said. We exclude both.

Research Program

We first hand-encode unemployment-insurance eligibility for about ten states chosen to span LaborBench's F1 range, including Virginia and Arkansas. The encoding covers monetary eligibility (base-period earnings thresholds), separation reason (layoff, voluntary quit with or without good cause, misconduct), and able-and-available requirements. We write these as Z3 constraints over a typed fact schema, using the Department of Labor comparison tables behind LaborBench as the specification. Two annotators with legal training check each encoding against the statute text.

The generator then samples fact assignments. For each assignment it asks the solver for the verdict and for the pivotal facts. A frontier model turns the facts into a first-person claimant story in standard English, and an MDial-style transformation re-renders it in the target dialects. A story is kept only if two things hold. First, an independent extractor run on the standard-English version recovers the original facts. Second, a verifier model confirms that the dialect version preserves every pivotal fact. This two-part check is the analogue of Lean Workbook's back-translation filter.

Boundary targeting allocates most of the samples to near-threshold earnings, ambiguous separations ("my hours got cut to nothing"), and conditional availability. These are the places where one colloquial phrase decides the outcome.

We train a 7–8B open model to output the fact schema as structured JSON, which the solver then evaluates. We compare supervised training with GRPO. Under GRPO the reward is one point if the solver's verdict on the extracted facts matches the true verdict, plus partial credit for correct pivotal facts. We add a paired-consistency term: two dialect renderings of the same facts should receive the same verdict. We define the dialect consistency gap as

$$\Delta = \max_{d} \; \Pr[v(\hat f_d) \neq v(f^\ast)] - \min_{d} \; \Pr[v(\hat f_d) \neq v(f^\ast)],$$

where $f^\ast$ is the true fact assignment, $\hat f_d$ is the model's extraction from the dialect-$d$ story, and $v$ is the solver's verdict. We report $\Delta$ alongside worst-dialect verdict accuracy.

The human test set is built on the ReDial protocol. Native speakers of AAVE, Nigerian English, Indian English, and Scottish English rewrite roughly 400 held-out standard-English stories each, from held-out states and fact assignments, in their own words. They are instructed to keep the facts and change nothing else. Legal annotators confirm fact preservation. A second slice asks speakers to write stories from a fact sheet without seeing any model text. This removes any anchoring on generator phrasing.

Baselines

The do-nothing reference is the same 7–8B base model, prompted with the statute encoding's fact schema and few-shot examples, with its extractions passed to the same solver. It shows how much of the gain comes from training at all.

The strongest existing competitor is a frontier model with retrieval over the relevant StateCodes sections. We use it in two ways: answering eligibility directly in LaborBench style, and extracting facts into our solver in L4L style, including L4L's solver-feedback refinement loop. It is the strongest competitor because it is the best configuration reported on this legal domain. The closest reported number is 0.691 F1 (Gemini retriever with DeepSeek V3, LaborBench). That number comes from expert-phrased boolean questions, not claimant stories, and we found no reported result on Lacuna for narrative-based eligibility extraction under dialect variation. All systems receive the same statute text, the same schema, and the same held-out states. The frontier model gets an inference budget at least as large as our model's, including multiple refinement rounds.

We count our method as beating it if our small model matches or exceeds the frontier model's verdict accuracy on human-written standard-English stories and exceeds its worst-dialect accuracy by a margin outside the bootstrap confidence interval, with a smaller $\Delta$.

A dialect-adapted pretraining arm represents the monolingual-advantage direction. We continue pretraining the same base model on dialect-dense text before fine-tuning on standard-English synthetic data only. This follows evidence from iCompass, SeaLLMs, and NorGLM that in-distribution pretraining helps. The token budget matches the synthetic data budget.

Three ablations isolate the key ingredients. The first trains on the same number of stories but with uniformly sampled facts instead of boundary-targeted ones. The second uses standard-English stories only. The third compares supervised training with GRPO on identical data.

Why not just…?

Why not just translate the claimant's story into standard English first? ReDial found that translating first raised scores slightly but never reached the standard-English baseline, and it adds a translation step that can silently rewrite a pivotal fact. Extraction may be more forgiving than multi-step reasoning, however, so this is a real threat in our setting. We run translate-then-extract with the frontier model and with our own base model. If it matches our worst-dialect accuracy, the dialect-paired data adds nothing, and we will report that.

Why not just fine-tune on dialect-augmented extraction data, without any solver? Ordinary supervised learning on synthetic stories may well get most of the gain, so we do not credit the solver for the training algorithm. The solver's claimed role is in making the data: it supplies exact labels, pivotal facts, and dialect pairs. The supervised-versus-GRPO ablation measures whether solver reward adds anything beyond labels. The uniform-versus-boundary ablation measures whether solver-guided sampling does. If both ablations are null, the contribution shrinks to the benchmark and generator, and that is still a result.

Why not just use a frontier model with retrieval and a good system prompt, or pick prompts with GroupDRO? LaborBench's 0.691 ceiling and roughly 73% citation accuracy suggest that retrieval alone is insufficient even for expert phrasing. Constrained GroupDRO prompt selection cut worst-case loss by 13.7%, but it can only choose among existing prompts and is scored by an LLM judge. We include GroupDRO-selected prompts over a 30-prompt pool as an add-on to the frontier baseline, scored by solver verdicts rather than a judge.

Why not just pretrain on dialect text? Dialect pretraining gives exposure to the dialect but no signal about which phrases carry legal weight. The pretraining arm tests whether exposure is enough. We expect it to improve fact recall on common facts but not on pivotal boundary facts.

Decisive Checks

The main result is worst-dialect verdict accuracy and $\Delta$ on the human-written, held-out-state test set, with bootstrap confidence intervals, broken down by provision type. The second check asks whether gains on synthetic dialect text predict gains on human text. If the rank ordering of systems flips between the two, the synthetic data is misleading and we will say so. The third is a pivotal-fact error analysis: for each dialect, which grammatical or lexical features, such as habitual "be", "got let go", or "on the dole", cause wrong separation-reason extractions. We will also check whether boundary-targeted training specifically reduces those errors. Finally, we confirm that outputs stay in plain standard prose, as MDial recommends, by measuring how many dialect grammatical features reappear in the model's explanations to users.