NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Defining and Quantifying the Emergence of Sparse Concepts in DNNs

Jie Ren, Mingjie Li, Qirui Chen, Huiqi Deng, Quanshi Zhang · DOI

Abstract

This paper aims to illustrate the concept-emerging phenomenon in a trained DNN. Specifically, we find that the inference score of a DNN can be disentangled into the effects of a few interactive concepts. These concepts can be understood as causal patterns in a sparse, symbolic causal graph, which explains the DNN. The faithfulness of using such a causal graph to explain the DNN is theoretically guaranteed, because we prove that the causal graph can well mimic the DNN's outputs on an exponential number of different masked samples. Besides, such a causal graph can be further simplified and re-written as an And-Or graph (AOG), without losing much explanation accuracy.

Introduction

Deep Neural Networks (DNNs) are often dismissed as "black boxes" due to their complex layer-wise mathematical transformations. While they achieve state-of-the-art performance, understanding the underlying "logic" behind their predictions remains a challenge. Existing Explainable AI (XAI) methods, such as saliency maps, typically highlight important input features but fail to capture the complex interactions between them—for instance, how a specific combination of words forms a semantic unit. Furthermore, many XAI methods lack mathematical faithfulness, meaning they may not accurately reflect the model's logic under input perturbations. This research addresses these gaps by proving that DNN logic can be disentangled into a small set of "interactive concepts" organized into a sparse, symbolic causal graph.

Methodology: From DNNs to And-Or Graphs

The proposed framework extracts and simplifies the causal patterns used by a DNN through a multi-step process:

  1. Interactive Concepts & Harsanyi Dividends: Concepts are defined as "AND" relationships between input variables. To quantify their effects, the framework utilizes Harsanyi dividends from cooperative game theory, assigning a numerical weight ($w_S$) to specific variable sets.
  2. The Causal Graph: These concepts are organized into a three-layer causal graph. Theorem 1 guarantees that using Harsanyi dividends allows this graph to perfectly mimic the DNN's output across all $2^n$ possible input maskings.
  3. Sparsity and Simplification: Although $2^n$ interactions are theoretically possible, most have negligible effects. By learning optimal baseline values for masking and employing a greedy strategy, the authors retain only "salient" patterns.
  4. AOG Rewriting: Using the Minimum Description Length (MDL) principle, the causal graph is simplified into an And-Or Graph (AOG), identifying shared "coalitions" between concepts for better human readability.
Transformation of DNN logic into a simplified And-Or Graph (AOG).

Empirical Findings: Emergent Sparsity

A key discovery of this work is that as DNNs are trained, they naturally converge toward using a very small number of salient interactive concepts (typically 10 to 100). This phenomenon holds across diverse architectures and datasets, including NLP (SST-2, CoLA), Computer Vision (MNIST, CelebA), and tabular data.

Empirical evidence of sparse causal patterns across various architectures and datasets.

Furthermore, the research indicates that adversarial training—intended to make models robust—actually simplifies their logic. Robust models develop sparser and more consistent symbolic concepts, suggesting that reliability forces the model to rely on simpler, more stable logic.

Results and Faithfulness

The AOG explainer demonstrates superior performance in both accuracy and faithfulness:

  • Pattern Extraction Accuracy: On synthetic datasets with known ground-truth logic, the framework achieved an Intersection over Union (IoU) of 0.97 to 1.00.
  • Faithfulness: The "unfaithfulness" score (error between the model and the explanation) was orders of magnitude lower than baseline methods (e.g., $10^{-12}$ vs. $10^1$).
  • Qualitative Clarity: In NLP tasks, AOGs successfully identified meaningful word collocations (e.g., identifying "she was" as a specific signal), and in MNIST, they extracted typical digit components.

Conclusion and Future Work

While the framework provides a theoretically grounded and faithful representation of DNN logic, computational efficiency remains a hurdle. Calculating exact Harsanyi dividends is NP-hard, requiring evaluations on an exponential number of samples. Current implementations use greedy strategies and manual segmentation to maintain tractability. Future research will focus on approximation methods and acceleration techniques to scale this high-fidelity explanation method to larger models and higher-resolution data.

Summary updated

BibTeX
@inproceedings{ren2021defining,
  author = {Jie Ren and Mingjie Li and Qirui Chen and Huiqi Deng and Quanshi Zhang},
  title = {{Defining and Quantifying the Emergence of Sparse Concepts in DNNs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.48550/arxiv.2111.06206},
}
Figure