SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.05179 · 2025

Global Compression Commander: Plug-and-Play Inference Acceleration for High-Resolution Large Vision-Language Models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 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/2501.05179.json · badge: /api/ran/2501.05179.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
xuyang-liu16/globalcom2 canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
extract_actual_dimensions Ran
ran, honoured the contract we drafted
xuyang-liu16/globalcom2/llava/model/llava_arch.py
code served (permissive licence) · get_code("8a8eda9c70e50257")
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 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.

import torch

torch.manual_seed(0)

# Create a small 2D boolean mask tensor
# The function expects a 2D tensor and uses .shape, torch.any(), and .nonzero()
mask = torch.tensor([
    [False, True, False],
    [False, True, False],
    [False, False, False],
    [False, True, False]
], dtype=torch.bool)

ARGS = {
    "mask": mask
}
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 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
generate_scale_for_crop_features Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xuyang-liu16/globalcom2/llava/model/llava_arch.py
code served (permissive licence) · get_code("8c0724a8b73860d8")
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 float; 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 numpy as np
import torch

torch.manual_seed(0)

# Analyze the function:
# - base_cls_attn_scores: numpy array of shape (N,) where N is a perfect square
#   - Used: .shape[0], iteration with enumerate, score.item() called on each element
#   - So it should be a numpy array of scalars (or 0-d arrays that have .item())
# - num_patch_width: int, used in division and multiplication
# - num_patch_height: int, used in division and multiplication
# - base_scale: float, default retention_ratio (0.25)
# - temperature: float, default 10.0

# Create base_cls_attn_scores as a numpy array
# N should be a perfect square. Let's use N=16 (4x4)
N = 16
base_cls_attn_scores = np.array([0.1, 0.2, 0.15, 0.3, 0.25, 0.18, 0.22, 0.19,
                                  0.12, 0.28, 0.16, 0.24, 0.21, 0.17, 0.26, 0.14])

# Convert to torch tensors so .item() works as expected in the loop
base_cls_attn_scores = torch.tensor(base_cls_attn_scores, dtype=torch.float32).numpy()

# Actually, let's make it work with torch tensors that have .item()
base_cls_attn_scores = torch.tensor([0.1, 0.2, 0.15, 0.3, 0.25, 0.18, 0.22, 0.19,
                                      0.12, 0.28, 0.16, 0.24, 0.21, 0.17, 0.26, 0.14], 
                                     dtype=torch.float32)

num_patch_width = 2
num_patch_height = 3
base_scale = 0.25
temperature = 10.0

ARGS = {
    "base_cls_attn_scores": base_cls_attn_scores,
    "num_patch_width": num_patch_width,
    "num_patch_height": num_patch_height,
    "base_scale": base_scale,
    "temperature": temperature
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — 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 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
get_original_indices Ran
ran; our contract draft was wrong, not the code
xuyang-liu16/globalcom2/llava/model/llava_arch.py
code served (permissive licence) · get_code("0348912d1b5ea5a3")
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 torch

torch.manual_seed(0)

# Create a mask tensor with shape (num_img, num_tokens)
# num_img = 2, num_tokens = 4
# The mask should have some True/False values to create valid indices
mask = torch.tensor([
    [True, False, True, False],
    [False, True, True, True]
], dtype=torch.bool)

num_img = 2
num_tokens = 4

ARGS = {
    "mask": mask,
    "num_img": num_img,
    "num_tokens": num_tokens
}
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 — 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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 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 3 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

Large vision-language models (LVLMs) excel at visual understanding, but face efficiency challenges due to quadratic complexity in processing long multi-modal contexts. While token compression can reduce computational costs, existing approaches are designed for single-view LVLMs and fail to consider the unique multi-view characteristics of high-resolution LVLMs with dynamic cropping. Existing methods treat all tokens uniformly, but our analysis reveals that global thumbnails can naturally guide the compression of local crops by providing holistic context for informativeness evaluation. In this paper, we first analyze dynamic cropping strategy, revealing both the complementary nature between thumbnails and crops, and the distinctive characteristics across different crops. Based on our observations, we propose ``Global Compression Commander'' (\textit{i.e.}, \textbf{GlobalCom$^2$}), a novel plug-and-play token compression framework for HR-LVLMs. GlobalCom$^2$ leverages thumbnail as the ``commander'' to guide the compression of local crops, adaptively preserving informative details while eliminating redundancy. Extensive experiments show that GlobalCom$^2$ maintains over \textbf{90\%} performance while compressing \textbf{90\%} visual tokens, reducing FLOPs and peak memory to \textbf{9.1\%} and \textbf{60\%}.

For agents

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

get_harvested_code_for_paper("2501.05179")
get_code_for_paper("2501.05179")
have("2501.05179")

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

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

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

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

Connect an agent — have() is free.