Lag-Tolerant Two-Source Copying for Audio-Visual Captioning

Audio-visual captioning models describe a short video clip in words, using both its soundtrack and its frames. They tend to fail in two ways. When the sound source is off-screen, they write about what is visible instead of what is heard. When sound and picture are slightly out of step, which happens with dubbing, streaming jitter, or a sound that follows its visible cause, they treat the video as noise and throw it away. We propose a decoder that writes each content word in one of three ways: it generates the word freely, it copies the word from a list of sound-event words attached to time segments of the audio, or it copies it from a list of object words attached to time segments of the video. The decision between copying from audio and copying from video depends on how well the two lists agree, searched over a small window of time offsets rather than only at the same instant. Every content word then carries an explicit record of which modality and which moment it came from. That record lets a single model suppress off-screen visual words and still use video evidence that arrives a second early or late.

This extends the pointer-generator, a decoder that mixes a normal vocabulary softmax with the option of copying tokens from its input (Get To The Point), from text sources to continuous audio and video streams. Two other ideas from the file are used, each in a narrow role. The first is the cross-modal representation gap: audio, image, and text embeddings sit in separate regions of a shared space, which makes zero-shot word scores from the two non-text streams hard to compare. The second is low-rank subspace projection, used as one candidate fix for that comparability problem, with a planned test that could reject it.

Core Claim

Copying is easy to define on text, where the source is a sequence of discrete tokens. Audio spectrograms and video features have no discrete tokens to copy. The research file confirms that no paper in it builds a pointer-generator over multi-rate temporal streams. The nearest pointer-like work either advances attention over fixed image bounding boxes (Language-Driven Region Pointer Advancement) or, judging by its title, points into an external word list for speech recognition (Tree-constrained Pointer Generator for End-to-end Contextual Speech Recognition), with one modality and no notion of cross-modal timing.

We make continuous streams copyable by turning each time segment into a short ranked list of words. Audio segments are scored against a word bank with an audio-text embedding model, and video segments are scored with an image-text model, in the style of the text-anchored bridge in AVSGN. The decoder's output distribution over a word $w$ is

$$P(w) = g_{\text{gen}}\,P_{\text{vocab}}(w) + g_a \sum_{(t,j):\,\ell^a_{t,j}=w} \alpha^a_{t,j} + g_v \sum_{(t,j):\,\ell^v_{t,j}=w} \alpha^v_{t,j},$$

where the symbols are as follows. $\ell^a_{t,j}$ and $\ell^v_{t,j}$ are the $j$-th candidate words for audio and video segment $t$. $\alpha^a$ and $\alpha^v$ are the decoder's copy attention over those (segment, word) pairs. $g_{\text{gen}}, g_a, g_v$ are three gates that sum to one.

The new ingredient is the input to the gates. Besides the decoder state, they receive a lag-tolerant agreement score

$$A_t = \max_{|\delta| \le L} \cos\!\left(q^a_t,\; q^v_{t+\delta}\right),$$

where $q^a_t$ and $q^v_t$ are the word-score vectors of audio and video segment $t$ over a shared label bank, and $L$ is a small maximum offset of a few segments. The optimal offset $\delta^*$ also shifts the video copy attention, so a matched-but-late visual cue is moved into alignment rather than discarded.

This is a local search over $2L+1$ offsets, so it is linear in clip length and causal if offsets are restricted to the past. By contrast, Deep Canonical Time Warping solves a global dynamic-programming alignment offline, and LAVCap computes an iterative optimal-transport assignment over whole sequences. Our claim is that this agreement signal, used as a copy gate, beats both entropy gating and global alignment on off-screen and shifted clips without losing accuracy on ordinary clips.

Research Program

Copy sources. The first piece of work is constructing the copy sources. We split each 10-second AudioCaps clip into one-second segments. For each segment, we score audio against an open word bank: the caption vocabulary's content nouns and verbs plus sound-event label names, with each label kept as a short phrase. We score frames against the same bank, and keep the top $K$ words per segment per modality.

Comparability of scores. Raw scores from two different audio-text and image-text models are not comparable, which is a direct symptom of the modality gap. We test two fixes.

The first fix is a per-modality temperature and bias fitted on training captions.

The second fix is subspace-based and borrows from Representing Sentences as Low-Rank Subspaces, which shows that sentence meaning concentrates in a rank-3 to rank-5 span of word vectors. Using paired training data, we estimate the few directions along which audio (or image) embeddings differ systematically from their caption embeddings. We project those directions out before scoring and keep the remaining space intact. This removes variance rather than translating clusters, so it differs from the naive mean shift that AlignCLIP found to distort within-modality structure. Extending Multi-modal Contrastive Representations warns that a single linear map cannot both close the gap and preserve structure. We therefore treat the projection as a hypothesis. If temperature calibration matches it, we drop the subspace step and report that.

Decoder. The decoder follows LAVCap's setting: Llama 2 7B with low-rank adapters. We add the copy head on top. Multi-token label words are copied as a unit by treating the copy event as emitting the word's full subword sequence, following the observation in LargePiG that a large language model's own attention can serve as the copy distribution.

