paper-with-me

홈 › Papers

LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding

2025-05-22 · Junlong Tong, Jinlan Fu, Zixuan Lin, Yingqi Fan, Anhao Zhao, Hui Su, Xiaoyu Shen

Large Language Models (LLMs) are primarily designed for batch processing. Existing methods for adapting LLMs to streaming rely either on expensive re-encoding or specialized architectures with limited scalability. This work identifies three key mismatches in adapting batch-oriented LLMs to streaming: (1) input-attention, (2) output-attention, and (3) position-ID mismatches. While it is commonly assumed that the latter two mismatches require frequent re-encoding, our analysis reveals that only the input-attention mismatch significantly impacts performance, indicating re-encoding outputs is largely unnecessary. To better understand this discrepancy with the common assumption, we provide the first comprehensive analysis of the impact of position encoding on LLMs in streaming, showing that preserving relative positions within source and target contexts is more critical than maintaining absolute order. Motivated by the above analysis, we introduce a group position encoding paradigm built on batch architectures to enhance consistency between streaming and batch modes. Extensive experiments on cross-lingual and cross-modal tasks demonstrate that our method outperforms existing approaches. Our method requires no architectural modifications, exhibits strong generalization in both streaming and batch modes. The code is available at repository https://github.com/EIT-NLP/StreamingLLM.

📄 PDF Abstract BibTeX arXiv:2505.16983

Code (1)

eit-nlp/streamingllm 공식 구현 pytorch

Tasks

Position

Similar Papers 제목 키워드 기반

Answer Fast: Accelerating BERT on the Tensor Streaming Processor

2022-06-22 · Ibrahim Ahmed, Sahil Parmar, Matthew Boyd, Michael Beidler 외

Transformers have become a predominant machine learning workload, they are not only the de-facto standard for natural language processing tasks, but they are also being deployed in other domains such as vision and speech…

Machine Translationspeech-recognitionSpeech Recognition

Distributed Stochastic Algorithms for High-rate Streaming Principal Component Analysis

2020-01-04 · Haroon Raja, Waheed U. Bajwa

This paper considers the problem of estimating the principal eigenvector of a covariance matrix from independent and identically distributed data samples in streaming settings. The streaming rate of data in many contempo…

Vocal Bursts Intensity Prediction

Memory-efficient training with streaming dimensionality reduction

2020-04-25 · Siyuan Huang, Brian D. Hoskins, Matthew W. Daniels, Mark D. Stiles 외

The movement of large quantities of data during the training of a Deep Neural Network presents immense challenges for machine learning workloads. To minimize this overhead, especially on the movement and calculation of g…

BIG-bench Machine LearningDimensionality Reduction

Towards Batch-to-Streaming Deep Reinforcement Learning for Continuous Control

2026-03-09 · Riccardo De Monte, Matteo Cederle, Gian Antonio Susto arxiv

State-of-the-art deep reinforcement learning (RL) methods have achieved remarkable performance in continuous control tasks, yet their computational complexity is often incompatible with the constraints of resource-limite…

Reinforcement LearningContinuous Control

Enhancing the Unified Streaming and Non-streaming Model with Contrastive Learning

2023-06-01 · Yuting Yang, Yuke Li, Binbin Du

The unified streaming and non-streaming speech recognition model has achieved great success due to its comprehensive capabilities. In this paper, we propose to improve the accuracy of the unified model by bridging the in…

Contrastive Learningspeech-recognitionSpeech Recognition