TL;DR
The paper introduces LIBERTy, a novel causal framework that uses Structured Causal Models (SCMs) and LLMs to generate high-quality, synthetic datasets with true "structural counterfactuals." By establishing a reliable ground truth for how high-level concepts affect text generation, LIBERTy provides a rigorous benchmark for concept-based explainability methods, revealing that current techniques still have substantial room for improvement.
What Problem Does This Paper Address?
As Large Language Models (LLMs) are increasingly deployed in high-stakes domains like healthcare, law, and human resources, understanding why a model makes a specific prediction is critical. Concept-based explainability attempts to solve this by quantifying how much high-level, human-interpretable concepts (e.g., gender, race, or medical symptoms) influence a model's output.
However, evaluating whether these explanations are truly "faithful" to the model's inner workings is notoriously difficult because the true underlying data-generating process (DGP) of real-world text is inaccessible. Prior benchmarks, such as CEBaB, relied on human annotators to write counterfactual texts (e.g., altering a restaurant review from positive to negative). Unfortunately, human-edited text is an imperfect proxy; it doesn't represent a true intervention in a controlled data-generating process, making it a shaky ground truth for evaluating causal effects.
Methods
To eliminate the need for costly and imperfect human annotations, the authors propose LIBERTy (LLM-based Interventional Benchmark for Explainability with Reference Targets). Instead of altering text post-hoc, LIBERTy explicitly defines a Structured Causal Model (SCM) to generate the text from scratch.
The framework operates as follows:
- SCM Generation: Concepts are sampled based on a predefined causal graph.
- Deterministic LLM Generation: An LLM (GPT-4o) acts as a component of the SCM, translating these structured concepts into natural language text using deterministic decoding (zero temperature).
- Exogenous Grounding: To prevent deterministic decoding from producing repetitive, robotic text, the authors introduce two exogenous noise variables: an author persona ($\epsilon_{persona}$) and a discourse template ($\epsilon_{template}$). This ensures the text is diverse and realistic while keeping the causal mechanics strictly controllable.
- Structural Counterfactuals: Counterfactual pairs are generated using Pearl’s three-step causal procedure (Abduction, Action, Prediction), changing a target concept value while keeping the persona and template fixed.
Evaluation Metrics
The paper evaluates local explanations using the standard Individual Causal Concept Effect (ICaCE) Error Distance (ED). Crucially, they also introduce a new metric called Order-Faithfulness (OF). Rather than forcing an explanation method to guess the exact numerical causal effect, Order-Faithfulness assesses whether the method can at least correctly rank the relative importance of different concept changes.
Datasets
LIBERTy introduces three distinct datasets, each capturing a complex, socially impactful NLP task with a rich hierarchical causal graph (containing at least eight concepts each):
- Workplace Violence Prediction: Simulates HR-nurse interviews to predict the likelihood of a nurse experiencing workplace violence, adapted from real epidemiological data.
- Disease Detection: An anti-causal task where a underlying disease label determines the presentation of various symptoms in a simulated medical forum post.
- CV Screening: Simulates automated resume screening, predicting candidate quality from a personal statement while modeling complex dependencies between demographic and professional attributes.
Key Insights and Ideas
- The Illusion of LLM-Generated Explanations: Previous benchmarks suggested that using LLMs to generate counterfactual explanations was a state-of-the-art approach. LIBERTy reveals this was an artifact of human-written benchmarks. Because humans and LLMs use similar heuristic editing processes, LLM explanations looked good simply because they mimicked human edits. When evaluated against true structural counterfactuals that reflect the actual data-generating process, LLM-generated counterfactual explanations perform poorly.
- The Power of Task-Specific Embeddings: Simple matching methods—specifically
FT Match, which finds similar examples using embeddings from a model fine-tuned on the target task—outperformed complex counterfactual generation and concept erasure techniques. - Alignment Blinds LLMs to Demographics: In a systematic sensitivity analysis, proprietary models like GPT-4o showed remarkably low sensitivity to changes in demographic concepts (Race, Gender, Age) compared to the true data effects. This is highly indicative of post-training safety alignment designed to mitigate demographic biases, effectively "blinding" the model to these variables even when they are causally relevant in the underlying data distribution.
Key Results
The authors benchmarked eight explainability methods across five language models (including DeBERTa, T5, Qwen, LLaMA-3.1, and GPT-4o):
- Matching Dominates:
FT Matchemerged as the most faithful local explanation method, achieving the lowest Error Distance (0.34) and the highest Order-Faithfulness (0.74) averaged across all models and datasets. - Substantial Headroom: Even the best-performing method (
FT Match) only achieved an Order-Faithfulness score of ~0.74 (where 1.0 is perfect). This highlights a significant gap in current concept-based explainability techniques and underscores the utility of LIBERTy as a challenging benchmark for future research.
Limitations and Future Work
While LIBERTy marks a major step forward, the authors note a few key limitations:
- Synthetic Text: The datasets rely entirely on LLM-generated text. While human validation confirmed that the text is fluent, coherent, and realistic, it may still lack the stylistic nuances of organic human writing.
- Scope of Explanations: The framework is strictly tailored to concept-based explanations and cannot be directly applied to token-level attributions or free-text explanations.
- Approximations of Reality: The underlying SCMs are simplified representations of complex real-world phenomena. However, the authors argue this is sufficient, as explainability faithfulness is defined relative to the explained model, not the real world.
Future work includes leveraging LIBERTy as a testbed to develop entirely new causal learning techniques that go beyond vanilla fine-tuning to explicitly align model behavior with true underlying data-generating processes.
Summary updated