GatedV: Self-Gated Values for Transformer Language Models

Li-Ming Yu

TL;DR

GatedV is a remarkably simple, parameter-free modification to the Transformer attention mechanism that applies a SiLU activation to the "Value" (V) matrix before aggregation. By simply self-gating the values, the authors achieve a consistent 2-2.4% reduction in held-out perplexity across different model scales with a negligible (~0.7%) increase in latency.

What Problem Does This Paper Address?

In a standard Transformer, the attention mechanism mixes information across tokens using three linear projections: Queries (Q), Keys (K), and Values (V). While the Feed-Forward Networks (FFNs) in a Transformer provide the necessary non-linearity for the model, the attention sublayer remains largely linear with respect to the values being mixed.

Previous research has explored adding non-linearities to attention (like in the Gated Attention Unit or Mega architectures), but these often involve redesigning the entire attention block or adding new trainable parameters. The author of GatedV asks a fundamental question: Can we improve language modeling performance by simply making the value representations non-linear, without adding any parameters or changing the core attention-weighting logic?

Methods

The proposed "GatedV" variant is elegantly simple. In a standard attention head, the output is a weighted sum of the values: $O = \text{AttentionWeights} \times V$.

GatedV replaces the linear values $V$ with self-gated values $\tilde{V}$ using the SiLU (Sigmoid Linear Unit) activation function: $$\tilde{V} = \text{SiLU}(V) = V \odot \sigma(V)$$ where $\sigma$ is the sigmoid function.

Crucially, this activation is applied before the weighted aggregation. Because SiLU acts as a self-gate (the value is multiplied by its own sigmoid), this allows the model to suppress or emphasize specific features within the value vector for each token independently before they are mixed with other tokens.

Figure 1: Transformer block and GatedV value transformation. The baseline aggregates the projected values V , whereas GatedV applies SiLU(V ) before aggregation. The value box shows the two alternatives; each model uses one.

The architecture otherwise remains a standard decoder-only Transformer using modern best practices: RMSNorm, Rotary Positional Embeddings (RoPE), and SwiGLU feed-forward layers.

Datasets

The models were trained from scratch on the FineWeb-Edu dataset, a high-quality subset of web data filtered for educational value.

  • Tokenizer: A byte-level BPE tokenizer (8,192 entries) trained on WikiText.
  • Evaluation: Performance was measured using token-averaged negative log-likelihood and perplexity on held-out sets of 2,048 documents from FineWeb-Edu.

Key Insights and Ideas

  • Non-linearity Placement is Key: The paper demonstrates that applying the non-linearity to values before aggregation is not equivalent to applying it after. Transforming the source tokens individually before they are mixed allows for more granular control over information flow.
  • Value-Specific Benefits: Interestingly, the author found that applying SiLU to Queries (Q) alone actually worsened performance. The benefit seems specific to the "Value" branch, which represents the actual content being moved between tokens.
  • Beyond Simple Statistics: One might wonder if SiLU just changes the mean and variance of the values. However, "Affine match" ablations (where the baseline values were rescaled to match SiLU's statistics) failed to reproduce GatedV's gains, suggesting the improvement comes from the data-dependent gating itself.
  • Parameter Efficiency: Because the same projected values supply both the content and the gate, GatedV requires exactly the same number of trainable parameters as a standard Transformer.

Key Results

The author evaluated GatedV at two scales, matching parameter counts and training budgets exactly:

  1. Small Scale (2.33M parameters): GatedV reduced mean held-out perplexity from 59.1 to 57.9 (a 2.03% improvement). This improvement was consistent across all five random seeds tested.
  2. Medium Scale (26.16M parameters): After a learning-rate search, mean held-out perplexity dropped from 20.2 to 19.7 (a 2.40% improvement).
Figure 2: Relative development PPL, ∆PPL/Pbase, shown as a percentage; ∆PPL denotes GatedV minus baseline. Thin gray curves show individual seed pairs; the thick blue curve uses the arithmetic mean PPL of each model across seeds. Negative values favor GatedV.

In terms of efficiency, the trade-off is minimal. Benchmarks on an NVIDIA DGX Spark showed only a 0.7% increase in forward latency for the 26M parameter model, making it a highly efficient "free" upgrade for most applications.

Limitations and Future Work

While the results are promising, the author notes several areas for further exploration:

  • Scale: The experiments were limited to models under 28M parameters. It remains to be seen if these gains persist in "Large" models (7B+ parameters).
  • Context Length: The study used a relatively short context length of 256 tokens.
  • Downstream Tasks: The evaluation focused solely on next-token prediction (perplexity). Performance on tasks like summarization, reasoning, or zero-shot benchmarks has not yet been tested.
  • Precision: The current implementation was tested using FP32; the impact of lower-precision training (BF16/FP8) on the SiLU gate is unknown.

Summary updated

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.
BibTeX
@misc{yu2026gatedv,
  author = {Li-Ming Yu},
  title = {{GatedV: Self-Gated Values for Transformer Language Models}},
  year = {2026},
  eprint = {2611.02145},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.02145},
}
Figure