Generative Gap Filling
This paper challenges the legal assumption that contracts contain too little information to resolve disputes by demonstrating that large language models can accurately reconstruct masked, unwritten terms from the remaining text, suggesting that courts should treat such model predictions as contestable evidence to fill contractual gaps.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Contracts are the written records of promises people make to one another. When two parties sign an agreement, they try to write down every detail of their deal so that if something goes wrong, a judge can look at the paper and see exactly what was agreed upon. But life is messy, and no matter how carefully lawyers draft these documents, they often leave things out. A specific event might happen that the writers never imagined, or a crucial detail might be forgotten. When a dispute arises over something that isn't written down, the law calls this a "gap." For a long time, legal scholars have believed that once a contract runs out of words, the document stops being useful. They assumed that if a judge has to fill in a missing piece, they are essentially guessing, relying on their own feelings about what is fair or what usually happens in business, because the text itself offers no clues.
This assumption has shaped how courts handle contract disputes for decades. The prevailing view is that when the text goes silent, the judge must step in and invent a solution based on general rules or personal policy. But this idea rests on a guess: that the rest of the contract provides very little information about what the missing part should be. If that guess is wrong, then the whole way judges think about these cases might need to change. The question is whether the words that are written down can actually tell us what the words that aren't written down would have said.
Two legal scholars decided to test this idea using a method borrowed from computer science. They took real, signed contracts and hid a specific clause that the parties had actually negotiated and agreed upon. They then asked different groups of people and computers to read the rest of the document and guess what the hidden part said. The researchers knew the answer because they had the original contracts. This setup allowed them to see if anyone could truly recover the missing information just by looking at the surrounding text.
The results were surprising. When ordinary people without legal training tried to guess the missing terms, they got it right about half the time. This was twice as often as they would have gotten it right by pure chance. People with legal training, like law students and practicing lawyers, did slightly better, getting the answer correct nearly 60 percent of the time. But the most striking result came from artificial intelligence. When large language models—computer programs trained on vast amounts of text—were given the same task, they recovered the hidden terms correctly nearly 90 percent of the time.
The researchers tested this across many different types of contracts, including agreements for artists, lawyers, and manufacturers. In almost every case, the computer models outperformed the humans. The models were able to look at the structure of the deal, the prices mentioned, the risks allocated, and the other clauses, and use that information to reconstruct the missing piece with high accuracy. This suggests that a contract is much more than just a collection of isolated sentences. Instead, the parts of a contract are deeply connected, like a radio signal where enough of the message gets through even if some of the transmission is lost. The text that is present carries information about the text that is missing.
This finding challenges the old belief that judges are left with nothing but their own preferences when a contract is incomplete. The study shows that the document itself often contains enough evidence to figure out what the parties intended, even if they didn't write it down. The authors argue that this means "true gaps"—where the parties truly had no agreement and the text offers no clue—are much rarer than previously thought. Most of the time, the answer is hidden in the words that are already there, waiting to be found.
The researchers also explored how this discovery could change the legal system. They suggest that courts could use these computer models as a tool, similar to how they currently use dictionaries or expert witnesses. A lawyer could ask a model to predict what a missing term would be, and the other side could do the same. The judge could then weigh these predictions as evidence, just like any other piece of information in the case. To make this work fairly, the authors propose that parties could include a "choice of model" clause in their contracts. This would be a simple sentence stating that if a dispute arises over a missing term, the court should use a specific computer program to help figure it out. This would bring a new level of precision to contract law, reducing the need for judges to guess and helping parties get the deal they actually intended.
However, the study also notes limits to this approach. The computer models work best when the contracts follow standard patterns. When a deal is very unique or when the parties deliberately chose to leave a gap because they couldn't agree, the models are less accurate, though still better than humans. The researchers also warn that if contracts start being written entirely by computers in the future, the whole foundation of this method might change, because the "intent" of the parties would no longer be a human decision. But for now, with the vast number of human-drafted contracts still in existence, the study suggests that the text itself is a much richer source of truth than anyone realized. The missing pieces are often there, just waiting to be read.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.