SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.22314 · 2026

Diffusion Integrated Gradients: Controllable Path Generation for Flexible Feature Attribution

Kyowoon Lee, Jaesik Choi, Soyeon Kim

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2606.22314.json · badge: /api/ran/2606.22314.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
pd90506/AGI canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
JoeZhuo-ZY/IG2 canonical (classifier label)
classifier basis: census
1 ran · 0 no recorded run
eszaher/Manifold-Integrated-Gradients community
Papers with Code archive
1 ran · 2 no recorded run
FunctionStatusWhere it lives
auc Ran
ran, violated the contract we drafted
pd90506/AGI/evaluation.py
pointer only (licence: NONE) · get_code("f612c23143fa7983")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pd90506/AGI when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fgsm_step Ran
ran; our contract draft was wrong, not the code
pd90506/AGI/utils.py
pointer only (licence: NONE) · get_code("b77b1922b9907758")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pd90506/AGI when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

geodesic_path_algorithm Ran
ran; our contract draft was wrong, not the code
eszaher/Manifold-Integrated-Gradients/core/geodesic.py
code served (permissive licence) · get_code("8e0d5d4b142aaeef")
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) and returned list, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import torch.nn as nn
import gc
import types as _types

torch.manual_seed(0)

# Define minimal config
channel_in = 3
image_width = 192

cnfg = _types.SimpleNamespace(
    channel_in=channel_in,
    image_width=image_width,
    backbone_type=None,
    batch_size=2,
    beta=0.1,
    beta_line_search=None,
    betas=None,
    blocks=None,
    c=None,
    channels=None,
    class_loss_prefactor=None,
    dataset_name=None,
    dataset_root=None,
    default_alpha=None,
    device='cpu',
    epsilon=1000,
    expl_loss_prefactor=None,
    gpu_indx=None,
    image_size=None,
    latent_channels=None,
    line_search_alpha_start=None,
    load_checkpoint=None,
    lr_attack=None,
    lr_classifier=None,
    lr_finetuning=None,
    lr_vae=None,
    max_iterations=300,
    mean=None,
    model_name=None,
    n_epochs_classifier=None,
    n_epochs_finetuning=None,
    nepochs_vae=None,
    num_black_images=None,
    num_classes=None,
    num_interpolants=None,
    num_iterations_att=None,
    num_white_images=None,
    num_workers=None,
    random_state=None,
    save_dir=None,
    start_epoch=None,
    std=None,
    test_size_clf=None,
    test_size_vae=None,
    use_cuda=False,
    weight_decay=None,
)

# Define minimal decoder model
class MinimalDecoder(nn.Module):
    def __init__(self, latent_dim=8, output_channels=3, image_width=192):
        super().__init__()
        self.latent_dim = latent_dim
        self.output_channels = output_channels
        self.image_width = image_width
        # Simple linear layer that outputs flattened image
        self.fc = nn.Linear(latent_dim, output_channels * image_width * image_width)
    
    def forward(self, z):
        # z shape: (batch, latent_dim)
        out = self.fc(z)
        # Reshape to (batch, channels, height, width)
        out = out.view(-1, self.output_channels, self.image_width, self.image_width)
        return out

class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.decoder = MinimalDecoder(latent_dim=8, output_channels=3, image_width=192)
    
    def forward(self, z):
        return self.decoder(z)

# Create model
model = MinimalModel()
model.eval()

# Create z_collection: list of latent vectors
# T should be at least 3 for the algorithm to work (needs j-1, j, j+1)
T = 5
latent_dim = 8
z_collection = [torch.randn(1, latent_dim) for _ in range(T)]

# Parameters for geodesic_path_algorithm
alpha = 0.01
beta = 0.1
epsilon = 1000
max_iterations = 2

ARGS = {
    'model': model,
    'z_collection': z_collection,
    'alpha': alpha,
    'T': T,
    'beta': beta,
    'epsilon': epsilon,
    'max_iterations': max_iterations,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, dtype family float — a list 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
normalize_by_2norm Ran
ran, violated the contract we drafted
JoeZhuo-ZY/IG2/ig2.py
pointer only (licence: NONE) · get_code("2ae2cd86713e62e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, JoeZhuo-ZY/IG2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pgd_step Ran
ran; our contract draft was wrong, not the code
pd90506/AGI/utils.py
pointer only (licence: NONE) · get_code("df1f6753b8252ef3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pd90506/AGI when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pre_processing Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pd90506/AGI/utils.py
pointer only (licence: NONE) · get_code("b3bf35112d317c46")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pd90506/AGI when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_etta_d Not yet run
unverified (harvested, no recorded run)
eszaher/Manifold-Integrated-Gradients/core/geodesic.py
code served (permissive licence) · get_code("4540626841d73f7d")
How it ran

no invocation recorded.

gkern Not yet run
unverified (harvested, no recorded run)
pd90506/AGI/evaluation.py
pointer only (licence: NONE) · get_code("b7a32e02c2ef90d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pd90506/AGI when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

sum_energy_norms Not yet run
unverified (harvested, no recorded run)
eszaher/Manifold-Integrated-Gradients/core/geodesic.py
code served (permissive licence) · get_code("77f4bdc3c510f49e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 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
auc 3 other papers
3 dated earlier
2103.13859 (2021-03)
Group-CAM: Group Score-Weighted Visual Explanations for Deep Convolutional Networks
2211.02912 (2022-11)
New Definitions and Evaluations for Saliency Methods: Staying Intrinsic, Complete and Sound
2407.11771 (2024-07)
XEdgeAI: A Human-centered Industrial Inspection Framework with Data-centric Explainable Edge AI Approach
fgsm_step 1 other paper
1 dated earlier
2312.13630 (2023-12)
MFABA: A More Faithful and Accelerated Boundary-based Attribution Method for Deep Neural Networks
pgd_step 1 other paper
1 dated earlier
2312.13630 (2023-12)
MFABA: A More Faithful and Accelerated Boundary-based Attribution Method for Deep Neural Networks
pre_processing 1 other paper
1 dated earlier
2312.13630 (2023-12)
MFABA: A More Faithful and Accelerated Boundary-based Attribution Method for Deep Neural Networks

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-24.

Repositories linked to this paper

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

Abstract

Path-based attribution methods such as Integrated Gradients (IG) are widely adopted for their strong axiomatic properties and effectiveness in attributing model predictions to input features by integrating gradients along a path from a baseline to the input. However, the choice of the attribution path largely affects the quality of explanations, and existing approaches rely on fixed or hand-crafted paths that often produce noisy or distorted attributions. To address this limitation, we propose Diffusion Integrated Gradients (DiffIG), a novel method that reformulates path generation as a conditional generative modeling problem. DiffIG first trains a diffusion model to learn a distribution over paths generated from a Stick-Breaking Process, then employs guided sampling to embed user guidance during the sampling procedure. We demonstrate that DiffIG quantitatively matches or outperforms existing path-based methods, achieving perceptually aligned explanations. This work introduces a new generative perspective for flexible, inference-time controllable Explainable Artificial Intelligence (XAI) methods.

For agents

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

get_harvested_code_for_paper("2606.22314")
get_code_for_paper("2606.22314")
have("2606.22314")

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

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

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

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

Connect an agent — have() is free.