SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.19430 · 2026

Unveiling Perceptual Artifacts: A Fine-Grained Benchmark for Interpretable AI-Generated Image Detection

Jiahao Chen, Liang Lin, Xiangyang Ji, Weijian Deng, Wei Ke, Pengxu Wei, Ziyi Dong, Yao Xiao, Binbin Yang, Weiyan Chen, Zijie Cao

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 3 failures of our instrument; 2 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/2601.19430.json · badge: /api/ran/2601.19430.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
Coxy7/X-AIGD community
Papers with Code archive
10 ran · 2 no recorded run
FunctionStatusWhere it lives
ArtifactLabel Ran
ran on a synthesized input · constructed an object; no result was computed
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("a5c94d27cd433fe3")
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 an instance of its own class, ArtifactLabel: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass

@dataclass(frozen=True)
class ArtifactLabel:
    category: str
    points: tuple[tuple[float, float], ...]

torch.manual_seed(0)

ARGS = {
    "category": "artifact_type_001",
    "points": (
        (1.5, 2.3),
        (3.7, 4.2),
        (5.1, 6.9),
    ),
}
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 ArtifactLabel — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ArtifactLabel 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
ImageRecord Ran
ran on a synthesized input · constructed an object; no result was computed
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("0e64a0c1d8b1686f")
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 an instance of its own class, ImageRecord: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass
from typing import Tuple

torch.manual_seed(0)

@dataclass(frozen=True)
class ArtifactLabel:
    category: str
    points: tuple[tuple[float, float], ...]

@dataclass(frozen=True)
class ImageRecord:
    generator: str
    uid: str
    width: int
    height: int
    labels: tuple[ArtifactLabel, ...]

# Create sample artifact labels
label1 = ArtifactLabel(
    category="defect",
    points=((10.5, 20.3), (15.7, 25.2), (12.1, 18.9))
)

label2 = ArtifactLabel(
    category="scratch",
    points=((5.2, 8.1), (9.3, 12.5))
)

# Construct ARGS dict with all required parameters
ARGS = {
    "generator": "test_model_v1",
    "uid": "img_12345_abc",
    "width": 1920,
    "height": 1080,
    "labels": (label1, label2)
}
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 ImageRecord — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ImageRecord 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
InstanceCounts Ran
ran on a synthesized input · constructed an object; no result was computed
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("57284cbac4783acc")
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 an instance of its own class, InstanceCounts: the run constructed the object and did not call it, so no result was computed. 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 dataclasses import dataclass

@dataclass
class InstanceCounts:
    true_positive: int = 0
    false_positive: int = 0
    false_negative: int = 0
    evaluated_images: int = 0
    zero_prediction_images: int = 0
    invalid_prediction_boxes: int = 0

    def to_row(self, *, generator: str, category: str, overlap_threshold: float) -> dict[str, float | int | str]:
        def format_threshold(threshold: float) -> str:
            return f'{threshold:g}'
        
        def safe_div(numerator: float, denominator: float) -> float:
            return numerator / denominator if denominator else 0.0
        
        precision = safe_div(self.true_positive, self.true_positive + self.false_positive)
        recall = safe_div(self.true_positive, self.true_positive + self.false_negative)
        f1 = safe_div(2 * precision * recall, precision + recall)
        threshold_label = format_threshold(overlap_threshold)
        return {'generator': generator, 'category': category, f'P@{threshold_label}': precision, f'R@{threshold_label}': recall, f'F1@{threshold_label}': f1, 'TP': self.true_positive, 'FP': self.false_positive, 'FN': self.false_negative, 'evaluated_images': self.evaluated_images, 'zero_prediction_images': self.zero_prediction_images, 'invalid_prediction_boxes': self.invalid_prediction_boxes}

