Source-linked AI summary

Constrained Decoding for Neural NLG from Compositional Representations in Task-Oriented Dialogue

Anusha Balakrishnan, Jinfeng Rao, Kartikeya Upasani, Michael White, Rajen Subba

arXiv:1906.07220v1cs.CLcs.AI

TL;DR

Flat semantic representations leave discourse relations underspecified, while neural NLG systems also struggle with planning and semantic errors. The paper uses tree-structured representations with constrained decoding, and reports improved semantic correctness, generalizability, and data efficiency on E2E and weather datasets.

  • Problem

    Flat meaning representations omit discourse relations, while neural NLG models face challenges with sentence planning, complex inputs, and semantic errors.

    Source: §1 · p. 1, §2.1 · p. 2
  • Method

    The paper pairs tree-structured meaning representations with constrained decoding for Seq2Seq generation.

    Source: §1 · p. 1, §4.1 · p. 5
  • Results

    Constrained decoding with tree-structured MRs improves semantic correctness, generalizability, and data efficiency on E2E and weather datasets.

    Source: §1 · p. 2, §7 · p. 9
  • Takeaways & Limitations

    Tree-structured MRs and constrained decoding offer precise control over discourse structure and semantic correctness in generated text.

    Source: §7 · p. 9

    Flat MRs cannot specify or control discourse relations such as contrast, leaving live systems without a means to structure them around user preferences.

    Source: §2.1 · p. 2

Abstract

from arXiv · show

Generating fluent natural language responses from structured semantic representations is a critical step in task-oriented conversational systems. Avenues like the E2E NLG Challenge have encouraged the development of neural approaches, particularly sequence-to-sequence (Seq2Seq) models for this problem. The semantic representations used, however, are often underspecified, which places a higher burden on the generation model for sentence planning, and also limits the extent to which generated responses can be controlled in a live system. In this paper, we (1) propose using tree-structured semantic representations, like those used in traditional rule-based NLG systems, for better discourse-level structuring and sentence-level planning; (2) introduce a challenging dataset using this representation for the weather domain; (3) introduce a constrained decoding approach for Seq2Seq models that leverages this representation to improve semantic correctness; and (4) demonstrate promising results on our dataset and the E2E dataset.

1 Introduction

The paper addresses limitations in neural NLG by using tree-structured meaning representations and constrained decoding. It reports improved semantic correctness, generalizability, and data efficiency on E2E and weather datasets.

  • Neural dialogue generators struggle with sentence planning, discourse structuring, complex inputs, and semantic errors such as hallucinated content.The paper frames these as limitations of current neural NLG models.Source: §1 · p. 1
  • Tree-structured inputs and outputs support constrained decoding that helps ensure generated text contains all and only the specified content.The approach incorporates discourse relations into neural generation, extending beyond control over their mere presence or absence.Source: §1 · p. 1
  • The paper releases a weather-domain dataset with discourse-level structures, alongside its results on E2E.The introduction identifies JUSTIFY, JOIN, and CONTRAST as relations included in the weather dataset.Source: §1 · pp. 1–2
  • Constrained decoding with enriched inputs improves semantic correctness, generalizability, and data efficiency on both E2E and weather datasets.The paper also reports better control over CONTRAST relations on E2E and improved diversity and expressiveness over standard baselines.Source: §1 · pp. 1–2

2 Towards More Expressive Meaning Representations

Flat meaning representations leave discourse relations unspecified, limiting both response guidance and control. The paper proposes tree-structured representations that capture nested relations and link arguments to dialog acts.

2.1 Limitations of Flat MRs

  • Flat E2E meaning representations omit discourse relations such as CONTRAST, leaving crowdworkers to decide when to use them and neural models rarely expressing them.Only 43 of 10,080 released system outputs contained contrastive tokens, despite about 300 contrastive test samples.Source: §2.1 · p. 2
  • Flat representations provide no means to control discourse behavior for users whose preferences may differ from general trends in the data.The authors argue that live systems may use user models to inform contrast, grouping, or justifications.Source: §2.1 · p. 2

