Claude 3.5 Sonnet vs. GPT-4o: Legal Reasoning Benchmarks

Morgan80 Advanced 3h ago Updated Jul 25, 2026 421 views 11 likes 3 min read

Feeding a massive dump of scanned bylaws and bureaucratic letters into an LLM is the only way to survive "administrative lawfare" without spending $300 an hour on a lawyer. I recently put Claude 3.5 Sonnet and GPT-4o to the test against a complex inheritance dispute involving 19th-century housing cooperative statutes. The goal wasn't just to "write a letter," but to perform a precise cross-reference of contradictory legal provisions.

The Technical Challenge: Dirty Data

The input was a nightmare: a "PDF" that was actually a zip of images with no text layer. To make this a real-world AI workflow, I had to preprocess the data:
1. Unzip the image archive.
2. Rasterize and run OCR via a German-specific model.
3. Feed the resulting imperfect text (where the section symbol § was often misread as $) into the LLM.

In 2019, this would have been a dead end. Today, the "noise" in the OCR didn't stop the reasoning, provided the model had a large enough context window to hold the entire set of bylaws and the correspondence.

Model Performance: Claude 3.5 Sonnet vs. GPT-4o

I ran the same set of documents through both models to see which could actually spot the legal error. The error was subtle: the cooperative was applying rules for inter vivos transfers (between living people), which require board approval, rather than mortis causa transfers (inheritance), which happen automatically by operation of law.

  • Reasoning Accuracy: Claude 3.5 Sonnet identified the specific paragraph conflict immediately. It mapped the "transfer" clause against the "inheritance" clause and flagged the contradiction. GPT-4o tended to summarize the bylaws generally but missed the specific nuance of the "automatic" nature of the inheritance.
  • Citation Precision: Claude provided a reference document mapping every legal provision in play. It cited four specific statutes and three bylaw sections with near-perfect accuracy despite the OCR errors.
  • Hallucination Rate: GPT-4o occasionally "invented" a standard probate procedure that didn't exist in the provided bylaws, whereas Claude stuck strictly to the provided context.
  • Output Utility: Claude generated a formal letter that didn't sound like "AI prose." It used the specific terminology of the bylaws to corner the administrator into a logical dead end.

Practical Implementation: The Prompt Strategy

To get this result, you cannot use a simple "summarize this" prompt. You need a multi-step prompt engineering approach to force the model into a "legal auditor" persona.

# System Prompt
You are a senior legal analyst specializing in cooperative law. Your goal is to find contradictions between the provided Bylaws and the Correspondence.

# Task
1. Extract all mentions of "share transfer" and "inheritance/death" from the Bylaws.
2. Compare these provisions against the claims made in the Correspondence.
3. Identify if the Correspondence is applying a provision that is superseded by another.
4. Provide a list of citations (Section/Paragraph) to support your finding.

# Constraint
If the OCR text is corrupted (e.g., '$' instead of '§'), infer the meaning from context but flag the correction.

The Verdict

For high-stakes reasoning where a single paragraph determines the outcome, Claude 3.5 Sonnet is currently superior to GPT-4o. The ability to handle "garbage" OCR text and perform a side-by-side comparison of conflicting rules makes it a legitimate tool for personal legal auditing.

The result of this specific deep dive was a two-page letter that proved the cooperative had applied the wrong paragraph. I didn't need a law degree; I just needed a model that could actually read.

ClaudeLLMLarge Language Modellawtechkidsdontdothisathome

All Replies (3)

C
Casey51 Novice 11h ago
Used Sonnet for some HOA dispute letters last month. It caught a few phrasing contradictions that I completely missed.
0 Reply
M
Max75 Advanced 11h ago
I've found that uploading a PDF of the actual city code helps prevent the AI from hallucinating local ordinances.
0 Reply
S
SoloSmith Expert 11h ago
@Max75 That's a pro move. Does it handle the cross-referencing between different sections well or still get tripped up?
0 Reply

Write a Reply

Markdown supported