Record-to-Text Generation with Style Imitation

Shuai Lin, Wentao Wang, Zichao Yang, Xiaodan Liang, Frank F. Xu, Eric P. Xing, Zhiting Hu

Abstract

Data-to-text generation aims to transform structured records into natural language descriptions. While traditional methods rely on rigid templates or unconstrained neural models, achieving precise stylistic control remains a challenge due to the lack of parallel datasets. This paper introduces a novel "soft template" approach that allows models to imitate the writing style of arbitrary exemplar sentences. By employing a hybrid attention-copy architecture and a weak supervision training strategy, the proposed model, DTG-SI, effectively balances content fidelity with stylistic preservation. Experimental results on the E2E and Rotowire datasets demonstrate that our approach outperforms existing baselines in both quantitative metrics and human preference.

Introduction

The task of data-to-text generation is fundamental to many AI applications, from automated sports reporting to virtual assistants. Historically, this task has been approached through two primary paradigms: hard templates and neural sequence-to-sequence models. Hard templates offer high reliability and control but are inherently inflexible and labor-intensive to scale. Conversely, modern neural models generate fluent text but often lack the mechanisms to control the specific "voice" or structure of the output.

The core difficulty lies in the "what vs. how" trade-off. While we want the model to accurately report the data (content fidelity), we also want it to adopt a specific style (stylistic control). A significant hurdle is the absence of parallel data—datasets where the same data record is paired with multiple sentences reflecting different styles. To address this, we propose a style imitation framework that treats existing sentences as "soft templates."

Methodology: The DTG-SI Framework

The authors propose the Data-to-Text Generation with Style Imitation (DTG-SI) model. Unlike standard architectures, DTG-SI is designed to ingest both a data record and a stylistic exemplar.

Hybrid Attention-Copy Architecture

The model utilizes a dual-encoder setup. One encoder processes the structured data record ($x$), while the other processes the exemplar sentence ($y_e$). A decoder then generates the output sentence ($\hat{y}$) by attending to both inputs. A critical feature is the copy mechanism, which allows the decoder to directly extract specific values (e.g., names, prices, or statistics) from the data record, ensuring high factual accuracy.

The DTG-SI architecture uses dual encoders for the exemplar and data record, with a decoder employing joint attention and copy mechanisms.

Weak Supervision and Proxy Tasks

To overcome the lack of parallel (Record, Exemplar, Target) triples, the model is trained using two proxy objectives:

  1. Content Objective: The model learns to reconstruct a record's original description ($y_x$) given the record $x$ and the description itself as an exemplar. This teaches the model how to map data to text.
  2. Style Objective: The model acts as an auto-encoder for the exemplar sentence $y_e$. By reconstructing $y_e$ from itself and a corresponding record $x_e$, the model learns to preserve the syntactic structure and phrasing of the input.

Content Coverage Constraint

To prevent the model from omitting data points in favor of stylistic flourishes, an L2 loss constraint is introduced. This "Content Coverage Constraint" encourages the model to mention every field in the provided data record exactly once, acting as a safeguard for content fidelity.

Evaluation and Results

The model was rigorously tested on two benchmarks: the E2E dataset (restaurant descriptions) and the Rotowire dataset (NBA game summaries).

Examples of style imitation where the model adapts the structure of different exemplars to describe the same data record.

Metrics: Masked BLEU (m-BLEU)

Standard BLEU scores can be misleading in style transfer tasks because they are heavily influenced by specific content words. To isolate stylistic similarity, the authors used m-BLEU, where content-specific tokens (like player names or restaurant names) are replaced with a generic <M> tag before calculation.

Performance Highlights

  • Balanced Excellence: DTG-SI achieved a superior balance between content and style compared to baselines. While "Slot-filling" methods have high style scores but poor data adaptation, and standard "AttnCopy-S2S" models have good content but no style control, DTG-SI excels in both.
  • NBA Dataset Gains: On the complex Rotowire dataset, the model improved content precision by 16.3 points over traditional slot-filling methods while maintaining a style imitation score exceeding 80 m-BLEU.
  • Human Evaluation: In head-to-head comparisons, human judges preferred the DTG-SI output over 50% of the time, specifically for its ability to stay fluent while accurately reflecting the data.

Discussion and Future Work

While DTG-SI represents a significant step forward, it faces limitations when the "distance" between the record and the exemplar is too great. If an exemplar is structurally incompatible with the number of fields in a record, performance can degrade. Additionally, the strict coverage constraint can occasionally lead to minor grammatical awkwardness.

Future research will focus on extending this style imitation to multi-sentence generation and improving the model's robustness when dealing with highly divergent exemplars. By refining these "soft templates," we can move toward more expressive and controllable automated writing systems.

Summary updated

BibTeX
@inproceedings{lin2020record,
  author = {Shuai Lin and Wentao Wang and Zichao Yang and Xiaodan Liang and Frank F. Xu and Eric P. Xing and Zhiting Hu},
  title = {{Record-to-Text Generation with Style Imitation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.144},
}
Figure