Concept-Level Explainability for Auditing & Steering LLM Responses

Kenza Amara, Rita Sevastjanova, Mennatallah El-Assady · DOI

Introduction

This paper introduces ConceptX, a model-agnostic framework designed to explain and control Large Language Model (LLM) responses at the level of semantic concepts rather than individual tokens. By moving beyond literal token matching to a semantic similarity objective, the authors provide a more faithful way to audit biases and "steer" model outputs toward safer or more desirable behavior without the need for retraining.

The Limitations of Token-Level Explainability

Traditional Explainable AI (XAI) for NLP typically operates at the token level. While useful for classification, this approach faces three major hurdles in the era of generative LLMs:

  1. The Literal Trap: Token-level methods often measure importance based on the likelihood of reproducing specific output tokens, failing to account for semantically identical paraphrases.
  2. Contextual Destruction: Evaluation by token removal often breaks grammatical structure, leading to "garbage" outputs that don't reflect internal logic.
  3. Noise: Attribution often highlights uninformative function words (e.g., "the", "is") rather than the core concepts (nouns, verbs, adjectives) driving meaning.

The ConceptX Framework

ConceptX addresses these issues through a coalition-based attribution framework inspired by Shapley values. It shifts the focus from individual tokens to semantically rich concepts identified via POS tagging and knowledge graphs.

Overview of the ConceptX framework, illustrating concept extraction, replacement strategies, and importance estimation.

The process involves three main stages:

  • Concept Extraction: Identifies semantically rich content words.
  • Context-Preserving Replacements: Instead of simple deletion, it employs strategies like Neutral Replace (using contextually appropriate but inert words) or Antonym Replace to maintain grammatical integrity and test for inverse steering.
  • Semantic Value Function: Measures importance using cosine similarity between sentence embeddings of the original and modified responses, allowing for "Aspect-Targeted" explanations (e.g., focusing on toxicity or gender).

Key Results and Insights

ConceptX was evaluated across three LLMs (Gemma-3-4B, Mistral-7B, and GPT-4o-mini) using benchmarks for general instruction-following, sentiment, and safety.

Faithfulness and Bias Detection

ConceptX consistently outperformed TokenSHAP in "similarity fidelity," reflecting the model's actual decision-making more accurately. In the GenderBias dataset, ConceptX identified gender-specific tokens as primary drivers of biased responses far more effectively than traditional methods.

Comparison of ConceptX variants against TokenSHAP and Random baselines in ranking gender-specific tokens within the GenderBias dataset across different models.

Steering and Safety

  • Sentiment Steering: ConceptX achieved a sentiment shift of 0.252, significantly higher than random edits (0.131).
  • Jailbreak Defense: By identifying and removing harmful trigger words, the Attack Success Rate (ASR) on Mistral-7B was reduced from 0.463 to 0.242, outperforming standard paraphrasing baselines.

Conclusion

ConceptX bridges the gap between understanding and controlling LLMs. By focusing on meaning over form and preserving grammatical context, it provides a robust tool for auditing biases and surgically steering model outputs. Future work will explore "Global Explanations" and "concept hubs" to understand behavior across entire datasets.

Summary updated

BibTeX
@misc{amara2025concept,
  author = {Kenza Amara and Rita Sevastjanova and Mennatallah El-Assady},
  title = {{Concept-Level Explainability for Auditing \& Steering LLM Responses}},
  year = {2025},
  eprint = {2505.07610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.07610},
}
Figure