Introduction

The statutes model identifies the structure within a codified statute section: its heading, numbered provisions, notes, references and tables. The goal is to turn published statute text into source-aligned legal data that programs can navigate and compare without asking the model to rewrite the law. This is a separate task from structuring bills or enacted Acts.

The model weights and model card and training data and evaluation evidence are published on Hugging Face for inspection and replication.

The function

The input is one section as the publisher printed it: the heading, the numbered paragraphs, the notes, the tables, and the links. The output is that same section as USLM, with the hierarchy made explicit and the words unchanged.

Two checks decide whether a section can be published. The XML has to validate against the USLM schema, and the text of the XML, with whitespace removed, has to equal the publisher’s text. A model that rearranges a sentence into cleaner prose has failed, even if the result is readable.

The same section, three ways

Sec. 1-3 is short enough to show the path. The model receives the section as published. It returns USLM: the same words, with the number, the heading, the operative paragraph, and the revision note marked as those things. The reading page is that markup. The listing below keeps the operative provision and the revision citation. The complete file also carries the case annotations.

1 · Raw text

Sec. 1-3. Validity of separate provisions of acts.
If any provision of any act passed by the General Assembly or its application to any person or circumstances is held invalid, such invalidity shall not affect other provisions or applications of such act.
(1949 Rev., S. 8893.)

2 · USLM

<section xmlns="http://schemas.gpo.gov/xml/uslm" id="_1-3">
  <num value="1-3">Sec. 1-3.</num>
  <heading>Validity of separate provisions of acts.</heading>
  <content>
    <p>If any provision of any act passed by the General Assembly or its application to any person or circumstances is held invalid, such invalidity shall not affect other provisions or applications of such act.</p>
  </content>
  <notes>
    <note>
      <p>(1949 Rev., S. 8893.)</p>
    </note>
  </notes>
</section>

3 · Reading page

Sec. 1-3. Validity of separate provisions of acts.

If any provision of any act passed by the General Assembly or its application to any person or circumstances is held invalid, such invalidity shall not affect other provisions or applications of such act.

(1949 Rev., S. 8893.)

Presentation styles copied from the publisher page are left out of the listing above. The complete USLM file is what the Connecticut reading page uses.

How it was trained

The published weights are a LoRA adapter on Qwen3.5 9B, XLL Statutes Qwen3.5-9B. The base model stays pinned to revision c202236235762e1c871ad0ccb60c8ee5ba337b9a. Rank 32, alpha 64, no dropout, learning rate 1e-4, completion-only BF16. The training set is 1,500 federal statute sections. The retained checkpoint is 2,500 updates, the 1.67-epoch point of a planned two epochs.

The adapter has to be used with the exact trained prompt in PROMPT_TRAINED.txt. The user message is the trained encoding of the section: a source-native tree of tags and character spans. Pasting the raw section in by itself is a different task.

Training loss is not the quality number. Quality is schema validity and source-text fidelity on held-out sections. On 128 previously unused federal sections, the adapter matched the source structure and validated against the USLM schema on 98, and kept the source text on 127. The model card has the prompt, the recipe, and those scores.

Where it stands

Connecticut is the statute reading site: 19,783 validated sections. Sections the model did not get right were repaired against the publisher page and checked again for the same two conditions: valid USLM, and raw text that still matches the source. Repealed ranges that are no longer in the current code stay out.

Open the Connecticut statutes. Registers, legislation, and acts will be separate models and separate pages.