Linearly-interpretable concept embedding models for text analysis

Francesco De Santis, Philippe Bich, Gabriele Ciravegna, Pietro Barbiero, Danilo Giordano, Tania Cerquitelli

Introduction

As Large Language Models (LLMs) become central to text analysis, their inherent "black-box" nature poses significant challenges for high-stakes decision-making. While these models offer state-of-the-art performance, they lack transparency, making it difficult for users to understand the reasoning behind specific classifications. To address this, researchers have introduced LICEM (Linearly Interpretable Concept Embedding Model), a framework designed to provide "glass-box" transparency without sacrificing the predictive power of modern LLMs.

The Interpretability Challenge

Traditional explainability methods, such as attention weights or gradient-based saliency maps, often fail to provide a clear causal link between model inputs and outputs. They typically highlight where a model is looking rather than what it is perceiving.

Previously, Concept-Bottleneck Models (CBMs) attempted to solve this by forcing models to predict human-understandable concepts (e.g., "Effective") before making a final task prediction. However, CBMs historically suffered from a "triple threat":

  1. The Accuracy Gap: Restricting reasoning to a few concepts often degrades performance compared to end-to-end black-box models.
  2. Interpretability Loss: To recover accuracy, many CBMs use complex non-linear layers after the concept bottleneck, obscuring the logic once again.
  3. The Labeling Burden: Training these models usually requires expensive, manually labeled concept data.
Accuracy and concept prediction performance on the Drug dataset, comparing LICEM against baseline models.

Methodology: Dynamic Linearity

LICEM bridges the gap between high-dimensional embeddings and simple logic through a unique architecture. It utilizes a pre-trained LLM backbone to generate rich numerical embeddings, which are then mapped to specific "concept embeddings."

The core innovation of LICEM is its Linear Equation Generator. For every individual input, the model predicts a unique set of weights ($w$) and a bias ($b$). The final prediction is then calculated as a simple weighted sum:

$$y = \sigma(\sum w_j \cdot \hat{c}_j + b)$$

This "Dynamic Linearity" allows the model to be flexible—recognizing that a specific concept might be more or less important depending on the context of the review—while remaining perfectly interpretable at the local level. Additionally, the researchers introduced Self-LICEM, which leverages the LLM backbone to generate its own concept labels, effectively removing the need for manual human annotation.

Evaluation and Results

The framework was tested across a variety of datasets, including sentiment analysis (CEBaB, Drug, MultiEmotions-IT), intent detection (Banking-77), and general classification (IMDb, TREC-50).

Accuracy and concept prediction performance on the Drug dataset, comparing LICEM against baseline models.

Key findings include:

  • Performance Parity: LICEM matched or exceeded the accuracy of black-box Multi-Layer Perceptrons (MLPs) across nearly all tasks.
  • Superior Interpretability: In the Drug dataset, LICEM maintained high task accuracy even when restricted to interpretable logic, whereas traditional CBMs saw significant performance drops.
  • Human Validation: In a study with 46 participants, LICEM’s explanations were rated significantly more plausible than those from competing models, with experts favoring LICEM’s linear explanations 80% of the time.
  • Intervenability: Because the model relies on a linear combination of concepts, users can perform "what-if" interventions. By manually adjusting a concept score (e.g., correcting a misidentified "Side Effect"), the user can see exactly how the final prediction would change.

Conclusion

LICEM demonstrates that we do not have to choose between performance and transparency. By generating sample-specific linear equations, the model provides a clear, causal, and intervenable window into the reasoning of LLMs. Future work will focus on scaling this approach to longer documents and more complex reasoning tasks beyond classification.

Summary updated

BibTeX
@article{santis2025linearly,
  author = {Francesco De Santis and Philippe Bich and Gabriele Ciravegna and Pietro Barbiero and Danilo Giordano and Tania Cerquitelli},
  title = {{Linearly-interpretable concept embedding models for text analysis}},
  journal = {Machine Learning},
  year = {2025},
  doi = {10.1007/s10994-025-06839-5},
}
Figure