SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.15220 · 2025

video-SALMONN 2: Caption-Enhanced Audio-Visual Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures of our instrument; 2 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/2506.15220.json · badge: /api/ran/2506.15220.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
bytedance/video-salmonn-2 canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bytedance/video-salmonn-2/video_SALMONN2_pro/qwenvl/model/modeling_qwen3_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
eager_attention_forward Ran
ran on a synthesized input
bytedance/video-salmonn-2/video_SALMONN2_pro/qwenvl/model/modeling_whisper.py
code served (permissive licence) · get_code("5126650c89c15a91")
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. 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 torch import nn

torch.manual_seed(0)

# Create a minimal nn.Module that the function uses
class DummyModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.training = True

module = DummyModule()

# Set up tensor dimensions:
# - batch_size: 2
# - num_heads: 3
# - seq_len_q: 5
# - seq_len_k: 4
# - head_dim: 6

batch_size = 2
num_heads = 3
seq_len_q = 5
seq_len_k = 4
head_dim = 6

# Query: (batch, num_heads, seq_len_q, head_dim)
query = torch.randn(batch_size, num_heads, seq_len_q, head_dim)

# Key: (batch, num_heads, seq_len_k, head_dim)
key = torch.randn(batch_size, num_heads, seq_len_k, head_dim)

# Value: (batch, num_heads, seq_len_k, head_dim)
value = torch.randn(batch_size, num_heads, seq_len_k, head_dim)

# Attention mask: (batch, 1, seq_len_q, seq_len_k)
# Use a causal mask (lower triangular)
attention_mask = torch.full((batch_size, 1, seq_len_q, seq_len_k), float('-inf'))
attention_mask = torch.triu(attention_mask, diagonal=1)

# scaling: optional float
scaling = None

# dropout: float
dropout = 0.1

ARGS = {
    "module": module,
    "query": query,
    "key": key,
    "value": value,
    "attention_mask": attention_mask,
    "scaling": scaling,
    "dropout": dropout,
}
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 tuple — a tuple 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
pad_and_stack Ran
ran; our contract draft was wrong, not the code
bytedance/video-salmonn-2/video_SALMONN2_plus/qwenvl/model/modeling_qwen2_5_vl.py
code served (permissive licence) · get_code("50982cb2b9cc7e0a")
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 3, dtype family float, shape (2, 6, 8) 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.functional as F

torch.manual_seed(0)

# Test case 1: 2D tensors with different sequence lengths
t1_2d = torch.randn(1, 3)  # shape (1, 3)
t2_2d = torch.randn(1, 5)  # shape (1, 5)

# Test case 2: 3D tensors with different sequence lengths
t1_3d = torch.randn(1, 4, 8)  # shape (1, 4, 8) - batch=1, seq_len=4, dim=8
t2_3d = torch.randn(1, 6, 8)  # shape (1, 6, 8) - batch=1, seq_len=6, dim=8

ARGS = {
    "t1": t1_3d,
    "t2": t2_3d,
    "pad_value": 0.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 Tensor, ndim 3, dtype family float, shape (2, 6, 8) — shape (2, 6, 8) 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
rotate_half Ran
ran; our contract draft was wrong, not the code
bytedance/video-salmonn-2/video_SALMONN2_plus/qwenvl/model/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
shift_tokens_right Ran
ran; our contract draft was wrong, not the code
bytedance/video-salmonn-2/video_SALMONN2_pro/qwenvl/model/modeling_whisper.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from facebookresearch/ssvp_slt, is pointer only (licence: NOASSERTION) · get_code("9dfcf8b13847c65f")
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 facebookresearch/ssvp_slt, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

sinusoids Ran
ran, honoured the contract we drafted
bytedance/video-salmonn-2/video_SALMONN2_plus/qwenvl/model/modeling_whisper.py
code served (permissive licence) · get_code("ec2159dcc8c21e1d")
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 2, dtype family float, shape (8, 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 math
import torch

torch.manual_seed(0)

ARGS = {
    'length': 8,
    'channels': 4,
    'max_timescale': 10000.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 Tensor, ndim 2, dtype family float, shape (8, 4) — shape (8, 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_flashatt Not yet run
unverified (harvested, no recorded run)
bytedance/video-salmonn-2/video_SALMONN2_plus/qwenvl/model/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)
bytedance/video-salmonn-2/video_SALMONN2_pro/qwenvl/model/modeling_qwen3_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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 5 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
282 dated earlier, 10 the same month, 60 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
192 dated earlier, 5 the same month, 40 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
shift_tokens_right 18 other papers
15 dated earlier, 1 later, 2 same year, order not determinable · 1 only as an assembly brick
2021.acl-demo.21 (2021 (year only))
KuiLeiXi: a Chinese Open-Ended Text Adventure Game
2203.07836 (2022-03)
Graph Pre-training for AMR Parsing and Generation
2203.11239 (2022-03)
DQ-BART: Efficient Sequence-to-Sequence Model via Joint Distillation and Quantization
and 15 more not named here
apply_rotary_pos_emb_flashatt 6 other papers
1 dated earlier, 5 later
2503.11187 (2025-03)
FastVID: Dynamic Density Pruning for Fast Video 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 3 other papers
1 dated earlier, 2 later
2502.11494 (2025-02)
Stop Looking for "Important Tokens" in Multimodal Language Models: Duplication Matters More
2606.15880 (2026-06)
Deep Residual Injection for Full-Spectrum Forensic Signal Perception in Multimodal Large Language Models
2606.16158 (2026-06)
Focus When Necessary: Adaptive Routing and Collaborative Grounding for Training-Free Visual Grounding
sinusoids 1 other paper
1 dated earlier
2412.02612 (2024-12)
GLM-4-Voice: Towards Intelligent and Human-Like End-to-End Spoken Chatbot

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

We present video-SALMONN 2, a family of audio-visual large language models that set new state-of-the-art (SOTA) results in video description and question answering (QA). Our core contribution is multi-round direct preference optimisation (MrDPO), paired with a caption-quality objective that jointly rewards completeness and factual accuracy. Unlike standard DPO with a fixed reference policy, MrDPO periodically refreshes the reference by bootstrapping from a newly re-initialised lightweight adapter trained on the latest preferences, avoiding reference staleness and enabling continual improvement. This strategy produces captions that are consistently more detailed and accurate than those from proprietary systems such as GPT-4o and Gemini-1.5 Pro. We further distil these gains by using our model to generate a high-quality video-caption corpus for supervised fine-tuning of new models, transferring benefits beyond captioning to strong performance on complex video-QA tasks. Across widely used audio-visual and visual-only understanding benchmarks (including Video-MME, WorldSense, AVUT, Video-Holmes, DailyOmni, MLVU, and LVBench), our 3B and 7B models achieve SOTA results at comparable scales, while the 72B model surpasses all other open-source systems. Our source code, models, and data are released at \href{https://github.com/bytedance/video-SALMONN-2}{https://github.com/bytedance/video-SALMONN-2}.

For agents

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

get_harvested_code_for_paper("2506.15220")
get_code_for_paper("2506.15220")
have("2506.15220")

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

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

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

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

Connect an agent — have() is free.