The Generative Capability Gap in Bidirectional Transformers

224 concepts190 papers1 proposal

In the landscape of modern natural language processing, a fundamental divide exists between models that "understand" and models that "speak." Encoder-only architectures, exemplified by the BERT family, have long dominated tasks requiring deep semantic representation and discriminative judgment. However, as research across diverse domains—from legal reasoning to genomics—has matured, a recurring bottleneck has emerged: these bidirectional models are structurally ill-equipped for generative tasks. This "generative capability gap" forces a trade-off between the rich, all-at-once context of encoders and the step-by-step synthesis of decoders.

The Structural Barrier to Synthesis

The core of the problem lies in the attention mechanism. Encoder-only models utilize bidirectional attention, allowing every token to "see" every other token in a sequence. While this is ideal for classification, Joshua Ainslie et al. note in their work on Extended Transformer Construction (ETC) that this configuration prevents direct application to generative tasks like long-form summarization or dialogue. The very feature that makes encoders powerful—their ability to look into the "future" of a sentence—makes them incompatible with the causal, one-token-at-a-time nature of text generation.

This limitation is not merely theoretical; it creates practical hurdles in specialized fields. For instance, Dongqin Xu et al. point out that representation-focused models lack the generative capacity for structured semantic parsing, as they cannot easily produce the linearized graph sequences required to represent complex relationships. Similarly, Frederick Riemenschneider argues that relying on encoder-only architectures limits effectiveness in classical philology, where tasks like lemmatization require generating new morphological forms rather than just labeling existing ones.

The Discriminative-Generative Trade-off

The research community often faces a binary choice: use an encoder for peak accuracy in classification, or a decoder for the flexibility of generation. Antoine Simoulin et al. observe this in the French NLP ecosystem, where models like CamemBERT excel at discriminative tasks but leave researchers unable to perform zero-shot learning or fluent text generation. The authors highlight a persistent trade-off: the flexibility of text generation in decoder-only models often comes at the cost of peak accuracy in classification benchmarks.

This gap extends to multimodal and specialized domains:

Bridging the Divide

To overcome these constraints, researchers are exploring three primary paths: unified architectures, hybrid scaling, and non-autoregressive generation.

Unified Architectures: Models like UniXcoder, proposed by Daya Guo et al., and CodeT5, proposed by Yue Wang et al., attempt to support both understanding and generation within a single framework. By using flexible attention masks, these models can switch between bidirectional encoding and causal decoding, mitigating the need for two separate models.

Hybrid Scaling: In specialized domains like medicine, the choice of architecture remains a point of contention. While Medical mT5 uses an encoder-decoder structure to handle sequence labeling and short responses, the authors acknowledge that this may underperform on long-form narrative synthesis compared to newer decoder-only models.

Non-Autoregressive Generation: Perhaps the most surprising direction is the attempt to force encoders to generate text without a traditional decoder. Yisheng Xiao demonstrates that the BERT family can follow instructions and generate text with a 3x speedup by using non-autoregressive decoding. This challenges the status quo that bidirectional models are strictly for comprehension, suggesting that the "generative gap" may be a matter of how we sample from these models rather than a total lack of latent generative potential.

Ultimately, the shift from discriminative feature extraction to active sequence generation—as noted by Grzegorz Chrupała in the context of visually grounded speech—remains the central frontier for making Transformer architectures truly universal.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 202 papers
  2. Version 1 · 2026-10-04 · 250 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_encoder_only_architectural_constraints_0308b33a,
  title = {encoder-only architectural constraints},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/encoder-only-architectural-constraints/rdr_0308b33aed0946fdb2d5b95c57dca1b3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-13},
}

This exact version (version 2, frozen text):

@misc{lacuna_encoder_only_architectural_constraints_0308b33a_v2,
  title = {encoder-only architectural constraints},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/encoder-only-architectural-constraints/rdr_0308b33aed0946fdb2d5b95c57dca1b3/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-13},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake