Formula

Set of Sequential Key-Value Pairs

This represents a collection of key-value vector pairs for all positions up to and including index ii within a sequence. The notation {(Ki[1],Vi[1]),,(Ki[τ],Vi[τ])}\left\{ \left(\mathbf{K}^{[1]}_{\leq i}, \mathbf{V}^{[1]}_{\leq i}\right), \dots, \left(\mathbf{K}^{[\tau]}_{\leq i}, \mathbf{V}^{[\tau]}_{\leq i}\right) \right\} illustrates this set, where τ\tau is the total length of the sequence. This structure is fundamental in attention mechanisms, particularly in autoregressive decoding, where it is used to cache past key-value states for efficient computation of subsequent steps.

Image 0

0

1

Updated 2026-07-03

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related