SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.20934 · ICML · 2025

Guaranteed Optimal Compositional Explanations for Neurons

La Biagio, Rosa, Leilani Gilpin

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2511.20934.json · badge: /api/ran/2511.20934.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
CSAILVision/NetDissect canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
bar_graph_svg Ran
ran; our contract draft was wrong, not the code
CSAILVision/NetDissect/src/bargraph.py
code served (permissive licence) · get_code("1b63910c2198215a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bytes. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
import itertools
import operator
from io import StringIO

class MockED:
    def load_csv(self, blob=None, part=None):
        # Return mock CSV records with label, category, and score
        csv_content = """label,category,score
object_1,object,0.95
object_1,object,0.92
scene_1,scene,0.85
part_1,part,0.78
material_1,material,0.72
texture_1,texture,0.65
color_1,color,0.55
object_2,object,0.02
"""
        records = []
        lines = csv_content.strip().split('\n')
        header = lines[0].split(',')
        for line in lines[1:]:
            values = line.split(',')
            record = dict(zip(header, values))
            records.append(record)
        return records

# Create mock ed object
ed = MockED()

# Create a mock blob (can be any object since it's just passed to load_csv)
blob = "mock_blob_data"

ARGS = {
    'ed': ed,
    'blob': blob,
    'barheight': 100,
    'barwidth': 12,
    'order': ['object', 'scene', 'part', 'material', 'texture', 'color'],
    'show_labels': True,
    'threshold': 0.04,
    'rendered_order': None,
    'save': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fn_safe Ran
ran; our contract draft was wrong, not the code
CSAILVision/NetDissect/src/expdir.py
code served (permissive licence) · get_code("30a8341ae2ef40ab")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

ARGS = {
    "blob": "my-blob/name with special chars!",
    "dotfree": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_svg_bargraph Ran
ran; our contract draft was wrong, not the code
CSAILVision/NetDissect/src/bargraph.py
code served (permissive licence) · get_code("545b3f1ae49039ca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bytes. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from xml.etree import ElementTree as et

# Set up the arguments for make_svg_bargraph
ARGS = {
    'labels': ['model_a', 'model_b', 'model_c', 'model_d'],
    'heights': [45, 78, 92, 61],
    'categories': [('category_1', 2), ('category_2', 2)],
    'barheight': 100,
    'barwidth': 12,
    'show_labels': True,
    'filename': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
most_common Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
CSAILVision/NetDissect/src/bargraph.py
code served (permissive licence) · get_code("bff5a031c71168c8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import itertools
import operator

torch_seed = 0
import torch
torch.manual_seed(torch_seed)

# Analyze the function:
# - most_common(L) takes a single parameter L
# - L is used with enumerate(L) and len(L)
# - L should be a list or sequence
# - The function finds the most common element in L, with ties broken by earliest occurrence

# Create a simple list with some repeated elements
L = [1, 2, 3, 2, 2, 4, 5, 1, 1, 1]

ARGS = {
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
norm_name Ran
ran; our contract draft was wrong, not the code
CSAILVision/NetDissect/src/adeseg.py
code served (permissive licence) · get_code("23d59f7c2061f932")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Analyze the function: norm_name takes a string 's' and performs two replacements
# 1. Replace ' - ' with '-'
# 2. Replace '/' with '-'
# The function returns a normalized string

# Valid test cases for the parameter 's'
ARGS = {
    "s": "example - string / with separators"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
numbered_glob Ran
ran; our contract draft was wrong, not the code
CSAILVision/NetDissect/src/expdir.py
code served (permissive licence) · get_code("dddd701f6cb4545b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary directory with test files matching a pattern
temp_dir = tempfile.mkdtemp()

# Create some test files with numbered patterns
test_files = [
    os.path.join(temp_dir, "file_1_data.txt"),
    os.path.join(temp_dir, "file_5_data.txt"),
    os.path.join(temp_dir, "file_10_data.txt"),
]

for f in test_files:
    with open(f, 'w') as fp:
        fp.write("test")

# Create the pattern that will match these files
pattern = os.path.join(temp_dir, "file_*_data.txt")

ARGS = {
    "pattern": pattern,
    "last": True,
    "decimal": False,
    "every": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
wants Ran
ran, violated the contract we drafted
CSAILVision/NetDissect/src/dtdseg.py
code served (permissive licence) · get_code("3bcef433d3ee1fc1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'what': 'example_key',
    'option': ['example_key', 'other_key', 'third_key']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
norm_name 1 other paper
1 dated earlier
1807.11590 (2018-07)
Acquisition of Localization Confidence for Accurate Object Detection
wants 1 other paper
1 dated earlier
1807.11590 (2018-07)
Acquisition of Localization Confidence for Accurate Object Detection

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Compositional explanations are a family of methods that aim to describe the spatial alignment between neurons' receptive field activations and concepts through logical rules, typically computed via a search over all possible concept combinations. Since computing the spatial alignment over the entire state space is computationally infeasible, the literature commonly adopts assumptions related to the structure of the combinations and beam search to restrict the state space. However, beam search cannot provide any theoretical guarantees of optimality, and it remains unclear how close current explanations are to the true optimum. In this theoretical paper, we address this gap by introducing the first framework for computing guaranteed optimal compositional explanations over the entire state space spanned by the adopted assumptions. Specifically, we propose: (i) a decomposition that identifies the factors influencing the spatial alignment, (ii) a heuristic to estimate the alignment at any stage of the search, and (iii) the first algorithm that can compute optimal compositional explanations in a time comparable to exhaustive beam search. Using this framework, we demonstrate that 10-40% of explanations previously obtained with beam search are suboptimal when overlapping concepts are involved. Finally, we evaluate a beam-search variant guided by our proposed decomposition and heuristic, showing that it matches or improves runtime over prior methods while offering greater flexibility in hyperparameters and computational resources. Preliminaries and Terminology Let L 1 be a concept set including properties of interest for a given model and task (e.g., names of colors, objects, categories, shapes). Let D = {x 1 , x 2 , ..., x n } be a dataset, where each input x i has

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2511.20934")
get_code_for_paper("2511.20934")
have("2511.20934")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2511.20934.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2511.20934.svg)](https://syntology.ai/paper/2511.20934)

Connect an agent — have() is free.