High-performance neural models—whether for translation, speech recognition, or video analysis—are typically "offline" by design. They wait for a complete input (a full sentence or a whole video clip) before generating an output. While this maximizes accuracy by providing the model with total context, it introduces a "latency wall" that makes these models unusable for real-time applications like live subtitling or interactive AI.
The emerging research direction of onlinization focuses on a powerful realization: we do not need to build specialized streaming architectures from scratch. Instead, we can adapt robust, pre-trained offline models to operate in simultaneous mode. By decoupling the model’s knowledge from its decision-making schedule, researchers are achieving near-offline quality with real-time speeds.
The Latency-Quality Trade-off
In simultaneous tasks, the system faces a constant dilemma: Read or Write? If the system waits for more input (Read), the translation quality improves because it has more context. If it generates output immediately (Write), the latency is lower, but the risk of error—or "hallucination" due to missing information—increases.
Traditionally, researchers tried to solve this by training specialized "streaming" models. However, as Sara Papi, Matteo Negri, and Marco Turchi argue in Attention as a guide for Simultaneous Speech Translation, these specialized models often underperform. They lack the deep linguistic representations found in large-scale offline models, which can show gains of up to 7 BLEU points over their streaming-only counterparts.
Decoupling Policy from Representation
The core mechanism of onlinization is the Adaptive Policy. Instead of baking the "streaming" behavior into the model's weights, researchers treat the offline model as a "knowledge engine" and wrap it in a controller that manages the input buffer.
Attention-Guided Decisions
One of the most effective ways to decide when to "Write" is to look at the model's internal state. In AlignAtt: Using Attention-based Audio-Translation Alignments as a Guide for Simultaneous Speech Translation, Sara Papi and colleagues demonstrate that a model's attention patterns reveal its confidence. If the attention mechanism is focused heavily on the available audio frames, the policy knows it has enough context to translate. This "zero-shot" inference policy allows models like SeamlessM4T to be repurposed for simultaneous tasks without any retraining SimulSeamless: FBK at IWSLT 2024 Simultaneous Speech Translation.
Incremental Search
Standard beam search assumes the input is static. To make it work for streaming, Peter Polák and Ondřej Bojar introduced Incremental Blockwise Beam Search (IBWBS) Incremental Blockwise Beam Search for Simultaneous Speech Translation with Controllable Quality-Latency Tradeoff. This algorithm re-computes states as new chunks arrive but uses stability-based stopping rules to ensure that once a word is "committed" to the screen, it doesn't change—a critical requirement for user experience.
Bridging the Mismatch via Lightweight Adaptation
While some models can be used "as-is," there is often a mismatch between how a model was trained (on full sequences) and how it is used (on partial prefixes). Researchers use three primary strategies to bridge this gap:
- Knowledge Distillation: Sashi Novitasari and Satoshi Nakamura 0001 proposed Attention-Transfer (AT-ISR), where a "student" model is trained to process audio in chunks while mimicking the attention alignments of a "teacher" offline model Sequence-to-Sequence Learning via Attention Transfer for Incremental Speech Recognition.
- Prefix Fine-Tuning: Instead of full retraining, models can be fine-tuned on "self-translatable prefix pairs." This teaches the model to handle incomplete sequences while retaining its core linguistic knowledge Data-Driven Adaptive Simultaneous Machine Translation.
- Positional Re-encoding: For Large Language Models (LLMs), the mismatch is often positional. Jinlan Fu and colleagues introduced Group Position Encoding (GPE), which maintains separate positional tracks for input and output groups, allowing LLMs to act as streaming processors with an 11x speedup over traditional re-encoding LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding.
Beyond Translation: Video and Diarization
The principles of onlinization extend beyond text. In video classification, the PrAViC framework by Magdalena Tredowicz transforms offline 3D models into online classifiers by adding a probabilistic "early exit" mechanism PrAViC: Probabilistic Adaptation Framework for Real-Time Video Classification. Similarly, in speaker diarization, Yawen Xue and Shota Horiguchi showed that wrapping offline models in a buffer-based inference algorithm allows them to handle overlapping speech in real-time without specialized online training Online Streaming End-to-End Neural Diarization Handling Overlapping Speech and Flexible Numbers of Speakers.
Why This Works
The success of these methods suggests that incremental processing is an inherent capability of modern attention-based architectures. As Kyunghyun Cho and Masha Esipova first noted, standard NMT models can jointly handle segmentation and translation if the decoding strategy is modified Can neural machine translation do simultaneous translation?.
By treating the "offline" nature of a model as a data-access constraint rather than a structural limitation, the field has moved toward a more efficient paradigm: build the smartest model possible in the lab, then teach it to be fast in the real world.