Abstract
Neural response generation in chatbots often relies on unidirectional beam search, which frequently produces generic or contextually irrelevant responses. This paper proposes two bidirectional strategies—Bidirectional Scoring (BidiS) and Bidirectional Agreement (BidiA)—that leverage a reverse right-to-left model. These methods not only improve response quality and diversity on the Cornell Movie and Switchboard datasets but also offer a reduction in computational complexity compared to standard beam search.
Introduction
In neural response generation, Sequence-to-Sequence (seq2seq) models typically employ Beam Search to identify high-probability responses. Despite its ubiquity, standard beam search (VBS) suffers from three critical limitations:
- Likelihood Bias: Mathematical probability does not always align with human-perceived quality.
- Unidirectional Dependency: Models often "forget" initial context by the time they reach the end of a long sequence because they only consider dependencies from left to right.
- Generic Responses: There is a statistical tendency toward "safe" but boring answers like "I don't know" or "Yes."
The authors posit that the end of a sentence is as informative as the beginning. By integrating a reverse model, the proposed strategies aim to bridge the gap between statistical likelihood and conversational relevance.
Methodology
The core of the proposal involves a "reverse" language model trained to generate sequences from right-to-left. Two algorithms are introduced:
- BidiS (Bidirectional Scoring): An extension of standard beam search where the regular model generates candidates, and the reverse model re-ranks them. A candidate is selected only if it is robust in both directions.
- BidiA (Bidirectional Agreement): A hyperparameter-free approach. It generates $B/2$ candidates forward and $B/2$ candidates backward, then selects the pair with the highest similarity (using measures like BLEU or Word Mover’s Distance).
Computational Efficiency
A significant advantage of BidiA is its efficiency. Because beam search complexity is $O(B \log B)$, splitting the search into two smaller beams ($B/2$) is mathematically faster than a single large beam of size $B$. This makes the bidirectional approach a "free lunch"—better results for less compute.
Experimental Results
The models were evaluated on the Cornell Movie Corpus and the Switchboard Dialogue Act Corpus (SwDA).
Performance and Quality
Bidirectional models consistently outperformed Vanilla Beam Search. Notably, BidiA achieved a 9% relative improvement in BLEU-4 scores on the Cornell dataset and a 5% improvement on SwDA. Unlike VBS, which often plateaus as beam size ($N_B$) increases, the bidirectional models continue to show performance gains with larger search spaces.
Diversity and the "Reverse Advantage"
The bidirectional approach significantly increased n-gram diversity, effectively avoiding the "safe response" trap. The authors observed a "reverse advantage": the reverse model often finds it easier to start generating from the end of a sentence (where nouns and punctuation are more predictable in English), preventing early errors that typically cascade in forward-only models.
Conclusion
Bidirectional strategies like BidiA provide a robust framework for neural response generation, delivering higher quality and more diverse responses with lower computational overhead. While this study utilized GRU-based models, future research will explore these strategies within Transformer-based architectures and multimodal tasks such as image captioning.
Summary updated