---
title: "Transformer based Natural Language Generation for"
description: "How dependency parsing, phrase reordering and Transformer scoring turn short factual answers into concise English and French sentences."
canonical: "https://research.elamur.ai/free/en/papers/akermi-2020-transformer-based-natural-language-generation/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/akermi-2020-transformer-based-natural-language-generation/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Transformer based Natural Language Generation for Question-Answering

# Transformer based Natural Language Generation for Question-Answering

Paper · 2020 · Imen Akermi, Johannes Heinecke and Frédéric Herledan

**Authors:** [Imen Akermi](https://md.research.elamur.ai/free/en/authors/imen-akermi/), [Johannes Heinecke](https://md.research.elamur.ai/free/en/authors/johannes-heinecke/) and [Frédéric Herledan](https://md.research.elamur.ai/free/en/authors/frederic-herledan/) · **Year:** 2020 · **Venue:** Proceedings of the 13th International Conference on Natural Language Generation · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 13th International Conference on Natural Language Generation · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2020.inlg-1.41/)
- [PDF](https://aclanthology.org/2020.inlg-1.41.pdf)
- [DOI 10.18653/v1/2020.inlg-1.41](https://doi.org/10.18653/v1/2020.inlg-1.41)

## What it is about

How dependency parsing, phrase reordering and Transformer scoring turn short factual answers into concise English and French sentences. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A question-answering system can retrieve the right fact and still give an awkward answer. A name alone may leave the listener reconstructing its connection to the question. A passage from a document may contain the answer but surround it with distracting information. This becomes especially noticeable when an assistant speaks its response aloud: the listener cannot scan the passage as easily as a reader can. Imen Akermi, Johannes Heinecke and Frédéric Herledan address this presentation problem in *Transformer based Natural Language Generation for Question-Answering*. Their goal is a compact sentence that states the answer while preserving enough of the question’s context to make the response understandable.

The paper studies answer formulation after factual retrieval has already succeeded. Its surrounding [question-answering](https://md.research.elamur.ai/free/en/topics/question-answering/) system translates an English or French question into a formal representation, constructs a SPARQL query, and obtains values or entity identifiers from Wikidata. The new component takes that short answer and the original question as its inputs. Instead of composing an unrestricted response, it reuses material from the question. A [dependency parser](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) identifies grammatical relationships, which help divide the question into phrases. The system removes the interrogative expression, adjusts the verb where necessary, adds the retrieved answer, and constructs possible arrangements of these pieces. A Transformer-based scorer selects a promising arrangement, while a separate prediction step can supply a missing word.

The central design combines explicit transformations with learned judgments about language. Some questions follow a particularly direct path: when the interrogative phrase is identified as the subject, the system substitutes the answer for that phrase. Other questions require candidate reordering. In the worked example about the date of Princess Diana’s death, the system converts the interrogative verb construction into a past-tense form, arranges the person, event and date, and predicts a preposition before the date. The authors describe this generation approach as unsupervised because they do not train it on paired questions and fully formulated answers. That description does not mean that every component is untrained or annotation-free: the parser is trained, and the authors add manually annotated questions to improve its handling of the intended inputs.

The experiments evaluate both the syntactic preparation and the resulting answers. Ordinary dependency treebanks prove insufficient for the short factual questions under study, particularly in French. Adding question-specific training examples improves the reported parsing scores substantially. For answer generation, the authors construct QUEREO, a collection of 150 questions with English and French versions and an average of three reference formulations for each question. They compare alternative processing orders and Transformer configurations, using automatic sentence-comparison metrics alongside judgments from 20 native speakers. The highest French human accuracy reported in the configuration table is 84.85. For English, the highest reported human accuracy is 72.36, shared by configurations using different processing orders.

The results support a focused conclusion: reusing question structure can produce useful full-sentence responses without a dedicated question-to-answer training collection. They also reveal clear weaknesses. Word order is the most frequently reported error category in both languages. Allowing a single inserted word cannot repair every incomplete sentence, and reusing the question’s vocabulary can preserve a misleading premise. The authors’ example involving Lance Bass illustrates the latter problem: a fluent sentence can repeat an inappropriate relationship label from the question. The paper therefore offers a practical architecture for answer realization, together with evidence about parsing, component ordering and evaluation. It does not establish unrestricted factual generation, reliable correction of question premises, or a general solution to spoken conversational answering.

### Ideas worth borrowing

Separate the fact from its expression. The system treats factual retrieval and sentence construction as distinct problems. This makes it possible to change how an answer is presented without asking the presentation component to rediscover the underlying fact. The same division is useful in database interfaces, report generation and explanatory software: establish the answer through the appropriate evidence source, then give a separate component responsibility for making that answer readable.

Reuse structure before generating freely. The question already contains much of the vocabulary needed for a concise response. Its grammatical relationships provide a scaffold that can reduce how much new wording must be introduced. This idea transfers to sentence rewriting and other constrained [text-generation](https://md.research.elamur.ai/free/en/topics/text-generation/) tasks, where preserving supplied entities and relationships matters more than producing a highly varied sentence. The important boundary is that reusing wording does not establish that the wording is factually appropriate.

Move phrases rather than isolated words. Dependency analysis helps the system preserve meaningful groups while considering alternative arrangements. Treating a long nominal expression as a unit avoids breaking its internal relationships during every reordering attempt. This principle applies beyond answer generation, including structured editing and sentence compression. A candidate space built from meaningful units can be easier to inspect and more faithful to the input than one built from unrestricted word permutations.

Adapt the parser to the actual input. Strong performance on general text does not guarantee strong performance on short questions. The authors address this mismatch by adding question annotations to the parser’s training material. The broader lesson is to examine the constructions that a downstream application genuinely depends on. A modest, carefully chosen adaptation set can be more relevant than an aggregate score obtained on a different distribution of sentences.

Separate arrangement from local completion. Choosing the order of existing phrases and inserting a missing article or preposition are related but different decisions. The paper gives these decisions separate components and compares their order of execution. This is useful whenever a system must distinguish global organization from local repair. It also makes failures easier to diagnose: an unnatural response may have the wrong structure, an unsuitable inserted word, or both.

Check automatic evaluation against human judgments. The authors do not assume that metrics borrowed from translation and summarization measure answer quality equally well. They compare metric behavior with human assessments and find a notable language-dependent weakness for ROUGE. This approach applies whenever an evaluation measure is transferred into a new task. Before using it to choose configurations, examine whether its preferences match the judgments that matter for the application.

Record errors in terms that suggest repairs. Human evaluators identify problems such as ordering, prepositions, omitted words and agreement, instead of supplying only an overall verdict. These categories connect evaluation to specific processing stages. The same practice can improve grammar systems, information extraction and generated explanations: a final score describes the outcome, while a structured error record helps identify which mechanism should change.

### How Mova uses it

Mova is a small, transparent language system written in Rust. Its documented language path already connects dependency trees to pragmatic frames and text worlds, and its native answers can retain reasons. Those mechanisms provide several possible points of contact with this paper. They do not establish that Mova implements the paper’s answer generator. The status marks below describe proposed relationships to the documented mechanisms; they are not evidence that this paper has already produced an improvement in Mova.

Idea: Keep answer retrieval separate from sentence realization. Where: Introduction and the opening of the answer-generation approach. Area: architecture. Mova: частково є (`world` produces answers with reasons after the `en` and `prag` stages). Mova could preserve its factual answer and justification as fixed inputs to an optional realization component. This would let wording change without changing what the system concluded. Why Mova: a separate realization boundary would make it easier to check whether a readable sentence faithfully expresses the native answer.

Idea: Offer a compact contextual sentence. Where: Introduction, discussion of answers that are excessively terse or verbose. Area: pragmatics. Mova: нове. Mova could support an answer form that states the requested value together with the relevant relationship, instead of returning only a value or a large explanation. This is a proposed output capability; its implementation is not established by the digest. Why Mova: users could receive an immediately interpretable response while retaining access to the separate reason when they need it.

Idea: Reuse the question as a constrained linguistic scaffold. Where: the opening of the answer-generation approach and Section 3.2. Area: generation. Mova: частково є (`en` supplies dependency trees and `prag` supplies role-bearing frames). Those structures could identify which question material belongs in a declarative response. A rule-based realization experiment would fit Mova’s stated direction more closely than assuming that the paper’s Transformer components must be adopted unchanged. Why Mova: constrained reuse could reduce unsupported additions and make every output phrase traceable to an input or answer.

Idea: Reorder syntactic chunks instead of individual words. Where: the question partitioning description before Section 3.2. Area: syntax. Mova: частково є (`en` dependency structures and `prag` frames). Mova could derive movable units from dependency subtrees or frame arguments, then test whether candidate generation preserves their internal structure. The digest does not establish an existing realization search over such units. Why Mova: meaningful units could make candidate generation easier to bound, explain and check than unrestricted word-level rearrangement.

Idea: Treat subject questions as a special realization case. Where: Section 3.2, the test involving `nsubj`. Area: syntax. Mova: частково є (`en` represents dependency relations, including subjects). A realization rule could replace an interrogative subject with the established answer when the parse and frame support that operation. This would be a proposed rule with an explicit applicability condition, instead of a general claim about every question. Why Mova: a narrow structural case may admit a simpler and more transparent transformation than candidate enumeration.

Idea: Convert interrogative verb constructions explicitly. Where: the Princess Diana worked example, the rule-based verb update. Area: morphology and syntax. Mova: частково є (`en` implements morphology, lemmas and grammatical analysis). Mova could connect these existing representations to a question-to-declarative transformation that preserves tense while removing question-specific auxiliaries. Existing analysis does not demonstrate an answer-realization transformation. Why Mova: verb changes could be checked against typed grammatical information rather than being hidden inside a fluency score.

Idea: Distinguish grammatical insertion from adding factual content. Where: Section 3.2, prediction of an omitted word before the short answer. Area: generation and provenance. Mova: нове. A realization component could classify proposed additions as articles, prepositions or other grammatical material, while separately checking any addition that changes the represented relationship. The paper motivates the local completion problem but does not provide this Mova-specific classification. Why Mova: a supposedly small wording repair should not silently become a new assertion.

Idea: Preserve a no-insertion outcome. Where: Section 3.2, the handling of a non-alphabetic prediction. Area: decision rules. Mova: частково є (`en/src/french_rules.rs` uses closed evidence domains and abstains when evidence is unknown). A future realization rule could explicitly choose to leave a candidate unchanged instead of requiring every answer to receive another word. The paper’s punctuation-based convention would need independent justification before reuse. Why Mova: optional repair should preserve already complete sentences instead of forcing unnecessary edits.

Idea: Separate global arrangement from local repair. Where: Section 3.2 and the experiment framework in Figure 1. Area: architecture. Mova: нове. Mova could implement independent interfaces for selecting a sentence structure and completing a grammatical gap, even if both are handled through deterministic rules and statistics. Their outputs could retain distinct reasons and failure states. Why Mova: separate responsibilities would make it easier to locate whether a poor answer came from structural planning or from a local lexical choice.

Idea: Compare alternative component orders. Where: the A1 and A2 descriptions accompanying Figure 1. Area: experimental design. Mova: частково є (self-play and training workflows compare proposed changes under gates). An answer-realization experiment could compare selecting a structure before repair with repairing candidates before selection, using the same questions and established answers. The paper shows that processing order deserves testing; it does not establish which order would suit Mova. Why Mova: a familiar set of components may behave differently when their order changes.

Idea: Bound candidate generation visibly. Where: Section 3.2, enumeration of arrangements in the candidate set. Area: algorithms. Mova: частково є (the native deputy and recursive capability calls have explicit bounds). A phrase-reordering experiment should report its candidate policy and retain a failure when the permitted search cannot produce an acceptable sentence. The paper itself does not establish a general resource bound for all questions. Why Mova: combinatorial generation should remain inspectable and predictable within the system’s existing operational discipline.

Idea: Evaluate the parser on the application’s questions. Where: Section 3.1 and Tables 2–3. Area: syntax and evaluation. Mova: частково є (`en` has evaluation tools and French grammar-example checks). Mova could maintain a question-focused development set containing the constructions used by its answer readers and any future realization rules. Broad treebank performance would remain useful but would not substitute for this targeted view. Why Mova: an answer pipeline may depend heavily on constructions that contribute little to an aggregate parsing score.

Idea: Add targeted supervision without confusing it with answer supervision. Where: Section 3.1, construction of additional question annotations. Area: training data. Mova: вже є (the teacher loop prepares reviewed parses for separately gated training). The transferable idea is to label the structure needed by a downstream component rather than assume that complete answer sentences must always be annotated. Any question adaptation would still need a clean separation from assessment material. Why Mova: precise structural supervision could improve a shared component while preserving Mova’s existing training boundaries.

Idea: Keep general and application-specific annotation compatible. Where: Section 3.1, use of general UD conventions together with treebank conventions. Area: annotation. Mova: вже є (dialect work, grammar documentation and `treeagree` validation preserve explicit conventions). Mova could apply the same discipline when adding question examples: document intended relations and validate additions rather than treating special-purpose data as exempt from structural rules. Why Mova: compatible annotations let a shared parser serve multiple readers without accumulating conflicting interpretations of the same construction.

Idea: Assess morphology and content dependencies alongside attachment. Where: Section 3.1, discussion of LAS, CLAS and MLAS. Area: evaluation. Mova: частково є (`en` audits report attachment and tagging information). A realization-oriented report could distinguish errors in dependency attachment from errors involving grammatical tags or features. The paper’s metrics suggest different views of the same parser, not an automatic guarantee of generation quality. Why Mova: agreement and tense can damage an answer even when much of its dependency structure is correct.

Idea: Choose components according to their actual role. Where: Tables 1–3 and the discussion following Table 4. Area: system selection. Mova: частково є (separate CPU and GPU paths have declared roles and measurements). The paper’s strongest French parser, sentence scorer and missing-word predictor do not justify a universal best-component label. Mova could similarly evaluate a component against the observation it must produce. Why Mova: role-specific evidence prevents a broad reputation or an unrelated benchmark from replacing task-specific checks.

Idea: Allow several acceptable reference answers. Where: Experiments and Evaluation, description of QUEREO. Area: evaluation data. Mova: нове. A realization benchmark could associate a factual item with multiple reviewed sentences that express the same supported answer. This would be a proposed generation assessment, separate from existing school-answer measurements. Why Mova: legitimate differences in word order or wording should not automatically be treated as errors, while agreement about the underlying fact must remain fixed.

Idea: Keep factual correctness separate from formulation quality. Where: Experiments and Evaluation, the short-answer inputs and human relevance judgments. Area: evaluation. Mova: частково є (`world` answers retain reasons, while training and assessment have separate admission paths). Mova could score whether the underlying answer is right independently from whether its sentence is grammatical, concise and contextually suitable. Why Mova: a polished sentence must not conceal a wrong inference, and a terse correct answer should not be mistaken for failed reasoning.

Idea: Validate borrowed automatic metrics for the intended use. Where: Table 6 and Figures 2 and 5. Area: statistics and evaluation. Mova: частково є (`prag` reliability reports test confidence against correctness). A future generation benchmark could compare automatic sentence scores with human judgments before using them as admission gates. Existing reliability analysis is related in method, but it does not validate answer-realization metrics. Why Mova: a metric should earn its decision-making role through evidence about the judgments it is intended to approximate.

Idea: Use rank aggregation as a diagnostic. Where: Experiments and Evaluation, the Friedman comparison and configuration rankings. Area: statistics. Mova: нове. Mova could examine whether several relevant measures prefer the same candidate configuration, while retaining the underlying scores and disagreements. This would require an explicit statistical design rather than assuming that averaging ranks proves superiority. Why Mova: a common ranking can be informative, but conflicting measures can reveal weaknesses that a single aggregate would hide.

Idea: Check metric behavior separately by language. Where: Table 6, the French and English correlation columns. Area: multilingual evaluation. Mova: частково є (English core evaluation and separate French parsing measurements). A proposed French realization path should not inherit an English metric policy without testing it. The paper’s different correlation patterns motivate that check, without predicting what Mova would find. Why Mova: shared metric names do not establish that they detect the same mistakes in different languages.

Idea: Retain structured human error records. Where: the evaluation interface in Figure 3 and the saved judgments in Figure 4. Area: data processing and diagnosis. Mova: частково є (`treeagree` retains rejected edits and reasons; worker workflows retain outcomes). Generation judgments could similarly keep the input question, factual answer, output sentence, proposed insertion and error categories together. Why Mova: a reproducible error record would let later rule proposals address the actual failure instead of an abbreviated recollection of it.

Idea: Distinguish evaluator agreement from system accuracy. Where: the human evaluation description. Area: statistics. Mova: частково є (`treeagree` reports chance-corrected agreement and uncertainty for parser witnesses). Mova could report human consistency separately from the proportion of answers judged acceptable, with the calculation explicitly named. The paper reports agreement but leaves important protocol details open. Why Mova: disagreement about a sentence and failure by the generator are different uncertainties and should not be compressed into one score.

Idea: Turn error categories into component-specific experiments. Where: Figure 6 and its discussion. Area: diagnosis. Mova: вже є (training workflows log gaps and experiments; fast-reading analysis classifies misses). For answer realization, ordering errors could trigger candidate-selection analysis, while preposition or agreement errors could trigger a different review path. Existing diagnostic machinery is relevant, although this particular generation application is unestablished. Why Mova: repair proposals become easier to test when each targets a documented failure mechanism.

Idea: Test the limit on omitted words. Where: Section 3.2 and Conclusion and perspectives. Area: controlled generation. Mova: нове. A realization experiment could compare a narrowly permitted repair with a broader repair policy, while recording whether added freedom improves grammaticality or introduces unsupported content. The paper identifies the restrictive insertion assumption but does not supply the broader experiment. Why Mova: explicit capacity limits make it possible to tell whether a rule failed because of bad evidence or because the permitted operation was insufficient.

Idea: Detect misleading question vocabulary. Where: the Lance Bass example in the final discussion. Area: semantics and pragmatics. Mova: частково є (`prag`, `world` and `onto` represent roles, entities and world-model knowledge). Mova could check whether a relationship term reused from a question is compatible with the established answer before realizing it. No such complete premise-repair mechanism is demonstrated in the digest. Why Mova: grammatical reuse is unsafe when the question itself supplies an unsuitable description.

Idea: Preserve the requested answer type. Where: the discussion of polar questions and the Jacques Cousteau example. Area: question interpretation. Mova: частково є (`world` readers answer from question and story representations). A realization component should distinguish a request for a count from a request for a list, and an explicit polarity decision from supporting background. Why Mova: relevant information can still fail to answer the user’s actual request if the response leaves the final inference to the listener.

Idea: Protect lists and proper names during local repair. Where: Figure 4, the saved answer concerning electronics companies. Area: entity handling and generation. Mova: частково є (`world` tracks entities and `en` supplies grammatical analysis). An output check could ensure that realization preserves the established answer members and does not split or expand an entity through an unnecessary insertion. This is a proposal prompted by a visible example, not a reported paper result. Why Mova: entity fidelity is a concrete condition that can be checked separately from general fluency.

Idea: Evaluate conversational usefulness directly. Where: Introduction and the discussion of assistant responses. Area: human evaluation. Mova: нове. If Mova adds spoken or assistant-style responses, it could assess whether listeners immediately understand the answer’s relationship to the question. The paper motivates speech-oriented concision but does not measure that experience directly. Why Mova: a sentence that resembles a written reference may still be awkward to hear, so the intended interaction deserves its own evidence.

Idea: Keep fluency judgments subordinate to evidence. Where: Section 3.2, selection by sequence probability, and the final semantic counterexample. Area: reasoning and provenance. Mova: частково є (native conclusions retain reasons; optional consultant outputs have separate review boundaries). A candidate’s linguistic score could guide wording only after its factual content and role assignments pass native checks. Why Mova: the paper’s own failure example shows why a plausible sentence cannot certify that the relationship it expresses is appropriate.

### The problem and its context

#### A correct value can still be a poor response

The paper concerns a gap between obtaining information and communicating it. A knowledge-base query can identify a person, date, organization or quantity correctly. That result may nevertheless be too sparse to function comfortably as a conversational answer. Hearing an isolated name forces the listener to remember the question and supply the missing relationship mentally. A short declarative sentence can make that relationship explicit without requiring a long explanation.

Document-based answering can fail in the opposite direction. A retrieved passage may contain the relevant fact, but it may also contain background material that the user did not request. The difficulty is not necessarily that the passage is wrong. It is that the answer remains embedded in surrounding prose, leaving the user to identify the part that resolves the question. For spoken interaction, this filtering burden is especially relevant to the paper’s motivation.

The authors therefore seek a middle form: more informative than an isolated value, but more focused than an extracted passage. Their desired answer is concise because it concentrates on the requested relation. It is contextual because it includes enough material from the question to indicate what the returned value means.

This framing matters for interpreting the experiments. The paper is not principally about improving the retrieval of facts. Its surrounding system already supplies a short answer. The research question concerns how to express that answer naturally, using resources that do not require a dedicated collection of question-to-full-sentence training pairs.

#### How earlier work approached the surrounding tasks

The authors describe conventional question answering through question interpretation, information retrieval and answer extraction. Different systems emphasize different sources and output types. Some obtain answer-bearing passages from documents, while others return exact values from structured knowledge. These output types create different realization problems: passage-based systems may need compression, whereas structured systems need to turn a sparse result into a sentence.

Several earlier approaches manipulated question wording for retrieval. The paper discusses work by Brill and colleagues that rearranged question words to obtain varied answer patterns and increase the chance of locating relevant documents. It also mentions rephrasing associated with query expansion. The important distinction is the purpose of the transformation. Those methods sought useful search expressions; Akermi and colleagues seek the final wording shown or spoken to the user.

Another line of work approaches compact answers through [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/). The paper places the attention-based summarization work of [Rush and colleagues](https://md.research.elamur.ai/free/en/papers/rush-2015-neural-attention-model-abstractive-sentence/) and the recurrent approach of [Chopra and colleagues](https://md.research.elamur.ai/free/en/papers/chopra-2016-abstractive-sentence-summarization-attentive-recurrent/) within this broader context. It also cites [Nallapati and colleagues](https://md.research.elamur.ai/free/en/papers/nallapati-2016-abstractive-text-summarization-sequence-sequence/) among approaches concerned with generating shorter text from answer-bearing material.

As the authors describe this literature, much of the compact-answer work concerns causal questions. Such questions often invite explanations distributed across sentences, making passage selection and compression natural operations. Their own target is different: factual questions whose answer is already available as a short result. They explicitly exclude why-questions from the scope they propose for their method.

The paper also discusses supervised full-answer generation by Pal and colleagues. It characterizes that work as depending on a small, manually augmented collection derived from comprehension data, which limits variation and generalization. This provides the motivation for avoiding direct training on complete question-and-answer formulations.

The authors’ alternative is consequently a particular reuse strategy. General language resources supply grammatical and contextual knowledge, while the question supplies much of the required sentence material. The system needs neither a long source passage to summarize nor a newly trained end-to-end answer generator. Its effectiveness depends instead on whether structural analysis and constrained reassembly can bridge the gap between the question and its declarative answer.

### The method, step by step

#### Start with an established short answer

The surrounding conversational system accepts French or English questions. It converts the user’s request into a formal representation and then into a SPARQL query over an RDF knowledge base. Wikidata provides the factual values or entities used in this paper.

The answer-generation component begins after this process. Its input is not just a question: it also has the short answer produced upstream. This restriction is essential. A sentence that sounds natural does not demonstrate that the generator discovered the fact. The architecture assumes the factual result and concentrates on its expression.

The resulting pipeline can be represented as follows. The final stages show the A1 ordering; A2 changes the placement of local completion relative to candidate scoring.

From a factual result to a sentence The steps in order.

#### Parse the question into grammatical relationships

The parser is an extended UDPipeFuture system. The paper describes its underlying architecture as a bidirectional recurrent tagger and graph-based dependency parser, drawing on [Dozat and colleagues’ parser](https://md.research.elamur.ai/free/en/papers/dozat-2017-stanford-s-graph-based-neural/). The extension adds contextual word representations. These representations depend on the surrounding sentence, instead of assigning a word the same representation in every context.

The authors test several sources of contextual representations. For English, these include [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/). For French, they examine [CamemBERT](https://md.research.elamur.ai/free/en/papers/martin-2019-camembert-tasty-french-language-model/) and [FlauBERT](https://md.research.elamur.ai/free/en/papers/le-2019-flaubert-unsupervised-language-model-pre/). XLM-R provides another multilingual option, connected to the cited work on [cross-lingual representation learning](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/).

Parser training uses French-GSD and English-EWT from [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/). The experiments use UD v2.2 so that the general parsing results can be compared with the relevant shared-task results. The paper links this evaluation context to the [CoNLL parsing shared task](https://md.research.elamur.ai/free/en/papers/zeman-2018-conll-2018-shared-task-multilingual/).

A central practical issue emerges immediately: general treebanks contain too few examples of the short questions required by the application. English questions frequently have auxiliary constructions that differ from their declarative counterparts. French questions introduce their own difficulties, including inversion and the construction *est-ce que*. A parser can therefore perform well on its ordinary evaluation material while misanalyzing the inputs on which answer generation depends.

To address this, the authors add question annotations. The English additions contain 309 training questions and 91 validation questions drawn from QALD7 and QALD8. For French, they translate QALD7 questions and write further examples, producing 276 training questions and 66 validation questions. Their annotations follow both general UD principles and the conventions of the corresponding language treebank.

The final generation path uses the enhanced parser with BERT for English and CamemBERT for French. These choices concern parsing. They must be distinguished from the choices used later to score answer structures or predict missing words.

#### Divide the question into reusable pieces

Dependency analysis provides the basis for chunking the question. A chunk is a text fragment that the generator can treat as a unit. The paper writes the resulting collection as:

```
Q = {c₁, c₂, …, cₙ}
```

Here, Q denotes the question’s chunk collection. Each c with a subscript denotes a particular chunk, and n indicates how many chunks are present. The notation uses braces, but the subsequent generation process must still distinguish arrangements of these pieces.

In the example concerning the Paris mayor’s party affiliation, the chunks separate the interrogative word, the copular verb and the longer nominal description. The internal structure of that description remains intact during the later arrangement step. The generator is therefore not freely shuffling every word in the question.

This is a major constraint on the search. It preserves local relationships that the parser has already identified and focuses variation on how larger pieces should be arranged. At the same time, its success depends on whether the chunk boundaries are suitable. An incorrect boundary can conceal a needed rearrangement or preserve a malformed fragment.

#### Handle a subject question directly

The system first checks whether the chunk containing the interrogative marker has the dependency relation [nsubj](https://md.research.elamur.ai/free/en/concepts/ud-nsubj/), which identifies a nominal subject. If it does, the answer can replace that chunk directly.

This is the simplest realization path in the paper. The question already supplies a usable declarative skeleton, and the unknown subject is the part that factual retrieval has filled. The substitution preserves the rest of the structure rather than asking the scorer to discover a new arrangement.

The condition is grammatical, not merely lexical. Encountering an interrogative word is insufficient; the parser must assign the relevant subject relation. This explains why syntactic quality matters directly to generation. A mistaken relation can route a question into the wrong realization procedure.

#### Remove the interrogative and prepare other questions

When the subject-substitution condition does not hold, the system removes the interrogative chunk and adds the short answer. The paper gives the updated collection as:

```
Q = {c₁, c₂, …, cₙ₋₁, R}
```

R is the short answer obtained by the upstream question-answering system. The remaining c terms are the question fragments retained after removing the interrogative material. The subscript n−1 reflects that removal in the paper’s notation.

This step also requires grammatical preparation. In the Princess Diana example, the question contains a past-tense auxiliary together with the lexical verb. A rule-based operation converts that construction into the declarative past-tense verb. The generator does not simply delete the question word and leave the remainder untouched.

The paper illustrates this transformation but does not provide a comprehensive inventory of its rules. Its general contribution is the placement of explicit grammatical conversion before or alongside candidate construction, instead of a claim that all question-to-statement transformations are solved by the example.

#### Construct alternative sentence structures

The generator considers different orders of the retained chunks and the answer. The candidate collection is expressed as:

```
S = {s₁(R, c₁, …, cₙ₋₁), …, sₘ(c₁, …, cₙ₋₁, R)}
```

S is the set of candidate sentence structures. Each s term describes an arrangement of the supplied pieces. The subscript m identifies the final candidate in the displayed collection; it is not itself a reported experimental count. The examples show R occupying different positions among the retained chunks.

For the date question, candidate structures place the person, death event and date in different orders. Some are visibly unnatural. The purpose of the next component is to prefer a plausible ordering without hand-writing a separate complete template for every question.

The paper describes generating all arrangements of the chunks, but it does not report a general resource analysis. The number and quality of chunks therefore remain important practical conditions. The worked examples establish the procedure more clearly than they establish its scalability to long or complicated questions.

#### Score the alternatives

A language scorer assigns a probability to each candidate and selects the highest-scoring structure. The selection rule can be written as:

```
structure* = argmaxₛᵢ∈S p(sᵢ)
```

The starred structure is the selected candidate. The expression argmax means to choose the candidate that maximizes the following quantity. The symbol sᵢ denotes a member of S, and p(sᵢ) is the probability assigned to that candidate.

This formula specifies the decision criterion, not a complete recipe for computing comparable scores across every Transformer configuration tested. The paper does not fully detail such matters as score normalization or the precise treatment of different scoring architectures. Those omissions matter for exact replication.

Conceptually, the scorer supplies a preference over the generator’s constrained possibilities. It does not decide whether the retrieved fact is true, and it does not guarantee that the chosen sentence expresses an appropriate relationship. Its role is linguistic selection within the available candidate set.

#### Predict a local completion

Even the best arrangement can lack a small grammatical word. The authors allow a potential gap immediately before the short answer and use BERT to predict its content. Their rationale is that bidirectional context can help select an article or preposition using material on both sides of the gap.

The tested assumption is restrictive: a structure may need a single added word at that specified location. In the date example, the completion supplies the preposition appropriate before the date. The operation is local; it does not rewrite arbitrary parts of the sentence.

When the prediction is non-alphabetic, the system treats it as evidence that no extra word should be inserted. This is an implementation convention, not an independently established general test of grammatical completeness. It nevertheless provides a way for the process to leave a candidate unchanged.

#### Compare completing early with completing late

The paper evaluates alternative orders for scoring and completion. A1 first selects the strongest structure, then predicts a possible missing word in that selected candidate. A2 predicts the missing word for each candidate structure before scoring the completed alternatives.

These orders embody different assumptions. A1 asks the scorer to recognize a promising arrangement even when that arrangement may be locally incomplete. A2 gives the scorer more complete-looking sentences, but the inserted words can themselves be wrong and may influence which structure wins.

The comparison is therefore more informative than a simple choice between named components. It tests how intermediate representations affect downstream selection. The results differ by language, which cautions against treating either ordering as universally preferable.

### Experiments and results

#### Parsing on general text

The first experiments assess contextual representations for dependency analysis on the standard treebanks. The paper reports LAS, CLAS and MLAS. LAS measures correct labeled dependency attachment. CLAS focuses attention on content-word structure. MLAS also accounts for grammatical information such as tags and morphological features.

For French-GSD, the Straka reference has LAS 85.74, CLAS 82.49 and MLAS 77.29. The XLM-R configuration reports LAS 89.82, CLAS 86.94 and MLAS 82.62. CamemBERT also performs strongly, with LAS 89.67, CLAS 86.45 and MLAS 82.17.

For English-EWT, the reference has LAS 82.51, CLAS 79.14 and MLAS 74.71. XLM-R reaches LAS 89.54, CLAS 87.24 and MLAS 82.91. RoBERTa records LAS 89.40, CLAS 86.89 and MLAS 82.38.

These figures establish that contextual representations help the parser in the general-treebank setting. They do not, by themselves, establish which parser is best for generating answers to quiz-like questions. The next experiment addresses that distribution directly.

#### Question parsing before and after adaptation

On questions, the standard-training French configurations score much lower than they do on the ordinary treebank evaluation. CamemBERT records LAS 80.49, CLAS 75.26 and MLAS 61.32. After question enrichment, its corresponding scores are LAS 98.26, CLAS 97.37 and MLAS 92.12.

French question parsing with CamemBERT, LAS Question-enriched training produces substantially stronger attachment results on the reported question evaluation.

**The numbers**

| System or setting | LAS |
| --- | --- |
| Standard treebank training | 80.49 |
| Question-enriched training (this paper) | 98.26 |

The other French configurations also improve after enrichment. BERT reports LAS 97.55, while XLM-R reports LAS 97.56. Their MLAS scores are 91.20 and 91.23 respectively. These results support the authors’ decision to address the input mismatch rather than rely completely on the general-treebank ranking.

The English question results tell a related but less dramatic story. Before enrichment, BERT has LAS 90.58, CLAS 88.02 and MLAS 80.45. With question-enriched training, it reaches LAS 94.24, CLAS 91.92 and MLAS 84.85.

English question parsing with BERT, LAS Adding question annotations improves the parser selected for the English generation pipeline.

**The numbers**

| System or setting | LAS |
| --- | --- |
| Standard treebank training | 90.58 |
| Question-enriched training (this paper) | 94.24 |

Before enrichment, XLM-R has the strongest English LAS among the displayed question configurations, at 91.88. After enrichment, BERT leads the reported English question results. This change illustrates why the general representation comparison and the application-specific training comparison should be interpreted separately.

#### QUEREO and the answer-generation evaluation

For generation, the authors build QUEREO from questions associated with the QALD-7 challenge. The collection contains 150 questions, with both French and English versions. The short answers come from the surrounding question-answering system. A linguist writes full-sentence answers, which are then reviewed, and the collection has an average of three reference answers per question.

The multiple references acknowledge that a factual answer can be expressed naturally in different ways. A generation system need not reproduce a single sentence exactly to be useful. Nonetheless, reference-based comparison remains sensitive to what the references happen to cover.

The automatic measures are [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/), METEOR, ROUGE and BERT-score. The first group compares aspects of surface wording, while BERT-score uses contextual representations to assess similarity. The paper combines their configuration rankings through a Friedman-based comparison.

Human evaluation involves 20 native speakers. They judge whether a generated response is appropriate for its question and identify error types. The authors report participant agreement of 70%, which they interpret as substantial agreement. The reporting does not fully specify how judgments are distributed across participants or how that agreement figure is calculated.

#### French answer quality

The highest French human accuracy in Table 4 is 84.85. That configuration uses A1, multilingual BERT for missing-word prediction, and CamemBERT for structure scoring. It also receives the leading Friedman rank among the displayed configurations.

For this configuration, the automatic scores are BLEU 86.28, METEOR 96.76, ROUGE 93.69 and BERT-score 97.89. These are sentence-comparison results, not alternative expressions of its human accuracy. Their scales and meanings should not be conflated.

Several other displayed configurations have human accuracy 84.09. They include A2 with FlauBERT-small-cased as the scorer and A1 with XLM-RoBERTa-base as the scorer. The table therefore supports the best displayed configuration more clearly than it supports a claim that every alternative is sharply separated.

The authors conclude that A1 works better for French overall. They also observe that multilingual BERT predicts missing French words better than CamemBERT in their experiments. This is a useful reminder that a component’s strength depends on its role: the best French structure scorer need not be the best French gap predictor.

#### English answer quality

The English table contains a tie at the highest human accuracy. Both leading configurations use multilingual BERT for missing-word prediction and OpenAI-GPT for structure scoring, but they differ in processing order.

English QUEREO answer generation, human accuracy The leading reported configurations tie across the alternative processing orders.

**The numbers**

| System or setting | Human accuracy |
| --- | --- |
| A1, multilingual BERT and OpenAI-GPT | 72.36 |
| A2, multilingual BERT and OpenAI-GPT (this paper) | 72.36 |
| A1, BERT-large-cased and OpenAI-GPT | 71.55 |

The star identifies the configuration placed first by the reported Friedman ranking; it does not imply a unique human-accuracy winner. The A2 configuration has METEOR 94.63, while the tied A1 configuration has METEOR 94.51. Their BLEU values are both 78.25.

Another displayed A1 configuration uses BERT-large-cased for completion and OpenAI-GPT for scoring. Its human accuracy is 71.55, and its BERT-score is 97.32. That BERT-score receives the leading rank for the metric even though its human accuracy does not lead the table.

The authors emphasize A2 among the strong English settings and find OpenAI-GPT especially effective as a scorer. The exact tie remains important: the evidence supports different language-dependent preferences, rather than an unconditional conclusion that A2 defeats A1.

#### Agreement between automatic and human rankings

For French, Table 6 reports Pearson correlations with human evaluation of 98% for BLEU, 99% for METEOR, 46% for ROUGE and 97% for BERT-score. The weaker ROUGE relationship motivates the authors’ warning against relying on that measure alone for French answer evaluation.

For English, the corresponding correlations are 85%, 80%, 83% and 88%. The automatic measures therefore track human configuration preferences reasonably well in this experimental setting, but their relative behavior differs from the French case.

These are configuration-level associations. They do not establish that a metric can reliably judge every individual answer. Nor do they show that reference similarity independently verifies factual correctness. The factual result is supplied upstream, and the evaluation primarily concerns how that result is expressed.

### What the ablations show

#### Question-specific training is the clearest adaptation comparison

The paper does not present a complete component-removal ablation of the answer generator. It does, however, offer controlled configuration comparisons, a before-and-after parser adaptation study, metric correlation analysis and categorized human errors.

The question-enrichment experiment provides the clearest evidence about a specific design intervention. The authors hold the broad parsing setup recognizable while changing the training material to include the constructions required by the application. The reported improvements support the view that input mismatch is a genuine obstacle, not merely an incidental implementation detail.

The French results are particularly informative because the ordinary-treebank and question evaluations diverge strongly. A contextual representation that works well on general text does not remove the need to represent question syntax in training. The experiment therefore supports targeted data collection as well as the use of contextual representations.

There is still a limit to this interpretation. The paper does not connect each corrected dependency to a measured improvement in a particular generated answer. It demonstrates better question parsing and evaluates the final generator, but it does not isolate the entire causal path between those results.

#### Component order changes what the scorer sees

The A1/A2 comparison tests whether local completion should happen before or after structure selection. This is a meaningful architectural intervention because it changes the candidates that the scorer evaluates.

In A1, the scorer must judge structures that may contain a grammatical gap. In A2, the scorer judges structures that have already received a predicted completion. A2 can help if the added word makes the intended construction recognizable. It can hurt if an inappropriate completion makes a poor candidate appear more plausible.

The French findings favor the first ordering. The strongest English human result is shared across the orderings, with A2 placed first by the Friedman comparison. The appropriate conclusion is conditional: the ordering interacts with the language and component configuration.

This comparison does not establish why every individual ordering error occurs. It identifies a useful design choice, while leaving open whether the decisive factor is the scoring component, the completion component, the candidate structure or their interaction.

#### Representation choice is not a universal ranking

The parser experiments compare contextual representations, while the generation experiments compare sentence scorers and missing-word predictors. Their results should not be collapsed into a single hierarchy.

XLM-R performs strongly in the ordinary-treebank results. The selected question parsers instead use BERT and CamemBERT. For French generation, multilingual BERT is preferred for completion even when CamemBERT is strongest for scoring. The paper therefore provides evidence for role-specific selection instead of a universal winner.

This is especially relevant to system engineering. A component’s success at assigning dependencies does not demonstrate that it will best rank entire sentences. Likewise, a strong sentence scorer need not produce the most suitable local grammatical insertion.

#### Error categories locate unresolved work

The human error analysis identifies word order as the most common problem in both languages. The authors associate this with the structure-scoring phase. That attribution is plausible because scoring selects among candidate arrangements, but the architecture leaves other possible contributors: the correct arrangement might be absent because chunking or earlier transformations constrained it away.

The next prominent problems differ by language. French judgments frequently concern remaining omissions, while English judgments frequently concern unsuitable inserted words. These observations point toward the completion stage and its restrictive assumptions.

The analysis is diagnostic rather than a quantified removal study. It does not show what accuracy would result from an ideal parser, an ideal scorer or an unrestricted repair mechanism. Its value is in making the next research questions more specific: improve arrangement selection, examine the gap policy, and distinguish missing information from incorrect additions.

### Limitations

#### Limits the authors identify

The authors explicitly identify sentence scoring and word order as priorities for further work. The prevalence of ordering errors shows that selecting the most probable candidate is not sufficient to guarantee a natural response. They propose paying closer attention to the choice of language scorer.

They also identify the restriction on local completion. A sentence may require more material than the tested insertion policy permits. Their future direction includes predicting more than a single missing word. The existing experiments do not demonstrate how such an expanded procedure would affect correctness or fluency.

A further stated limitation concerns inappropriate vocabulary inherited from the question. The Lance Bass example is important because it exposes a semantic failure instead of a merely grammatical one. The generated sentence retains a relationship label that does not fit the returned answer. Reordering and local completion cannot, on their own, resolve that mismatch.

The authors also bound the intended question class. Their claim concerns factual questions and excludes why-questions. Explanatory answers may require causal material that cannot be recovered by rearranging the question and adding a short factual result.

#### The “unsupervised” description has a specific scope

A careful reading must distinguish the generation procedure from all of its supporting components. The method avoids training on paired questions and complete answer sentences. It nonetheless relies on pretrained Transformers and a trained dependency parser.

The authors additionally create manual question annotations for parser adaptation. This is supervised structural work even though it is not direct supervision of the final full-sentence generator. Calling the entire system annotation-free would therefore go beyond the paper’s procedure.

The distinction is not a weakness in itself. It clarifies what resource the method saves: a dedicated training collection of complete answer realizations. It does not eliminate the need for general linguistic resources, parser training or careful evaluation.

#### The benchmark is small and specialized

QUEREO contains 150 questions in language versions built for this evaluation. Its questions come from a linked-data question-answering setting, and its answer values are supplied by the surrounding system. These conditions do not establish performance across arbitrary conversational requests or knowledge sources.

The average of three reference answers provides some flexibility, but it does not exhaust the acceptable formulations of every response. Reference-based scores can penalize legitimate wording variation and reward overlap that is insufficient for genuine answer quality.

The paper also does not provide a broad independent generation baseline on the same benchmark. Its main generation comparisons concern configurations of the proposed architecture. The informal discussion of commercial assistants does not replace a controlled benchmark comparison.

#### Human evaluation leaves methodological questions open

The human study is valuable because it tests whether automatic configuration preferences resemble human judgments. However, the reporting does not fully describe how many judgments each answer receives, how participants are assigned items, or how disagreements are resolved.

The agreement figure is not accompanied by a clearly specified chance-corrected coefficient. Consequently, it is difficult to compare that value with other agreement measurements or use it as a precise estimate of evaluation reliability.

The paper’s own saved-judgment example also illustrates why binary correctness deserves scrutiny. A response can receive an acceptable overall label while containing a suspicious insertion. This does not invalidate the study, but it reinforces the need to distinguish factual relevance, grammaticality, entity preservation and overall acceptability.

#### Correlation is narrower than validation of every answer

The reported Pearson correlations compare human evaluation with automatic metric behavior across configurations. Strong agreement at that level does not imply that a metric reliably detects individual semantic mistakes.

This matters because the generator reuses much of the question. An answer can share many words with a reference while preserving an unsuitable relation or producing the wrong syntactic emphasis. Contextual similarity likewise does not independently establish that the factual relationship is appropriate.

The authors’ positive conclusions about automatic metrics should therefore remain tied to the observed configuration-selection setting. Extending them to unrelated languages, answer types or generation procedures would require further evidence.

#### Reproduction and scalability are incompletely specified

The paper gives the main architecture, candidate-selection formula and worked transformations, but it does not fully specify the chunking algorithm or the complete set of grammatical conversion rules. It also leaves details of cross-architecture sequence scoring insufficiently explicit for exact reconstruction.

Candidate enumeration introduces another open issue. The paper does not report a general search-cost analysis, latency measurements or a policy for unusually large chunk collections. Its examples demonstrate feasibility for the intended questions, not a universal efficiency guarantee.

The fixed gap location is also an architectural restriction. Even if the correct missing word is available to the predictor, the system cannot insert it elsewhere under the tested policy. A grammatical failure may therefore reflect an unavailable operation instead of a poor lexical prediction.

#### Spoken usefulness remains a motivation

The motivating application is a conversational assistant, but the experiments evaluate generated sentences through references and human relevance judgments. They do not directly measure spoken comprehension, listening effort or interaction time.

Concision is therefore an intended quality instead of a separately established conversational benefit. The paper makes a convincing case that isolated values and long passages can be awkward responses, but it does not quantify how much its sentence generator improves the listening experience.

The same distinction applies to the assistant examples. They illustrate recognizable response problems, including indirect polarity answers and lists returned where a quantity was requested. They do not establish a systematic comparative result against those assistants.

### What came after

The paper’s closing research agenda follows directly from its observed failures: improve the choice of sentence scorer, relax the local completion restriction, and handle cases where the question’s wording is incompatible with the answer. These are proposed continuations, not completed follow-up results.

No documented later study can be described as adopting or extending this method on the evidence available for this account. Its subsequent influence therefore remains unestablished. What the paper itself leaves is a clear experimental program: retain the separation between factual retrieval and realization, then test whether better structural selection and more carefully controlled rewriting can improve answer sentences without weakening their fidelity to the underlying fact.

## Cite

Cite as Imen Akermi, Johannes Heinecke and Frédéric Herledan. 2020. Transformer based Natural Language Generation for Question-Answering. Proceedings of the 13th International Conference on Natural Language Generation.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2020.inlg-1.41](https://doi.org/10.18653/v1/2020.inlg-1.41)

```bibtex
@inproceedings{akermi2020transformer,
  title = {{Transformer based Natural Language Generation for Question-Answering}},
  author = {Imen Akermi, Johannes Heinecke and Frédéric Herledan},
  booktitle = {Proceedings of the 13th International Conference on Natural Language Generation},
  year = {2020},
  doi = {10.18653/v1/2020.inlg-1.41},
  url = {https://doi.org/10.18653/v1/2020.inlg-1.41}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
