כתבה
arXiv cs.LG ·
טרנספורמרים עם זיכרון מנודב חסר הגבלה
Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memory
פותח טכניקה חדשה לטרנספורמרים, Key-Value Means, המאפשרת זיכרון מנודב חסר הגבלה. השיטה משלבת יתרונות של טרנספורמרים ו-RNN. הקוד זמין ב-GitHub.
תקציר מקורי באנגליתarXiv:2605.09877v4 Announce Type: replace Abstract: Recall presents a difficult choice: transformers have a linearly growing memory that slows each successive token, while linear RNNs typically have fixed costs but limited recall. We present Key-Value Means ("KVM"), a novel block-recurrence for attention that can accommodate either fixed-size or growing state. Equipping a strong transformer baseline with fixed-size KVM attention layers yields a strong $O(N)$ chunked RNN, while adding only an insignificant number of new parameters. We train a transformer with a growable KVM cache and show it performs competitively on long-context tests with only subquadratic prefill time and sublinear state growth. KVM is implementable with standard operations and without custom kernels, and supports chunk-
קרא במקור המקורי
arxiv.org
פתח כתבה מקורית