TIDE:每一层都知晓上下文中的令牌
TIDE: Every Layer Knows the Token Beneath the Context

TIDE 通过嵌入内存解决现代大语言模型中令牌索引仅注入一次的问题,缓解稀有令牌问题并提升性能。该模型包含 K 个独立内存块,将令牌索引映射为语义向量,通过深度条件 softmax 路由器注入每一层,并在多个语言建模和下游任务中验证了其优势。
AuthorsAjay Jaiswal, Lauren Hannah, Han-Byul Kim, Duc Hoang, Mehrdad Farajtabar, Minsik Cho
We revisit a universally accepted but under-examined design choice in every modern LLM: a token index is looked up once at the input embedding layer and then permanently discarded. This single-injection assumption induces two structural failures: (i) the Rare Token Problem, where a Zipf-type distribution of vocabulary causes rare-token embeddings are chronically under-trained due to receiving a fraction of the cumulative gradient signal compared to common tokens; and (ii) the Contextual Collapse Problem, where limited parameters models map distributionally similar tokens to indistinguishable hidden states. As an attempt toaddress both, we propose TIDE, which augments the standard transformer with EMBEDDINGMEMORY: an ensemble of K independent MEMORYBLOCKs that map token indices to context-free semantic vectors, computed once and injected into every layer through a depth-conditioned softmax router with a learnable null bank. We theoretically and empirically establish the benefits of TIDE in addressing the issues associated with single-token identity injection as well as _improve performance _across multiple language modeling and downstream tasks.
Related readings and updates.
Visual tokenizers map high-dimensional raw pixels into a compressed representation for downstream modeling. Beyond compression, tokenizers dictate what information is preserved and how it is organized. A de facto standard approach to video tokenization is to represent a video as a spatiotemporal 3D grid of tokens, each capturing the corresponding local information in the original signal. This requires the downstream model that consumes the…
This work was done in collaboration with Swiss Federal Institute of Technology Lausanne (EPFL).
Image tokenization has enabled major advances in autoregressive image generation by providing compressed, discrete representations that are more efficient to process than raw pixels. While traditional approaches use 2D grid tokenization, recent methods like TiTok have shown that 1D tokenization can achieve high generation quality by eliminating grid…
来源: Apple Machine Learning Research · machinelearning.apple.com