Focused Attention Improves Document-Grounded Generation

Shrimai Prabhumoye, Kazuma Hashimoto, Yingbo Zhou, Alan W. Black, Ruslan Salakhutdinov

Abstract

Natural Language Generation (NLG) models often struggle with factual grounding, leading to "hallucinations" or generic responses. This paper introduces two architectural enhancements, Context Driven Representation (CoDR) and Document Headed Attention (DoHA), designed to explicitly separate conversational context from external grounding documents. Evaluated across three benchmarks—Wikipedia Update Generation, CMU_DoG, and Wizard of Wikipedia—the proposed models significantly outperform standard BART baselines. Notably, DoHA achieves a 19.7-point BLEU-4 improvement on the CMU_DoG dataset, demonstrating that focused architectural attention is critical for high-fidelity grounded generation.

Introduction

Standard NLG models frequently suffer from being "bland" or generating plausible-sounding but false information. To mitigate this, document-grounded generation anchors responses in specific sources like Wikipedia articles. However, standard architectures like BART often struggle to balance conversational context (chat history) with the grounding document. When these inputs are processed together, the model can lose track of which information is background and which is the factual source it should prioritize.

Proposed Architectures: CoDR and DoHA

To address these limitations, researchers from Carnegie Mellon and Salesforce Research developed two novel adaptations to the Transformer encoder-decoder architecture:

  1. Context Driven Representation (CoDR): This approach utilizes two separate encoders. One processes the document conditioned on the context to create a "contextualized" version of the source material, while a second encoder processes the context alone. By concatenating these distinct representations, the model maintains a clear separation between the conversation's flow and the document's facts.
  2. Document Headed Attention (DoHA): This more sophisticated method adds a dedicated cross-attention head specifically for the document within the Transformer decoder. This allows the model to independently "focus" on the source document during the generation process, rather than conflating it with the conversational history.
Figure 1: The DoHA architecture features dedicated cross-attention heads for both the document and the conversational context, allowing for more precise grounding.

Experimental Evaluation

The models were evaluated across three diverse tasks to ensure robustness:

  • Wikipedia Update Generation: Generating factual updates for Wikipedia based on news articles.
  • CMU_DoG: Human-to-human movie discussions grounded in Wikipedia summaries.
  • Wizard of Wikipedia: Knowledge-powered dialogue tested in both "Seen" and "Unseen" topic settings.

Crucially, the authors established a strengthened BART-based baseline, demonstrating that while pre-training is powerful, specialized architectural focus provides significant additional value.

Results and Analysis

The proposed models, particularly DoHA, showed dominant performance across all metrics. On the CMU_DoG dataset, DoHA achieved a massive 19.7-point improvement in BLEU-4 compared to previous state-of-the-art methods. Even against the authors' own optimized BART baseline, DoHA and CoDR consistently yielded higher scores in BLEU, ROUGE-L, and METEOR.

Figure 3: Quantitative results across all benchmarks show that DoHA and CoDR consistently outperform both previous state-of-the-art models and strong BART baselines.

Human evaluation corroborated these findings, with judges significantly preferring DoHA/CoDR outputs for relevance and factual closeness. However, manual error analysis revealed that automated metrics like BLEU may still be too rigid, as many "low-scoring" outputs were found to be valid linguistic variations.

Conclusion and Future Work

While CoDR and DoHA significantly reduce hallucinations, challenges remain. Approximately 23% of cases in the Wikipedia task still exhibited partial hallucinations or missed information. Furthermore, the risk of models efficiently generating "grounded lies" from misinformation in source documents highlights the need for future work in automated fact-checking and inconsistency detection. Nonetheless, the success of focused attention mechanisms marks a major step toward more reliable and factual AI dialogue systems.

Summary updated

BibTeX
@inproceedings{prabhumoye2021focused,
  author = {Shrimai Prabhumoye and Kazuma Hashimoto and Yingbo Zhou and Alan W. Black and Ruslan Salakhutdinov},
  title = {{Focused Attention Improves Document-Grounded Generation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.338},
}
Figure