2.2 Tree-Structured MRs

  • The proposed tree-structured representations combine arguments, dialog acts, and discourse relations that can nest to arbitrary depths.Examples of discourse relations include JOIN, JUSTIFY, and CONTRAST.Source: §2.2 · p. 3
  • Tree-structured MRs make argument-to-dialog-act correspondence, grouping, and contrast easier to represent and encourage argument reuse across dialog acts.This supports more atomic definitions of dialog acts and arguments than flat MRs.Source: §2.2 · p. 3

3 Dataset

The weather dataset was designed to represent complex summaries over date and time ranges in a conversational setting. Its collection process moved from user queries to automatically generated tree-structured meaning representations and annotated responses.

  • The weather domain was chosen for the complexity of long forecast summaries that reason over disjoint information, with collection focused on date and time ranges.The dataset was collected in a conversational setup.Source: §3 · p. 3
  • Crowdworkers supplied sample weather queries, which were parsed with rules to identify locations, dates, and requested attributes.The extracted information was used in the dataset creation pipeline.Source: §3 · p. 3
  • The authors generated artificial forecasts from query arguments and applied automatic rules to create tree-structured MRs, including CONTRAST for opposing conditions.The forecasts were intended to mimic a system with access to a weather API.Source: §3 · p. 3
  • Trained annotators wrote responses expressing the tree-structured MRs while using the user's query to make responses natural.Annotators were allowed to elide information.Source: §3 · p. 3

Our MR

The paper presents tree-structured meaning representations and a weather dataset with tree-annotated responses, alongside a tree-structured conversion of E2E data. The datasets include examples with varied structural complexity and discourse relations.

Our MR

  • Table 2 contrasts a sample flat MR and reference with the proposed tree-structured MR.Table 3 gives the collected weather-domain ontology; Table 4 lists defined subfields for nested arguments.Source: Table 2 · p. 4, Table 3 · p. 4, Table 4 · p. 4
  • The annotation process includes labeling response spans for each argument, dialog act, and discourse relation.A separate group evaluated fluency, correctness, naturalness, and annotation correctness.Source: Our MR · p. 4

3.1 Dataset statistics

  • 33,493 examples make up the weather dataset, with tree-structured MRs and matching tree-structured response annotations.Responses range from length 8 to 151, averaging 40.6 tokens; vocabulary size is 1,485.Source: §3.1 · p. 4
  • The weather dataset includes user queries alongside the responses, supporting studies of naturalness or relevance to the query.The passage notes potential relevance to recommendations and justifications, as well as YES and NO dialog acts.Source: §3.1 · p. 4
  • The weather training set contains 25,390 examples and 11,879 unique delexicalized MRs; 1.1K test examples (35%) have unseen MRs.The test set contains 3,121 examples.Source: §3.1 · p. 4

3.2 Enriched E2E Dataset

  • ~51K converted E2E examples include JOIN in ~24K (47%) and CONTRAST in 2,237 (4.3%).Tree structures were induced using slot-span alignment, Viterbi segmentations, parsing for coordinated arguments with “but,” and sentence boundaries for JOIN.Source: §3.2 · pp. 4–5

4 Model

The model predicts a linearized tree-structured response from a linearized tree-structured meaning representation. Constrained beam search rejects outputs that violate tree constraints, while occasional lexical hallucinations can still bypass those constraints.

4.1 Seq2Seq with Linearized Trees

  • A Seq2Seq model predicts a linearized response tree from a linearized tree MR, with non-terminals marking discourse relations and arguments and their span boundaries.The predicted tree provides supervision on MR-response alignment and is used to verify response structure.Source: §4.1 · p. 5

