← Latest papers
💬 NLP

By Their Fruits You Will Know Them: Comparing Formalizations of Law by the Decisions They Encode

This paper introduces a method for systematically comparing legal formalizations by enumerating and verbalizing edge cases where they disagree, revealing that structural similarity does not guarantee behavioral consistency and that LLM-generated formalizations can produce distinct, legally significant divergences.

Original authors: Julius Vernie, Matthias Grabmair

Published 2026-05-26
📖 5 min read🧠 Deep dive

Original authors: Julius Vernie, Matthias Grabmair

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

Imagine you have a very complicated recipe for a legal rule, written in a language that is slightly vague. You ask nine different expert chefs (the AI models) to translate this recipe into a strict, step-by-step flowchart that a robot can follow.

The problem is: even if the chefs use the same ingredients and write the steps in a similar order, they might secretly interpret a few key instructions differently. One chef might think "add salt" means "a pinch," while another thinks it means "a cup." If you just look at their flowcharts side-by-side, they might look 90% identical. But if you feed the robot a specific, tricky ingredient combination, one chef's robot might say "Serve this dish," while the other's says "Throw this away."

This paper is about a new way to find those hidden disagreements before anyone gets hurt.

The Core Problem: "By Their Fruits You Will Know Them"

The title comes from an old saying: you can't just judge a tree by how it looks; you have to taste the fruit. In the world of AI and law, the "tree" is the formal rule (the flowchart), and the "fruit" is the decision it makes on a specific case.

The authors argue that simply comparing the structure of two AI-generated legal rules isn't enough. Two rules can look almost identical on paper but produce completely opposite results in real-life scenarios. They wanted a way to systematically find the "edge cases"—the weird, specific situations where two different AI interpretations of the same law clash.

The Method: A Three-Step Detective Process

The researchers built a pipeline to catch these disagreements, which they call "By Their Fruits." Here is how it works, using a simple analogy:

1. The Translation (Formalization)
First, they took 10 different EU laws (like the GDPR or the AI Act) and asked 9 different top-tier AI models to turn each law into a "decision tree." Think of this as asking nine different architects to draw a blueprint for the same house based on a vague description.

2. The Map-Making (Matching)
Next, they had to compare the blueprints. But the architects used different labels for the same rooms. One called it "The Kitchen," another called it "The Cooking Area." The researchers used an AI to act as a translator, matching up the nodes (the steps) in the different trees that represent the same legal concept. They built a "shared map" of where the trees overlap.

3. The Stress Test (SAT Solver & Edge Cases)
This is the magic part. Once they had the shared map, they used a mathematical tool (a SAT solver) to act like a stress-test engineer. They asked: "What is the absolute smallest, weirdest set of facts that would make these two blueprints give different answers?"

The tool found these "edge cases"—the specific combinations of facts where the rules diverge. For example, it might find that the rules only disagree if a robot is used by the police and the data was collected legally but not for a specific medical purpose.

4. The Storytelling (Verbalization)
Finally, the raw math (which looks like a list of "True/False" variables) is boring and hard for humans to understand. So, they used another AI to turn these math problems into short, realistic stories.

  • Instead of: "Input A=True, Input B=False, Input C=True."
  • They get: "A company sells a facial recognition system to the police to identify race. The data was collected legally, but the system is not used for filtering."

What They Found

When they ran this experiment on 10 EU laws and 9 AI models, they discovered some surprising things:

  • Looks Can Be Deceiving: There was almost no connection between how similar the rules looked structurally and how often they disagreed on the outcome. Two models could have 95% matching structures but still disagree on 50% of the edge cases.
  • Real Legal Drama: The "fruits" (the edge cases) revealed genuine, deep-seated disagreements in how the law should be interpreted.
    • Example: On the topic of AI that categorizes people by race for police work, the AI models split evenly. Half said it's strictly banned; the other half said it's allowed if the data was collected legally. This wasn't a computer error; it mirrored a real, ongoing debate among human legal experts about what the law actually means.
  • Hidden Errors: The method also caught clear mistakes. One AI model accidentally added an extra rule that made a legal condition much harder to meet than the law intended. The "fruit" (the edge case) exposed this error immediately.

The Bottom Line

The paper concludes that to truly understand if an AI is interpreting the law correctly, you can't just look at its code or its flowchart. You have to test it against specific, tricky scenarios.

Their method acts like a spotlight, shining a light on the exact moments where different AI interpretations of the law collide. It turns abstract mathematical differences into concrete stories that human lawyers can read, understand, and debate. It doesn't tell you which AI is "right" (that's a job for human experts), but it ensures you know exactly where and why they are disagreeing.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →