Introduction
The citation extractor finds references to other law in raw legal text, returning citation quotes, kinds and source-offset predictions. The goal is to make those references available for source alignment, verification and eventual navigation. Recognizing a citation does not establish its legal validity or resolve its destination, and generated offsets must be checked separately.
The model weights and model card and training data and evaluation evidence are published on Hugging Face for inspection and replication.
The function
Supply the complete original text as the user message and the exact trained system prompt as the system message. Unlike the structure models, citation extraction takes raw text, not a lexical index. Preserve the original Unicode characters, whitespace and line endings; do not silently truncate.
The intended output is a JSON array of {quote, start, end, kind} objects. Offsets are zero-based Unicode character positions into the original source, end exclusive. Repeated occurrences are separate records. An empty array is the model’s prediction of no citations, not proof that the document has none.
Generated offsets are unreliable. Before using them, check raw[start:end] == quote. A separately derived quote alignment is not the model’s original prediction; repeated matches need occurrence disambiguation. Kind normalization, destination resolution and legal validity are separate tasks.
Exact trained system prompt
Extract legal citations from the supplied raw text. Return only a JSON array of objects with keys "quote", "start", "end", and "kind". Copy quote verbatim. start and end are zero-based Unicode character offsets into the supplied text, end exclusive. Include every citation occurrence; return [] if there are none. Do not infer missing citations or link destinations. Do not explain your answer.One section, three views
27 U.S.C. § 121. This is a seen training example from the 8,015 actual training rows. The output is its recorded silver training target, not a fresh model generation or held-out accuracy result. It illustrates the contract and source highlighting.
1 · Original text / user input
§ 121. State statutes as operative on termination of transportation; original packages
All fermented, distilled, or other intoxicating liquors or liquids transported into any State or Territory or remaining therein for use, consumption, sale, or storage therein, shall upon arrival in such State or Territory be subject to the operation and effect of the laws of such State or Territory enacted in the exercise of its police powers, to the same extent and in the same manner as though such liquids or liquors had been produced in such State or Territory, and shall not be exempt therefrom by reason of being introduced therein in original packages or otherwise.
(Aug. 8, 1890, ch. 728, 26 Stat. 313.)
Statutory Notes and Related Subsidiaries
Short TitleAct Aug. 8, 1890, is popularly known as the “Wilson Act” or the “Original Packages Act”.
2 · Recorded training target
[
{
"quote": "Aug. 8, 1890, ch. 728, 26 Stat. 313",
"start": 663,
"end": 698,
"kind": "statutes_at_large"
},
{
"quote": "Act Aug. 8, 1890",
"start": 754,
"end": 770,
"kind": "act"
},
{
"quote": "Wilson Act",
"start": 799,
"end": 809,
"kind": "act"
},
{
"quote": "Original Packages Act",
"start": 819,
"end": 840,
"kind": "act"
}
]3 · Source-aligned highlighting
Each highlighted quote has been checked against its recorded source slice. The text is unchanged. These highlights are not invented destination links or an independent verifier decision.
How it was trained
Full language-weight fine-tuning of nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16: 8,015 complete federal examples, one epoch, 2,004 optimizer updates, microbatch one and accumulation four. The tested complete-sequence context was 32,768 tokens. Training used native BF16 parameters with architecture-required exceptions and FP32 Adafactor optimizer state.
Labels are reconciled teacher-consensus silver annotations, not expert gold. Connecticut was excluded from extractor training and tuning. The exact corpus, held-out cohort, original predictions, recipe, package versions and scoring evidence are published in the replication dataset. The export/reload check compared all 263 parameters; no new training is part of this documentation.
Where it stands
The frozen comparison contains 200 federal documents across Acts, bills, proposed rules, regulations and statutes. All attempted documents—including caps, timeouts and invalid outputs—remain in the evaluation accounting.
| Original comparison arm | Exact quote recognition F1 |
|---|---|
| Untrained Nemotron | 1.31% |
| GPT-6.1 Sol | 23.18% |
| Fine-tuned citation extractor | 44.23% |
These quote-recognition scores ignore generated offsets. The fine-tuned model’s original quote precision was 72.63%, recall 31.79%; it produced 150/200 valid JSON outputs, 31 output-cap failures and 19 timeouts. Exact span-plus-kind F1 was only 0.32%.
A separately reported larger-budget follow-up on the 19 timeouts raised overall quote F1 to 44.55% and valid JSON to 155/200, with 45 capped outputs and no remaining timeouts. That is a failure-selected retry procedure, not the original equal-budget result. Repetition, drifting offsets and missing citations remain material defects.
Recognition, source alignment, semantic verification and complete legal coverage are different measurements. Citation display on reading sites requires separate source binding and admission checks; an extractor output is not automatically published as a verified citation. See the immutable model card and evidence for the complete protocol and limitations.