Guaranteed Optimal Compositional Explanations for Neurons

Biagio La Rosa, Leilani Gilpin

International Conference on Machine Learning 2026 · Oral

Overview

This talk explores the critical challenge of interpretability in deep learning: measuring how human knowledge aligns with internal model representations, specifically the activation ranges of individual neurons in deep neural networks. In computer vision and other modalities, researchers frequently attempt to quantify this alignment by finding logical formulas—combinations of human-annotated concepts—that overlap maximally with a neuron's activation map. This alignment is typically evaluated using the intersection over union (IoU) score. However, when datasets contain a large number of concepts, enumerating every possible logical combination to find the best explanation becomes computationally infeasible, requiring millions of hours of compute.

Watch on SlidesLive

Visual summary for Guaranteed Optimal Compositional Explanations for Neurons by Biagio La Rosa, Leilani Gilpin
Visual summary for Guaranteed Optimal Compositional Explanations for Neurons by Biagio La Rosa, Leilani Gilpin

Key moments

  1. 0:00 Introduction to compositional explanations and current limitations
  2. 2:00 Decomposing alignment score into fundamental quantities
  3. 4:00 Designing heuristics using label and path IOU
  4. 6:48 Algorithm design using information propagation and pruning
  5. 9:30 Experimental results and findings on beam search suboptimality
  6. 11:37 Q&A: Applicability to large language models and complex semantics

Guaranteed Optimal Compositional Explanations for Neurons

Speakers: Biagio La Rosa; Leilani Gilpin

Conference: ICML

YouTube: https://slideslive.com/39083524

Overview

This talk explores the critical challenge of interpretability in deep learning: measuring how human knowledge aligns with internal model representations, specifically the activation ranges of individual neurons in deep neural networks. In computer vision and other modalities, researchers frequently attempt to quantify this alignment by finding logical formulas—combinations of human-annotated concepts—that overlap maximally with a neuron's activation map. This alignment is typically evaluated using the intersection over union (IoU) score. However, when datasets contain a large number of concepts, enumerating every possible logical combination to find the best explanation becomes computationally infeasible, requiring millions of hours of compute.

To make the problem tractable, prior research relied heavily on beam search, a heuristic search algorithm that focuses on a fixed number of top candidates. While beam search enables faster exploration, it cannot guarantee the optimality of its solutions, leaving the community uncertain whether prior explanations were truly optimal or if superior explanations existed within the state space.

Presented at ICML by Biagio La Rosa (co-authored with Leilani Gilpin), this talk introduces the first algorithm guaranteed to find the optimal compositional explanation. By decomposing the IoU score into fundamental set-theoretic quantities and designing custom heuristics for information propagation and pruning, the authors reduce the search time from millions of hours to roughly one and a half hours. Their investigation reveals that between 10% and 40% of previous explanations generated via beam search across both transformers and convolutional neural networks (CNNs) are suboptimal.

Background

▶ Watch: Introduction to compositional explanations and current limitations (0:00)

The black-box nature of deep learning models has driven extensive research into mechanistic interpretability and concept-based explanations. In domains like computer vision, human knowledge is often encoded via segmentation masks that localize specific concepts within images. To understand what an individual neuron detects, researchers look for compositional explanations—logical formulas combining concepts (e.g., "dog" OR "white") that align closely with the neuron's firing patterns.

The primary bottleneck in this line of research is combinatorial explosion. As the vocabulary of concepts expands, the state space of possible logical formulas grows exponentially. Past approaches circumvented this by deploying beam search, pruning the search tree aggressively to maintain a manageable frontier of candidate explanations.

However, this heuristic shortcut introduces significant blind spots. Without an optimal baseline or a mechanism to bound the state space safely, researchers could not verify whether beam-search-derived explanations faithfully represented a neuron's function or were artifacts of premature pruning. Furthermore, beam search often yields unverified explanations—hypotheses lacking counterfactual support within the dataset to prove or disprove their validity. This methodological gap created an urgent need for a rigorous, exact search framework that could establish ground-truth optimality for compositional explanations.

Key Findings

▶ Watch: Designing heuristics using label and path IOU (4:00)

The central contribution of this work is an exact search algorithm that guarantees the discovery of the optimal compositional explanation without exhaustive brute-force enumeration. Key findings and empirical results include:

  • Substantial Optimality Gap in Prior Work: By evaluating previous explanations against the new guaranteed optimal solutions across both convolutional neural networks and transformers, the authors discovered that 10% to 40% of prior explanations are suboptimal.
  • Elimination of Unverified Explanations: The authors found that beam search frequently produces unverified explanations—formulas lacking dataset counterfactuals to validate them. The new optimal framework ensures explanations are grounded in verified state-space properties.
  • Dramatic Speedup Over Naive Enumeration: While exact evaluation across millions of potential logical combinations would traditionally require millions of hours, the proposed heuristic-guided search algorithm solves the problem in roughly one and a half hours, achieving runtimes comparable to heuristic beam search while retaining mathematical optimality guarantees.
  • Flexible Variant for Diverse Tasks: The authors also developed a beam-search variant powered by their novel heuristics, offering competitive performance and increased flexibility across various domains reliant on binary concept data.

Technical Deep Dive

▶ Watch: Algorithm design using information propagation and pruning (6:48)

The core technical innovation lies in reformulating the intersection over union (IoU) score into a set-theoretic problem and leveraging this decomposition to build robust estimation heuristics.

