SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.11187 · NeurIPS · 2025

FastVID: Dynamic Density Pruning for Fast Video Large Language Models

Sicheng Zhao, Guiguang Ding, Tao He, Leqi Shen, Yifeng Zhang, Pengzhang Liu, Guoqiang Gong

arXiv · PDF · Open in the Atlas

Code that ran

7 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, 0 violated it and 1 has no contract verdict; 6 failures of our instrument; 4 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-24; 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/2503.11187.json · badge: /api/ran/2503.11187.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
lunarshen/fastvid canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
copy not recorded community
not in the paper's declared repositories
4 ran · 0 no recorded run
cokeshao/holitom community
Papers with Code archive
2 ran · 2 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from fe1ixxu/ALMA
pointer only · get_code("30d7eec482ebf6b1")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

MaskedDrop Ran
ran on a synthesized input
lunarshen/fastvid/fastvid_llavaonevision/LLaVA-NeXT/llava/model/multimodal_resampler/masked_drop.py
code served (permissive licence) · get_code("53284346fce3ef1c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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
import torch.nn as nn

class ModelArgs:
    def __init__(self):
        self.mm_mask_drop_mode = 'fixed'
        self.mm_mask_drop_skip_percentage = 0.0
        self.mm_mask_drop_ratio = 0.75
        self.mm_mask_drop_ratio_upper = 0.9
        self.mm_mask_drop_ratio_lower = 0.5

model_args = ModelArgs()

INIT_ARGS = {
    'model_args': model_args
}

# Create image features: list of tensors with shape [num_tokens, feature_dim]
# Using different num_tokens for each image to test list handling
image_feature_1 = torch.randn(12, 8)  # 12 tokens, 8 features
image_feature_2 = torch.randn(16, 8)  # 16 tokens, 8 features

ARGS = {
    'image_features': [image_feature_1, image_feature_2]
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
apply_rotary_pos_emb Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from fe1ixxu/ALMA
pointer only · get_code("bac65c3dafaec040")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_anyres_image_grid_shape Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cokeshao/holitom/holitom/llava_arch.py
code served (permissive licence) · get_code("dd90994dc116b84b")
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.

import re
import ast

# Test cases for get_anyres_image_grid_shape function

# Case 1: Using string grid_pinpoints with range notation
image_size_1 = (1024, 768)
grid_pinpoints_1 = "(1x1)x(2x2)"
patch_size_1 = 224

# Case 2: Using list of tuples as grid_pinpoints
image_size_2 = (800, 600)
grid_pinpoints_2 = [(224, 224), (448, 448), (672, 672), (224, 448), (448, 224)]
patch_size_2 = 224

# Case 3: Using string representation of list as grid_pinpoints
image_size_3 = (512, 512)
grid_pinpoints_3 = "[(336, 336), (672, 672), (1008, 1008)]"
patch_size_3 = 336

ARGS = {
    "image_size": (1024, 768),
    "grid_pinpoints": "[(224, 224), (448, 448), (672, 672)]",
    "patch_size": 224
}
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
rotate_half Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from fe1ixxu/ALMA
pointer only · get_code("b99eea6376d1e212")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

rotate_half Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from Time-MoE/Time-MoE
pointer only · get_code("e03d53ba9d4f9ae5")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

select_best_resolution Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cokeshao/holitom/holitom/llava_arch.py
code served (permissive licence) · get_code("3999ff487573f32c")
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.

import torch
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for select_best_resolution
# The function takes:
# 1. original_size: tuple of (width, height)
# 2. possible_resolutions: list of tuples [(width1, height1), (width2, height2), ...]

original_size = (640, 480)  # width=640, height=480

possible_resolutions = [
    (256, 256),
    (512, 512),
    (1024, 768),
    (768, 1024),
    (1280, 960),
]

ARGS = {
    "original_size": original_size,
    "possible_resolutions": possible_resolutions,
}
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 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
LlavaMetaForCausalLM_holitom Not yet run
unverified (harvested, no recorded run)
cokeshao/holitom/holitom/llava_arch.py
code served (permissive licence) · get_code("65d341b7890a432b")
How it ran

no invocation recorded.

apply_rotary_pos_emb_flashatt Not yet run
unverified (harvested, no recorded run)
lunarshen/fastvid/fastvid_qwen25vl/lmms-eval/lmms_eval/models/qwenvlutils/modeling_qwen2_5_vl.py
code served (permissive licence) · get_code("24acaeb8ad82253e")
How it ran

no invocation recorded.

apply_rotary_pos_emb_vision Not yet run
unverified (harvested, no recorded run)
lunarshen/fastvid/fastvid_qwen25vl/lmms-eval/lmms_eval/models/qwenvlutils/modeling_qwen2_5_vl.py
code served (permissive licence) · get_code("09445ca10af72017")
How it ran

no invocation recorded.

rank0_print Not yet run
unverified (harvested, no recorded run)
cokeshao/holitom/holitom/llava_arch.py
code served (permissive licence) · get_code("16c9ecf6f7fea719")
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 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 6 the same month, 6 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
rotate_half 360 other papers
250 dated earlier, 14 the same month, 88 later, 5 same year, order not determinable, 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
167 dated earlier, 10 the same month, 60 later, 4 same year, order not determinable, 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
apply_rotary_pos_emb 94 other papers
53 dated earlier, 3 the same month, 33 later, 2 same year, order not determinable, 3 undated · 6 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
2309.11674 (2023-09)
A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models
and 91 more not named here
select_best_resolution
brick of this paper's assembly: helper
73 other papers
55 dated earlier, 4 the same month, 10 later, 4 same year, order not determinable · 7 only as an assembly brick
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2304.08485 (2023-04)
Visual Instruction Tuning
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
and 70 more not named here
apply_rotary_pos_emb_flashatt 6 other papers
6 later
2506.15220 (2025-06)
video-SALMONN 2: Caption-Enhanced Audio-Visual Large Language Models
2507.01949 (2025-07)
Kwai Keye-VL Technical Report
2509.01986 (2025-09)
Draw-In-Mind: Rebalancing Designer-Painter Roles in Unified Multimodal Models Benefits Image Editing
and 3 more not named here
apply_rotary_pos_emb_vision 4 other papers
4 later
2509.01986 (2025-09)
Draw-In-Mind: Rebalancing Designer-Painter Roles in Unified Multimodal Models Benefits Image Editing
2602.01173 (2026-02)
EEmo-Logic: A Unified Dataset and Multi-Stage Framework for Comprehensive Image-Evoked Emotion Assessment
2602.22278 (2026-02)
RETLLM: Training and Data-Free MLLMs for Multimodal Information Retrieval
and 1 more not named here
rank0_print
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 the same month · 4 only as an assembly brick
2304.08485 (2023-04)
Visual Instruction Tuning
2501.06598 (2025-01)
ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generation
2501.08282 (2025-01)
LLaVA-ST: A Multimodal Large Language Model for Fine-Grained Spatial-Temporal Understanding
and 1 more not named here
get_anyres_image_grid_shape
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 the same month · 3 only as an assembly brick
2304.08485 (2023-04)
Visual Instruction Tuning
2501.06598 (2025-01)
ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generation
2503.03803 (2025-03)
EgoLife: Towards Egocentric Life Assistant

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

Video Large Language Models have demonstrated strong video understanding capabilities, yet their practical deployment is hindered by substantial inference costs caused by redundant video tokens. Existing pruning techniques fail to effectively exploit the spatiotemporal redundancy present in video data. To bridge this gap, we perform a systematic analysis of video redundancy from two perspectives: temporal context and visual context. Leveraging these insights, we propose Dynamic Density Pruning for Fast Video LLMs termed FastVID. Specifically, FastVID dynamically partitions videos into temporally ordered segments to preserve temporal structure and applies a density-based token pruning strategy to maintain essential spatial and temporal information. Our method significantly reduces computational overhead while maintaining temporal and visual integrity. Extensive evaluations show that FastVID achieves state-of-the-art performance across various short-and longvideo benchmarks on leading Video LLMs, including LLaVA-OneVision, LLaVA-Video, Qwen2-VL, and Qwen2.5-VL. Notably, on LLaVA-OneVision-7B, FastVID effectively prunes 90.3% of video tokens, reduces FLOPs to 8.3%, and accelerates the LLM prefill stage by 7.1×, while maintaining 98.0% of the original accuracy. The code is available at https://github.com/LunarShen/FastVID.

For agents

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

get_harvested_code_for_paper("2503.11187")
get_code_for_paper("2503.11187")
have("2503.11187")

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

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

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

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

Connect an agent — have() is free.