Training. Training uses standard caption likelihood. We add two kinds of augmentation. Shuffled-video clips teach the gate to close $g_v$, as in EVACap's modality shuffling. Video shifted by a random offset within $\pm 3$ s teaches it to use $\delta^*$.

Prior evidence and constraints. Copying has a known downside. Pointer-Generator Networks for Low-Resource Machine Translation: Don't Copy That! reports that copying can fail to help when source and target do not share surface forms. Visual object words often differ from how people caption sounds, so we expect $g_v$ to be used sparingly and will report how often each gate fires. In the other direction, Dr. Summarize and A Copy-Augmented Generative Model for Open-Domain Question Answering show that small copy heads reduce entity hallucination in text, which supports the expectation that copying from audio will raise precision on sound-event words.

Baselines

Naive reference. The do-nothing reference is the same LoRA-tuned Llama 2 decoder fed audio and video features through vanilla cross-attention, with uniform temporal pooling and no copy head. It fixes the floor that every component must improve on.

Strongest existing method on standard accuracy. This is LAVCap, which aligns audio and video tokens by optimal transport and decodes with a LoRA-tuned Llama 2 7B. It reports SPIDEr 51.7 on the AudioCaps test set. We will retrain it on our data split with the same decoder, adapter rank, and tuning budget. Beating it means matching or exceeding its SPIDEr on clean clips while clearly outperforming it on the off-screen and shifted subsets, which are the cases its global alignment is not designed for.

Strongest existing method on mismatch. This is EVACap, which closes a visual gate when audio-to-video attention is diffuse. It reports BLEU-4 0.258 on AudioCaps and SPICE 0.168 under its mismatch stress test. We will rerun it with our decoder and our stress sets. Beating it means equal or better SPICE under swapped video, and clearly better scores under time-shifted video, where its gate should wrongly discard useful evidence.

Prompt-labels baseline. This is the most important non-published baseline. It feeds the identical per-segment word lists, with timestamps, as text in the language model prompt, with no gate and no lag search. It uses exactly the same information as our model.

Ablations. Three ablations isolate the key ingredient. The first removes the lag search (sets $L=0$). The second merges audio and video copy into one source. The third swaps the subspace projection for temperature calibration or for mean shift.

Why not just…?

Why not just put the word lists in the prompt and let the language model copy? This is the real threat. LargePiG suggests large language models already behave like pointer-generators, so the prompt-labels baseline may recover most of the accuracy. What the prompt cannot give for free is explicit, inspectable attribution and an offset-search signal computed outside the model. If prompt-labels matches our model on clean, swapped, and shifted subsets, the contribution reduces to an attribution diagnostic, and we will say so. The decisive comparison is the shifted-video subset: there, a model must reason about timestamps it has only seen as text, while our gate receives the aligned agreement directly.

Why not just use entropy gating, as EVACap does? Entropy flags a mismatch but cannot tell "unrelated" from "late". By the file's own analysis, a 2-second delay looks like noise to it, so it discards the video. The offset-sweep experiment below measures exactly this, and our method should only win when offsets are non-zero. If EVACap matches us at all offsets, the lag search is unnecessary.

Why not just align globally with optimal transport or time warping? LAVCap and DCTW do align, but over whole sequences, offline, at quadratic-or-worse cost per the file. The XRMB results of DCTW (alignment error 7.19 versus 58.92 for linear warping) show that warping helps on smooth drift. Our local search assumes small, roughly constant offsets within a clip. We will report where that assumption breaks, using offsets that vary within a clip, and compare cost per clip.

Why not just resample to a common rate or shift the embedding clusters? Uniform pooling is the naive baseline above. Mean shift was shown by AlignCLIP to damage within-modality structure. Both are included as ablations rather than argued away.

Proposed Experiments

Main evaluation. The main benchmark is AudioCaps (944 test clips). We report SPIDEr, CIDEr, and SPICE, with AudioCaps itself giving the original reference points: CIDEr 59.3 for its best model and 91.3 for humans. Because n-gram metrics hide hallucination, we add sound-event word precision. This is the fraction of event nouns in a caption that are supported by the clip's AudioSet labels; the clips come from AudioSet, so those labels are available. We report it separately for nouns that came from each gate.

Stress sets. We build two. The first uses EVACap's mismatch protocol, replacing the video with that of another clip. The second is an offset sweep that shifts the video by 0, 0.5, 1, 2, and 3 seconds.

Decisive check 1: lag recovery. On shifted video, the full model should keep near-clean scores up to the window $L$. It should degrade gracefully beyond $L$, and should beat EVACap and the $L=0$ ablation at non-zero shifts.

Decisive check 2: off-screen suppression. On swapped video, $g_v$ should collapse. Event-word precision should match an audio-only model, which shows that off-screen visual words are being suppressed rather than mixed into the caption.

Decisive check 3: grounding. We test whether the copy attention localizes events without any localization training. On the AVE dataset, we read segment-level event presence from copy attention and compare against AVSGN's fully supervised 83.1%. We do not expect to win; the purpose is to see whether the attribution is meaningful.

Decision rule. If the prompt-labels baseline closes all three gaps, we will conclude that explicit cross-modal copying adds attribution but not accuracy.