ARGS = {
    'true_positive': 42,
    'false_positive': 8,
    'false_negative': 5,
    'evaluated_images': 100,
    'zero_prediction_images': 3,
    'invalid_prediction_boxes': 2
}
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 InstanceCounts — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a InstanceCounts 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
PredictedBox Ran
ran on a synthesized input · constructed an object; no result was computed
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("0ec9728fcacecb59")
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 an instance of its own class, PredictedBox: the run constructed the object and did not call it, so no result was computed. 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
from dataclasses import dataclass

@dataclass(frozen=True)
class PredictedBox:
    generator: str
    uid: str
    category: str
    x_min: float
    y_min: float
    x_max: float
    y_max: float

torch.manual_seed(0)

ARGS = {
    "generator": "model_v1",
    "uid": "box_12345",
    "category": "person",
    "x_min": 10.5,
    "y_min": 20.3,
    "x_max": 150.7,
    "y_max": 200.2,
}
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 PredictedBox — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PredictedBox 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
box_to_int_bounds Ran
ran, honoured the contract we drafted
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("8e6e80750d28ac3b")
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 int; 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.

from dataclasses import dataclass

@dataclass(frozen=True)
class PredictedBox:
    generator: str
    uid: str
    category: str
    x_min: float
    y_min: float
    x_max: float
    y_max: float

# Create a valid PredictedBox instance
pred_box = PredictedBox(
    generator="model_v1",
    uid="box_001",
    category="person",
    x_min=10.5,
    y_min=20.3,
    x_max=100.7,
    y_max=150.2
)

# Create image dimensions
image_width = 640
image_height = 480

ARGS = {
    "pred_box": pred_box,
    "image_width": image_width,
    "image_height": image_height
}
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 int — 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
build_gt_mask Ran
ran, honoured the contract we drafted
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("490d10cd02392f0b")
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 ndarray, ndim 2, dtype family int, shape (200, 200) 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.

from dataclasses import dataclass
import numpy as np

@dataclass(frozen=True)
class ArtifactLabel:
    category: str
    points: tuple[tuple[float, float], ...]

@dataclass(frozen=True)
class ImageRecord:
    generator: str
    uid: str
    width: int
    height: int
    labels: tuple[ArtifactLabel, ...]

# Create a valid ImageRecord with some artifact labels
label1 = ArtifactLabel(
    category='low-level-edge_shape',
    points=((10.0, 10.0), (50.0, 10.0), (50.0, 50.0))
)

label2 = ArtifactLabel(
    category='high-level-semantics',
    points=((5.0, 5.0), (20.0, 5.0), (20.0, 20.0), (5.0, 20.0))
)

label3 = ArtifactLabel(
    category='low-level-texture',
    points=((100.0, 100.0), (150.0, 100.0), (150.0, 150.0))
)

record = ImageRecord(
    generator='test-generator',
    uid='test-uid-001',
    width=200,
    height=200,
    labels=(label1, label2, label3)
)

categories = {'low-level-edge_shape', 'high-level-semantics', 'low-level-texture'}

