Copy Gates as Modality Gates in Single-Stack Multimodal Models

Modern vision-language models put image patches and words into one long sequence and run a single Transformer over all of it. Every word can attend to every image patch from the first layer. That works well on clean, curated data. It works worse on tweets and product listings, where the image is often unrelated to the text and the text is full of handles, hashtags and brand names the model has rarely seen. On social media, about 60% of named entities never appear in the attached image (Grounded Multimodal Named Entity Recognition on Social Media). In summarization, adding an irrelevant image makes multimodal models worse than text-only ones, an effect called the "Image Tax" (DIUSum).

We propose to attach a trained copy head to a single-stack multimodal model. A copy head is a small module that, at each output step, decides whether to write a word from the vocabulary or copy one verbatim from the input text, as in pointer-generator networks. We also let the same decision module control how strongly the image can influence the sequence. The hypothesis is that, in noisy informal domains, much of the damage an irrelevant image does lands on exactly the tokens a text pointer can protect: names, handles and product terms. If that is true, a single cheap gate trained only on in-domain data addresses both domain mismatch and the Image Tax.

Core Claim

In a single-stack multimodal decoder, the Image Tax is not spread evenly across output tokens. It concentrates on target tokens that also appear in the source text, because visual tokens pull attention away from the exact source positions the model needs to reproduce.

A copy distribution read only from text-token attention fixes the identity of a copied token, so visual noise cannot change which token gets copied. Visual noise can still affect whether the model copies. Our design addresses that by giving the gate the step's attention mass on image tokens as an explicit input. We further let the gate's head output a per-example scale on the image tokens, so the model can quiet an irrelevant image inside the stack rather than in a separate selector network.

The claim is falsifiable. If the Image Tax turns out to be uniform across copyable and non-copyable tokens, or if a training-free pointer matches the trained gate, then the proposal reduces to existing methods.

Where This Sits

Prior work that supplies the method. Get To The Point introduced the copy-or-generate mixture for a recurrent dual-stack summarizer. CopyBERT built the copy distribution from a single BERT stack's self-attention, but only on clean SQuAD text. LargePiG showed that decoder-only LLMs can act as pointer-generators with no training. It reads copy weights from internal attention and sets the copy probability from the divergence between intermediate-layer and final-layer predictions. It does this inside LLaVA, but copies only from prompt text and never adapts to a domain. We reuse LargePiG's divergence signal as one gate input. Unlike LargePiG, we train the gate on in-domain data and couple it to how much the image is allowed to contribute.

Prior work that motivates the proposal. M4C showed that a single multimodal stack with a pointer over OCR tokens beats pairwise fusion on TextVQA, but it never faced irrelevant images or informal text. DIUSum and Multi-modal Sentence Summarization with Modality Attention and Image Filtering suppress noisy images, but they use dual-stack pipelines with separate selectors or filters. DIUSum also reports that its decoder falls back to extractive copying when images are useless. We read that observation as a hint that copying and image suppression are the same decision, and we make that decision explicit. A Pilot Study of Domain Adaptation Effect for Neural Abstractive Summarization and TWEETQA show that generative models lose proper nouns and handles under domain shift.

Prior work that constrains the proposal. DSGPT is a decoder-only model with no pointer, pre-trained on informal Weibo summaries. It beats the knowledge-augmented MS-Pointer on Taobao, which is direct evidence that domain pre-training can make pointers unnecessary. Tuning LayerNorm in Attention shows that tuning only normalization parameters adapts LLMs to visual inputs better than LoRA, a method that trains small low-rank weight updates. Both results are strong pointer-free competitors that we must beat or concede to. Finally, Pointer-Generator Networks for Low-Resource Machine Translation: Don't Copy That! warns that unrestricted copying fails when the output must be transformed rather than reproduced. We therefore evaluate on tasks with varied copy rates.

Mechanism

Let $T$ be the set of text-token positions in the prefix and $V$ the set of image-token positions. At output step $t$, let $a_{t,i}$ be the layer-weighted attention from the current position to source position $i$, as in CopyBERT. Renormalize it over $T$ only to get $\tilde a_{t,i}$. The output distribution is

$$P(w) = g_t\, P_{vocab}(w) + (1-g_t) \sum_{i \in T:\, x_i = w} \tilde a_{t,i},$$

where $x_i$ is the token at position $i$ and $g_t \in [0,1]$ is the generation probability.

A two-layer gate computes $g_t$ from three inputs: the final hidden state, LargePiG's divergence between intermediate and final vocabulary distributions, and the visual mass $m_t = \sum_{i \in V} a_{t,i}$, which is the share of attention the step spends on image tokens.

The same gate network also reads the hidden state at the end of the prefix. From it, it outputs one scalar $s \in [0,1]$ per example, which multiplies the value vectors of image tokens in every layer. This is a soft version of DIUSum's guidance that lives inside the single stack.

