SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.16681 · 2023

Understanding the (Extra-)Ordinary: Validating Deep Model Decisions with Prototypical Concept-based Explanations

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2311.16681.json · badge: /api/ran/2311.16681.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
maxdreyer/pcx canonical (classifier label)
classifier basis: census
3 ran · 3 no recorded run
FunctionStatusWhere it lives
get_imagenet_pexels Ran
ran; our contract draft was wrong, not the code
maxdreyer/pcx/datasets/imagenet_pexels.py
code served (permissive licence) · get_code("cc8a4609f215c18e")
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 PexelsDataset. 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 tempfile
import os
from PIL import Image
import numpy as np

# Create a temporary directory structure with test images
temp_dir = tempfile.mkdtemp()

# Create flamingo subdirectory with a test image
flamingo_dir = os.path.join(temp_dir, 'flamingo')
os.makedirs(flamingo_dir, exist_ok=True)

# Create a small test image
img_array = np.random.randint(0, 256, (32, 32, 3), dtype=np.uint8)
img = Image.fromarray(img_array)
img.save(os.path.join(flamingo_dir, 'test_flamingo_1.jpg'))
img.save(os.path.join(flamingo_dir, 'test_flamingo_2.jpg'))

# Create strawberry subdirectory with a test image
strawberry_dir = os.path.join(temp_dir, 'strawberry')
os.makedirs(strawberry_dir, exist_ok=True)
img_array2 = np.random.randint(0, 256, (32, 32, 3), dtype=np.uint8)
img2 = Image.fromarray(img_array2)
img2.save(os.path.join(strawberry_dir, 'test_strawberry_1.jpg'))

# Create test subdirectory with test image
test_dir = os.path.join(temp_dir, 'test')
os.makedirs(test_dir, exist_ok=True)
img_array3 = np.random.randint(0, 256, (32, 32, 3), dtype=np.uint8)
img3 = Image.fromarray(img_array3)
img3.save(os.path.join(test_dir, 'test_flamingo.jpg'))

ARGS = {
    'data_path': temp_dir,
    'split': 'train',
    'preprocessing': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PexelsDataset — a PexelsDataset output has no array shape of its own; none is 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
load_config Ran
ran; our contract draft was wrong, not the code
maxdreyer/pcx/utils/helper.py
code served (permissive licence) · get_code("46ba6f801029f1b7")
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 dict. 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 os
import yaml
import tempfile

# Create a temporary YAML config file
temp_dir = tempfile.mkdtemp()
config_file = os.path.join(temp_dir, "test_config.yaml")

# Write a valid YAML config
config_content = """
model:
  name: test_model
  layers: 3
training:
  epochs: 10
  batch_size: 32
"""

with open(config_file, 'w') as f:
    f.write(config_content)

ARGS = {
    'config_path': config_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
mystroke Ran
ran; our contract draft was wrong, not the code
maxdreyer/pcx/utils/render.py
code served (permissive licence) · get_code("a308f46e6162ffd2")
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 Image. 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.

from PIL import Image, ImageDraw, ImageFilter
import numpy as np

# Create a small test image with RGBA mode
width, height = 32, 24
img_array = np.zeros((height, width, 4), dtype=np.uint8)

# Add some colored pixels to create edges
img_array[8:16, 8:16] = [255, 0, 0, 255]  # Red square in center
img_array[10:14, 10:14] = [0, 255, 0, 255]  # Green square inside

img = Image.fromarray(img_array, mode='RGBA')

ARGS = {
    'img': img,
    'size': 2,
    'color': 'black'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
get_vgg13 Not yet run
unverified (harvested, no recorded run)
maxdreyer/pcx/models/vgg.py
code served (permissive licence) · get_code("740913d7e078246b")
How it ran

no invocation recorded.

get_vgg16 Not yet run
unverified (harvested, no recorded run)
maxdreyer/pcx/models/vgg.py
code served (permissive licence) · get_code("08582c38903e9dc0")
How it ran

no invocation recorded.

get_vgg16_bn Not yet run
unverified (harvested, no recorded run)
maxdreyer/pcx/models/vgg.py
code served (permissive licence) · get_code("0d63c1c1b235a76e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 1 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
mystroke 2 other papers
2 later
2404.06453 (2024-04)
PURE: Turning Polysemantic Neurons Into Pure Features by Identifying Relevant Circuits
2501.05398 (2025-01)
Mechanistic understanding and validation of large AI models with SemanticLens
get_vgg13 1 other paper
1 later
2604.04518 (2026-04)
Reproducibility study on how to find Spurious Correlations, Shortcut Learning, Clever Hans or Group-Distributional nonrobustness and how to fix them
get_vgg16 1 other paper
1 later
2604.04518 (2026-04)
Reproducibility study on how to find Spurious Correlations, Shortcut Learning, Clever Hans or Group-Distributional nonrobustness and how to fix them
get_vgg16_bn 1 other paper
1 later
2604.04518 (2026-04)
Reproducibility study on how to find Spurious Correlations, Shortcut Learning, Clever Hans or Group-Distributional nonrobustness and how to fix them
load_config 1 other paper
1 later
2404.06453 (2024-04)
PURE: Turning Polysemantic Neurons Into Pure Features by Identifying Relevant Circuits

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

Ensuring both transparency and safety is critical when deploying Deep Neural Networks (DNNs) in high-risk applications, such as medicine. The field of explainable AI (XAI) has proposed various methods to comprehend the decision-making processes of opaque DNNs. However, only few XAI methods are suitable of ensuring safety in practice as they heavily rely on repeated labor-intensive and possibly biased human assessment. In this work, we present a novel post-hoc concept-based XAI framework that conveys besides instance-wise (local) also class-wise (global) decision-making strategies via prototypes. What sets our approach apart is the combination of local and global strategies, enabling a clearer understanding of the (dis-)similarities in model decisions compared to the expected (prototypical) concept use, ultimately reducing the dependence on human long-term assessment. Quantifying the deviation from prototypical behavior not only allows to associate predictions with specific model sub-strategies but also to detect outlier behavior. As such, our approach constitutes an intuitive and explainable tool for model validation. We demonstrate the effectiveness of our approach in identifying out-of-distribution samples, spurious model behavior and data quality issues across three datasets (ImageNet, CUB-200, and CIFAR-10) utilizing VGG, ResNet, and EfficientNet architectures. Code is available on https://github.com/maxdreyer/pcx.

For agents

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

get_harvested_code_for_paper("2311.16681")
get_code_for_paper("2311.16681")
have("2311.16681")

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

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

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

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

Connect an agent — have() is free.