LIBERTy: A Causal Framework for Benchmarking Concept-Based Explanations of LLMs with Structural Counterfactuals
Gilat Toker, Nitay Calderon, Ohad Amosy, Roi Reichart
TL;DR
LIBERTy introduces a causal benchmark for evaluating concept-based explanations of LLMs by generating structural counterfactuals from explicitly defined SCMs, thereby overcoming the need for costly human-written counterfactuals. Texts are grounded with exogenous context (persona and templates) and counterfactuals are produced via interventions in the SCM, yielding structured reference targets aligned with the data-generating process. The framework spans three high-stakes datasets (workplace violence, disease detection, and CV screening) and introduces Order-Faithfulness as a robust metric to assess whether explanations preserve the correct ranking of concept effects. Across five explained models and eight explanation methods, LIBERTy finds matching-based explanations perform best locally, while global analyses reveal partial alignment with causal effects and notable room for improvement, with sensitivity analyses showing variation across model families. LIBERTy thus provides a scalable, principled platform for developing and evaluating faithful, causally grounded explainability methods.
Abstract
Concept-based explanations quantify how high-level concepts (e.g., gender or experience) influence model behavior, which is crucial for decision-makers in high-stakes domains. Recent work evaluates the faithfulness of such explanations by comparing them to reference causal effects estimated from counterfactuals. In practice, existing benchmarks rely on costly human-written counterfactuals that serve as an imperfect proxy. To address this, we introduce a framework for constructing datasets containing structural counterfactual pairs: LIBERTy (LLM-based Interventional Benchmark for Explainability with Reference Targets). LIBERTy is grounded in explicitly defined Structured Causal Models (SCMs) of the text generation, interventions on a concept propagate through the SCM until an LLM generates the counterfactual. We introduce three datasets (disease detection, CV screening, and workplace violence prediction) together with a new evaluation metric, order-faithfulness. Using them, we evaluate a wide range of methods across five models and identify substantial headroom for improving concept-based explanations. LIBERTy also enables systematic analysis of model sensitivity to interventions: we find that proprietary LLMs show markedly reduced sensitivity to demographic concepts, likely due to post-training mitigation. Overall, LIBERTy provides a much-needed benchmark for developing faithful explainability methods.