ARGS = {
    'record': record,
    'categories': categories
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (200, 200) — shape (200, 200) 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
evaluate_instance_record Ran
ran; our contract draft was wrong, not the code
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("f3b0b5a4a5370224")
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 InstanceCounts. 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 numpy as np
from dataclasses import dataclass

@dataclass(frozen=True)
class ArtifactLabel:
    category: str
    points: tuple[tuple[float, float], ...]

@dataclass(frozen=True)
class ImageRecord:
    generator: str
    uid: str
    width: int
    height: int
    labels: tuple[ArtifactLabel, ...]

@dataclass(frozen=True)
class PredictedBox:
    generator: str
    uid: str
    category: str
    x_min: float
    y_min: float
    x_max: float
    y_max: float

# Create a simple ImageRecord with one artifact label
record = ImageRecord(
    generator="test_generator",
    uid="test_uid_001",
    width=640,
    height=480,
    labels=(
        ArtifactLabel(
            category="low-level-edge_shape",
            points=((100.0, 100.0), (200.0, 100.0), (200.0, 200.0), (100.0, 200.0))
        ),
    )
)

# Create predicted boxes
pred_boxes = [
    PredictedBox(
        generator="test_generator",
        uid="test_uid_001",
        category="low-level-edge_shape",
        x_min=110.0,
        y_min=110.0,
        x_max=210.0,
        y_max=210.0
    ),
    PredictedBox(
        generator="test_generator",
        uid="test_uid_001",
        category="low-level-edge_shape",
        x_min=250.0,
        y_min=250.0,
        x_max=350.0,
        y_max=350.0
    )
]

ARGS = {
    "record": record,
    "category": "low-level-edge_shape",
    "pred_boxes": pred_boxes,
    "overlap_threshold": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type InstanceCounts — a InstanceCounts output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a InstanceCounts 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
format_threshold Ran
ran; our contract draft was wrong, not the code
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("cafa1837e3382185")
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

ARGS = {
    "threshold": 0.5
}
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
match_box_to_mask Ran
ran; our contract draft was wrong, not the code
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("6c4a444fd0019268")
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 numpy as np
from dataclasses import dataclass

@dataclass(frozen=True)
class PredictedBox:
    generator: str
    uid: str
    category: str
    x_min: float
    y_min: float
    x_max: float
    y_max: float

# Create a ground truth instance mask (binary mask with some foreground pixels)
gt_instance_mask = np.zeros((100, 120), dtype=np.uint8)
gt_instance_mask[20:80, 30:100] = 255

# Create a predicted box that overlaps with the gt mask
pred_box = PredictedBox(
    generator="test_detector",
    uid="box_001",
    category="person",
    x_min=35.5,
    y_min=25.5,
    x_max=95.5,
    y_max=75.5
)

image_width = 120
image_height = 100
overlap_threshold = 0.5

ARGS = {
    "gt_instance_mask": gt_instance_mask,
    "pred_box": pred_box,
    "image_width": image_width,
    "image_height": image_height,
    "overlap_threshold": overlap_threshold,
    "pred_bounds": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — 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
safe_div Ran
ran, honoured the contract we drafted
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("0d792e06e4d5a34e")
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 float, 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)

# safe_div takes two float parameters: numerator and denominator
# The function performs division, returning 0.0 if denominator is falsy
# We need to provide valid float values for both parameters

ARGS = {
    "numerator": 10.0,
    "denominator": 2.0,
}
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 float, 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
evaluate_instance_predictions Not yet run
unverified (harvested, no recorded run)
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("c33890a8d64fd71a")
How it ran

no invocation recorded.

merge_instance_counts Not yet run
unverified (harvested, no recorded run)
Coxy7/X-AIGD/metrics/instance.py
code served (permissive licence) · get_code("aef3c412de12f78d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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.

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

Current AI-Generated Image (AIGI) detection approaches predominantly rely on binary classification to distinguish real from synthetic images, often lacking interpretable or convincing evidence to substantiate their decisions. This limitation stems from existing AIGI detection benchmarks, which, despite featuring a broad collection of synthetic images, remain restricted in their coverage of artifact diversity and lack detailed, localized annotations. To bridge this gap, we introduce a fine-grained benchmark towards eXplainable AI-Generated image Detection, named X-AIGD, which provides pixel-level, categorized annotations of perceptual artifacts, spanning low-level distortions, high-level semantics, and cognitive-level counterfactuals. These comprehensive annotations facilitate fine-grained interpretability evaluation and deeper insight into model decision-making processes. Our extensive investigation using X-AIGD provides several key insights: (1) Existing AIGI detectors demonstrate negligible reliance on perceptual artifacts, even at the most basic distortion level. (2) While AIGI detectors can be trained to identify specific artifacts, they still substantially base their judgment on uninterpretable features. (3) Explicitly aligning model attention with artifact regions can increase the interpretability and generalization of detectors. The data and code are available at: https://github.com/Coxy7/X-AIGD.

For agents

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

get_harvested_code_for_paper("2601.19430")
get_code_for_paper("2601.19430")
have("2601.19430")

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

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

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

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

Connect an agent — have() is free.