4.2 Constrained Decoding

  • During beam search, opening nodes must be valid children not already used in the subtree, and closing brackets or EOS require all parent children to be covered, directly or by ellipsis.The decoder masks constraint-violating candidates so they cannot continue through the beam.Source: §4.2 · pp. 5–6
  • Because non-JOIN children may occur in any order, decoding tracks multiple possible alignments and removes states that violate constraints.JOIN children must appear in order; the authors report that alignment nondeterminism quickly resolves in practice.Source: §4.2 · p. 6
  • The constraints do not prevent every hallucination: the model can skip a disallowed slot annotation yet generate words expressing that slot, especially for unusual inputs.Figure 1 illustrates outputs that pass or fail tree constraints, including a failure with a missing CONTRAST node and illegal INFORM children.Source: Figure 1 · p. 5, §4.2 · p. 6

5 Experiments

Experiments compare flat, token-enriched, tree-structured, and constrained Seq2Seq systems on E2E and weather data. The results report gains in tree accuracy, human-rated correctness, diversity, data efficiency, and cross-domain generalizability, with evaluation and generation caveats.

5.1 Experimental Setup

  • The setup uses aligned references to filter unexpressed input information while retaining repeated arguments elided for redundancy, and evaluates tree structure with a metric that accounts for grouping and ellipsis.Human ratings separately assess grammaticality and semantic correctness.Source: §5.1 · pp. 6–7

5.2 Constrained Decoding Analysis

  • Human evaluation measures correctness on full test sets and on challenging subsets: E2E examples with contrasts and weather examples with CONTRAST or JUSTIFY, including unseen argument combinations.The experiments also filtered examples where S2S-CONSTR failed to generate a valid response from model computations.Source: §5.2 · p. 7

5.3 Results

  • Across E2E and weather, S2S-CONSTR significantly improves tree accuracy over S2S-TREE, while tree-aware models beat S2S-TOKEN and S2S-FLAT on human correctness; Table 7 reports these results.S2S-CONSTR also fails to generate a valid weather response for about 1.5% of test examples.Source: §5.3 · p. 7, Table 7 · p. 8

5.5 Data Efficiency and Generalizability

  • S2S-CONSTR exceeds 90% tree accuracy with 2K samples and 95% with 5K on both datasets.Figure 2 plots test-set performance as the training-set size varies.Source: Figure 2 · p. 8, §5.5 · p. 8

5.3 Results

  • Tree-based models show a slight grammaticality drop on weather, and 22 of 35 tree-accuracy/human-evaluation disagreements involved missing information in references, often attributed to annotation noise.The analysis also found annotator confusion in 6 of 35 cases (17%).Source: §5.3 · pp. 7–8

5.4 Diversity Metrics

  • Tree-structured models show higher diversity than neural baselines without diversity considerations, alongside improved BLEU scores; Table 8 reports the E2E diversity metrics.The authors note that this pattern suggests discourse-relation inputs can increase diversity without losses on automatic metrics.Source: §5.4 · p. 8, Table 8 · p. 9

5.5 Data Efficiency and Generalizability

  • With 5% compositional E2E training data, E2E-WEATHER reaches 76% tree accuracy versus 53.72% for E2E-only; final E2E-WEATHER accuracy is also higher.Without compositional E2E examples, neither model produces valid sequences.Source: Figure 3 · p. 9, §5.5 · p. 9

6 Related Work

Related work spans input enrichment, sentence planning, content planning, coverage tracking, and constrained decoding. The paper distinguishes its tree-structure constraints from approaches that track simple list coverage or enforce particular output words.

6 Related Work

  • Moryossef et al. (2019) use sentence plans for input-structure control but do not address discourse relations or constrained decoding; Puduppully et al. (2018) combine content planning and realization for structured tables without discourse structure.Reed et al. (2018) is identified as the most closely related work.Source: §6 · p. 9
  • Unlike neural checklist coverage of ingredient lists, this approach constrains ordering and grouping of tree structures; grammar-based realizers can prevent hallucination entirely but require an explicit grammar.The paper also contrasts constrained decoding in machine translation, which enforces specific output words rather than tree-structure constraints.Source: §6 · p. 9

7 Conclusions

The paper concludes that tree-structured meaning representations and constrained decoding improve expressiveness, semantic correctness, data efficiency, and generalizability; it also describes weather-data construction and quality filtering.