Score Decomposition

The authors view alignment as a relationship between a reference set (the neuron's activations) and a set of concept sets. They categorize elements into four fundamental quantities:

  1. Unique Elements: Elements associated with one and only one concept.
  2. Common Elements: Elements shared across multiple concepts (e.g., pixels annotated with multiple overlapping concepts).
  3. Intersection: Elements shared between a given concept and the neuron's activations.
  4. Extras: Elements associated with a concept but not activated by the neuron.

By combining these definitions, the authors isolate four fundamental quantities: unique extras, common extras, unique intersection, and common intersection. They prove that as long as the logical operators utilized are zero-zero preserving, this decomposed formulation is mathematically equivalent to the classic IoU score.

Heuristic Design

Using these fundamental quantities, the algorithm computes two critical estimations:

  • Label IoU: An estimation of a single concept's IoU derived strictly from its foundational quantities.
  • Path IoU: The maximum possible alignment score reachable by starting from a given label and appending up to $K$ arbitrary concepts.

These quantities are calculated via two approaches: an aggregated estimation (fast and coarse, leveraging dataset-wide quantities) and a sample-based estimation (slower, computed per sample). For instance, when evaluating the OR operator (which corresponds to set union), unique elements are strictly disjoint and can be summed directly, whereas common elements require bounding via worst-case and best-case scenarios.

Search, Refinement, and Pruning Algorithm

The search algorithm operates through iterative information propagation and pruning:

  1. Initialization: The frontier is initialized with individual concepts, computing maximum and minimum possible alignment scores for each.
  2. Selection & Refinement: At each step, the node with the highest estimated score is selected. If the node relies on an aggregated estimation, it is refined into a sample-based estimation and pushed back. If it is already a sample-based estimate, it is expanded across logical paths (OR, AND, NOT, and leaf paths).
  3. Backpropagation & Pruning: When a leaf node is reached, the exact alignment score is computed. Intermediate computations are backpropagated to update estimations of sibling nodes sharing label components. Finally, any node whose maximum possible alignment score falls below the current leaf score is pruned from the frontier.

Experimental Setup & Results

▶ Watch: Experimental results and findings on beam search suboptimality (9:30)

The algorithm was evaluated across multiple datasets exhibiting varying degrees of complexity, focusing primarily on vision tasks utilizing convolutional neural networks and efficient ViT architectures.

While exact execution details vary across the tested benchmarks, the headline result centers on computational feasibility and error quantification:

  • Runtime Efficiency: The exact search algorithm matches the runtime efficiency of exhaustive beam search ($\approx 1.5$ hours), successfully scaling to high-complexity settings.
  • Error Bounds: The empirical analysis across CNNs and transformers established that 10% to 40% of historical explanations missed the global optimum, demonstrating that heuristic search alone leaves a significant margin of error in interpretability research.

When questioned about applicability to large language models (LLMs) with complex semantics, the speaker noted that while LLMs encode rich semantic spaces, applying the exact algorithm presents technical hurdles regarding the availability of unique elements due to dense overlapping token annotations (e.g., part-of-speech tagging and role parsing). Nevertheless, adaptation to transformer-based NLP tasks remains feasible with proper task formulation.

Practical Implications

▶ Watch: Q&A: Applicability to large language models and complex semantics (11:37)

For machine learning engineers, interpretability researchers, and infrastructure teams, this work marks a transition from heuristic approximation to rigorous ground-truth verification in mechanistic interpretability.

  • Revisiting Past Interpretability Audits: Teams relying on concept-based explanation frameworks (like IoU alignment maps for neuron auditing) must account for a 10% to 40% suboptimality rate in legacy beam-search outputs. Critical safety or alignment audits may require re-evaluating neuron functions using optimal or tighter heuristic bounds.
  • Tradeoffs in Compute vs. Optimality: While the proposed exact search algorithm solves the problem in roughly 90 minutes, deploying it at scale across millions of neurons in frontier models remains computationally demanding. Practitioners can leverage the paper's novel heuristics within beam-search variants to balance speed and accuracy.
  • Dataset Annotation Requirements: The methodology assumes access to distinct structural properties like unique elements. Teams building concept bottleneck models or applying these techniques to NLP must carefully structure their annotations to support compositional set-theoretic decompositions.

Key Takeaways

  • Ground Truth for Interpretability: The paper introduces the first guaranteed optimal algorithm for computing compositional neuron explanations, replacing decades of heuristic approximation with exact mathematical solutions.
  • Decomposition of IoU: By breaking down alignment scores into fundamental set-theoretic quantities (unique/common intersections and extras), the authors enable precise score estimation for complex logical formulas.
  • Substantial Optimality Gaps: Benchmarking revealed that 10% to 40% of prior explanations generated via beam search in CNNs and transformers are suboptimal and occasionally unverified by dataset counterfactuals.
  • Massive Speedup: The algorithm scales efficiently, reducing computation time from millions of hours of naive enumeration to approximately 1.5 hours.
  • Future Research Enabler: Having a reliable ground-truth solver allows researchers to design faster, lighter approximation methods that maintain high fidelity without falling into the traps of unguided beam search.

About the Speaker(s)

  • Biagio La Rosa: Researcher working on optimal compositional explanations for neurons in deep neural networks, with focus on measuring alignment between human knowledge and neuron activations in computer vision.

Co-authors: Leilani Gilpin.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026