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

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) inputattention, (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.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.1207
Primary Topic
DNA and Biological Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Anhao Zhao, Yiqun Fan, Jianyu Fu, Zixuan Lin et al.
1 links
DNA and Biological Computing
article

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

Anhao Zhao, Yiqun Fan, Jianyu Fu, Zixuan Lin, Hui Su, Xiaoyu Shen, Junlong Tong
article en

Abstract

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) inputattention, (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.

Openalex Percentile: Top 82%
DNA and Biological Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding — Anhao Zhao, Yiqun Fan, et al. · (2025) | TGRS Research Map | TGRS