Do Value Vectors in Deep Layers Need Context from the Residual Stream?
Abstract: The success of the transformer architecture as the backbone of modern LLMs is in large part due to its use of attention layers. An attention layer follows the standard neural network paradigm: it takes the residual stream as input and thereby produces context-dependent query, key, and value vectors. However, we find that model performance meaningfully improves when deeper layers learn only a context-free value vector to preserve the original token information, without drawing on any context from the residual stream. When the model has access to this context-free value vector, adding back the context-dependent component provides little additional benefit for aggregate benchmark performance. Such context-free value vectors can be stored as sparse model parameters, eliminating the need to recompute or persistently cache these values. Through systematic ablations on the key design choices for such context-free value vectors, we propose Bank of Values (BoV), a new way of computing value vectors in attention by learning a lookup table of token-specific value vectors for each of the last third of layers. Across 135M and 780M models, BoV improves validation loss over standard attention and, at 780M, the average score across 21 benchmarks, matching the previous best method that adds token information to the value vector with less compute and memory.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Explain it Like I'm 14
Overview
This paper asks a focused question about how transformers (the type of neural network behind modern chatbots) use “attention.” The authors discover that, in the deeper parts of a transformer, the “value” vectors don’t need to depend on the surrounding words’ context. Instead, it works better to keep the value vectors mostly as clean, original information about each token (word piece). Based on this, they introduce a simple idea called Bank of Values (BoV): in the last third of the layers, don’t compute value vectors from the current context—just look them up from a learned table for each token. This makes models a bit better and also more efficient.
What questions did the authors ask?
- Do the “value” vectors in deeper layers need to be computed from the current context, or is it enough to keep them as context-free “original token info”?
- If context-free values are enough, can we redesign attention to be simpler and faster without hurting quality?
- What’s the best way to add original token info to deep-layer values: replace the usual values entirely, or mix both? Should the mixing strength be learned? Which layers benefit?
How did they study it?
A quick primer: what are query, key, and value?
Think of attention like a group chat:
- A query is what a token is “looking for.”
- A key is how a token “describes itself” so others can find it.
- A value is the actual “message content” a token shares once it’s found.
Attention decides who listens to whom by comparing queries and keys. Then it gathers the messages (values) from the chosen tokens and combines them.
Transformers also have a “residual stream,” which you can think of as a running backpack that carries all the information collected so far up the network. Normally, each layer builds queries, keys, and values from that backpack, so they include context from previous tokens.
The core idea
The authors test whether the value vectors really need to come from that context-heavy backpack in deeper layers. They try giving deep layers a context-free value that represents the token’s original information (like a clean snapshot of the token), and they measure how it affects performance.
They run careful comparisons (ablation studies) along four simple choices:
- Replace or add: Should the context-free value replace the usual value, or be added to it?
- Fixed or learned mixing: If values are mixed, should the model learn how strongly to weigh each part?
- Where does “original info” come from: from the first layer’s value, or directly from the token embedding?
- Which layers to change: the last third of layers, every other layer, or all layers?
They train models at two sizes (about 135M and 780M parameters) under the same compute budget (so comparisons are fair), and they evaluate on held-out data and a set of 21 benchmarks.
Bank of Values (BoV)
After finding that deep layers mainly want context-free values, they propose BoV:
- In the last third of layers, don’t compute values from the residual stream.
- Instead, use a per-layer lookup table that stores a value vector for each token in the vocabulary.
- When a token appears, the model just “looks up” its value vector from the table and scales it by a learnable number.
This is like giving the model a dictionary of “message contents” for each token that deeper layers can pull from instantly, instead of recomputing them every time from the current context.
What did they find?
- Deep layers prefer context-free values. When the authors mixed context-free and context-dependent values, the model learned to rely much more on the context-free part. In many cases, adding the context-dependent value back hardly helped.
- Only deep layers benefit from this change. Replacing values with context-free ones in shallow layers hurt performance, but doing it in the last third helped.
- Layer-specific is better than shared. A fresh value mapping per deep layer works better than reusing the same early-layer value everywhere.
- Bank of Values improves quality and efficiency:
- It reduces validation loss (a measure of how well the model predicts text) for both 135M and 780M models.
- At 780M, it also improves the average score across 21 benchmarks compared to a standard transformer with the same compute budget.
- It needs fewer FLOPs per token (less computation) and can reduce memory use during long-context inference, because it no longer has to store a big “value cache” for those deep layers—just the token IDs to look up.
- Compared to other methods that add original token info to values, BoV matches or beats them while being simpler and cheaper.
Why this matters: It challenges the common assumption that values must be context-dependent in deep layers. Keeping values “clean” helps the model keep stable token information as it goes deeper, which can be useful for tasks like reading comprehension and symbolic reasoning.
What’s the potential impact?
- Faster and lighter long-context inference: Because value vectors are looked up, not recomputed and cached, models can serve longer sequences with less memory.
- Simpler attention in deep layers: Designers can drop part of the attention computation, potentially speeding up large models without losing accuracy.
- A new design knob for LLMs: Instead of always feeding context into every part of attention, we can choose where context matters. This could combine nicely with other efficiency tricks (like better attention kernels or cache compression).
- Better understanding of transformers: It suggests that in deep layers, queries and keys handle the “who-to-listen-to” context work, while values can safely carry the original token content, making the whole system more stable.
In short, this paper shows that deep transformer layers don’t always need context-mixed values. By storing token-specific value vectors in a lookup “bank,” models can be both a bit smarter and more efficient.
Knowledge Gaps
Knowledge Gaps, Limitations, and Open Questions
Below is a concrete list of what remains missing, uncertain, or unexplored in the paper, framed as actionable gaps for future work.
Methodology and Causal Inference
- Isolate BoV’s quality gains from increased token exposure: under FLOP-controlled training, BoV processes more tokens than the baseline; run controlled studies with equal tokens (and equal optimization steps) to disentangle architectural gains from data-volume effects.
- Parameter-count parity: quantify total parameter changes when replacing with per-layer tables (|V|×d per targeted layer) and evaluate whether quality gains persist under parameter-matched baselines.
- Training stability and optimization sensitivity: assess how BoV’s performance depends on optimizer choice, learning-rate schedules (e.g., the large AdamW LR for ), weight decay, and initialization (beyond the provided warm start from ).
- Rare-token learning dynamics: measure how sparsely updated rows in (for infrequent tokens) affect convergence, generalization, and downstream performance; investigate targeted sampling or adaptive learning rates to mitigate undertrained rows.
- Fairness of layer targeting: explore finer-grained depth schedules (e.g., last quarter, half, or learned per-layer gating) to verify that “last third” is near-optimal across scales and datasets.
- Head-wise design and scaling: evaluate per-head or per-group value tables (instead of a single d-dimensional table) and per-head coefficients vs. the current per-layer scalar to test whether finer control yields better performance–efficiency trade-offs.
- Factorization and compression of : compare dense per-token tables to low-rank/factorized, hash-based, or LoRA-style parameterizations to reduce memory while maintaining quality.
Empirical Coverage and External Validity
- Scaling beyond 780M: verify whether gains persist (or grow) at multi-billion parameter scales, with larger and more diverse pretraining corpora and longer training runs.
- Task coverage gaps: extend evaluations to CoT-heavy reasoning, long multi-step math (e.g., GSM8K, MATH), multi-hop QA, tool-use, RAG, and long-context needle-in-a-haystack tasks to test whether context-free deep values ever harm context-intensive computation.
- Cross-domain and multilingual robustness: test BoV on code, multi-lingual corpora, and morphologically rich languages (where token identity and subword composition differ) to assess sensitivity to tokenizer and domain.
- Instruction tuning and post-training: evaluate how BoV interacts with SFT, DPO/RLHF, and domain adaptation; study whether needs special learning rates or freezing strategies during fine-tuning.
- Robustness to tokenizer changes and vocabulary extension: analyze how to add new tokens post hoc (e.g., domain-specific tokens) and how quickly their corresponding rows learn; assess degradation when switching tokenizers.
- Generalization to OOV/rare patterns: probe whether token-specific value tables overfit to token identity distributions, degrading compositional generalization or robustness to novel token sequences.
Systems, Efficiency, and Deployment
- Wall-clock latency and throughput: report end-to-end speed on GPUs/TPUs/CPUs for training and inference, including the cost of gathers, host-to-device prefetch of sparse rows, and interaction with batching, KV cache layout, and paged attention.
- Memory trade-offs in realistic settings: provide absolute memory footprints across typical vocabularies (e.g., 32–200k), hidden sizes, and context lengths (4k–128k), including the breakeven point vs. standard V caches on real hardware.
- Prefetching and bandwidth constraints: quantify PCIe/NVLink bandwidth requirements and cache locality for on-demand fetches; evaluate sensitivity to host-memory latency and NUMA effects.
- Compatibility with KV-cache optimization: study composition with KV quantization, head sharing (MQA/GQA), layer/state pruning, and speculative decoding; verify that BoV retains benefits when combined with state-of-the-art efficient-attention stacks.
- Serving at scale: assess memory fragmentation and contention when multiple models or multi-tenant workloads share host memory for ; explore sharding and caching strategies for distributed inference.
Architectural Generality and Extensions
- Applicability beyond standard Transformers: test BoV with MoE architectures, linear/Delta/Mamba-style attention variants, alternative positional encodings (RoPE, ALiBi), and different normalization schemes (e.g., Pre-LN vs. RMSNorm).
- Multi-modal tokens: evaluate whether per-token value tables remain effective when tokens represent audio frames, image patches, or other modalities with different identity semantics.
- Bidirectional or masked objectives: assess whether BoV’s benefits transfer to BERT-style, prefix-LM, or sequence-to-sequence settings where context flows differently.
- Dynamic or context-aware value mixing: investigate learned gates that softly switch between context-dependent and context-free as a function of depth, head, or token type (e.g., function words vs. content words).
Mechanistic and Theoretical Understanding
- Why deep layers prefer context-free values: develop mechanistic analyses (e.g., patching, probing, or attribution) to characterize what features encode and how queries/keys leverage them; analyze whether deep layers use values primarily as identity anchors.
- Formal expressivity and capacity: provide theoretical guarantees or bounds comparing the expressivity of BoV vs. and the conditions under which replacing does or does not reduce model capacity.
- Interaction with over-smoothing: quantify whether BoV counteracts depth-wise over-smoothing and how it affects representational diversity across layers and heads.
- Gradient flow and credit assignment: analyze how replacing with changes gradient pathways and whether it alters training dynamics (e.g., vanishing/exploding gradients, layer-wise learning speeds).
Safety, Bias, and Privacy
- Memorization and bias risks: assess whether per-token value tables amplify token-level biases or encourage memorization patterns; benchmark on privacy and safety evaluations.
- Data leakage via token-specific parameters: study whether overfits frequent tokens in ways that leak training distribution artifacts more than standard .
Implementation Details Needing Clarification
- Exact parameter and memory accounting: report the sizes of (per layer), parameter deltas vs. baseline, and the corresponding training/inference memory footprints.
- Choice of vocabulary sizes and hidden dimensions: provide concrete numbers used in experiments to interpret the feasibility of per-layer tables and to reproduce breakeven analyses.
- Initialization alternatives: evaluate performance sensitivity to different initializations of (random, tied to embeddings, or from early checkpoints) to establish best practices.
Practical Applications
Immediate Applications
Below are actionable use cases that can be deployed now, based on the paper’s finding that deep-layer value vectors can be made context-free and stored as per-token lookup tables (Bank of Values, BoV), improving quality and reducing compute and memory for long contexts.
- Long-context LLM serving with reduced V-cache memory
- Sector: Software/Cloud, Enterprise AI, Education, Healthcare, Finance, Legal
- What: Replace the value projection in the last third of layers with BoV value tables and drop deep-layer V caches. This lowers per-request memory growth with context length, enabling longer contexts or higher concurrency on the same GPUs.
- Tools/products/workflows: “BoV-aware” attention kernels in vLLM/TensorRT-LLM/TGI; integration with PagedAttention and FlashAttention; inference servers that only cache indices for deep layers and gather values on demand; host-memory offloading + prefetch for value tables.
- Assumptions/dependencies: Memory savings kick in chiefly when context length T exceeds vocabulary size |V|; for short contexts, standard attention may be more memory-efficient. Requires minimal engine changes (index caching + gather ops) and availability of efficient gather kernels.
- Cost-optimized long-context RAG and document understanding
- Sector: Enterprise search, Legal, Finance, Healthcare, Education
- What: BoV lets RAG systems handle larger documents (briefings, contracts, clinical notes, filings) without blowing up VRAM; increases retrieval window and reduces latency at scale.
- Tools/products/workflows: RAG pipelines that set BoV-only V caches for deep layers; “KV-light” profiles where only keys are cached deeply; throughput-oriented batching for multi-user doc analytics.
- Assumptions/dependencies: Tokenizer vocabulary size affects the breakeven point; requires FT or training with BoV to realize quality benefits.
- On-device and edge LLMs with longer context
- Sector: Consumer devices, Automotive, IoT, Enterprise edge
- What: Deploy 1–3B parameter models with greater context capacity on limited VRAM/DRAM by cutting deep-layer V caches; enable offline summarization and personal data assistants with bigger working memory.
- Tools/products/workflows: Mobile runtimes (Core ML/NNAPI/Metal/Vulkan) with BoV; partial offload of value tables to system memory and page-in relevant rows per token; battery-aware scheduling since BoV reduces FLOPs per token.
- Assumptions/dependencies: Needs BoV-trained weights or a conversion+fine-tuning recipe; bandwidth to stream table rows must not bottleneck.
- Fine-tuning existing models via BoV “surgery”
- Sector: Enterprise AI, Open-source ML
- What: Convert a base model to BoV by initializing per-layer value tables with x0·Wv for vocabulary tokens, switch deep layers to lookup values, and fine-tune to recover/boost performance.
- Tools/products/workflows: Automated conversion scripts; FT recipes with AdamW for value tables and existing optimizers for matrices; PEFT/LoRA compatible heads on non-BoV layers.
- Assumptions/dependencies: Some degradation may appear on tasks that benefit from deep-layer context-dependent values; requires FT budget to re-equilibrate.
- Throughput increase under fixed FLOPs budgets in pretraining/fine-tuning
- Sector: Model training (industry/academia)
- What: Lower FLOPs/token lets you see more tokens for the same compute, improving validation loss at fixed budget.
- Tools/products/workflows: Training pipelines that toggle BoV in the last third of layers; compute-planning dashboards that shift batch size or steps to exploit BoV savings.
- Assumptions/dependencies: Verified at 135M and 780M scales; expected but not yet proven at 7B+.
- Complementary to existing efficiency stacks
- Sector: Systems/Infrastructure
- What: Combine BoV with GQA/MQA, KV quantization, paged caching, and FlashAttention to stack gains; reduce only deep-layer V cache while preserving the rest of the stack.
- Tools/products/workflows: “BoV + GQA + KVQ + PagedAttention” presets in serving libraries; kernel-level fusions that include value gathers.
- Assumptions/dependencies: Correctness and determinism with fused kernels; minor engineering to ensure gather ops are IO-efficient.
- Improved interpretability and diagnostics for value-path behavior
- Sector: Academia, Safety/Alignment
- What: Analyze per-token, per-layer value tables to understand how models encode token-local information in deep layers; study the diminishing role of residual-stream-derived values.
- Tools/products/workflows: Probing suites that visualize per-token E_v rows; ablations comparing additive vs substitutive value compositions.
- Assumptions/dependencies: Requires access to weights and agreement on probing protocols.
- Domain-specialized long-document copilots
- Sector: Software engineering, Legaltech, Fintech, Healthcare IT
- What: Code assistants that read entire repositories, legal copilots that parse long contracts, financial copilots that process earnings calls and lengthy 10-Ks, clinical assistants that review long patient histories—all on fewer GPUs or with longer contexts.
- Tools/products/workflows: BoV-enabled copilots with 128k–1M token windows; memory-constrained deployment SKUs for mid-tier GPUs.
- Assumptions/dependencies: Tokenizers with |V| ≈ 30k–150k; contexts beyond that to gain memory savings; validated quality for target tasks.
- Academic baselines and leaderboards for long-context tasks
- Sector: Academia
- What: Incorporate BoV models as long-context baselines in benchmarks (e.g., long QA, code, symbolic tasks) to test generalization and memory scaling.
- Tools/products/workflows: Evaluation harnesses that log memory/FLOPs alongside accuracy; ablations on which fraction of layers use BoV.
- Assumptions/dependencies: Reproducible training configs and public checkpoints.
Long-Term Applications
The following use cases are promising but need further research, scaling, or engineering before widespread deployment.
- Scaling BoV to 7B–70B+ models and multimodal stacks
- Sector: Foundation models, Vision-LLMs, Speech
- What: Apply layer-specific value tables to larger models and to non-text tokens (vision patches, audio frames); reduce KV footprint for multimodal long-context reasoning.
- Tools/products/workflows: Mixed-precision value tables (bf16/fp8), sharded host-memory stores with prefetch; multimodal token-specific E_v for different modalities.
- Assumptions/dependencies: Unproven quality at scale; careful memory accounting (E_v per layer can be large for big d and |V|); high-throughput gather kernels across modalities.
- Personalization via user- or domain-adapted value tables
- Sector: Consumer AI, Enterprise verticals (healthcare, law, finance)
- What: Maintain small delta tables that specialize deep-layer values for a user or domain, enabling private adaptive memory without changing the core model.
- Tools/products/workflows: PEFT-like adapters that swap or blend E_v layers; secure on-device storage for personalized tables; session-level blending.
- Assumptions/dependencies: Avoiding catastrophic interference; managing table growth; privacy controls and governance.
- Policy and sustainability: energy/cost standards for long-context AI
- Sector: Public policy, Sustainability, Procurement
- What: Establish reporting standards that count KV-cache footprint and FLOPs/token; incentivize architectures (like BoV) that reduce energy per token at long contexts in public sector deployments.
- Tools/products/workflows: Green-AI procurement checklists; energy labeling for LLM services with long-context modes.
- Assumptions/dependencies: Consensus metrics; transparent reporting by vendors; validation on large-scale production workloads.
- Hardware/software co-design for table-centric attention
- Sector: Semiconductors, Systems software
- What: NIC/GPU co-design that streams only needed E_v rows; SRAM-friendly gather engines; compiler passes that fuse attention with sparse parameter lookups.
- Tools/products/workflows: Triton/CUDA kernels optimizing O(T·d) gathers; memory-mapped E_v with hardware prefetch; cache hint APIs.
- Assumptions/dependencies: Vendor support; amortizing random-access penalties; ensuring that gather bandwidth does not create a new bottleneck.
- Adaptive depth strategies: dynamic BoV targeting
- Sector: Research, Production inference
- What: Route tokens or sequences to use BoV in a variable fraction of deep layers depending on context length, latency budgets, or task type.
- Tools/products/workflows: Controllers that toggle BoV per request; per-token gates that revert to residual-stream values in rare contexts needing strong cross-token value dependence.
- Assumptions/dependencies: Stable training/inference with dynamic depth; correctness and latency predictability.
- Extensions beyond values: token-identity-informed keys/queries
- Sector: Research
- What: Investigate selective, context-free components for K/Q in deep layers, or mixture-of-values (MoVE) variants; explore theory of when residual-stream dependence is essential.
- Tools/products/workflows: Ablations on K/Q substitutions; hybrid MoE/BoV designs; theoretical analyses of expressivity and optimization.
- Assumptions/dependencies: Risk of quality loss if K/Q lose context; careful head-wise design.
- Safety and controllability via value-path constraints
- Sector: Safety/Alignment, Regulated industries
- What: Use BoV’s deterministic, token-specific deep values to enforce constraints (e.g., lexical control, style, domain restrictions) while leaving context integration to K/Q.
- Tools/products/workflows: Guardrail layers that clamp or scale E_v for sensitive tokens; compliance-oriented “value palettes.”
- Assumptions/dependencies: Demonstrating no harmful regressions on generalization; governance over who can modify tables.
- Agentic systems with longer episodic memory at fixed cost
- Sector: Robotics/Embodied AI, Tool-use agents, Ops automation
- What: Long-horizon planning and chain-of-thought logs that remain in-context more cheaply; improves temporal credit assignment and retrospection in agents.
- Tools/products/workflows: Agent frameworks that enable 256k–1M contexts with BoV; episodic buffers that exploit deep-layer V-cache elimination.
- Assumptions/dependencies: Validation that BoV preserves performance on highly context-dependent tasks; careful K/Q design to keep cross-token reasoning strong.
- Curriculum and education tools supporting book-length contexts
- Sector: Education
- What: Tutors capable of holding entire textbooks/course notes in-context for dialogic learning on commodity GPUs.
- Tools/products/workflows: LMS plugins using BoV-enabled backends; batch serving for classrooms with limited hardware.
- Assumptions/dependencies: Real-world trials on pedagogy effectiveness; content licensing and privacy.
Cross-cutting assumptions and dependencies
- Breakeven memory depends on context length and vocabulary size: BoV saves deep-layer V-cache memory primarily when T > |V| (typical |V| ≈ 30k–150k). Below that, memory can rise unless tables are offloaded and prefetched efficiently.
- Quality validated at 135M and 780M; larger models and broader benchmarks remain to be proven.
- Conversion of existing models requires fine-tuning after replacing deep-layer values with lookup tables; zero-shot retrofit may degrade some tasks.
- Engineering readiness: requires gather-optimized kernels, index-only caching, and integration with serving/training frameworks; table size per layer scales with hidden size and vocabulary.
- Task sensitivity: Gains are strongest for tasks relying less on deep context-dependent values (e.g., reading comprehension, symbolic tasks); some commonsense tasks may see smaller gains or require hybrid/additive designs.
Glossary
Below is an alphabetical list of advanced domain-specific terms from the paper, each with a brief definition and a verbatim usage example.
- Ablation: An experimental procedure that systematically removes or varies components to assess their impact. "Through systematic ablations on the key design choices for such context-free value vectors, we propose Bank of Values (BoV), a new way of computing value vectors in attention"
- Additive variant: A design where a new component is added to the baseline output rather than replacing it. "Fixing the coefficients for both components in the additive variants at 0.5 (rows~\ref{row:v1-add-half} and~\ref{row:x0-add-half}) increases the validation loss"
- AdamW: An optimization algorithm that decouples weight decay from the gradient update. "and the AdamW optimizer for the remaining parameters, following nanochat's standard practices."
- Aggregate CORE score: A single metric computed as the unweighted mean of centered accuracies across the DCLM CORE benchmarks. "and define the aggregate CORE score as the unweighted mean of the 21 centered accuracies."
- Bank of Values (BoV): An attention variant that replaces computed value vectors with token-indexed lookups from a learned per-layer table. "We therefore propose Bank of Values (BoV), which replaces the standard value vector computation from the residual stream with a static lookup in a dedicated value vector table in each of the last third of layers."
- Bits per byte (BPB): A validation loss metric measuring entropy per byte of text. "This budget is cost-effective: its validation loss, measured in bits per byte (BPB), is only 0.06 BPB higher than that of training on 40B tokens."
- Breakeven length: The context length at which a new method’s memory cost equals the baseline; beyond it, the new method saves memory. "As Eq.~\ref{eq:kvsave} shows, standard attention is more memory-efficient at shorter contexts, but beyond the breakeven length , BoV saves memory"
- Centered accuracy: Accuracy adjusted relative to random-guessing or majority-class baselines. "Following DCLM, we report a centered accuracy for each task, "
- ClimbMix dataset: A pretraining corpus used for validation in the study. "on a held-out split of roughly 41.9M tokens from the ClimbMix dataset"
- Context-dependent value vector: A value vector computed from the residual stream that incorporates information from other tokens. "it takes the residual stream as input and thereby produces context-dependent query, key, and value vectors."
- Context-free value vector: A value vector that depends only on the token identity (and parameters), not on surrounding context. "when deeper layers learn only a context-free value vector to preserve the original token information"
- Context length: The number of tokens in the model’s current context window. "where is the number of layers, the context length, the hidden dimension"
- Decode steps: Sequential inference steps in autoregressive generation where past states are reused or cached. "nor cached for reuse in subsequent decode steps."
- DCLM CORE: A standardized benchmark suite used for evaluating LLMs across diverse tasks. "the average score across the 21 DCLM CORE benchmarks"
- FLOP-controlled setting: An experimental protocol that fixes total floating-point operations to compare methods fairly. "In a FLOP-controlled setting, BoV lowers validation loss at both scales"
- FLOPs per token: The average number of floating-point operations required to process one token. "BoV matches the top-performing variant and surpasses the rest, all while using less memory and fewer FLOPs per token."
- Held-out split: A partition of the dataset excluded from training and used solely for evaluation. "on a held-out split of roughly 41.9M tokens"
- Initial token embedding: The normalized embedding of tokens before any contextual processing by transformer layers. "Its normalized form , which we call the initial token embedding"
- Learnable coefficient: A trainable scalar that scales components (e.g., value vectors) to adjust their contribution. "Scaling each looked-up value by an unbounded, learnable per-layer coefficient "
- Lookup table: A parameterized table mapping token IDs to pre-learned vectors, enabling O(1) retrieval during forward passes. "by learning a lookup table of token-specific value vectors for each of the last third of layers."
- Multi-head attention: An attention mechanism that splits computations into multiple parallel heads, each learning different projections. "multi-head attention lets each layer's value matrix project into a different low-rank subspace"
- Muon optimizer: An optimizer used for matrix parameters in the experiments. "We use the Muon optimizer for all matrix parameters with a learning rate of $0.02$"
- Residual connections: Skip connections that add a layer’s input to its output to facilitate training of deep networks. "Transformer blocks are joined by residual connections"
- Residual stream: The running, normalized sum of the initial embedding and all previous layer outputs; serves as the input to each layer. "the input to each layer of a deep network is the normalized sum of all previous layers' outputs, which we refer to as the residual stream."
- RMSNorm: Root Mean Square Layer Normalization, a normalization technique used before transformer blocks. "Its normalized form "
- Scaled dot-product attention: The attention mechanism computing softmax-normalized dot products between queries and keys, scaled by head dimension. "each head computes scaled dot-product attention"
- Sparse model parameters: Parameters with many zeros or that can be accessed sparsely, reducing compute/memory overhead during forward passes. "context-free value vectors can persist as FLOP-free, sparse model parameters"
- V cache (value cache): Cached value vectors stored during autoregressive inference to avoid recomputation. "The net V-cache memory saved across all layers is"
- Value embedding lookup: Retrieving per-token value vectors from a learned table to augment or replace computed values. "that adds a value-embedding lookup to the standard value vector"
- Value matrix: The learned projection matrix that maps inputs to value vectors in attention. "with the target layer's value matrix "
- Value vector: The vector written back to the residual stream after attention weighting; carries information to be propagated. "a context-free value vector is looked up by token id from that layer's value vector table "
- Value vector table: A per-layer parameter table storing value vectors for each token ID. "a context-free value vector is looked up by token id from that layer's value vector table "
Collections
Sign up for free to add this paper to one or more collections.