Generating Descriptions from Structured Data Using a Bifocal Attention Mechanism and Gated Orthogonalization

Preksha Nema, Shreyas Shetty, Parag Jain, Anirban Laha, Karthik Sankaranarayanan, Mitesh M. Khapra

Abstract

In this work, we focus on the task of generating natural language descriptions from a structured table of facts containing fields (such as nationality, occupation, etc) and values (such as Indian, actor, director, etc). One simple choice is to treat the table as a sequence of fields and values and then use a standard seq2seq model for this task. However, such a model is too generic and does not exploit task-specific characteristics. For example, while generating descriptions from a table, a human would attend to information at two levels: (i) the fields (macro level) and (ii) the values within the field (micro level). Further, a human would continue attending to a field for a few timesteps till all the information from that field has been rendered and then never return back to this field (because there is nothing left to say about it). To capture this behavior we use (i) a fused bifocal attention mechanism which exploits and combines this micro and macro level information and (ii) a gated orthogonalization mechanism which tries to ensure that a field is remembered for a few time steps and then forgotten. We experiment with a recently released dataset which contains fact tables about people and their corresponding one line biographical descriptions in English. In addition, we also introduce two similar datasets for French and German. Our experiments show that the proposed model gives 21% relative improvement over a recently proposed state of the art method and 10% relative improvement over basic seq2seq models.

Introduction

Generating coherent natural language sentences from structured data, such as Wikipedia infoboxes, is a significant challenge in natural language processing. Standard sequence-to-sequence (seq2seq) models often treat these tables as flat lists of words, failing to leverage the inherent hierarchical structure. This leads to issues like erratic jumping between fields or repetitive loops.

Researchers from IIT Madras and IBM Research have identified two key human behaviors that are missing in standard models:

  1. Hierarchical Focus: Humans first select a category (macro level) and then focus on specific values within it (micro level).
  2. Temporal Logic: Humans exhibit "stay-on" behavior (completing one field before moving to the next) and "never look back" behavior (not repeating information once it has been rendered).

Proposed Methodology

The proposed architecture introduces two primary innovations to the standard encoder-decoder framework to mimic these human patterns.

Fused Bifocal Attention

Instead of a single flat attention layer, the model employs a dual-layered approach. Macro Attention identifies which field (e.g., Alma Mater) is currently relevant, while Micro Attention focuses on the specific words within that field. These are fused such that the importance of a specific word is scaled by the relevance of its parent field, providing the model with a structural "map" of the input.

Gated Orthogonalization

To enforce temporal logic, the authors use a gated mechanism that applies a mathematical constraint: when the model transitions to a new field, the new context vector is forced to be orthogonal (perpendicular) to previous ones. This effectively "blanks out" already discussed information, preventing the model from repeating itself.

The proposed neural architecture featuring Fused Bifocal Attention and Gated Orthogonalization.

Experimental Setup and Datasets

The study primarily utilizes the WIKIBIO dataset, consisting of ~700,000 English Wikipedia infoboxes paired with biographical sentences. To test the universality of their approach, the authors introduced two new datasets:

  • French WIKIBIO: ~170,000 pairs.
  • German WIKIBIO: ~50,000 pairs.

Results and Analysis

The proposed model achieved a BLEU-4 score of 42.03 on the English dataset, a 21% relative improvement over the previous state-of-the-art (34.70). Qualitative human evaluation confirmed these results, with summaries judged as "natural" in 423 out of 500 cases.

Comparison of attention heatmaps showing how Gated Orthogonalization enforces 'never look back' behavior.

The attention heatmaps in Figure 6 demonstrate the impact of Gated Orthogonalization. In the standard bifocal model (a), attention is scattered and revisits fields. With Gated Orthogonalization (b), the attention becomes much sharper and strictly sequential, successfully capturing the "never look back" behavior observed in human writing.

Conclusion and Future Work

By treating structure as a first-class citizen and using linear algebra to control information flow, this model significantly improves the quality of data-to-text generation. Future research directions include expanding the model to multi-sentence generation and utilizing language-independent Wikidata concept IDs to enable simultaneous multi-lingual generation.

Summary updated

BibTeX
@inproceedings{nema2018generating,
  author = {Preksha Nema and Shreyas Shetty and Parag Jain and Anirban Laha and Karthik Sankaranarayanan and Mitesh M. Khapra},
  title = {{Generating Descriptions from Structured Data Using a Bifocal Attention Mechanism and Gated Orthogonalization}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=Hkbunf-Obr},
}
Figure