Getting started with legal AI
AI Fine-Tuning for Lawyers: What a Legal Model Really Is
By Lucerna LawPublished 8 min read
AI fine-tuning, for lawyers, means further training of a finished model on chosen examples so it behaves a certain way: a format, a tone, a type of task. OpenAI's developer guide treats it mainly as a way to make behaviour consistent. Current law and a matter's facts usually reach the model as text sent with the question.
What is AI fine-tuning, for a lawyer?
AI fine-tuning is a second round of training applied to a model that has already been trained on general text. The developer supplies examples of inputs and the outputs wanted, and the training adjusts the model's internal values so it produces outputs like them. The result is a new version of the model, not a setting in an app.
Amazon's documentation for customizing models in Amazon Bedrock describes the core method, supervised fine-tuning, in plain terms. From a training set of labelled examples, "the model learns to associate what types of outputs should be generated for certain types of inputs," and "The model parameters are adjusted in the process." The same page lists two other methods: reinforcement fine-tuning, where "reward functions" grade responses instead of labelled examples showing them, and distillation, where a larger model's answers are used to train a smaller one.
Where fine-tuning fits among a model's training stages, before any lawyer asks a question, is covered in the guide to large language models under pretraining, then tuning. This post is about what happens after: a vendor or a firm taking a finished model and training it further for legal work.
Fine-tuning is one of three common ways a legal tool is adapted. The difference between them is what changes:
| Method | What changes | Lasts beyond one request? |
|---|---|---|
| Instructions (a system prompt or custom instructions) | The text placed in front of the model | Yes, but only because it is sent every time |
| Retrieval | Which passages from a library or file the model is shown | No, it is chosen per question |
| Fine-tuning | The model's own parameters | Yes, until the model is retrained or retired |
Does fine-tuning teach an AI model the law?
Mostly not, on the account given by OpenAI's own developer guide. It treats a model that lacks knowledge, has out-of-date knowledge or needs private information as a problem solved by supplying context. It treats wrong format, wrong tone or reasoning that is not followed consistently as the problem fine-tuning solves.
The guide to optimizing LLM accuracy calls the first axis context optimization and says it applies when "the model lacks contextual knowledge because it wasn't in its training set," when "its knowledge is out of date," or when it "requires knowledge of proprietary information." It calls the second axis LLM optimization, needed when the model is "producing inconsistent results with incorrect formatting," when "the tone or style of speech is not correct," or when "the reasoning is not being followed consistently."
The guide offers an exam analogy that lawyers will recognize. Attending class for the last six months, seeing "many repeated examples of how a particular concept works," is learned memory, which fine-tuning imitates. Having "the textbook with you" to look up the answer is in-context memory, which instructions and retrieval provide. It adds that the two are "additive, not exclusive."
Applied to law, the analogy has a sharp edge. Even where training does add legal knowledge, it adds the law as of the training data. The post on the AI knowledge cutoff explains why a model's knowledge stops at a date. A model fine-tuned last year on a state's case law knows nothing of this year's opinions unless the software supplies them.
There are larger projects that aim to add knowledge. A customer story on OpenAI's site about Harvey's custom-trained case law model says Harvey first tried "fine-tuning foundation models via public APIs and building retrieval-augmented generation (RAG) systems" and ran into limits. It then worked with OpenAI on a custom-trained model meant to "inject new knowledge," starting with Delaware case law and adding "the equivalent of 10 billion tokens worth of data." That describes a partnership with a model maker, not the fine-tuning a typical vendor or firm can buy.
Where fine-tuning helps in legal software
Fine-tuning helps most where the task is repeated and the right output has a stable shape: a fixed format, a house style, a narrow classification. It can also let a smaller, cheaper model do one task well. It is a poor tool for keeping up with changing law or for answering questions about one matter's documents.
OpenAI's model optimization guide lists the benefits it claims over prompting alone. They include providing "more example inputs and outputs than could fit within the context window of a single request," using "shorter prompts with fewer examples," and training "a smaller, cheaper, faster model to excel at a particular task." The guide also says fine-tuning "can also enable a model to consistently format responses in a certain way."
Tasks in legal work that have that shape include:
- Fixed-format entries. A privilege log entry, a docket summary line or a deposition digest where every row follows the same pattern.
- Classification. Sorting documents or clauses into categories a team has defined, where hundreds of coded examples exist.
- House style. A firm's preferred structure for a memo heading or a client update.
The guide's worked example shows the limit from the other side. There, GPT-4 fine-tuned on 1,000 examples of correcting Icelandic sentences, a behaviour task, scored 87 out of 100 on the guide's Bleu measure, and adding retrieval on top "actually decreased accuracy, dropping four points." The guide's explanation is that the problem was about behaviour, so extra context added noise. The lesson runs both ways: the right method depends on whether the failure is missing knowledge or inconsistent behaviour.
What does "trained on legal data" mean in a vendor's pitch?
The phrase can mean any of several things: a general model given legal instructions, a general model with a legal library behind it, a model fine-tuned on legal examples, or a model trained more deeply on a body of law. Each has different consequences for accuracy, currency and confidentiality, so the phrase alone tells you little.
Questions that sort one meaning from another:
- Which base model does the product use, and who made it?
- Is the model itself fine-tuned, or is legal material supplied by retrieval at question time, or both?
- What data was the tuning done on: public law, licensed content, vendor-written examples, or customer material?
- As of what date is that data, and how does the product handle law decided since?
- What happens to the tuned model when its base model is retired?
The last question is practical. OpenAI's model optimization guide, read on November 5, 2026, says OpenAI "is winding down the fine-tuning platform," that the platform is "no longer accessible to new users," and that fine-tuned models "will remain available for inference until their base models are deprecated." A tuned model's life is tied to its base model. When the base is replaced, the tuning has to be done again or given up, and outputs may change. The post on why AI gives different answers covers what a model change does to a tool's results.
A vendor that relies mainly on retrieval is not offering less. For questions about a specific file, retrieval is what puts the file's text in front of the model. The post on AI legal research explains how retrieval works for questions of law, and where it fails.
Should client files be used to fine-tune a model?
Training a model on client files makes those files part of the model, where text from one matter could surface in answers about another. ABA Formal Opinion 512 describes that risk for tools that learn from what lawyers put in, and says informed client consent is required before entering client information into such a tool.
The opinion describes some tools as "self-learning," meaning "they will learn from themselves as they cull more data." It says such tools raise the risk that information from one representation is disclosed improperly, "even if the tool is used exclusively by lawyers at the same firm," for example where it later appears in output for a lawyer on another matter. The opinion concludes that a client's informed consent is required before inputting information relating to the representation into such a tool. It adds that "general, boiler-plate provisions" in an engagement letter are "not sufficient."
Fine-tuning a model on a firm's own files is not identical to using a public self-learning tool, but the mechanism the opinion worries about is the same: client text shaping what the model says later. OpenAI's guide lists as a benefit that you "can train on proprietary or sensitive data without having to include it via examples in every request." From a confidentiality view that is the point to examine. Data in a request is used once. Data in training persists in the model.
Before any client material is used for training, the questions run beyond the vendor's pitch:
- Whose model is it? Is the tuned model used only for this firm, or shared across customers?
- What can it reveal? Could text from one matter appear in another matter's answers?
- Can it be removed? If a client withdraws consent or a matter ends, can the tuning be undone?
- What does the contract say? The post on AI that does not train on your data covers where a no-training promise must be written.
For Lucerna Law, the FAQ answers this directly: it does not use a firm's files, questions or answers to train any model, and its privacy policy says so.
The opposite question also comes up: if a model is trained in ways no one can inspect, can it explain why it answered as it did? The post on explainable AI for lawyers takes that up.