Training updates only the gate, $s$, and the attention LayerNorm parameters, so the adaptation budget is comparable to LayerNorm tuning. The gate is supervised with standard copy labels: a target token is copyable if it occurs in the source text. On Twitter-GMNER, $s$ can additionally be supervised with the dataset's groundability labels. OCR tokens, where present, enter as text, so M4C-style OCR copying is a special case.

Research Program

The work has three parts.

Diagnosis. On a LLaVA-style backbone, we measure the Image Tax as the change in per-token loss when a matched image is replaced by a random one. We split this change by whether the target token is copyable, and repeat on clean data (MSMO, MMSS) and informal data (Twitter-GMNER cast as generation, following H-Index).

Construction. We build the gate and the image scale described above and test each in isolation.

Domain-shift protocol. We fine-tune on one source and test on another: Twitter-15 to Twitter-17 inside GMNER, and clean MSMO news to the informal tasks. This lets us ask whether the trained gate transfers when the parametric vocabulary does not.

Baselines

The naive reference is the same multimodal backbone fine-tuned with the same small parameter budget and no copy head. We run it with the true image, with the image removed, and with a random image. These three runs define the Image Tax that every other method is measured against.

The strongest pointer competitor is LargePiG applied training-free on the same backbone. We also run it stacked on top of LayerNorm-tuned weights, because "training-free pointer plus cheap domain tuning" is the cheapest route to our claimed gains. LargePiG reports MC1–MC3 gains over DoLa on its own factuality benchmarks, but no reported result found on Lacuna for LargePiG on Twitter-GMNER, MMSS, MSMO or Taobao.

The strongest pointer-free adaptation is Tuning LayerNorm in Attention. That paper reports more than 20% average improvement over LoRA across five multimodal tasks, but no absolute numbers on our benchmarks.

Each task also has its own published reference point:

These published systems use different backbones. We therefore report them as external anchors only, and judge our claims against the same-backbone runs.

Every same-backbone method gets the same data, the same number of trainable parameters to within a factor of two, and the same hyperparameter search budget. That search covers learning rate and epochs, since LayerNorm tuning is known to be sensitive to both.

Two ablations isolate the key ingredient: removing the visual-mass input $m_t$ from the gate, and removing the image scale $s$.

Beating the field means three things on the informal tasks. First, our method must exceed both LargePiG-plus-LayerNorm and LayerNorm-only, with non-overlapping confidence intervals across three seeds. Second, it must close at least half of the gap between the true-image and no-image naive runs wherever the image hurts. Third, it must lose nothing on the clean tasks.

Why not just…?

Why not just use LargePiG on a LayerNorm-tuned model? This is the real threat. It already gives a pointer inside a single stack and costs almost nothing. Its gate, however, uses only the gap between layers. It has no information about how much attention went to the image, and it cannot quiet the image. Our diagnosis predicts that random-image noise shifts the copy decision on informal data. If LargePiG-plus-LayerNorm matches our method under the random-image condition, the trained gate is unnecessary and we will report that outcome.

Why not just drop or filter irrelevant images before the model sees them? A CLIP-similarity threshold is simple. But DIUSum found that hard gating alone underperforms combined hard and soft guidance, and pipeline filtering in grounded NER lost 3.96 F1 to a unified formulation through error propagation. We include an offline-filter baseline that uses the same image-relevance threshold for every task. If it matches $s$, the in-stack scale adds nothing and we keep only the copy gate.

Why not just block text tokens from attending to image tokens in the early layers? A fixed attention mask is the most obvious single-stack fix for noise propagation. It also removes useful visual evidence on the roughly 40% of entities that are groundable, and on clean MMSS, where images help (47.28 vs 44.58 ROUGE-1 for the filtered model against text-only in Multi-modal Sentence Summarization with Modality Attention and Image Filtering). We run a masked variant with the cutoff layer tuned. The prediction is that it wins on ungrounded examples and loses on grounded ones, which our learned per-example scale should avoid.

Why not just domain-pretrain without a pointer, as DSGPT did? DSGPT shows this can work for text on Taobao. We test it directly. A pointer-free model fine-tuned on Taobao should match ours on that task. The proposal claims an advantage only under cross-source transfer and on multimodal informal data. If pointer-free tuning matches us there as well, the pointer claim fails.

Decisive Checks

The first decisive check is the token-type split of the Image Tax. If removing or randomizing the image changes loss on copyable and non-copyable target tokens equally on Twitter-GMNER, the core hypothesis is wrong.

The second is the random-image test. On informal tasks, our method's score with a random image should stay within one point of its score with the true image, while the naive model degrades.

The third is cross-source transfer from Twitter-15 to Twitter-17. Our gate should keep entity-span recall where LayerNorm-only tuning loses it.

The fourth checks for over-copying, the failure mode raised by "Don't Copy That!". On MSMO, which is more abstractive, the gate must not raise the rate of copied n-grams beyond the reference summaries. If it does, the method is merely making outputs more extractive rather than better.