TL;DR
Large Language Models (LLMs) often get the right answer for the wrong reasons. This paper introduces a novel method to audit the internal "inference patterns" of LLMs during high-stakes tasks like legal judgment by mapping their decision-making to an interpretable AND-OR logical model. The authors discover that even when an LLM delivers a correct legal verdict, over half of its underlying logic can rely on irrelevant or flat-out incorrect pieces of information.
What Problem Does This Paper Address?
Standard evaluation of LLMs focuses almost entirely on outcome fairness or accuracy—did the model generate the correct final token? However, in high-stakes domains like law, medicine, or finance, arriving at a correct conclusion via flawed logic is incredibly dangerous.
For instance, if a legal LLM decides a defendant is guilty of assault not because they bit someone, but because the text mentions a "shovel" used by a completely different person, that represents a severe representational flaw. This paper tackles the challenge of uncovering and evaluating the correctness of these hidden, internal inference patterns to ensure models are right for the right reasons.
Methods
The authors leverage recent advances in explainable AI to decompose an LLM's prediction score into a set of phrase-level interactions. They fit the LLM's behavior to an AND-OR logical model mathematically grounded in game theory (specifically, Harsanyi dividends).
To evaluate whether these patterns make sense, they have human legal experts categorize input text phrases into three buckets:
- Relevant ($R$): Phrases that directly contribute to the true judgment (e.g., "bit the victim").
- Irrelevant ($I$): Contextual but non-sensitive phrases (e.g., "in the morning").
- Forbidden ($F$): Misleading phrases or actions belonging to another entity entirely (e.g., actions of a co-defendant).
Using these categories, they define a new metric, $s^{\text{reliable}}$, which measures the proportion of internal interaction strengths that align with human domain knowledge (i.e., relying on $R$ and strictly avoiding $F$).
Datasets
The method was evaluated across five prominent legal benchmarks spanning both English and Chinese languages:
- English: LegalBench (Learned Hand Crime dataset) and LexGLUE (ECtHR dataset).
- Chinese: CAIL2018, LeCaRD, and LEVEN.
The authors tested four models: two general-purpose LLMs (Qwen2.5-14B-Base, DeepSeek-R1-Distill-Qwen-14B) and two law-specific LLMs (SaulLM-7B-Instruct for English, BAI-Law-13B for Chinese).
Key Insights and Ideas
- The "Bag-of-Words" Illusion: Despite the industry hype around the "long-chain reasoning" capabilities of LLMs, the authors found that models heavily favor low-order, local interactions. They are essentially using local token shortcuts to guess judgments rather than performing holistic case analysis.
- Massive Internal Conflict: LLMs generate a vast number of "canceling interactions" where positive and negative logic tracks completely offset each other. This indicates a high level of internal noise and ambiguity behind a seemingly confident answer.
- Identity and Occupation Bias: The models showed severe sensitivity to irrelevant demographic details. For example, in one test case, simply changing a victim's occupation from "a judge" to "a volunteer" completely flipped the model's verdict from "Robbery" to "Not mentioned," exposing deep-seated biases in how the models weigh text.
Key Results
- Low Reliability Ratios: The reliability ratio ($s^{\text{reliable}}$) across all models and datasets was alarmingly low, rarely exceeding 75% and dropping below 50% in several tasks.
- High Logic Cancellation: Quantifying the internal conflict revealed that more than 60% of the model's internal interaction effects were mutually canceled out by opposing noisy logic.
- Entity Confusion Case Study: In a specific case study involving two defendants (Andy and Bob), SaulLM-7B-Instruct achieved a reliability score of only 41.5%. It mistakenly attributed Bob's lethal actions (using a shovel, causing death) to boost its confidence in judging Andy's minor assault charge.
Limitations and Future Work
- Scalability of Annotations: The framework relies heavily on manual phrase partitioning ($R, I, F$) by human legal experts, making it difficult to scale exhaustively across millions of diverse legal cases.
- Jurisdictional Variations: Laws and legal interpretations vary significantly across countries, which complicates the definition of a universally "correct" legal logic.
- Future Directions: The authors suggest extending this interaction-auditing approach to other high-stakes domains like finance and healthcare data analytics to ensure models are procedurally fair before deployment.
Summary updated