Learn Before
Attention Formula in Compressive Transformer
In a multi-memory architecture like the Compressive Transformer, the attention function operates over a unified memory space. To calculate the attention for a specific query , the standard query-key-value mechanism is applied to the concatenation of the local memory () and the compressive memory (). This relationship is mathematically expressed as:

0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Attention Formula in Compressive Transformer
Segment-based Operation in Compressive Transformer
FIFO Memory Update in Compressive Transformer
Differential Compression in Compressive Transformer Memory
A language model is designed with two distinct memory components for its attention mechanism: a fixed-size memory for recent, high-fidelity context and a separate fixed-size memory for a compressed representation of older context. What is the primary architectural advantage of this dual-memory approach for processing very long sequences?
Memory Dynamics in a Dual-Cache System
A transformer model is designed to handle long sequences using a dual-memory system: a fixed-size local memory for recent, uncompressed context and a fixed-size compressed memory for older context. Arrange the following steps in the correct chronological order to describe how this system processes and archives a new segment of information.
Your team is documenting the memory subsystem of a...
You are reviewing two candidate memory designs for...
You’re deploying an internal LLM assistant that mu...
You’re designing an internal LLM feature that moni...
Post-Incident Review: Memory Design for Long-Running Customer Support Chats
Diagnosing Long-Range Failures in a Segment-Processed LLM with Dual Memory
Choosing a Memory Architecture for Long-Context Enterprise Summarization
Postmortem: Long-Document QA Failures Under Fixed-Window vs Compressive Memory
Selecting and Justifying a Long-Context Memory Design for a Regulated Audit Assistant
Incident Triage: Long-Running Agent Workflow with Windowed vs Compressive Memory
Learn After
Evaluating a Dual-Memory Attention Mechanism
A team is developing a language model for processing lengthy legal documents. They use a dual-memory architecture: a 'local memory' that stores the most recent 1024 tokens and a 'compressive memory' that stores a summarized representation of older text. To allow a query (representing a new token) to access information from both recent and long-term history, how should the attention mechanism be structured?
Functional Role of Memory Concatenation in Attention