Learn Before
Functional Role of Memory Concatenation in Attention
In a dual-memory model, the attention mechanism calculates its output by first concatenating the local memory and the compressive memory to form a single key-value set. Explain the primary functional advantage of this concatenation approach for a query token, as opposed to calculating attention over each memory separately and then combining the results.
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
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
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