arXiv:2611.02145cs.CLNov 2026

Manuscript Offprint

arXiv:2611.02145

GatedV: Self-Gated Values for Transformer Language Models

Li-Ming Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Standard attention forms query (Q), key (K), and value (V) matrices through learned linear projections of input hidden states. Architectures such as GAU and Mega incorporate nonlinear transformations into attention. In this paper, we propose GatedV, a simple attention variant that applies SiLU only to V before aggregation without introducing additional trainable parameters. We evaluate GatedV against a standard decoder-only Transformer using matched parameter counts, paired initializations, and equal training-token budgets. At 2.33M parameters, GatedV reduces mean held-out perplexity from 59.1 to 57.9 (2.0%), with improvements across all five paired seeds. At 26.16M parameters, following an equal-budget learning-rate search, mean held-out perplexity falls from 20.2 to 19.7 (2.4%), with improvements across all three paired seeds. Small-model ablations show that the tested affine rescaling of values does not fully reproduce GatedV's gains. A short interleaved benchmark on NVIDIA DGX Spark measures approximately 0.7% higher full-context forward latency for the larger model, based on synchronized wall-clock timings. These findings suggest that value-only self-gating can improve language modeling performance without increasing parameter count or redesigning the attention-weighting mechanism.

1 Introduction

Standard Transformer blocks combine self-attention with position-wise feed-forward networks [18]. The feed-forward sublayer applies nonlinear transformations to individual token representations, whereas attention mixes information across tokens. Within attention, queries (Q) and keys (K) determine the mixing weights, and values (V) provide the representations to be combined. These three branches are usually formed by linear projections, despite their different roles. An additional nonlinearity on queries or keys changes the weighting calculation; on values, it changes what enters the weighted sum. Moreover, applying a nonlinearity before aggregation is generally not equivalent to applying it afterward.

Nonlinear value representations are already used in several attention architectures. Mega applies SiLU to projected values in a block that also uses moving-average features and additional gates [8]. HYLA introduces nonlinear value computation without additional parameters, together with normalization across attention heads [15]. Neural Attention instead replaces the linear Q/K/V projections with multilayer perceptrons [21]. Gated Attention compares gates at several locations, including the value projection, with its main results using a learned sigmoid gate after scaled dot-product attention [11]. GLU Attention introduces separate content and gate projections and reduces the aggregated value width to match the combined value/output projection-weight count [19]. These approaches differ in both the source of the nonlinearity and the computation surrounding it.

*Email: yuliming1996@gmail.com; ORCID: 0000-0001-7552-8895.

In this paper, we ask whether a nonlinear value transform improves a standard Transformer when the other components are left unchanged. A parameter-free elementwise activation allows the original projection dimensions and block configuration to be retained, while altering only the operation applied to the projected values. We call this variant GatedV (self-gated values). It applies SiLU to the usual value projection V before attention aggregation:

V~=SiLU(V)=V⊙σ(V),\widetilde{V}=\mathrm{S i L U}(V)=V\odot\sigma(V),

where σ\sigma is the elementwise sigmoid function. The same projected values supply both the content and its gate, so no separate learned gate projection is needed. The query/key projections, softmax weighting rule, and remaining Transformer components are retained. GatedV therefore has exactly the same number of trainable parameters as the baseline, without adjusting the depth or width of either model.

We train baseline and GatedV decoder-only language models from scratch on FineWeb-Edu [10], at 2.33M and 26.16M parameters and with equal training-token budgets within each scale. GatedV reduces mean held-out perplexity by 2.0% and 2.4%, respectively, with improvements in every paired confirmation run. Additional experiments examine activation placement, learning-rate sensitivity, initial value statistics, and computational cost. Whether these improvements persist at larger scales, on other corpora, or on tasks beyond next-token prediction remains to be tested. Code, experiment recipes, and recorded results are available at https://github.com/yuliming1996/GatedV.