SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.10710 · 2026

Cross-Layer Injection for Deep Vision-Language Fusion

Hang Yu, Jingkuan Song, Lianli Gao, Cheng Chen, Peng Di, Pengpeng Zeng, Yuyu Guo

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 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; 5 failures of our instrument; 5 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.10710.json · badge: /api/ran/2601.10710.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
codefuse-ai/CLI canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
build_exp_name Ran
ran; our contract draft was wrong, not the code
codefuse-ai/CLI/run_train_cli.py
code served (permissive licence) · get_code("f83608e9c10bc1e3")
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)

ARGS = {
    'pretrain_vlm_model': 'clip-vit-base',
    'projector_name': 'linear',
    'vlm_exp_layers': '12',
    'vision_exp_layers': '6'
}
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
convert_to_scalar Ran
ran; our contract draft was wrong, not the code
codefuse-ai/CLI/trl/core.py
code served (permissive licence) · get_code("c32b636f13ed9ee5")
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
import numpy as np

torch.manual_seed(0)

ARGS = {
    "stats": {
        "loss": torch.tensor(0.5),
        "accuracy": torch.tensor([0.95]),
        "batch_size": 32,
        "learning_rate": 0.001,
        "numpy_metric": np.array(0.87),
        "numpy_array_metric": np.array([0.92]),
        "string_value": "test",
        "multi_dim_tensor": torch.randn(2, 3),
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
extract_patches Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
codefuse-ai/CLI/llava/mm_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from HumanMLLM/LLaVA-Scissor, is pointer only (licence: NONE) · get_code("b0a851cae92754ff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from HumanMLLM/LLaVA-Scissor, and GitHub detected no licence in that repository 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.

get_chunk Ran
ran; our contract draft was wrong, not the code
codefuse-ai/CLI/llava/eval/model_vqa.py
code served (permissive licence) · get_code("42a46570620cd9fa")
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 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.

import math

def split_list(lst, n):
    """Split a list into n (roughly) equal-sized chunks"""
    chunk_size = math.ceil(len(lst) / n)
    return [lst[i:i + chunk_size] for i in range(0, len(lst), chunk_size)]

def get_chunk(lst, n, k):
    chunks = split_list(lst, n)
    return chunks[k]

# Setup code
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
n = 3
k = 1

ARGS = {
    "lst": lst,
    "n": n,
    "k": k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 list, ndim 1, dtype family int — 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
run_single_eval Ran
ran, violated the contract we drafted
codefuse-ai/CLI/run_eval_cli.py
code served (permissive licence) · get_code("109731d5ba39f46d")
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 os
import subprocess
from types import SimpleNamespace

# Create a minimal args object with the required attributes
args = SimpleNamespace(
    output_path='/tmp/test_eval_output'
)

# Create a minimal environment dictionary
env = {
    'PATH': os.environ.get('PATH', ''),
    'HOME': os.environ.get('HOME', '/tmp'),
}

# Create a script directory path (doesn't need to exist for setup purposes)
script_dir = '/tmp/test_scripts'

# Create the eval_task parameter
eval_task = 'task_001'

ARGS = {
    'args': args,
    'eval_task': eval_task,
    'env': env,
    'script_dir': script_dir
}
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 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
split_list Ran
ran; our contract draft was wrong, not the code
codefuse-ai/CLI/llava/eval/model_vqa.py
code served (permissive licence) · get_code("076c252c52cbb161")
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. 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 math

def split_list(lst, n):
    """Split a list into n (roughly) equal-sized chunks"""
    chunk_size = math.ceil(len(lst) / n)
    return [lst[i:i + chunk_size] for i in range(0, len(lst), chunk_size)]

# Setup code
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
n = 3

ARGS = {
    "lst": lst,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 list — a list 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
auto_pad_images Not yet run
unverified (harvested, no recorded run)
codefuse-ai/CLI/llava/mm_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from HumanMLLM/LLaVA-Scissor, is pointer only (licence: NONE) · get_code("3c8823948724e269")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from HumanMLLM/LLaVA-Scissor, and GitHub detected no licence in that repository 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.

flatten_dict Not yet run
unverified (harvested, no recorded run)
codefuse-ai/CLI/trl/core.py
code served (permissive licence) · get_code("a51ae45a1f6c0b5b")
How it ran

no invocation recorded.

resize_and_center_crop Not yet run
unverified (harvested, no recorded run)
codefuse-ai/CLI/llava/mm_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from HumanMLLM/LLaVA-Scissor, is pointer only (licence: NONE) · get_code("c80358dff96c25ce")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from HumanMLLM/LLaVA-Scissor, and GitHub detected no licence in that repository 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.

safe_load_tokenizer Not yet run
unverified (harvested, no recorded run)
codefuse-ai/CLI/llava/conversation.py
code served (permissive licence) · get_code("b20705b0dfd77ffc")
How it ran

no invocation recorded.

top_k_top_p_filtering Not yet run
unverified (harvested, no recorded run)
codefuse-ai/CLI/trl/core.py
code served (permissive licence) · get_code("2c3da386578af970")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 9 the same month, 8 later) and 2 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
split_list 197 other papers
186 dated earlier, 2 the same month, 8 later, 1 undated
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 194 more not named here
get_chunk 189 other papers
179 dated earlier, 2 the same month, 8 later
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 186 more not named here
top_k_top_p_filtering 21 other papers
19 dated earlier, 1 the same month, 1 later
2305.12191 (2023-05)
Pointwise Mutual Information Based Metric and Decoding Strategy for Faithful Generation in Document Grounded Dialogs
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
2311.17911 (2023-11)
OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocation
and 18 more not named here
extract_patches 20 other papers
18 dated earlier, 1 the same month, 1 later
2411.10332 (2024-11)
Number it: Temporal Grounding Videos like Flipping Manga
2411.11360 (2024-11)
CCExpert: Advancing MLLM Capability in Remote Sensing Change Captioning with Difference-Aware Integration and a Foundational Dataset
2411.14432 (2024-11)
Insight-V: Exploring Long-Chain Visual Reasoning with Multimodal Large Language Models
and 17 more not named here
auto_pad_images 19 other papers
17 dated earlier, 1 the same month, 1 later
2411.10332 (2024-11)
Number it: Temporal Grounding Videos like Flipping Manga
2411.11360 (2024-11)
CCExpert: Advancing MLLM Capability in Remote Sensing Change Captioning with Difference-Aware Integration and a Foundational Dataset
2411.14432 (2024-11)
Insight-V: Exploring Long-Chain Visual Reasoning with Multimodal Large Language Models
and 16 more not named here
convert_to_scalar 18 other papers
16 dated earlier, 1 the same month, 1 later
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
2406.11280 (2024-06)
ISR-DPO: Aligning Large Multimodal Models for Videos by Iterative Self-Retrospective DPO
2406.19371 (2024-06)
Suri: Multi-constraint Instruction Following for Long-form Text Generation
and 15 more not named here
flatten_dict 18 other papers
16 dated earlier, 1 the same month, 1 later
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
2406.11280 (2024-06)
ISR-DPO: Aligning Large Multimodal Models for Videos by Iterative Self-Retrospective DPO
2406.19371 (2024-06)
Suri: Multi-constraint Instruction Following for Long-form Text Generation
and 15 more not named here
resize_and_center_crop 18 other papers
16 dated earlier, 1 the same month, 1 later
2411.10332 (2024-11)
Number it: Temporal Grounding Videos like Flipping Manga
2411.11360 (2024-11)
CCExpert: Advancing MLLM Capability in Remote Sensing Change Captioning with Difference-Aware Integration and a Foundational Dataset
2411.14432 (2024-11)
Insight-V: Exploring Long-Chain Visual Reasoning with Multimodal Large Language Models
and 15 more not named here
safe_load_tokenizer 12 other papers
11 dated earlier, 1 the same month
2411.15024 (2024-11)
DyCoke: Dynamic Compression of Tokens for Fast Video Large Language Models
2412.03248 (2024-12)
AIM: Adaptive Inference of Multi-Modal LLMs via Token Merging and Pruning
2412.07689 (2024-12)
RoboTron-Drive: All-in-One Large Multimodal Model for Autonomous Driving
and 9 more not named here

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

Vision-Language Models (VLMs) create a severe visual feature bottleneck by using a crude, asymmetric connection that links only the output of the vision encoder to the input of the large language model (LLM). This static architecture fundamentally limits the ability of LLMs to achieve comprehensive alignment with hierarchical visual knowledge, compromising their capacity to accurately integrate local details with global semantics into coherent reasoning. 5 To resolve this, we introduce Cross-Layer Injection (CLI), a novel framework that forges a dynamic "many-to-many" bridge between the two modalities. CLI consists of two synergistic, parameter-efficient components: an Adaptive Multi-Projection (AMP) module that harmonizes features from diverse vision layers, and an Adaptive Gating Fusion (AGF) mechanism that empowers the LLM to selectively inject the most relevant visual information based on its real-time decoding context. We validate the effectiveness and versatility of CLI by integrating it into LLaVA-OneVision and LLaVA-1.5. Extensive experiments on 28 diverse benchmarks demonstrate significant performance improvements, establishing CLI as a scalable paradigm that unlocks deeper multimodal understanding by granting LLMs on-demand access to the full visual hierarchy. Code is available at https://github.com/codefuse-ai/CLI.

For agents

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

get_harvested_code_for_paper("2601.10710")
get_code_for_paper("2601.10710")
have("2601.10710")

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

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

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

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

Connect an agent — have() is free.