7 Conclusions

  • Tree-structured meaning representations and constrained decoding improve expressiveness and semantic correctness while enhancing data efficiency and generalizability.The paper also releases a weather dataset and an enriched E2E dataset with tree-structured representations.Source: §7 · p. 9

A Weather Forecast Generation

  • Forecasts were sampled at hourly or daily granularity according to the requested date range, with plausible weather values and randomly selected additional conditions.The authors prioritized creating complex meaning representations over precise forecast values.Source: A Weather Forecast Generation · p. 12

B Tree-Structured Weather MR Creation

  • Weather meaning representations encode errors, aggregation, contrasts, yes/no answers, and recommendations with justifications using dialog acts and discourse relations.Similar weather attributes are grouped with JOIN; recommendations are the nucleus and their justifications the satellite of JUSTIFY.Source: B Tree-Structured Weather MR Creation · p. 12

C Dataset Creation Quality

  • Filtering removed 3,404 of 37,162 examples rated below 3 on any of four quality dimensions.Responses were double annotated on a 1–5 scale for fluency, correctness, naturalness, and annotation correctness.Source: C Dataset Creation Quality · p. 12

D Data Preprocessing

Preprocessing delexicalizes selected arguments in both model inputs and outputs to reduce vocabulary size and sparsity.

D Data Preprocessing

  • Delexicalization replaces selected argument values with placeholders in both inputs and outputs, reducing vocabulary size and sparsity because these values are often copied verbatim into responses.The authors did not explore a copy mechanism for these arguments.Source: D Data Preprocessing · pp. 12–13
  • Numerical arguments delexicalized include temperature-related values, precipitation chance, and date components such as day, month, and year.Source: D Data Preprocessing · p. 13
  • Named entities delexicalized include restaurant names and landmarks in E2E, plus cities, regions, countries, and date weekdays.Source: D Data Preprocessing · p. 13

E Additional Experiments

Additional experiments report tree-accuracy scores for reranked S2S-TREE and higher correctness on filtered test sets after using an RNNG to filter hallucinations.

E Additional Experiments

F Human Evaluation of Models

Human evaluation compared responses with references for correctness ratings, while automatic rejection addressed missed discourse markers in weather responses.

F Human Evaluation of Models

  • Correctness raters compared each response against its reference rather than directly against the tree-structured meaning representation.The authors report that this increased annotation speed and agreement, while risking confusion from noisy references.Source: F Human Evaluation of Models · p. 13
  • Weather responses were automatically marked incorrect when a CONTRAST or JUSTIFY meaning-representation relation lacked corresponding contrastive or justification markers.Source: F Human Evaluation of Models · p. 13
  • Automatic rejection eliminated noise from 2.8% of all responses.Source: F Human Evaluation of Models · p. 13

G Model Training Details

The constrained-decoding experiments use the S2S-FLAT baseline model with specified training settings. The algorithm tracks tree structure and ellipsis coverage to restrict which structural tokens can be accepted during decoding.

G Model Training Details

  • The constrained-decoding experiments use the S2S-FLAT seq2seq model with 300-dimensional GloVe embeddings, 0.2 dropout, 128-dimensional encoder and decoder hidden states, and beam size 10.Training uses Adam at learning rate 0.002, reduced by a factor of 5 when validation loss stops decreasing.Source: G Model Training Details · p. 13

H Constrained Decoding Algorithm

  • The algorithm builds parent-child maps, tracks valid nonterminal nodes and ellipsis options, and initializes decoding state with node coverage and elided-node records.A child is considered covered when it is covered directly or through ellipsis; nodes already elided cannot cover other nodes through ellipsis.Source: H Constrained Decoding Algorithm · p. 14
  • Structural tokens are accepted only when they match an available child or close a node whose children are covered directly or through ellipsis.Accepted tokens update the decoding states; the score-masking function returns a score only when the token is accepted.Source: H Constrained Decoding Algorithm · p. 14
Loading 1906.07220v1…