paper-with-me

홈 › Papers

Vcc: Scaling Transformers to 128K Tokens or More by Prioritizing Important Tokens

2023-05-07 · NeurIPS 2023 11

Transformers are central in modern natural language processing and computer vision applications. Despite recent works devoted to reducing the quadratic cost of such models (as a function of the sequence length), dealing with ultra long sequences (e.g., with more than 16K tokens) remains challenging. Applications such as answering questions based on a book or summarizing a scientific article are inefficient or infeasible. Here, we propose to significantly improve the efficiency of Transformers for ultra long sequences, by compressing the sequence into a much smaller representation at each layer. Specifically, by exploiting the fact that in many tasks, only a small subset of special tokens (we call VIP-tokens) are most relevant to the final prediction, we propose a VIP-token centric compression (VCC) scheme which selectively compresses the sequence based on their impact on approximating the representation of the VIP-tokens. Compared with competitive baselines, our algorithm is not only efficient (achieving more than $3\times$ efficiency gain compared to baselines on 4K and 16K lengths), but also offers competitive/better performance on a large number of tasks. Further, we show that our algorithm scales to 128K tokens (or more) while consistently offering accuracy improvement.

📄 PDF Abstract BibTeX arXiv:2305.04241

Code (0)

등록된 구현이 없습니다.

Tasks

16k4k

Similar Papers 제목 키워드 기반

Prioritizing Image-Related Tokens Enhances Vision-Language Pre-Training

2025-05-13 · Yangyi Chen, Hao Peng, Tong Zhang, Heng Ji

In standard large vision-language models (LVLMs) pre-training, the model typically maximizes the joint probability of the caption conditioned on the image via next-token prediction (NTP); however, since only a small subs…

HallucinationLarge Language Model

Seeing the Image: Prioritizing Visual Correlation by Contrastive Alignment

2024-05-28 · Xin Xiao, Bohong Wu, Jiacong Wang, Chunyuan Li 외

Existing image-text modality alignment in Vision Language Models (VLMs) treats each text token equally in an autoregressive manner. Despite being simple and effective, this method results in sub-optimal cross-modal align…

cross-modal alignment

DISC: DISC: Dynamic Decomposition Improves LLM Inference Scaling

2025-02-23 · Jonathan Light, Wei Cheng, Benjamin Riviere, Wu Yue 외

Inference scaling methods for large language models often work by breaking problems into steps or groups of tokens, then sampling and selecting the best next steps. However, these steps and their sizes are usually fixed …

Computational EfficiencyMathSentence

TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters

2024-10-30 · Haiyang Wang, Yue Fan, Muhammad Ferjad Naeem, Yongqin Xian 외

Transformers have become the predominant architecture in foundation models due to their excellent performance across various domains. However, the substantial cost of scaling these models remains a significant concern. T…

model

Critical attention scaling in long-context transformers

2025-10-07 · Shi Chen, Zhengjiang Lin, Yury Polyanskiy, Philippe Rigollet arxiv

As large language models scale to longer contexts, attention layers suffer from a fundamental pathology: attention scores collapse toward uniformity as context length $n$ increases, causing tokens to cluster excessively,…