Bidirectional Supervision for Unidirectional Sequence Models

This direction is merged into another direction: unidirectional context limitation (unidirectional context constraint). Its last version stays readable and citable here.

Version 1 of 119 papers27 conceptsfrozen 2026-10-04

Standard autoregressive models are inherently myopic. Whether translating a sentence or transcribing speech, these models generate text from left to right, one token at a time. At any given step, the model is blind to the "future"—the words that haven't been spoken or written yet. This lack of foresight often leads to cascading errors, where an early ambiguous choice forces the model into a structurally incoherent conclusion.

A growing body of research addresses this by distilling the "future-seeing" capabilities of bidirectional models into standard unidirectional ones. The goal is to give a causal model the intuition of a global context without sacrificing the efficiency of one-way generation.

The Problem of Local Ambiguity

In tasks like Automatic Speech Recognition (ASR), phonetic ambiguity is common. A sound might be interpreted as "write" or "right" depending on the end of the sentence. As Ye Bai and colleagues point out in Integrating Knowledge into End-to-End Speech Recognition from External Text-Only Data, a standard model must commit to a choice before it hears the clarifying context.

Similarly, in Neural Machine Translation (NMT), the best word choice at the start of a sentence often depends on the grammatical structure required by the end of the sentence. Jinsong Su et al. argue in Asynchronous Bidirectional Decoding for Neural Machine Translation that ignoring this future target-side context prevents models from forming a holistic view of the sequence.

Distilling Future Context

The most common solution is to use a "teacher" model that has access to the full sequence (past and future) to guide a "student" model that only sees the past.

Hayato Futami and his team demonstrated this in Distilling the Knowledge of BERT for Sequence-to-Sequence ASR. By using BERT—a model trained to look both ways—as a teacher, they provided the ASR student with "soft targets." These targets represent the probability distribution of tokens given the entire sentence. By learning to mimic these distributions, the student model implicitly learns to anticipate future linguistic constraints, even though it cannot see them directly during inference.

This concept is pushed further by Divyat Mahajan et al. in Beyond Multi-Token Prediction: Pretraining LLMs with Future Summaries. Instead of just predicting the next token, they train a forward-moving model to align its internal states with a reverse-moving model. This forces the forward model to represent a "summary of the future," significantly improving its ability to plan and reason in complex tasks like coding.

Architectural Variations of Foresight

Researchers have explored several ways to integrate this look-ahead capability:

  1. Asynchronous Decoding: Jinsong Su proposed a dual-attention mechanism where a backward decoder first generates "future context states" in a right-to-left pass. The forward decoder then attends to these states, effectively "reading the future" to inform its current predictions.
  2. Two-Pass Refinement: In image captioning, Zeliang Song et al. introduced Context-Aware Auxiliary Guidance (CAAG). This method uses a rough preliminary draft of the full sentence to provide a global context for a second, more precise generation pass.
  3. Cross-Directional Distillation: The NVIDIA NeMo team showed that distilling knowledge from right-to-left models into left-to-right models provides a distinct linguistic perspective that standard data augmentation (like backtranslation) misses.

Why It Works: Global Structure as a Prior

The intuition behind these methods is that language is not just a sequence of tokens, but a hierarchical structure. When we distill a bidirectional model like BERT or a "Causal clOze completeR" (as proposed by Ye Bai) into a causal one, we are essentially teaching the model a "global prior."

As Yimeng Zhuang and Mei Tu explain in Pretrained Bidirectional Distillation for Machine Translation, this distillation provides the decoder with a global understanding of sentence structure. This helps refine local token predictions because the model is no longer just guessing the next word; it is selecting the word that best fits an anticipated global pattern.

By the time the model reaches inference, it has "baked in" the benefits of bidirectional context. It remains a fast, unidirectional generator, but it operates with the structural confidence of a model that has already seen the end of the sentence.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_bidirectional_supervision_for_unidirecti_644c24ae,
  title = {Bidirectional Supervision for Unidirectional Sequence Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/bidirectional-supervision-for-unidirectional-sequence-models/rdr_644c24aeea924c618e003a9b026be618},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_bidirectional_supervision_for_unidirecti_644c24ae_v1,
  title = {Bidirectional Supervision for Unidirectional Sequence Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/bidirectional-supervision-for-unidirectional-sequence-models/rdr_644c24aeea924c618e003a9b026be618/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}