Explainable Concept Generation through Vision-Language Preference Learning

Aditya Taparia, Som Sagar, Ransalu Senanayake · DOI

Introduction

Deep Neural Networks (DNNs) are often criticized for being "black boxes," where the logic behind a classification remains opaque. To bridge this gap, researchers developed Concept-based Explainable AI (XAI), such as Testing with Concept Activation Vectors (TCAV). Unlike traditional heatmaps that highlight specific pixels, TCAV identifies high-level concepts—like "stripes" or "spots"—that drive a model's decision.

However, traditional TCAV faces a significant bottleneck: it requires humans to manually curate sets of example images for every concept. This process is not only labor-intensive but also limited by human bias; we only test for concepts we think are important, potentially missing the unique features the model has actually learned.

The RLPO Framework

To overcome these limitations, this paper introduces RLPO (Reinforcement Learning-based Preference Optimization). RLPO automates concept discovery by treating it as an image generation problem rather than a retrieval task.

The conceptual landscape of RLPO: bridging the gap between human-defined concepts and a neural network's internal representations.

The framework operates through a multi-step generative loop:

  1. Seed Prompting: A Visual Question Answering (VQA) model (BLIP) analyzes class images to generate initial keywords (e.g., "stripes," "savanna").
  2. RL-Driven Selection: A Deep Q-Network (DQN) agent selects the most promising keywords to serve as seed prompts.
  3. Generative Loop: These prompts are fed into a fine-tuned Stable Diffusion (SD v1.5) model using Low-Rank Adaptation (LoRA).
  4. Preference Optimization: Instead of human feedback, the system uses the TCAV score of the target model as a reward signal. If a generated image set triggers a high activation in the model, the RL agent treats it as a "preferred" concept and refines the generator accordingly.

Key Insights: Uncovering the "Exploration Gap"

One of the most striking findings of the RLPO study is the "Exploration Gap." In a survey of 19 ML engineers, the authors found that RLPO consistently identified critical concepts that humans overlooked. For example, while humans focused almost exclusively on "stripes" for a Zebra classifier, RLPO discovered that the model relied heavily on contextual features like "mud" and "running."

Because RLPO generates images from scratch, it can create abstract or exaggerated versions of concepts that do not exist in the original training data but perfectly align with the model's internal representations. This allows for a more faithful explanation of the model's actual behavior compared to methods that simply "cut out" pieces of existing images.

Actionable Debugging and Results

RLPO is not just for observation; it is a tool for model improvement. By identifying that a "Tiger" classifier was over-relying on "blurry" backgrounds, the authors were able to fine-tune the model using RLPO-generated "clean" tiger concepts, successfully reducing background bias.

Key performance metrics include:

  • Superior Exploration: The RL approach achieved significantly higher diversity (Entropy: 2.80) compared to standard search strategies.
  • Efficiency: The automated feedback loop generates valid concept sets in roughly 56 seconds, requiring minimal GPU resources (<1GB for the feedback step).
  • Cross-Modal Versatility: The framework generalizes to NLP. By swapping Stable Diffusion for a Large Language Model (Mistral-7B), the authors identified word-clusters driving sentiment analysis decisions.

Conclusion and Future Work

RLPO represents a significant step toward automated, unbiased model interpretability. By aligning generative models with the internal preferences of a target classifier, it uncovers the "hidden" language of neural networks. Future research aims to incorporate "Human-AI Collaboration," where domain experts provide high-level guidance while the RL agent handles the granular task of model-aligned image generation.

Summary updated

BibTeX
@inproceedings{taparia2024explainable,
  author = {Aditya Taparia and Som Sagar and Ransalu Senanayake},
  title = {{Explainable Concept Generation through Vision-Language Preference Learning}},
  booktitle = {InterpretableAI @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=oZLbD3p11a},
}
Figure