When a model fuses two data streams, say video and audio, through cross-modal attention, one stream asks questions (the queries) and the other stream supplies the answers (the keys and values). This design quietly assumes that every answer is worth hearing. In real recordings, many audio segments are silence or off-screen noise, and many frames show nothing that is making the sound. Current systems handle this with soft dimmer switches that scale the bad parts down without ever removing them. This note proposes a hard on/off switch for each key segment of the answering modality. The switch is trained by gradient descent, and it sits inside an attention kernel where switching a key off removes that key's contribution and leaves the other keys untouched.
The second part of that sentence is the point. In standard softmax attention, the weights over keys must sum to one. If a binary mask turns some keys off, the surviving keys are renormalized and amplified, and any noise that survives the mask is amplified with them. When every key is off, the output is undefined. Sigmoid attention scores each key independently, so a gated-off key simply vanishes. We claim that differentiable binary gating pays off in cross-modal fusion only when it is paired with a normalization-free kernel. We also claim the payoff shows up most clearly when one modality is partially corrupted or missing. Clean-data accuracy is not where we expect the advantage.
Core Claim and Mechanism
Let $q_t$ be the query of segment $t$ in modality A, and let $k_s, v_s$ be the key and value of segment $s$ in modality B. A small network reads segment $s$ of B, together with a pooled summary of A. For each head, it emits a gate $z_s \in \{0,1\}$. The fused update is
$$y_t = \sum_{s=1}^{n} z_s \, \sigma\!\left(\frac{q_t^\top k_s}{\sqrt{d}} + b\right) v_s,$$
where $\sigma$ is the logistic function, $d$ is the key dimension, $n$ is the number of key segments, and $b=-\log n$. This bias is the setting recommended by Theory, Analysis, and Best Practices for Sigmoid Self-Attention, which shows that sigmoid attention keeps universal approximation and runs faster through the FLASHSIGMOID kernel. We fix $n$ to the full sequence length so that closing gates does not shift the bias.
During training, each $z_s$ is drawn from a Hard Kumaraswamy distribution, a stretched-and-clipped continuous distribution with real probability mass at exactly 0 and exactly 1. We regularize the expected fraction of open gates, $\lambda \, \mathbb{E}[\tfrac{1}{n}\sum_s z_s]$. This penalty acts on each input separately; it does not impose a fixed budget across the dataset. At test time, gates are deterministic and binary.
The prediction is that this combination behaves differently from both of its neighbours. A continuous gate cannot fully sever a corrupted segment. A binary gate on a softmax kernel severs the segment but inflates whatever passes through.
Each piece has a precedent, and each precedent stops short. LycheeDecode supplies the method: it uses HardKuma to route attention heads into near-binary roles and reports that plain sigmoid gates stall in an ambiguous region near 0.5. It works only on unimodal language-model decoding and gates heads, not cross-modal keys. Gumbel-Attention for Multi-modal Machine Translation motivates the proposal. It applies a hard Gumbel-Sigmoid mask over image regions before text cross-attention and gains over soft attention, 39.2 versus 38.6 BLEU on Multi30k Test2016. Its mask is an input filter in front of a softmax pathway, and it never tests corrupted inputs. Differentiable Attention Sparsity via Structured D-Gating and FlexControl show that binary or group-sparse gates train well with standard optimizers. However, D-Gating learns static masks over the whole dataset, and FlexControl switches whole conditioning blocks rather than individual cross-modal keys.
The constraining work is Cross-modal Background Suppression for Audio-Visual Event Localization (CMBS). It deliberately chooses soft attenuation controlled by a hyperparameter $\alpha$, arguing that hard removal causes "information discontinuity." We take that objection seriously. Our hypothesis is that the discontinuity CMBS feared comes from softmax renormalization, not from binarity itself, and the ablations below are built to test that directly. CAT-GS warns that gates driven by confidence scores flip from batch to batch ("gate thrashing"). We will measure how often gates flip during training to check whether HardKuma's mass at 0 and 1 avoids this.
Research Program
The primary setting is the Audio-Visual Event (AVE) dataset, for two reasons. First, its label definition, that an event is present only when it is both visible and audible, makes "this segment of the other modality is irrelevant" a meaningful judgment. Second, CMBS gives a strong, directly comparable soft-suppression baseline. We reuse the CMBS feature pipeline and backbone, the version with ResNet-151 visual features, and replace only its cross-modal gated attention module with the gated sigmoid block, in both directions (audio-to-video and video-to-audio).
The secondary setting is CREMA-D emotion recognition. There, the question is whether segment gates help when one modality is corrupted at test time, a setting the modality-balancing literature does not evaluate.
Robustness is tested with a corruption protocol applied only at test time. A fraction $\rho \in \{0, 0.25, 0.5, 0.75, 1\}$ of segments in one modality is replaced, either with silence or black frames, or with real but mismatched segments taken from another video. The mismatched version is the harder case, because the bad segments still look like plausible input. Because we inject the corruption, we know exactly which segments are bad. This gives a ground truth for checking whether gates close on them, which the clean datasets do not provide. We also train every method with and without matched segment-level corruption augmentation, so that robustness gains are not simply the result of seeing corruption during training.
Baselines
The naive reference point is the CMBS architecture with ungated softmax cross-attention, trained by standard joint backpropagation. It tells us how much any gating buys.
The strongest existing method on AVE is CMBS itself. It reports 79.7% supervised and 76.0% weakly supervised segment accuracy. Because CMBS reports no corrupted-input numbers, we rerun it with its published hyperparameters as the anchor. Our method beats it only if we reproduce roughly its clean number and match it within run-to-run noise. On top of that, we must lose clearly less accuracy at $\rho \geq 0.5$ under mismatched-segment corruption. We will report the degradation curve over $\rho$ across five seeds.
On CREMA-D, the strongest reported number is CAT-GS at 86.29% accuracy, against 67.47% for standard joint training in that paper. MMPareto reports 75.13%, against a uniform baseline of 71.10% in its own setup. We do not claim to beat CAT-GS on clean CREMA-D, because CAT-GS targets modality imbalance with external teacher networks. Instead, we run CAT-GS and our gates both separately and combined, on the same backbone, and compare accuracy under corruption.
Three ablations isolate the key ingredient. The first keeps binary HardKuma gates but uses a softmax kernel, which isolates the effect of renormalization. The second uses sigmoid attention with continuous sigmoid gates, which isolates binarity. The third uses sigmoid attention with no gates. A fourth variant swaps HardKuma for Gumbel-Sigmoid with temperature annealing, to test sensitivity to the choice of relaxation.
Every variant gets the same data, the same features, and the same number of epochs. Every variant also gets the same tuning budget: twenty configurations over learning rate and its own gate-penalty or $\alpha$ hyperparameter, selected on validation.
Why not just…?
Why not just use a continuous sigmoid gate, as CMBS and Gated Cross Attention for drug-target interaction do? This is the real threat. On clean data it may tie, because a soft gate can learn values near zero. The difference we predict appears under mismatched corruption, where a gate value of 0.1 multiplied across many plausible-looking bad segments still leaks a substantial signal. The soft-gate ablation, compared at equal penalty strength, settles it. If its degradation curve matches the binary gate's, the binarity claim is wrong and the note reduces to "sigmoid attention plus soft gates." That would still be a useful outcome to report. We will also threshold the trained soft gates at test time, to see whether binarity can simply be added after training.
Why not just train with modality dropout? Dropping a whole modality at random, as in ModDrop (Wolf et al.), ignores the fact that reliability varies by segment. What Makes Training Multi-Modal Classification Networks Hard? shows that untargeted joint training can fall below the unimodal model on Kinetics: 71.7% joint versus 72.6% for RGB alone. The stronger version of this alternative is random dropout of individual segments, which matches our corruption augmentation. We give that version to the ungated baseline. Our claim survives only if the learned gates still help on top of it.
Why not just mask keys inside softmax attention, or use Sparsemax? Sparsemax, used by the drug-target interaction work, produces exact zeros, but its outputs still sum to one, so it renormalizes surviving keys the same way softmax does. It also cannot return an empty output when the whole other modality is useless. The binary-softmax ablation directly measures how much of the degradation comes from this renormalization.
Why not just fix imbalance with gradient surgery? CAT-GS and MMPareto change how training updates are combined. They do not change what the network computes on a corrupted input at test time. That is why we report them both on their own and combined with our gates, rather than treating them as competitors.
Decisive Checks
The main test is the AVE degradation curve under mismatched audio corruption at $\rho = 0.5$. We predict this ordering: binary-sigmoid is best; continuous-sigmoid and binary-softmax lose noticeably more; ungated softmax loses the most. Clean accuracy should stay within noise of the 79.7% CMBS number.
Two mechanistic checks support it. First, gate closure on injected bad segments, measured as the area under the ROC curve (AUROC) of $1-z_s$ against the corruption labels. Second, the per-epoch fraction of gates that flip, which should stay low compared with continuous gates thresholded at 0.5. A third check is the attention computation saved by skipping closed keys, as a function of the penalty $\lambda$; this indicates whether the method buys efficiency as well as robustness.
If binary-softmax matches binary-sigmoid, the kernel-interaction hypothesis fails. If continuous-sigmoid matches binary-sigmoid, the binarity hypothesis fails. Either outcome directly answers the tension that CMBS left open.
References
- Theory, Analysis, and Best Practices for Sigmoid Self-Attention
- LycheeDecode: Accelerating Long-Context LLM Inference via Hybrid-Head Sparse Decoding
- Gumbel-Attention for Multi-modal Machine Translation
- Differentiable Attention Sparsity via Structured $D$-Gating
- FlexControl: Computation-Aware Conditional Control with Differentiable Router for Text-to-Image Generation
- Cross-modal Background Suppression for Audio-Visual Event Localization
- CAT-GS: Balanced Multimodal Learning via Calibrated Gating and Fusion Surgery
- MMPareto: Boosting Multimodal Learning with Innocent Unimodal Assistance
- An Interpretable Framework for Drug-Target Interaction with Gated Cross Attention
- ModDrop: adaptive multi-modal gesture recognition
- What Makes Training Multi-Modal Classification Networks Hard?