Explainable Concept Generation through Vision-Language Preference Learning for Understanding Neural Networks' Internal Representations

Aditya Taparia, Som Sagar, Ransalu SenanayakeICML 2025

Understanding the inner representations of a neural network is crucial for improving model performance and reliability. Concept-based methods have become a popular choice for explaining deep neural networks post-hoc because they test high-level visual "concepts" rather than just highlighting pixel attributions. For instance, the concept of "stripes" is important to classify an image as a zebra.

This paper introduces a novel framework called RLPO (Reinforcement Learning-based Preference Optimization) to automate the discovery of these high-level concepts. By using a generative AI model guided by an explainable AI (XAI) metric as a reward signal, the system discovers abstract features that humans might overlook, moving from manual "guessing" to automated model interpretation.

What Problem Does This Paper Address?

Concept-based explanation methods, such as Testing with Concept Activation Vectors (TCAV), explain model decisions using human-friendly abstractions (e.g., "This is a zebra because of stripes"). However, these methods suffer from a major bottleneck: human intuition.

Currently, researchers must manually guess which concepts might be relevant and curate datasets of images representing those concepts. This process is labor-intensive, prone to human bias, and often misses "hidden" concepts the model has learned. Existing automated "retrieval" methods—which segment patches from the original training images—often fail to provide truly abstract concepts, instead just returning isolated bits of the target object (like a cropped patch of zebra skin).

Venn diagram comparing generated, retrieved, and human-defined concepts

Methods: The RLPO Framework

The authors frame concept creation as an image generation problem guided by Reinforcement Learning (RL). Their framework consists of three main components:

  1. Seed Prompt Extraction: A Vision-Language Model (BLIP) is used to ask questions about image patches (e.g., "What is the pattern?") to generate a vocabulary of potential concept keywords.
  2. The RL Agent (DQN): A Deep Q-Network selects these keywords as "actions" to form prompts for a generative model.
  3. Preference Optimization: The agent uses Stable Diffusion with Low-Rank Adaptation (LoRA) to generate sets of images. Instead of using human feedback (as in standard RLHF), the system uses the TCAV score as the reward. If a generated image set results in a high TCAV score for a specific class, the RL agent is rewarded, and the Stable Diffusion model is fine-tuned to produce even more relevant concept images.

This creates a feedback loop where the generative model learns to visualize exactly what the classifier model is looking for.

Key Insights and Results

The authors evaluated RLPO across standard benchmarks (ImageNet, CelebA, IMDB) and models (GoogleNet, ViT, Swin Transformer), revealing several critical insights:

  • Beyond Human Imagination: While humans easily identify "stripes" for zebras, RLPO revealed that models also rely on contextual concepts like "mud" or "running"—features engineers often miss.
  • Generative > Retrieval: Generated concepts are far more diverse and abstract than simple image segments. RLPO can generate "stripes" in various contexts (like striped shirts or abstract geometric patterns), whereas retrieval methods just provide literal zebra skin patches.
  • Exploration Efficiency: RLPO outperformed standard search strategies, showing higher Entropy and Inverse Coefficient of Variance (ICV), meaning it explored the concept space more effectively.
  • Actionable Explanations and Bias Detection: The generated concepts are highly actionable. In a CelebA experiment, RLPO successfully identified that a model was using "female face" as a proxy for "blonde hair," highlighting a clear gender bias. Furthermore, by identifying a "blurry background" bias in a Tiger classifier, the authors generated a new dataset to fine-tune the model, fixing the bias while maintaining accuracy.
  • Human-in-the-loop Validation: In a survey of 19 ML engineers, 94.7% agreed that RLPO-generated concepts helped them understand the neural network better, and 84.2% said it provided new insights they hadn't considered.

Limitations and Future Work

While powerful, the framework has limitations. The final quality of the concepts depends heavily on the initial keywords extracted by the VQA model. Additionally, the system relies on Stable Diffusion; if the generative model itself has biases or cannot render complex concepts accurately, the explanations will suffer. Finally, in specialized domains like medicine, the generator might produce non-medical images if the classifier's activations are triggered by general textures, potentially confusing domain experts.

Future work aims to combine TCAV scores with direct input from domain experts to create "hybrid" preferences for even more refined, domain-accurate explanations.

Summary updated

BibTeX
@inproceedings{taparia2025explainable,
  author = {Aditya Taparia and Som Sagar and Ransalu Senanayake},
  title = {{Explainable Concept Generation through Vision-Language Preference Learning for Understanding Neural Networks' Internal Representations}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=koGlzcbXt3},
}
Figure