Own Weights

AI for government agencies

AI for government work: a trained model for permits, benefits forms and records, run in the agency's own environment, with results checked before use.

Updated

Government agencies can put a trained AI model to work on the paperwork they already handle: permit applications, benefits forms, public records requests and constituent letters. The model can run inside the agency’s own environment, so case files never have to leave it. Staff review each output before anyone acts on it.

Where the paperwork fits

Agency work mixes two kinds of task. Some of it is judgment, such as whether an applicant qualifies or how much discretion to apply. A model should stay out of those calls. The rest is reading and copying, and that is where a trained model earns its place.

Examples that fit well:

  • Building permit intake. Pull the parcel number, applicant name, project valuation, contractor license number and setback distances from the application and its attachments. Flag any field that is missing or conflicts with the site plan.
  • Benefits applications. Read household size, dependents, residency dates and income by source from the form, the pay stubs and the bank statements. Record the page each value came from.
  • Public records requests. Find the pages in a large batch that fall in the requested date range and custodian, and tag the pages that need redaction review. The records officer decides what is released.
  • Constituent correspondence. Sort letters by program and urgency, so the right desk sees the urgent ones first.

Each example has a fixed set of fields or tags, a person who checks the result, and one clear answer for most cases. A task that needs a long chain of discretionary reasoning is a poor match.

Keep the records inside the agency

Agency records often include personal information, case notes and material the public cannot see. Whether they may go to an outside API is a policy question before it is a technical one. Settle it with the records and legal staff before any test touches real files.

The alternative is to run the model where the agency already has control: a government cloud account it administers, or servers in its own building. The agency decides who can reach the system, what gets logged and how long outputs are kept. The private LLM guide covers the general setup and running it in a building. Ask any vendor the questions in the data privacy guide, especially where prompts and outputs are stored and who can read them.

Build the test from your own files

A model that reads permit forms has to be right on permit forms, and a generic benchmark says little about your forms. Build the test from the agency’s own past files, and have the staff who do the work write the correct answers.

  1. List the three to five decisions the output feeds. Each one needs a field or tag the model can produce.
  2. Pull past files from several years and every version of each form. Old and new layouts behave differently.
  3. Have caseworkers label the answers and record where they disagree. Those disagreements show where the work is hard.
  4. Split the data by whole case, so one application never appears in both the training and test sets. Splitting by page or by document leaks answers.
  5. Score the current process on the same test. Count the staff hours it takes, not only the error rate.
  6. Replace the current process only when the new model beats it on the test. Keep the test set out of training from then on.

A public extraction exam built on 510 commercial contracts, with answers marked by lawyers, shows the same pattern. A model trained for that one task scored 0.717, against 0.635 for a general frontier model that saw no examples. Full results list the scores and the method.

Design the output for review

A flag helps only if the reviewer can see why it was raised. Have the output quote the source passage or name the field it read, so a reviewer can check the answer in seconds. Two designs cause trouble:

  • A model that guesses. When a field is blank, the output should say “not found” rather than fill in a plausible value. A guessed income figure is worse than a missing one.
  • A score with no source. A reviewer who cannot see where a value came from either re-reads the whole file, which erases the time saved, or trusts it without checking.

Send low-confidence cases to a person by default. Set that threshold from the test set, and track how many cases reach review each month. Log the model version, an identifier for the input file and the date of every output, since the agency may later need to show what produced a given decision. The model version control guide explains how.

Common mistakes to avoid

  • Training only on approved files. If every example was approved, the model learns what a good file looks like and misses the problems that led to returns and denials. Include the returned and denied files.
  • Ignoring form revisions. A new version of a benefits form moves fields around. Retest after each revision, and add both old and new layouts to the test set.
  • Judging by a demo. Twenty clean files say little about the messy tail of real submissions, with skewed scans and missing pages. Draw the test sample at random.
  • Mixing scans and digital files in one score. Text pulled badly from a scan produces confident wrong answers. Report errors separately for each file type.

Trade-offs to decide first

A narrow model is cheap to run, easy to explain and easy to audit, but it needs retraining when forms change. A general model needs less setup, but it is harder to hold to a fixed output format. Neither replaces a caseworker on decisions that turn on discretion, such as hardship exceptions or eligibility appeals.

Start with the one workflow where the answer is clearest and the volume is highest. Prove it on your own files, keep the records in your environment, and expand only after reviewers trust the flags. Cost follows volume, so compare the cost per document rather than the price per token. The cost per document guide explains the method.

The free AI cost audit reads your code on your machine and saves a PDF of the AI calls it finds. Start at the homepage or book a call, and we will go through one task with you.

Questions

Can government agencies use AI without sending records to a third party?

Yes, if the model runs in an environment the agency controls, such as its own cloud account or its own building. Access, logging and retention stay under the agency's own policies. Whether that satisfies a specific rule is a question for the agency's legal and records staff.

What kinds of government paperwork suit a trained model best?

Repetitive, text-heavy work fits best, especially when most cases have one clear answer. Typical examples are reading fields off forms, sorting incoming files by type and tagging correspondence by topic. Someone on staff reviews the output before anyone acts on it.

How do you show a trained model is better than the current one?

Build a test from your own past files, with answers checked by the people who do the work, and keep it out of training. Score the current model on that test first, then compare the new one against it. Nothing goes live unless the new model comes out ahead.