Bidirectional Awareness Induction in Autoregressive Seq2Seq Models
Jia Cheng Hu, Roberto Cavicchioli, Alessandro Capotondi
TL;DR
This paper tackles the limitations of autoregressive Seq2Seq models by introducing Bidirectional Awareness Induction (BAI), which leverages Pivot elements trained with a bidirectional objective during training while preserving autoregressive decoding. By applying BAI to Transformer, ExpansionNet v2, and GPT-2 across Image Captioning, Neural Machine Translation, and Text Summarization, the approach achieves consistent improvements without architectural changes and even benefits pre-trained models. The key ideas are Pivot Selection, Length Equalization, and Decoder sequence reconstruction, with a joint objective combining the standard cross-entropy loss and a Mean Square bidirectional loss. The work demonstrates that targeted, training-only bidirectional cues can enhance intermediate representations and performance, offering a practical path to boosting seq2seq systems in both research and deployed large-language-model contexts.
Abstract
Autoregressive Sequence-To-Sequence models are the foundation of many Deep Learning achievements in major research fields such as Vision and Natural Language Processing. Despite that, they still present significant limitations. For instance, when errors occur in the early steps of the prediction, the whole output is severely affected. Such reliance on previously predicted tokens and the inherent computational unfriendliness of sequential algorithms, motivated researchers to explore different architectures and methods in the search for bidirectional approaches. In this work, we introduce the Bidirectional Awareness Induction (BAI), a training method that leverages a subset of elements in the network, the Pivots, to perform bidirectional learning without breaking the autoregressive constraints. To showcase its flexibility, we apply the method to three architectures, the Transformer, ExpansionNet v2 and GPT, then perform experiments over three tasks. Experimental results showcase BAI's effectiveness on all selected tasks and architectures. In particular, we observed an increase of up to 2.4 CIDEr in Image-Captioning, 4.96 BLEU in Neural Machine Translation, and 1.16 ROUGE in Text Summarization compared to the respective baselines. Notably, BAI not only has a positive impact on models trained from scratch but on pre-trained models as well. Such an aspect, combined with the absence of architectural requirements synergizes well with the current trend of LLMs.
