SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.15880 · ICML · 2026

Deep Residual Injection for Full-Spectrum Forensic Signal Perception in Multimodal Large Language Models

Bin Li, Bo Wang, Shouhong Ding, Yue Zhou, Taiping Yao, Ruoxin Chen, Zhiyuan Yan, Ke-Yue Zhang, Kaiqing Lin, Caiyong Piao, Youchang Xiao

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2606.15880.json · badge: /api/ran/2606.15880.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
KQL11/Deep-VRM canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KQL11/Deep-VRM/Models/DeepVRM/modeling_qwen2_5_vl.py
code served (permissive licence) · get_code("3c76e52815c5401d")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 6, 5, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:23:17Z). 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)

# Create a small tensor with shape (batch, num_key_value_heads, seqlen, head_dim)
# Using distinct sizes: batch=2, num_key_value_heads=3, seqlen=5, head_dim=4
hidden_states = torch.randn(2, 3, 5, 4)

# n_rep is the repetition factor
n_rep = 2

ARGS = {
    "hidden_states": hidden_states,
    "n_rep": n_rep,
}
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 Tensor, ndim 4, dtype family float, shape (2, 6, 5, 4) — shape (2, 6, 5, 4) 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
contrastive_loss Ran
ran; our contract draft was wrong, not the code
KQL11/Deep-VRM/ms-swift/swift/plugin/loss.py
code served (permissive licence) · get_code("02dbdd50bfbcb0ae")
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 Tensor, 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
import torch.nn as nn

torch.manual_seed(0)

# Create outputs as a dict with 'last_hidden_state' key
# The function expects batch_size to be even (pairs of sentences)
# shape_len == 3 case: [batch_size, sequence_length, hidden_dim]
batch_size = 4
sequence_length = 5
hidden_dim = 8

last_hidden_state = torch.randn(batch_size, sequence_length, hidden_dim)
outputs = {'last_hidden_state': last_hidden_state}

# Create labels: 1 for similar pairs, 0 for dissimilar pairs
# Should be same length as number of pairs (batch_size // 2)
labels = torch.tensor([1.0, 0.0])

ARGS = {
    'outputs': outputs,
    'labels': labels,
    'loss_scale': None,
    'num_items_in_batch': None,
}
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 Tensor, 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
cosine_similarity_func Ran
ran; our contract draft was wrong, not the code
KQL11/Deep-VRM/ms-swift/swift/plugin/loss.py
code served (permissive licence) · get_code("bb12fa0224e30201")
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 Tensor, 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
from torch import nn

torch.manual_seed(0)

# Create outputs as a dict with 'last_hidden_state' key
# batch_size=4 (pairs of sentences), hidden_dim=8, seq_len=16
# The function expects even batch size (pairs)
outputs = {
    'last_hidden_state': torch.randn(4, 16, 8)
}

# Create labels - MSELoss expects same shape as output
# The output will have shape (2,) since batch_size=4 means 2 pairs
labels = torch.randn(2)

ARGS = {
    'outputs': outputs,
    'labels': labels,
    'loss_scale': None,
    'num_items_in_batch': None,
}
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 Tensor, 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
cross_entropy_loss_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KQL11/Deep-VRM/ms-swift/swift/plugin/loss.py
code served (permissive licence) · get_code("d076f45e8e428f37")
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 Tensor, 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
import torch.nn as nn

torch.manual_seed(0)

# Mock per_token_loss_func since it's imported from swift.trainers
def per_token_loss_func(outputs, labels):
    # Simulate computing per-token loss
    # outputs shape: (batch_size, seq_len, vocab_size)
    # labels shape: (batch_size, seq_len)
    batch_size, seq_len, vocab_size = outputs.shape
    
    # Create a simple per-token loss tensor
    # Return shape: (batch_size, seq_len)
    token_losses = torch.nn.functional.cross_entropy(
        outputs.view(-1, vocab_size),
        labels.view(-1),
        reduction='none'
    ).view(batch_size, seq_len)
    
    return token_losses

# Monkey patch it into swift.trainers
import sys
from types import ModuleType

swift_module = ModuleType('swift')
trainers_module = ModuleType('trainers')
trainers_module.per_token_loss_func = per_token_loss_func
swift_module.trainers = trainers_module
sys.modules['swift'] = swift_module
sys.modules['swift.trainers'] = trainers_module

# Create test tensors
batch_size = 2
seq_len = 5
vocab_size = 4

# outputs: (batch_size, seq_len, vocab_size)
outputs = torch.randn(batch_size, seq_len, vocab_size)

# labels: (batch_size, seq_len) with some -100 padding tokens
labels = torch.tensor([
    [1, 2, 0, -100, -100],
    [3, 1, 2, 3, -100]
])

# num_items_in_batch is optional, will be computed if None
num_items_in_batch = None

ARGS = {
    'outputs': outputs,
    'labels': labels,
    'num_items_in_batch': num_items_in_batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
swift, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, 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
is_vit_param Ran
ran, violated the contract we drafted
KQL11/Deep-VRM/Models/DeepVRM/custom_optim.py
code served (permissive licence) · get_code("442ed41622b84ac7")
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
import torch.nn as nn

torch.manual_seed(0)

class MockModelArch:
    def __init__(self):
        self.vision_tower = [
            'visual_low_level_encoder',
            'visual_backbone'
        ]
        self.aligner = [
            'alignment_layer',
            'visual_low_level_projector'
        ]

model_arch = MockModelArch()

parameter_name_1 = 'module.visual_low_level_encoder.layer1.weight'
parameter_name_2 = 'other.layer.weight'

ARGS = {
    'model_arch': model_arch,
    'parameter_name': parameter_name_1
}
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
lora_state_dict Ran
ran; our contract draft was wrong, not the code
KQL11/Deep-VRM/ms-swift/swift/tuners/lora_layers.py
code served (permissive licence) · get_code("974f5e5ea25a6532")
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 torch

torch.manual_seed(0)

# Construct a state_dict with LoRA parameters and bias terms
state_dict = {
    'linear1.lora_default.weight': torch.randn(4, 3),
    'linear1.lora_default.bias': torch.randn(4),
    'linear2.lora_default.weight': torch.randn(5, 4),
    'linear2.bias': torch.randn(5),
    'linear3.weight': torch.randn(6, 5),
}

ARGS = {
    'state_dict': state_dict,
    'adapter_name': 'default',
    'bias': 'lora_only',
}
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 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
rotate_half Ran
ran; our contract draft was wrong, not the code
KQL11/Deep-VRM/Models/DeepVRM/modeling_qwen2_5_vl.py
code served (permissive licence) · get_code("e03d53ba9d4f9ae5")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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)

# The function takes a single parameter 'x' which is a tensor
# It accesses x[..., :x.shape[-1] // 2] and x[..., x.shape[-1] // 2:]
# So x needs to be a tensor with a last dimension that can be split in half
# Let's create a small tensor with batch size 2 and feature dimension 4

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
apply_rotary_pos_emb_vision Not yet run
unverified (harvested, no recorded run)
KQL11/Deep-VRM/Models/DeepVRM/modeling_qwen2_5_vl.py
code served (permissive licence) · get_code("049747a79920f0f7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 3 the same month, 2 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
rotate_half 360 other papers
346 dated earlier, 6 the same month, 5 later, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
repeat_kv 243 other papers
233 dated earlier, 6 the same month, 2 later, 2 undated · 22 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
and 240 more not named here
lora_state_dict 7 other papers
7 dated earlier
2409.13191 (2024-09)
Diabetica: Adapting Large Language Model to Enhance Multiple Medical Tasks in Diabetes Care and Management
2411.18145 (2024-11)
CHOICE: Benchmarking the Remote Sensing Capabilities of Large Vision-Language Models
2506.14674 (2025-06)
Recognition through Reasoning: Reinforcing Image Geo-localization with Large Vision-Language Models
and 4 more not named here
apply_rotary_pos_emb_vision 3 other papers
2 dated earlier, 1 the same month
2502.11494 (2025-02)
Stop Looking for "Important Tokens" in Multimodal Language Models: Duplication Matters More
2506.15220 (2025-06)
video-SALMONN 2: Caption-Enhanced Audio-Visual Large Language Models
2606.16158 (2026-06)
Focus When Necessary: Adaptive Routing and Collaborative Grounding for Training-Free Visual Grounding
contrastive_loss 2 other papers
2 dated earlier
2604.00493 (2026-04)
A Reasoning-Enabled Vision-Language Foundation Model for Chest X-ray Interpretation
2605.07177 (2026-05)
HyperEyes: Dual-Grained Efficiency-Aware Reinforcement Learning for Parallel Multimodal Search Agents
cosine_similarity_func 2 other papers
2 dated earlier
2604.00493 (2026-04)
A Reasoning-Enabled Vision-Language Foundation Model for Chest X-ray Interpretation
2605.07177 (2026-05)
HyperEyes: Dual-Grained Efficiency-Aware Reinforcement Learning for Parallel Multimodal Search Agents
cross_entropy_loss_func 2 other papers
2 dated earlier
2604.00493 (2026-04)
A Reasoning-Enabled Vision-Language Foundation Model for Chest X-ray Interpretation
2605.07177 (2026-05)
HyperEyes: Dual-Grained Efficiency-Aware Reinforcement Learning for Parallel Multimodal Search Agents

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

Multimodal large language models (MLLMs) have been increasingly adopted in forensics for their robust semantic understanding. As AIgenerated images become realistic, semantic-level inconsistencies alone are often insufficient for reliable detection. This motivates a critical question: whether MLLMs can achieve full-spectrum forensic signal perception, i.e., capturing lowlevel generator artifacts without sacrificing pretrained semantic knowledge. We further perform a layer-wise analysis of forensic signal perception in MLLMs, showing that semantic information is primarily formed in the early-to-middle layers, whereas direct fine-tuning for artifact learning disrupts these semantic representations. Based on this insight, we propose Deep Visual Residual MLLM (Deep-VRM) to preserve early semantic processing while injecting artifact-specific visual signals as a residual path into an intermediate layer, where they are fused with semantic token representations and propagated through subsequent trainable layers. This enables later layers to jointly model semantic reasoning and signallevel forensic cues, and surprisingly, the model learns to adaptively leverage different levels of forensic signals depending on the input, achieving robust and generalizable detection performance. Extensive experiments show that our method achieves state-of-the-art across most benchmarks. The code and data are available at https:// github.com/KQL11/Deep-VRM.

For agents

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

get_harvested_code_for_paper("2606.15880")
get_code_for_paper("2606.15880")
have("2606.15880")

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

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

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

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

Connect an agent — have() is free.