# Machine Learning for Lawyers: The AI Before Chatbots

> Machine learning for lawyers, explained: how software learns from coded examples, how courts accepted it in discovery, and how it differs from generative AI.

- Author: [Lucerna Law](https://lucernalaw.com)
- Published: 2026-11-05
- Category: [Getting started with legal AI](https://lucernalaw.com/blog/category/getting-started)
- Canonical: https://lucernalaw.com/blog/machine-learning-for-lawyers

Machine learning for lawyers means software that learns a pattern from examples people have labelled and then applies it to material nobody has labelled yet. Lawyers met it in discovery years before chatbots: a reviewer codes a sample of documents, and the system ranks the rest by how likely each is to be relevant.

> **In brief**
>
> - Machine learning is software that improves at a task from data rather than from rules someone wrote out by hand.
> - Its best-known legal use is technology-assisted review, also called predictive coding, in which a reviewer's coding trains the system that ranks a collection.
> - A federal magistrate judge approved its use in discovery in 2012, and stressed that the process, not the software, is what a court examines.
> - Generative AI is built with machine learning too, but it produces new text instead of a label or a score, and it fails in different ways.

## What is machine learning, in a lawyer's terms?

Machine learning is a way of building software in which the program adapts from data instead of following rules written for every case. NIST's glossary defines it as "the development and use of computer systems that adapt and learn from data with the goal of improving accuracy." For a lawyer, the data is usually documents a person has already judged.

That definition comes from the [NIST glossary entry for machine learning](https://csrc.nist.gov/glossary/term/machine_learning), which cites NIST Special Publication 800-55. It is short on purpose, and the important word in it is "learn".

Ordinary software is told what to do. A keyword search for "termination" returns every document containing that word, no matter what the document is about, and misses every document that says "let go" instead. Someone wrote the rule, and the software applies it literally.

A machine learning system is shown examples and left to find the rule. Give it a few thousand emails that a reviewer has marked relevant or not relevant, and it works out which features of the text go with each label. Then it scores emails it has never seen. Nobody told it that "let go" and "terminated" mean the same thing in this case. It may pick that up from the examples, or it may not.

Three things follow from that design, and they are the three things a lawyer needs to hold on to:

1. **The output is a prediction.** A score of 85 says "this looks like the documents you called relevant." It is not a finding that the document is relevant.
2. **The examples set the ceiling.** A system trained on poor coding learns poor coding. The judge in the case below put it in a footnote as "garbage in, garbage out."
3. **The result has to be measured.** Because nobody can read the rule the system learned, the only way to know whether it worked is to test its output against documents a person has read.

## How did machine learning reach e-discovery?

The best-known legal use of machine learning is in electronic discovery, where collections of emails and files are too large to read page by page. Vendors sold tools that learned relevance from a reviewer's coding and ranked the remaining documents. Lawyers called the method predictive coding, computer-assisted review or technology-assisted review, often shortened to TAR.

The ABA's ethics committee still treats this as the familiar case. Its [Formal Opinion 512](https://www.americanbar.org/content/dam/aba/administrative/professional_responsibility/ethics-opinions/aba-formal-opinion-512.pdf), opens by saying that "a well-known use is electronic discovery in litigation, in which lawyers use technology-assisted review to categorize vast quantities of documents as responsive or non-responsive and to segregate privileged documents." The same paragraph names contract analytics in due diligence and tools that predict how judges may rule.

The clearest description of how a TAR tool learns is in a judge's own words. In the 2012 opinion discussed in the next section, Magistrate Judge Andrew Peck quoted his earlier article explaining that these tools "use sophisticated algorithms to enable the computer to determine relevance, based on interaction with (i.e., training by) a human reviewer." The passage he quoted describes a loop, summarized here:

```flow
# The training loop the opinion describes, in this post's summary
Seed set | A senior reviewer codes a sample of documents
Learning | The computer finds properties of those documents
Prediction | It codes or scores other documents
Feedback | The reviewer codes more, and the predictions are corrected
Cut-off | Counsel decide, after sampling, which scores need no human review
```

The article quoted in the opinion describes the seed set as coded by "a senior partner (or [small] team)", which reverses the usual staffing of document review, where the most junior people read first. The design rewards putting judgment at the start, because every later prediction is built on it.

The quoted passage also gives an example of a cut-off: counsel "may decide, after sampling and quality control tests, that documents with a score of below 15 are so highly likely to be irrelevant that no further human review is necessary." The number is the article's illustration, not a standard.

## What did Da Silva Moore say about machine learning in discovery?

Da Silva Moore v. Publicis Groupe, decided in the Southern District of New York in February 2012, held that computer-assisted review "is an acceptable way to search for relevant ESI in appropriate cases." Judge Peck wrote that it appeared to be the first opinion approving the method, and that this did not make it mandatory in every case.

The [opinion and order in Da Silva Moore v. Publicis Groupe, as filed on the docket](https://storage.courtlistener.com/recap/gov.uscourts.nysd.375665/gov.uscourts.nysd.375665.96.0.pdf), is 49 pages, and its last third reads as guidance to the bar. Several passages are worth reading in full by anyone deciding whether to trust a machine learning tool.

### The court examines the process

The opinion says computer-assisted review "is not a magic, Staples-Easy-Button, solution appropriate for all cases," and that "it is not a case of machine replacing humans: it is the process used and the interaction of man and machine that the courts needs to examine."

That sentence is the most useful thing in the opinion for a lawyer today. It moves the question from "is the software good?" to "was the way we used it sound, and can we show that?"

### Perfection is not the standard

The court wrote that "while this Court recognizes that computer-assisted review is not perfect, the Federal Rules of Civil Procedure do not require perfection." It tied the method to Rule 1's aim of the "just, speedy, and inexpensive determination" of cases and to proportionality under Rule 26(b)(2)(C).

### Why the court approved it in that case

The opinion lists five reasons: the parties had agreed to use it, there were over three million documents, computer-assisted review was better than the available alternatives of linear manual review or keyword searches, cost and proportionality, and the defendant's transparent process.

### Transparency about the training documents

The defendant agreed that every document reviewed for the seed set, relevant or not, other than privileged ones, would be turned over to the plaintiffs. The court said such transparency reduces "fears about the so-called 'black box' of the technology" and "highly recommends" that counsel in future cases at least discuss it.

> **Key point.** The opinion's lesson is not that machine learning is reliable. It is that a party relying on it should be able to show how it was trained and how its output was checked.

## Recall and precision: the two numbers that grade machine learning review

Recall and precision are the measures used to judge whether a review, by people or by software, did its job. The Da Silva Moore opinion defines recall as "the fraction of relevant documents identified during a review" and precision as "the fraction of identified documents that are relevant." Recall measures completeness, precision accuracy.

The two pull against each other. A system that marks every document relevant has perfect recall and poor precision. A system that marks only the ten documents it is surest of may have perfect precision and poor recall. The opinion states the goal as finding "as many relevant documents as possible, while reviewing as few non-relevant documents as possible", at a cost proportionate to the case.

| Measure | Question it answers | What a low score means for the review |
| --- | --- | --- |
| Recall | Of all the relevant documents in the collection, how many did the review find? | Relevant documents were left behind, possibly unproduced |
| Precision | Of the documents the review flagged, how many were actually relevant? | Reviewers spent time on, or produced, material that did not matter |

The opinion also cites research on how well people do the same job. It quotes a 2010 study's finding that "the level of agreement among human reviewers is not strikingly high," at around 70 to 75 percent. The point the court drew from this is narrow: manual review is not a perfect baseline either, so the fair comparison is between methods, measured the same way.

Both numbers depend on knowing which documents are truly relevant, which nobody knows for a whole collection. In practice they are estimated by having a person review a random sample. That is why sampling appears in every description of a defensible process, including the court's.

## How does machine learning differ from generative AI in a law office?

Generative AI is built using machine learning, but the two do different jobs. A TAR system returns a label or score for each document. A generative model writes new text. Opinion 512 calls generative tools that produce text "prediction tools that generate a statistically probable output when prompted," and that difference in output changes how each one goes wrong.

The table compares the two as a lawyer meets them. It is this post's summary, not a statement from any source.

| | Machine learning classifier, such as TAR | Generative AI tool |
| --- | --- | --- |
| What it produces | A score or label for each existing document | New sentences: answers, summaries, drafts |
| What trains it for your task | Your reviewers' coding of a seed set | Usually nothing from your matter. It was trained before you arrived, and your documents are sent with the question |
| Typical failure | A relevant document scored low and never read | A fluent sentence that misstates the file or the law |
| How you check it | Sample the output and estimate recall and precision | Read each statement against its source |
| Where the record of the check lives | Sampling results and the training set | The citations and the reviewer's notes |

The second row matters most. A TAR tool learns from your coding on your case, so its judgment is in a real sense your team's judgment, extended. A generative tool arrives already trained. When it answers a question about your file, it is not learning your case. It is reading the text it was given for that one answer. The post on the [AI context window](https://lucernalaw.com/blog/ai-context-window) explains what "given" means there.

Opinion 512 points at a risk that runs the other way. It says some generative tools are described as "self-learning," and that a tool which learns from what lawyers put into it could reveal one client's information in answers given to lawyers on other matters. That concern does not arise in the same way with a classifier trained and used inside one matter's review.

The broader map of legal AI, which sorts tools by the material they work from, is in [the four main kinds of legal AI](https://lucernalaw.com/blog/legal-ai#the-four-main-kinds-of-legal-ai). How generative tools differ from older legal software is covered in the post on [generative AI for legal professionals](https://lucernalaw.com/blog/generative-ai-for-legal-professionals).

## Where machine learning features still sit in a lawyer's software

Machine learning is still the engine behind many features that never call themselves AI. Opinion 512 lists contract analytics for due diligence, tools that predict how a judge may rule from past rulings, data on summary judgment grant rates, and search results enhanced by AI. Each applies a pattern learned from past examples.

A rough test for whether a feature is a classifier or a generator is to look at what it hands back.

- **A ranking, a score, a tag or a probability.** That is classification or prediction. Ask how it was trained and how it was measured.
- **A paragraph, a summary or a draft.** That is generation. Ask what it was given to read and how each statement can be traced.
- **A list of search results ordered by "relevance".** Often a learned ranking. A document further down the list is not less relevant to your case because software ranked it lower.

Many products combine both. A review platform may rank documents with a classifier and then summarize the top-ranked ones with a generative model. Each half needs its own check, and a good summary of the top hundred documents says nothing about the relevant document the ranking placed at number four thousand.

Lucerna Law's homepage describes a different job: answering plain-English questions about a matter's files, with each answer citing passages from those files. Its homepage describes [how answers are produced and cited](https://lucernalaw.com/#product).

## What should a lawyer ask about a machine learning feature?

A lawyer relying on a machine learning feature should be able to answer four questions: what trained it, how its output was measured, where the cut-off sits, and what record shows all three. These follow the Da Silva Moore opinion's emphasis on process and transparency, and Opinion 512's expectation that lawyers understand a tool's capabilities and limitations.

Opinion 512 says lawyers "need not become GAI experts" but must have "a reasonable understanding of the capabilities and limitations of the specific GAI technology that the lawyer might use." The opinion is written about generative tools, and its footnote 3 says many of the same concerns arise with other AI tools. The questions below are this post's application of that standard to a classifier.

- [ ] **Training.** Whose coding trained it, on which documents, and was that coding checked?
- [ ] **Measurement.** Has recall been estimated on a random sample, and by whom?
- [ ] **Cut-off.** Below what score do documents go unread, and why there?
- [ ] **Changes.** If more documents arrive, is the system retrained, and is the measurement repeated?
- [ ] **Record.** Could the firm show the training set, the sample and the decisions to opposing counsel or a court?
- [ ] **Scope.** Is the feature's learning confined to this matter, or does it carry anything to other clients' matters?

None of these questions needs a computer scientist. They are the questions a careful partner would ask about a team of contract reviewers: who trained them, how was their work spot-checked, and what happened to the boxes nobody opened. Machine learning changes the speed of the work, and Da Silva Moore's point is that it does not change who answers for the process.

Next in this series: why a generative model can be out of date even when it is new, in the post on the [AI knowledge cutoff](https://lucernalaw.com/blog/ai-knowledge-cutoff).
