---
title: "A Survey of Knowledge-enhanced Text Generation — Yu 2022"
description: "Yu and colleagues survey where text generation systems get knowledge, how they use it, and what benchmarks reveal about the benefits and limits."
canonical: "https://research.elamur.ai/free/en/papers/yu-2022-survey-knowledge-enhanced-text-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/yu-2022-survey-knowledge-enhanced-text-generation/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / A Survey of Knowledge-enhanced Text Generation

# A Survey of Knowledge-enhanced Text Generation

Paper · 2022 · Wenhao Yu, Chenguang Zhu, Zaitang Li et al.

**Authors:** [Wenhao Yu](https://md.research.elamur.ai/free/en/authors/wenhao-yu/), [Chenguang Zhu](https://md.research.elamur.ai/free/en/authors/chenguang-zhu/), [Zaitang Li](https://md.research.elamur.ai/free/en/authors/zaitang-li/), [Zhiting Hu](https://md.research.elamur.ai/free/en/authors/zhiting-hu/), [Qingyun Wang](https://md.research.elamur.ai/free/en/authors/qingyun-wang/), [Heng Ji](https://md.research.elamur.ai/free/en/authors/heng-ji/) and [Meng Jiang](https://md.research.elamur.ai/free/en/authors/meng-jiang/) · **Year:** 2022 · **Venue:** ACM Computing Surveys · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **81** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/yu-2022-survey-knowledge-enhanced-text-generation/cited-by/) · ACM Computing Surveys · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2010.04389)
- [DOI 10.1145/3512467](https://doi.org/10.1145/3512467)
- [arXiv 2010.04389](https://arxiv.org/abs/2010.04389)

## Summary

A question can be perfectly clear and still leave out the facts needed to answer it. A news article presents a different problem. It may contain everything a reader needs, but the important events can be scattered across paragraphs, with the same people or organizations referred to in different ways. Both situations matter for [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/). A system can produce a fluent answer that says little, or a fluent summary that misses the connection between events. Yu and colleagues survey methods that give generators more explicit guidance about what to say by finding useful information and representing it in a form the generator can use.

The authors distinguish internal knowledge, which is derived from the input, from external knowledge, which comes from another source. Keywords, topics, grammatical annotations, and relationships extracted from a document are examples of internal knowledge. A collection of factual records, a commonsense [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/), or a passage retrieved from Wikipedia can supply external knowledge. The distinction concerns provenance. A graph built from a news article belongs to the internal category, even though its structure resembles an external graph. The authors also distinguish ways to use the information. A generator may consult it while composing a sentence, copy a name directly from it, learn during training to choose an appropriate fact, or adjust its next-word predictions during generation.

The findings depend on what the individual studies measure. In the survey’s comparison of graph-enhanced systems with the best baselines used in the corresponding studies, the average change reported for generative commonsense tasks is +2.55% in BLEU, a measure based on overlap with reference wording. The average across the graph-enhanced tasks in that comparison is +1.32%. The authors also measure how much of the relevant graph knowledge is accessible before generation starts. On ComVE, 25.1% of the concepts used in outputs could be found in ConceptNet, and 11.4% could be found in the retrieved 2-hop subgraph. The coverage comparison makes a limitation visible that a generation score alone leaves unexplained. A fact or concept may be present in a resource and still fall outside the part the generator receives.

The survey selects 9 public datasets spanning tasks such as grounded conversation, summarization, and commonsense explanation. It shows why evidence selection and evidence use deserve separate attention. A retrieved passage may be relevant to a question without supporting the answer that is written. A useful graph path may help explain an answer, while a larger neighborhood may provide more context at the cost of a less explicit account of how it was used. The paper’s contribution is a way to compare these choices across applications and to read the reported improvements in light of the task, the source, and the evaluation.

## Deep dive: A Survey of Knowledge-enhanced Text Generation

Yu and colleagues survey where text generation systems get knowledge, how they use it, and what benchmarks reveal about the benefits and limits. · about 46 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What the input leaves for the system to infer

The paper focuses on generation from text. The input might be a question, a conversation turn, a document, or a set of words. The output has a different job in each case. In [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/), it should express the source in another language. In [summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/), it should preserve important information while shortening the source. In [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/), it should supply requested information, sometimes with an explanation. In [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/), it should make sense as the next contribution to a conversation. The same general machinery can produce the words for all of these tasks, but the basis for deciding which words belong in the output changes.

The survey illustrates the problem with a complaint about dry skin. A reply expressing agreement can sound conversational, yet it can be produced for a wide range of complaints and leave this particular one unaddressed. A response about moisturizing takes the topic of the complaint seriously and supplies information that the speaker did not spell out. This example matters because the difference is apparent even when both replies are grammatical. A system trained on examples of plausible conversation has an incentive to reproduce expressions that work in many settings. Topic information gives it a more specific basis for choosing what to say on this occasion.

The bottleneck in a long document can be different. Several sentences might mention events involving the same person or concept. A useful summary may need to bring those events together even when the sentences are far apart. A representation that groups relationships around shared entities gives the generator another way to find the connections. In this case the document remains the source of the claims. The enhancement comes from making relationships in that document easier to use. The authors’ definition of knowledge accommodates both this kind of reorganization and the introduction of material from outside the input.

The distinction also helps explain why questions are an especially clear case for external knowledge. A question can identify the entity and the property of interest while leaving the value of that property unknown. A fact collection can supply the missing value. Other questions call for several facts or a piece of background that makes the answer intelligible. A review may supply a product detail even when the question contains only a product name and a request about one feature. The generator still has to identify the relevant detail, decide how much surrounding information matters, and express the answer in a suitable form.

#### The starting point in earlier work

The authors trace the sequence-to-sequence formulation to the 2014 work by Sutskever and colleagues. Its encoder converts the source sequence into a representation, and its decoder turns that representation into a target sequence. In the early recurrent design, a state passes from one position to the next as the source is read. The architecture gives the decoder a way to write a sequence whose length can differ from the input’s length. It also makes the representation passed between encoder and decoder consequential. If a distinction disappears during encoding, the decoder must rely on whatever information is still available in its state. [Sequence to Sequence Learning with Neural Networks](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/)

The survey also describes convolutional and attention-based alternatives. A convolutional encoder builds representations from windows of nearby words through successive operations. A [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) uses self-attention, which lets positions draw information from other positions in the same sequence. Another development, illustrated by the translation work of Bahdanau and colleagues, gives the decoder a changing view of the source. As it writes each part of the output, it can favor the input positions that are most useful at that moment. These developments broaden what can be read from the source and provide mechanisms that later methods can also apply to a set of keywords, a series of graph nodes, or a collection of passages. [Convolutional Sequence to Sequence Learning](https://md.research.elamur.ai/free/en/papers/gehring-2017-convolutional-sequence-sequence-learning/) · [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/) · [Neural Machine Translation by Jointly Learning to Align and Translate](https://md.research.elamur.ai/free/en/papers/bahdanau-2014-neural-machine-translation-jointly-learning/)

Pretraining adds another source of information. A [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) can acquire general linguistic patterns and some factual associations by learning from large collections of text. The survey discusses gains from systems such as BERT and T5 alongside difficulties in applying pretrained representations to tasks requiring particular relation structures or domain knowledge. Its examples include commonsense questions whose concepts have counterparts in a graph and the mismatch between general pretraining material and electronic medical records. This leaves room both for making a relevant relation explicitly available and for changing the training exercises through which knowledge enters the parameters. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) · [T5](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/)

The authors position the paper alongside earlier surveys of neural generation, surveys of graph techniques, and work on representing structured sources for reading comprehension and retrieval. Those bodies of work describe parts of the problem. The organizing question here is how a generator comes to have the right information for a particular output, and how its design allows that information to affect what it writes. The introduction describes seven mainstream applications and more than 80 relevant papers published or released in or after 2016. Comparing across those applications lets the authors trace the same mechanism, such as copying, across tasks for which the copied material can be an input keyword, a factual record, or a span of background text.

### The method, step by step

#### From an input sequence to an output sequence

This is a survey of techniques with a shared starting point. For a given input, a system first needs a representation of that input. A knowledge-enhanced design can then extract a signal from the input or select material from a separate source. Words, documents, facts, and graph neighborhoods each need a representation suited to their structure. That representation may be made available to the decoder, used to train a selector, or used to judge partial outputs. The sequence below shows the common case in which selected knowledge is available as the system generates, with training or inference constraints used where the design calls for them.

How selected knowledge can guide text generation The steps in order.

The basic generator produces a sequence by repeatedly deciding what token should come next. Its probability for an entire answer follows from the probabilities it assigns to the successive tokens in that answer. The survey expresses this as a factorization.

```
P(Y | X) = P(y₁, …, yₘ | x₁, …, xₙ) = ∏ₜ₌₁ᵐ p(yₜ | X, y₁, …, yₜ₋₁)
```

Here X is the input with n tokens, and xᵢ denotes the input token at position i. Y is the output with m tokens, and yₜ denotes the token at output position t. P denotes a sequence probability and p denotes a next-token probability. The bar means “given,” the ellipses indicate successive positions, and the product multiplies the next-token probabilities over the output. The terms before yₜ form the prefix available at its prediction step. At the first step that prefix is empty in the factorization.

The input representation begins with a vector for each token. A vector is an ordered collection of numbers that the system can transform and compare. The encoder gives each token a context-sensitive representation. A recurrent encoder does this while traversing the sequence, a convolutional one builds from local windows, and a Transformer lets positions attend to one another. The paper uses a shared notation for their outputs. [Word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/)

```
(h₁, h₂, …, hₙ) = Encoder(e(x₁), e(x₂), …, e(xₙ))
```

The function e maps xᵢ to its input embedding. Encoder is the function that transforms the ordered embeddings into the ordered hidden representations hᵢ. The indices run through the n input positions, and the ellipses stand for the intervening vectors. The hᵢ values can represent the same word differently in different contexts because they are computed together with information from the sequence.

The decoder maintains a state that carries information needed for the next decision. In the survey’s basic recurrent notation, the update uses the preceding state and the embedding of the preceding output token.

```
sₜ = Decoder(sₜ₋₁, e(yₜ₋₁))
```

Here sₜ is the decoder’s state at time t, and sₜ₋₁ is its previous state. Decoder is the learned update function. The same embedding notation e is used for the vector representing the preceding output token yₜ₋₁. The paper suppresses the input in this update notation. The overall encoder-decoder distribution is still conditioned on X.

```
p(yₜ | yₜ₋₁, yₜ₋₂, …, y₁) = Readout(sₜ)
```

Here Readout denotes the nonlinear function that turns the state sₜ into token probabilities. The right-hand side is understood to give the entry for the candidate yₜ. The left-hand side lists the earlier tokens in reverse positional order, with the ellipsis standing for the intermediate positions. In this abbreviated decoder equation the conditioning on the source is conveyed through the state, as in the preceding update.

Training can use a reference output to show the generator what token is expected at each point. Maximum likelihood estimation favors parameters that give the observed output higher probability. The usual loss has the opposite sign, so minimizing it favors those same parameters.

```
ℒ_NLL(θ) = −log pθ(Y | X) = −∑ₜ₌₁ᵐ log pθ(yₜ | y₍<ₜ₎, X)
```

In this formula ℒ_NLL is negative log likelihood, θ denotes the parameters, and pθ is the conditional probability under those parameters. X and Y are the source and reference output. The symbol y₍\<ₜ₎ denotes every reference token before position t. The sum adds the contributions from all m positions, and log is the logarithm. The minus signs make low probability for the observed output correspond to a larger loss. Auxiliary training targets in the survey generally give the system an additional objective alongside this generation loss.

#### Attention and copying give knowledge different jobs

An attention mechanism gives the decoder access to a fresh context at each output step. Suppose a summary is about to mention an organization introduced early in the source. The decoder can place more weight on the relevant positions for that token and emphasize another part of the article when it describes what happened. Attention performs a weighted read of the available representations. The context obtained from that read is then part of the decoder update.

```
sₜ = Decoder(sₜ₋₁, e(yₜ₋₁), cₜ)
```

The new argument cₜ is the context vector used at step t. The symbols sₜ and sₜ₋₁ denote the current and preceding state, and e(yₜ₋₁) is the embedded preceding output token. Decoder now uses all these inputs to produce the new state.

```
cₜ = ∑ᵢ₌₁ⁿ αₜᵢ hᵢ
```

Here hᵢ is the hidden representation at input position i, n is the number of input positions, and αₜᵢ is the attention weight for position i at output step t. The sum combines the input vectors in proportion to those weights. The resulting cₜ can change across output steps because the weights can change.

```
αₜᵢ = exp(η(sₜ₋₁, hᵢ)) / ∑ₖ₌₁ⁿ exp(η(sₜ₋₁, hₖ))
```

The function η assigns a compatibility score to the previous decoder state sₜ₋₁ and a candidate source representation. The numerator is the exponential, denoted exp, of the score for hᵢ. The denominator sums exponentiated scores across all n source positions, indexed by k, so the weights form a distribution. The score can be learned from the generation loss because the weight computation supports back-propagation, the process of passing information about training error back through the operations that produced it.

An external source can be read by its own attention mechanism. Its positions can correspond to topics, nodes, facts, or spans in a background document. The result is a knowledge context vector. The survey gives a simple fusion example in which the decoder receives a learned transformation of the source context joined to the knowledge context.

```
c̃ₜ = f_mlp(cₜ ⊕ cᴷₜ)
```

The vector c̃ₜ is the combined context for step t. The vector cₜ comes from the input, while cᴷₜ comes from attending to knowledge K. The operator ⊕ concatenates the vectors by placing their components in succession. The function f_mlp is a multilayer perceptron, a learned neural transformation. Its output can carry information from both sources into one decoder update.

The survey describes the Transformer decoder in a notation that makes the comparison with recurrent decoding easier to see. In an efficient implementation, the decoder can retain the attention keys and values it has computed for earlier positions. It uses the cached history, the previous token, and the encoder outputs when extending the sequence.

```
Sₜ = Transformer-Decoder(Sₜ₋₁, e(yₜ₋₁), H)
```

Here Sₜ and Sₜ₋₁ denote the current and preceding cached histories. Transformer-Decoder is the decoder update, e(yₜ₋₁) is the previous token’s embedding, and H denotes the collection of source representations hᵢ. The source is available through attention over H.

```
Sₜ = [(Kₜ⁽¹⁾, Vₜ⁽¹⁾), …, (Kₜ⁽ˡ⁾, Vₜ⁽ˡ⁾)]
```

The list gives the history for l decoder layers. At layer i, Kₜ⁽ⁱ⁾ and Vₜ⁽ⁱ⁾ store the keys and values from positions available up through t. In attention, keys are used when deciding how strongly to attend to stored positions, and values provide the vectors that are combined. In this cache notation K is a key matrix, distinct from the standalone K used for additional knowledge.

Copying gives the decoder a direct way to emit tokens in the material it reads. A vocabulary of regularly generated words may lack a name that appears in the source. A copying mechanism can make that name available at the appropriate step. The survey presents CopyNet and the pointer-generator as architectures that let a decoder combine ordinary word generation with this option. They can be trained with the generation task because the probabilities of the alternatives are differentiable. [CopyNet](https://md.research.elamur.ai/free/en/papers/gu-2016-incorporating-copying-mechanism-sequence-sequence/)

```
𝒱ₑₓₜ = 𝒱 ∪ 𝒱ₓ ∪ {unk}
```

Here 𝒱ₑₓₜ is the extended vocabulary, 𝒱 is the global vocabulary, and 𝒱ₓ contains the distinct input tokens. The operator ∪ takes the union of the sets. The braces around unk denote the singleton set containing the unknown-token symbol.

```
p(yₜ) = p_g(yₜ) + p_c(yₜ)
```

Here yₜ is a candidate output token at step t, and p(yₜ) is its overall probability. In the survey’s CopyNet notation, p_g and p_c are the probability contributions of generating the token and copying it, respectively. When a token can be produced through both routes, the contributions add.

```
p(yₜ) = pₘ(g) · p_g(yₜ) + (1 − pₘ(g)) · p_c(yₜ)
```

This is the pointer-generator version. The quantity pₘ(g) is a learned switch probability for choosing ordinary generation, and its complement is the probability of choosing copying. The distributions p_g and p_c give the token probabilities within those modes. The copy distribution reuses the attention weights. The multiplication signs apply the mode probabilities to the respective contributions, which are then added to obtain p(yₜ).

Several systems reviewed by the authors extend this idea to words in a knowledge source. A factual answer generator can have a mode for names and relations found in a knowledge base even when those expressions occur neither in its ordinary vocabulary nor in the input question.

```
𝒱ₑₓₜ = 𝒱 + 𝒱ₓ + 𝒱_KB
```

Here 𝒱_KB denotes vocabulary supplied by the knowledge base, and 𝒱, 𝒱ₓ, and 𝒱ₑₓₜ have the preceding meanings. The plus signs retain the survey’s notation for combining vocabulary sources. They denote inventory extension rather than numerical addition. The corresponding token probability can draw from ordinary generation, copying the input, and using the knowledge-base inventory. Other examples in the survey give topics, assigned or extracted keywords, graph entities, or background text their own route into the output.

#### Reading memory and encoding relationships

A memory network can store several items and read them repeatedly. The memory might contain pieces of dialogue history or knowledge records. The input supplies an initial query vector. A first read can favor entries that resemble the query. The information returned by that read changes the query for the next pass. Each pass is called a hop, and the successive reads let the system refine what it looks for in the stored material.

```
Cᵏᵢ = Cᵏ(mᵢ)
```

Here mᵢ is the item at memory position i, Cᵏ is the trainable embedding map for hop k, and Cᵏᵢ is the vector it produces for that item. The survey uses a family of embedding matrices C, running through Cᴷ⁺¹ for a network with K hops. The extra matrix lets the read operation use a representation of the items distinct from the one used to score them at the final hop.

```
pᵏᵢ = softmaxᵢ((hₓᵏ)ᵀ Cᵏᵢ)
```

The vector hₓᵏ is the current query derived from X and updated through earlier reads. The superscript T denotes a transpose, here giving a dot product with the memory vector Cᵏᵢ. The softmax normalizes the scores across memory positions, and pᵏᵢ is the weight assigned to item i at hop k. The subscript on softmax makes explicit that the normalization involves the whole set of item scores.

```
oᵏ = ∑ᵢ pᵏᵢ Cᵏ⁺¹ᵢ
```

The vector oᵏ is the information read at hop k. The summation runs over the stored items i, uses their weights pᵏᵢ from the selection step, and combines their representations Cᵏ⁺¹ᵢ from the next embedding matrix.

```
hₓᵏ⁺¹ = hₓᵏ + oᵏ
```

Here hₓᵏ⁺¹ is the next query, formed by adding the current read oᵏ to the current query hₓᵏ. The survey’s example passes the final read oᴷ into decoding. A history item that receives little weight on the first read can become more important once another read changes the query.

A graph presents another representation problem. Its edges tell the system which items are related and how. A graph neural network updates each node by receiving information from connected nodes and edges. After each round, the representation can reflect a larger neighborhood. This mechanism can be used with a grammatical dependency graph derived from the input, or with a subgraph retrieved from an external resource. [Graph neural networks](https://md.research.elamur.ai/free/en/papers/wu-2019-comprehensive-survey-graph-neural-networks/)

```
𝒢 = (𝒰, ℰ)
```

Here 𝒢 is the graph, 𝒰 is its node set, and ℰ is its edge set. The edges may carry types. For instance, an edge in a syntactic graph can represent a grammatical relation, while an edge in a commonsense graph can represent a relation between concepts.

```
𝒩(u) = {(uᵢ, eᵢⱼ, uⱼ) ∈ ℰ | uᵢ = u or uⱼ = u}
```

Here 𝒩(u) is the collection of edges incident to node u. In each triple, uᵢ and uⱼ are endpoint nodes, i and j index those nodes, and eᵢⱼ is the connecting edge. The symbol ∈ denotes membership in the edge set ℰ. The vertical bar introduces the condition for inclusion, which accepts an edge with u at either endpoint.

```
u⁽ᵏ⁾ = Combineₖ(u⁽ᵏ⁻¹⁾, Aggregateₖ({(uᵢ⁽ᵏ⁻¹⁾, eᵢⱼ⁽ᵏ⁻¹⁾, uⱼ⁽ᵏ⁻¹⁾) : (uᵢ, eᵢⱼ, uⱼ) ∈ 𝒩(u)}))
```

In this update, u⁽ᵏ⁾ is the representation of the focal node after layer k. Its previous representation is u⁽ᵏ⁻¹⁾. The indexed vectors inside the braces are the preceding representations of the edge and its endpoint nodes. The colon inside the braces specifies which triples to collect. Aggregateₖ summarizes the incident information, and Combineₖ merges that summary with the focal node’s previous representation. A design can learn to emphasize particular neighbors or use different transformations for different edge types.

```
h_G = Readout({u⁽ᴷ⁾ : u ∈ 𝒰})
```

Here h_G is the representation of the entire graph. The set inside Readout contains the final vectors u⁽ᴷ⁾ from all nodes u in 𝒰, after K rounds. Graph Readout pools these vectors into a graph-level representation. It has a different job from the token Readout in the decoder. The decoder may use the pooled graph, attend to individual edges, or combine these views.

#### How training and inference put knowledge to work

Giving the decoder a separate channel is one option. Training can also teach it to identify useful information. For grounded dialogue, a training example can include a label for the background sentence that supports the reply. The system learns to predict that sentence, and its training loss includes errors on the sentence choice as well as errors on the reply. Related objectives in the paper reward predicting a keyword, ranking a template, selecting a graph path, or recovering a graph link. These tasks make an intermediate act of knowledge use subject to supervision.

The material can also be used to create the target output itself. The survey describes aspect-based summarization work that automatically constructs target summaries with help from an external knowledge base. The resulting examples provide weak supervision, meaning the outputs serve as training labels even though they were derived automatically and may contain noise. An auxiliary task asks the system to learn a distinct intermediate prediction. Weak supervision of this kind changes the examples on which it learns to generate.

A conditional design makes the selected knowledge available along with the input. A persona profile or an emotion can be stipulated for a dialogue response. A fact or a Wikipedia passage can be retrieved, and a keyword can be extracted. The generator then assigns probabilities to outputs given both what was asked and the information supplied with it.

```
pθ(Y | X, K)
```

Here θ denotes the generator’s parameters, X is the input, K is the additional knowledge, and Y is the output sequence whose conditional probability is evaluated. The bar introduces both conditions. The notation specifies what information is available to the generator. Attention and copying are examples of ways for that information to affect the token decisions.

The authors also describe incorporating knowledge into pretraining. One family supplies precomputed representations of entities, as KG-BART does with graph embeddings. Those vectors carry information about graph connections. Because text embeddings and entity embeddings can be learned separately, their coordinate spaces can be difficult to combine. Another family trains on exercises designed to make the parameters capture relationships or concepts. Examples in the survey include predicting an entity’s category or reconstructing the order of concepts. CALM combines a generation objective with a contrastive objective, which teaches the system to distinguish between alternatives. These exercises place the knowledge in the training signal, so the mechanism differs from providing a new evidence passage each time an output is requested. [BART](https://md.research.elamur.ai/free/en/papers/lewis-2020-bart-denoising-sequence-sequence-pre/)

Knowledge can also define what kinds of outputs a learned distribution should favor. In posterior regularization, an auxiliary distribution gives more probability to outputs that score well on a knowledge-related criterion. The generator is encouraged to stay close to that distribution. The survey writes the constraint as part of a maximization problem.

```
maximize over θ, q   ℒ(θ) − KL(q(Y | X) ‖ pθ(Y | X)) + ξ
subject to          𝔼_q[f(X, Y)] > ξ
```

Here θ denotes the generator parameters and ℒ(θ) is the base objective, shown in maximization notation in this display. A negative-log-likelihood loss uses the minimization convention given earlier. The output distribution q is auxiliary and pθ is the generator’s distribution. KL is Kullback–Leibler divergence, a directional measure of discrepancy between distributions, evaluated here from q to pθ, with the double bar separating its arguments. The function f gives a real-valued score to output Y for input X. The symbol 𝔼_q denotes its expectation under q. The constraint requires that expectation to exceed ξ, the slack variable in the survey’s formulation, while the objective rewards a larger ξ and penalizes a larger discrepancy.

The survey’s plug-and-play example applies guidance during generation. It starts from the cached history already available to a pretrained generator. A separate predictor scores a desired attribute, and gradient updates perturb the history in a direction that favors the attribute. The paper describes guidance from the original generator as well, so that the attribute signal operates alongside the generator’s own preference for likely continuations. The displayed perturbation isolates the attribute contribution.

```
ΔSₜ ← ΔSₜ + ∇_{ΔSₜ} log p(a | Sₜ + ΔSₜ) / ‖∇_{ΔSₜ} log p(a | Sₜ + ΔSₜ)‖ᵞ
```

Here Sₜ is the original cached history at step t and ΔSₜ is its perturbation, initialized to zero. The arrow assigns the updated value to ΔSₜ. The symbol a denotes the desired attribute, p is the attribute predictor’s conditional probability, and log is the logarithm. The gradient operator ∇_{ΔSₜ} differentiates with respect to the perturbation. The double vertical bars around the gradient denote its norm, and γ is the exponent controlling the normalization. The update can be applied repeatedly at a generation step.

```
S̃ₜ₊₁ = Decoder(Sₜ + ΔSₜ, e(yₜ), H)
```

Here S̃ₜ₊₁ is the resulting perturbed history for the next step. Decoder performs a forward update using the adjusted current history, the embedding e(yₜ) of the current token, and H, the source representations in the survey’s notation. The perturbed result then yields new scores for candidate tokens. This procedure changes the state used to make a prediction during inference.

#### Extracting topics, keywords, and structure from the input

A topic describes a region of meaning shared by a group of words. [Topic modeling](https://md.research.elamur.ai/free/en/concepts/topic-modeling/) estimates such groupings from documents. In the survey’s first family of topic-enhanced methods, the topic learner is separate from the generator. A generator can receive a distribution over topics for each input word, or it can receive embeddings for highly probable words from the topic associated with the input. The second form offers direct lexical suggestions. Its usefulness depends on whether those particular suggestions fit the response or summary. The survey uses Latent Dirichlet Allocation as its main example of an independently trained probabilistic topic learner. [Latent Dirichlet Allocation](https://md.research.elamur.ai/free/en/papers/blei-2003-latent-dirichlet-allocation/)

```
θ_d ∼ Dirichlet(α)
```

Here d identifies a document represented as a bag of words, which retains word counts without their sequence order. The vector θ_d gives the document’s topic proportions. The symbol ∼ denotes a draw from a distribution, Dirichlet names the distribution over proportion vectors, and α contains its parameters.

```
tᵢ ∼ Multinomial(θ_d)
```

Here tᵢ is the topic assignment at word position i. Multinomial is the survey’s notation for drawing the assignment using the document proportions θ_d. Positions with different assignments can contribute to the same document’s mixture of subjects.

```
wᵢ ∼ Multinomial(βₜᵢ)
```

Here wᵢ is the word at position i, and βₜᵢ is the vocabulary distribution for topic tᵢ. In combination, these draws express the distinction between how much each topic appears in a document and how likely each word is within a topic.

A jointly trained convolutional system instead learns a topic vector while it learns the generation task. Convolution and pooling let it compress information from parts of the source. The generation objective can shape that compression, so the representation is adapted to what the output requires. A neural variational approach retains a probabilistic account of topics and allows joint training through back-propagation. The survey describes a learned transformation conditioned on a Gaussian draw that makes it possible to sample while training with a low-variance gradient estimate. [Auto-Encoding Variational Bayes](https://md.research.elamur.ai/free/en/papers/kingma-2013-auto-encoding-variational-bayes/)

```
θ_d ∼ G(μ₀, σ₀²)
```

Here θ_d again represents document topic proportions. G denotes the distribution induced by the neural transformation of a draw from an isotropic Gaussian, which has the same variance along its dimensions. The Gaussian parameters are μ₀ for the mean and σ₀² for the variance. The draw can be represented in a way that lets gradients reach the learned transformations producing the topic representation.

```
𝒥_topic = 𝔼_{q(θ | d)}[log p(d | β, θ)] − KL(q(θ | d) ‖ p(θ | μ₀, σ₀²))
```

The objective 𝒥_topic is a variational lower bound on the document log likelihood. In this topic notation, θ is a latent topic mixture, d is the document’s bag of words, and β contains the topic-specific word distributions. The approximate distribution q(θ | d) is inferred from the document. Its expectation, denoted 𝔼_{q(θ | d)}, averages the log probability of reconstructing d over topic mixtures drawn from q. The function p in the KL term is the prior induced by the Gaussian parameters μ₀ and σ₀². KL penalizes the departure of the inferred distribution from that prior.

```
q(θ | d) = G(θ | μ(d), σ²(d))
```

Here G gives the distribution over θ obtained through a neural transformation using the document-dependent mean μ(d) and variance σ²(d). The notation on the left identifies it as the approximate posterior conditioned on the observed d. Sampling from this distribution supplies estimates of the expectations used for training.

The topic-guided variational autoencoder in the survey uses this document representation to guide a separate sequence representation. The bag of words is reconstructed through the topic component. For sequence generation, the system learns a latent code whose prior is a mixture of Gaussians indexed by the topics. The topic mixture sets the relative contributions of the Gaussian components. Thus the code can help guide the output while the sequence decoder still works with word order.

```
p(z | β, t) = ∑ᵢ₌₁ᵀ tᵢ N(μ(βᵢ), σ²(βᵢ))
```

Here z is the latent sequence code, β is the set of topic word distributions, and t is the vector of topic weights. In this formula tᵢ denotes a mixture weight for topic i, distinct from the earlier use of tᵢ for a token’s topic assignment. T is the number of topics. The symbol N denotes a Gaussian component, with a mean μ(βᵢ) and variance σ²(βᵢ) computed from the topic word distribution βᵢ by learned functions. The sum combines the components in proportion to their topic weights.

```
𝒥_seq2seq = 𝔼_{q(z | X)}[log p(Y | X, z)] − 𝔼_{q(θ | d)}[KL(q(z | X) ‖ p(z | β, θ))]
```

Here 𝒥_seq2seq is the sequence part of the training objective. X is the input sequence and Y its target output. The approximate distribution q(z | X) gives the latent code z from the source sequence. The first expectation rewards predicting Y well given X and a sampled code. The second expectation takes topic mixtures θ from q(θ | d), then penalizes divergence of the code distribution from the corresponding topic-dependent prior p(z | β, θ). The symbol β again supplies the topic word distributions used in that prior.

```
𝒥 = 𝒥_topic + 𝒥_seq2seq
```

Here 𝒥 is the combined objective, 𝒥_topic is the document reconstruction and topic regularization objective, and 𝒥_seq2seq is the sequence objective just described. Optimizing them together links the topic representation to the eventual demand of writing a sequence.

Keywords offer a narrower signal than a topic distribution. Keyword assignment chooses from a vocabulary set in advance, often with a classifier. For emotional dialogue, a classifier can assign an emotion to an utterance that conveys it indirectly. The category can guide the decoder, or a sentence-level discriminator can judge whether a generated reply expresses an intended emotion. The survey also describes an emotion memory whose state diminishes through decoding, giving the system a representation of how much of the emotional signal remains to be expressed. These are different places to put the guidance, even though they concern the same attribute.

Keyword extraction starts with words already in the input. Statistical methods such as TextRank can select representative words. A supervised extractor can instead learn from overlaps between source documents and their reference summaries. The reference identifies candidate training labels, and at generation time the extractor uses the source to predict salient words. A separate sequence encoder can contextualize those keywords for the decoder. Joint training lets the keyword extraction and generation tasks share parameters. The survey describes a similar use of overlap for question generation, where the paired question helps determine which context words are promising training targets. [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/)

Linguistic features supply information at the token or relation level. [Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) labels grammatical categories, and [named-entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) identifies mentions such as people, organizations, or places. Features of this kind can help when the same written form is compatible with several roles. [Dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) supplies links between words, such as the link between a verb and its subject. A generator can read a linearized parse, use distance in the dependency structure to bias attention, or pass information along the dependency edges with a graph network. A semantic dependency graph emphasizes predicate–argument relations, which describe the roles that participants play in an event. In SemSUM, the sequence encoder reads the source first, and a graph encoder incorporates the semantic relations into the contextual representations. [Stanford CoreNLP](https://md.research.elamur.ai/free/en/papers/manning-2014-stanford-corenlp-natural-language-processing/) · [Semantic role labeling](https://md.research.elamur.ai/free/en/concepts/semantic-role-labeling/)

Internal knowledge graphs operate at a scale that can include several sentences or documents. Open [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/) finds expressions of entities and relationships in the input without requiring a narrow list of relation types in advance. The extracted facts can connect descriptions of the same entity, merge redundant material, and bring related events closer in the representation. Zhu and colleagues used graph attention to encode such a graph and supplied the resulting information to a Transformer encoder-decoder via attention. Huang and colleagues built paragraph-level graphs and connected their representations with a bidirectional recurrent network, so the generator could pick up themes that recur or change as the source progresses.

#### Selecting facts and choosing how much graph to read

A knowledge base stores factual records that can be treated as subject, relation, and object. A question may supply a recognizable subject and give enough wording to identify the relation. Entity linking, name matching, or a trained retriever can use that evidence to find candidate records. In CoreQA, the question and the retrieved facts pass through separate encoders. The decoder attends to both and can use a copying mechanism. KBCopy is an earlier example in the survey of giving the generator a way to copy factual material. Both examples make the choice of source material consequential for what the decoder can say.

With open-ended dialogue, several records can be relevant to the same utterance. A response in the training data shows which one would have been useful for that particular continuation. The survey describes using the reference response to supervise the selector without requiring it at test time. During training, the posterior selector sees the utterance and the reference response. The prior selector sees only the utterance, as it will during inference. Their distributions over the retrieved facts are brought closer by an auxiliary loss.

```
ℒ_KLDiv(θ) = ∑ᵢ₌₁ᴺ p(k = kᵢ | X, Y) log [p(k = kᵢ | X, Y) / p(k = kᵢ | X)]
```

Here ℒ_KLDiv is the divergence loss, θ denotes the learned parameters, and N is the number of candidate facts. The variable k is the selected fact, and kᵢ is candidate i. The posterior probability is conditioned on input X and reference response Y. The prior probability is conditioned on X alone. The logarithm is taken of their ratio, weighted by the posterior probability for each candidate. The sum over candidates gives the divergence. The training objective adds this loss to the negative log likelihood of the generated text.

The graph methods emphasize the connections among records. A directed edge identifies a relation with an order to its endpoints. There can be several kinds of edges between the same entities, and several routes can connect concepts mentioned in the input.

```
𝒢 = (𝒰, ℰ, ℛ)
```

Here 𝒢 is the knowledge graph, 𝒰 is the set of entities and concepts represented as nodes, ℰ is the set of edges, and ℛ is the inventory of relation types.

```
ℰ ⊆ 𝒰 × ℛ × 𝒰
```

The subset symbol ⊆ means that every edge in ℰ belongs to the product on the right. The multiplication signs denote the Cartesian product of sets. Each candidate triple has a source node from 𝒰, a relation from ℛ, and a destination node from 𝒰. The observed edges occupy some of those possible triples.

A system usually works with a subgraph associated with the sequence. An entity linker maps mentions in the text to graph nodes. The subgraph includes those nodes and neighbors reachable within a chosen number of links. That limit determines which part of the graph the generator can consult.

```
ψ : 𝒰 × 𝒳 → 𝒰_sub
```

In the survey’s notation, ψ denotes the entity linking function. The set 𝒳 is the space of task sequences, 𝒰 is the full graph’s node set, and 𝒰_sub is the node set associated with the sequence after linking and neighborhood expansion. The product combines the graph entity and sequence domains, and the arrow gives the target set of the mapping. In operational terms, relevant mentions seed the subgraph, and the procedure adds their neighbors up to K hops, where K is the neighborhood depth.

```
𝒢_sub = (𝒰_sub, ℰ_sub, ℛ)
```

Here 𝒢_sub is the resulting subgraph, 𝒰_sub its nodes, ℰ_sub its typed edges, and ℛ the relation schema inherited from the full graph.

```
ℰ_sub ⊆ 𝒰_sub × ℛ × 𝒰_sub
```

This subset relation restricts the endpoints of every edge in ℰ_sub to the selected nodes in 𝒰_sub. The relation type still comes from ℛ. Both ends of an edge must be available for the neighborhood encoder to use that edge.

The survey describes several ways to give a generator access to a graph. Graph embeddings learn numerical representations for its nodes and relations from the connections present in the graph. The paper describes a space of dimension d that is small relative to the size of the entity and relation inventories. With TransE, a relation is represented as an offset that should approximately move the source entity vector towards the destination vector. [TransE](https://md.research.elamur.ai/free/en/papers/bordes-2013-translating-embeddings-modeling-multi-relational/)

```
uᵢ + r ≈ uⱼ
```

Here uᵢ and uⱼ denote the embedded vectors of the source and destination entities at indices i and j, and r is the vector for the edge’s relation. Addition implements the proposed offset. The approximation sign captures the training aim of making the translated source vector close to the destination vector. A generator can append these graph-derived entity embeddings to the text representations of matching words.

Another approach turns triples into sentences using templates. A pretrained generator can then learn from the verbalized facts through [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). Guan and colleagues use triples drawn from ConceptNet and ATOMIC in this way for commonsense story generation. The training examples express graph relations in the same textual form as other training material. The survey places this approach alongside graph embeddings because both commonly start from individual relations, while subsequent path and neighborhood methods offer explicit access to connected structures.

A path method finds a chain of relations beginning at a node linked to the input. Ranking approaches explore candidate paths and score which ones look promising. A path can consist entirely of valid edges and still be unhelpful for writing the next reply. Bauer and colleagues use successive scoring and selection to retain informative and varied paths. Other work prunes edges or uses reinforcement learning to choose the next graph move. A reward can favor reaching a useful destination and limit the length of the route. The selected chain can be passed to a sequence encoder and read with attention alongside the input.

```
Φₖ(u₀, uₖ)
```

Here Φₖ denotes the selected path, u₀ is its start node, and uₖ is its destination after k transitions. The subscripts identify positions along the path. The path is an ordered sequence the decoder can consult when generating. In the survey’s dialogue example from Niu and colleagues, the text and the chosen path are encoded separately before attention combines them during decoding.

A graph network uses a neighborhood of relations as its starting point. It can enrich the text encoder’s representations with the vectors of linked entities, which themselves incorporate surrounding nodes and edges through the neighborhood update. A pooled subgraph representation can also initialize the decoder. The survey gives the following example.

```
h_subG = Readout({u⁽ᵏ⁾ : u ∈ 𝒰_sub})
```

Here h_subG is the subgraph representation, Readout pools the final node vectors u⁽ᵏ⁾ from the graph encoder, and u ranges over the selected nodes in 𝒰_sub. The superscript k is the layer from which the vectors are taken. The colon in the set expression gives the membership condition.

```
s₀ = hₙ ⊕ h_subG
```

Here s₀ is the initial decoder state, hₙ is the representation at the final input position n in the example, and h_subG is the pooled subgraph representation. The operator ⊕ concatenates them. During decoding, a system can also attend to the retrieved graph and then attend to its edges in more detail. The finer read matters when a broad representation has already established the subject but the next word depends on a specific relation or entity.

#### Reading external passages and using retrieved examples

Grounding in passages supplies information in natural language. The survey includes encyclopedia articles, snippets from reviews, and social media text. The system can look up text indexed by entities, rank it with a statistical relevance score such as BM25, or use a trained retriever to compare dense vectors for queries and passages. These approaches address the same step with different evidence about what counts as relevant. Once the passage is available, a generator can use its wording and context to compose an answer. [Information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/)

In [retrieval-augmented generation](https://md.research.elamur.ai/free/en/concepts/retrieval-augmented-generation/), the retriever returns a distribution over candidate passages, usually keeping only the highest-ranked candidates. The generator uses a passage together with the source input and the prefix it has generated so far. The survey presents the retriever and the generator with separate probabilities. [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://md.research.elamur.ai/free/en/papers/lewis-2020-retrieval-augmented-generation-knowledge-intensive/)

```
p(Z | X)
```

Here p is the retrieval distribution, X is the input used as a query, and Z is a candidate passage. The conditional probability describes the selector’s preference over passages for that input. The survey notes that the distribution passed forward is often restricted to a top-ranked subset.

```
p(yᵢ | X, Z, y₍₁:ᵢ₋₁₎)
```

Here p gives the generator’s next-token probabilities, and yᵢ is the candidate token at position i. X is the original input, Z is a retrieved passage, and y₍₁:ᵢ₋₁₎ denotes the generated prefix from its first position through the position preceding i. The interval notation in the subscript specifies the portion of the output already available. The generator can learn with the retriever using the generation objective, or training can add explicit labels about which material to retrieve.

A related design called fusion-in-decoder lets the decoder attend over the combined representations of the retrieved passages. It may draw information from different passages as it writes different parts of an answer. A retrieve, rerank, and rewrite system gives retrieval a different role. In the summarization examples surveyed, it looks for a reference summary associated with a similar input, reranks the possibilities to select a strong template, and then writes a new summary using that template together with the current source. The example provides guidance about what a suitable summary might look like. Claims about the current document still need to be based on that document. The procedure therefore depends both on choosing a useful precedent and on editing it in light of the present source.

Background-based conversation uses a document to support a series of conversational turns. The appropriate background detail may differ at each turn. A system can borrow an idea from machine reading comprehension by treating the latest utterance as a question about the document. An encoder then identifies parts of the document that are relevant to that utterance. A decoder uses the representation to produce a natural response. The survey’s on-demand reading example trains background reading and reply generation together. The reading step identifies useful semantic units, while generation determines where and how to mention them in the reply. [SQuAD](https://md.research.elamur.ai/free/en/papers/rajpurkar-2016-squad-100-000-questions-machine/)

### Experiments and results

#### What the benchmark selection measures

The survey’s empirical material combines comparisons reported by earlier studies, a graph-coverage analysis, and a selection of datasets and leaderboard results. The appendix describes a pool of 160 publications, of which 87 were directly concerned with methods for knowledge-enhanced generation. The benchmark collection is a separate contribution. The authors screen datasets from GLGE, GEM, KILT, and GENIE and describe the inclusion of material from SemEval tasks. They require public access to the data, seek variety among generation tasks, and cap the number chosen per task at three. They seek a mix of internal and external knowledge settings and prefer datasets with multiple reference outputs. A larger set of acceptable responses can help when the same information can be expressed in different ways. [Evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

The main selection names 9 datasets. CommonGen asks for a coherent sentence about an everyday situation using a supplied group of concepts. αNLG-ART asks for an explanation that can fit incomplete observations about what happened. ComVE supplies a counterfactual statement and asks for an explanation that makes sense of its implausibility. These settings test different uses of commonsense information. A system may need to connect given concepts, fill in an unobserved event, or explain a violation of an ordinary expectation. An external graph can supply relations useful in each case, but the connection must serve the particular demand of the output.

CNN/DailyMail asks for a news summary, and Gigaword asks for a headline. Those settings put pressure on the choice of salient content at different output scales. The question-generation version of SQuAD asks a generator to write a question about a supplied answer span using the surrounding passage. ELI5 asks for explanatory answers that extend across sentences and supplies web search results as evidence. In the former, the source and designated answer narrow the target. In the latter, the system must determine what the question demands of the evidence and how to organize a longer response.

Wizard of Wikipedia uses encyclopedia material to ground open-domain conversations, with leaderboard results distinguished by seen and unseen test sets. PersonaChat gives speakers profile information so that responses can reflect persona. The appendix describes reported performance on PersonaChat while noting the absence of a leaderboard for that dataset. It also describes leaderboard performance on ten benchmarks and includes Holl-E in its mix-short setting. The main list of selected datasets and the appendix’s wider collection of performance reports serve different purposes. The paper also catalogs code and implementation languages for representative systems. That catalog accompanies the survey’s comparisons of published approaches.

#### What the metrics can register

The graph comparison reports changes in [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/), which combines precisions for token sequences of different lengths through a weighted geometric mean. A higher value reflects stronger overlap of that kind with the references. ROUGE also measures overlap. ROUGE-L looks at the longest common subsequence, so matched words can count in order with gaps between them. The appendix lists ROUGE-2 and ROUGE-L for summarization, and B-4 and R-L for αNLG-ART and ComVE. It identifies SPICE as the primary metric for CommonGen, ROUGE-L for the specified Holl-E setting, and KILT ROUGE-L for ELI5. The results across these settings concern different things, even when a metric name is shared.

Perplexity, for which lower is better, appears in the survey’s comparisons of topic-enhanced systems. It reflects how strongly a system predicts the text being evaluated. Distinct measures lexical variety by normalizing the number of unique generated token groups of a given length by the total number of those groups. The knowledge-base discussion also includes exact matching and entity recall to track whether selected entities or triples appear where expected. A system can score differently on these dimensions. Greater variety, stronger overlap with references, and successful reproduction of a particular entity address separate questions about the output.

#### How much graph knowledge reaches the generator

The clearest like-for-like numerical comparison in the survey concerns graph coverage. The authors check whether output concepts for ComVE, α-NLG, and the story-ending dataset labeled ROCSories occur anywhere in ConceptNet. They then check whether those concepts occur in the retrieved sequence-associated subgraphs. The paper specifies the retrieval radius and the values for each task without naming a data split for this analysis. Full-graph coverage gives a reference against which the narrower retrieval setting can be read. The full graph is being inspected for availability in this comparison. The paper reports no generator score for feeding the entire graph into the decoder.

Output concept coverage in ConceptNet for ComVE, α-NLG, and ROCSories The full graph contains a larger share of output concepts than the retrieved neighborhood on every dataset.

**The numbers**

| System or setting | Output concept coverage % |
| --- | --- |
| ComVE, retrieved 2-hop subgraph | 11.4% |
| ComVE, full ConceptNet (this paper) | 25.1% |
| α-NLG, retrieved 2-hop subgraph | 8.1% |
| α-NLG, full ConceptNet | 24.2% |
| ROCSories, retrieved 2-hop subgraph | 5.7% |
| ROCSories, full ConceptNet | 21.1% |

On α-NLG, the reported coverage is 24.2% in ConceptNet and 8.1% in the retrieved 2-hop subgraph. For the story-ending dataset the corresponding values are 21.1% and 5.7%. The comparison ties the retrieval question to the information used in the target. Nodes can be relevant to an output but too far from a linked input mention to be included by the retrieval procedure. The chart records coverage of concepts. It leaves open whether the selected edges would support a useful explanation and how accurately a decoder would use the available concepts.

#### What the published comparisons report

For published graph-enhanced generation results, the authors take the best baseline in the corresponding study as the comparison without graph enhancement. Their graph-enhanced value comes from the system using the graph. They report an average change of +2.55% in ΔBLEU on the generative commonsense tasks and +1.32% across all the graph-enhanced generation tasks tabulated. These figures are average improvements as reported by the survey. The prose giving those averages does not establish a shared split, a common baseline, or a uniform training protocol across the studies. The higher average within commonsense generation is consistent with the idea that an explicit relation resource can help when the task turns on connections that are unstated in the input.

The graph resource also varies. In the group of graph papers summarized by source, eight (57.1%) use ConceptNet and six (42.9%) build graphs from domain-specific material. A graph extracted from scientific text is one example of tailoring the resource to what a writing task needs to express. In a comparison discussed by the survey, Zhao and colleagues report better results for a self-built graph on story generation and review generation than when using ConceptNet. The finding concerns those settings. It links resource choice to the relations a task needs, alongside the choice of graph encoder.

The topic and keyword discussions compare settings within studies because the underlying tasks and datasets often differ across studies. The topic comparisons examine whether having a topic signal improves the corresponding generation setup, and the survey reports that convolutional topic extractors can outperform LDA-based approaches in several applications. In emotional dialogue on NLPCC, the base comparison is an attention-based sequence-to-sequence system. The authors report that keyword-enhanced approaches improve BLEU and the emotion-w and emotion-s measures. EmoDS leads the compared keyword-assignment approaches in the survey’s discussion. For extraction, the authors note stronger results from KGAS, which trains a bidirectional recurrent extractor using source–target overlap, than from KIGN, which uses TextRank. That comparison brings together full systems and different extraction procedures. It provides evidence about the tested combinations.

For knowledge bases, the cited comparisons use exact match or recall to inspect the use of retrieved triples. The survey reports higher entity recall and improved generation for approaches using the reference response to supervise the input-only selector. For grounded text, the emphasis is on retrieval setup. In the studies described, candidate collections are usually larger than 1 million documents, and the systems select 7-10 documents. In the survey’s grounded-text comparison, four (57.1%) papers add human labels or automatically generated retrieval labels, and three (42.9%) use pretrained language representations for documents. These are counts and proportions of papers using particular techniques. The authors report that supervision can help retrieval and generation, and they cite KILT results in which fusion-in-decoder approaches can outperform RAG. The numerical entries needed to give exact system-by-system scores for these comparisons are absent from the paper’s prose.

### What the ablations show

The survey presents no original system ablation and instead assembles within-study comparisons of topic and keyword guidance, cited ablations in which path selection, concept selection, and link prediction aid graph-enhanced generation, and its own coverage analysis showing that restricting ConceptNet to a retrieved neighborhood reduces the share of output concepts available to the generator.

### Limitations

#### Limits the authors identify

The authors identify problems at each stage between a knowledge source and a generated sequence. For extraction from the input, a keyword chosen automatically can be unrepresentative, and equivalent documents can produce different keyword lists because they use different words. Assignment from a controlled list provides consistency, but someone must build and maintain a suitable list, and new domains may introduce useful terms it does not contain. Topic guidance has a related tradeoff. With a separate topic learner, the generator receives an interpretable signal that training on the output cannot adapt. A convolutional topic representation can adapt through joint training, while the authors find its topics harder to characterize and point to a lack of theoretical assurance about what the convolution has learned. The variational approaches reviewed also use simplifying distributional assumptions. The authors highlight their difficulty accounting for correlations among topics and the mismatch between treating documents as independent and working with collections of related documents.

For knowledge bases, a retrieved triple can be noisy or relevant in the wrong sense for the intended reply. This matters especially when the expected answer is an entity stored in the base. The selector may place a plausible but incorrect item in front of a decoder explicitly trained to copy it. Using the reference reply to teach the selector addresses a training problem, since it shows which knowledge could support that reply. During use, the system has only the available input for this choice. Broad utterances can still support several valid directions.

For graphs, the authors distinguish what can be represented by embeddings of individual relations, what a selected path can show, and what a neighborhood encoder can aggregate. A path supplies a visible chain of intermediate concepts, but the number of paths actually used can limit the context it captures. Searching a large graph increases the action space, and reward-based search can be sensitive to noise and adversarial examples when the rewards are heuristic. Neighborhood aggregation can gather information beyond a selected path and support joint training of the graph and text encoders. Its representations come from the neighborhood actually retrieved. The reported coverage figures show how much useful material can already be unavailable before those representations are computed.

For unstructured evidence, the authors note both the cost of searching a large corpus and the amount of material presented to the generator. The original request can be short relative to the passages retrieved for it. Useful details may then compete with substantial irrelevant text. The authors also describe background-based dialogue systems that break up a meaningful span or produce excessively short replies. Coupling generation to a better retriever addresses access, while choosing and preserving the relevant part of a long passage remains a problem for the reader and decoder.

The survey identifies limited-domain data and continuing acquisition of knowledge as open problems. A new domain can offer few labeled examples and a fact collection with poor coverage. Linguistic features can also be difficult to obtain for a language with scarce resources. The authors discuss [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) and meta-learning as possible ways to adapt with little new task data. They also describe the case for updating knowledge continuously, with an example of a conversational system that learns through interactions. Joint use of structured and unstructured sources and knowledge-enhanced generation from visual inputs are additional research directions. These are proposals for extending the methods the survey reviews.

#### Limits of the evidence in the survey

The survey’s published score comparisons inherit the experimental designs of the papers underneath them. The best baseline can be different on each task, and graph enhancements can arrive together with changes to training, retrieval, or decoding. The averages report the pattern among the compared studies. A common experiment with the same generator, source data, and evaluation protocol would be needed to isolate the effect of an architectural choice across tasks. The appendix’s leaderboard material likewise describes performance in particular benchmark settings. It does not supply a single ranking of the survey’s general method families.

The coverage experiment gives direct evidence about which concepts reach a subgraph, under the linking and neighborhood choices used for the comparison. Coverage is an intermediate measure. Finding the name of a concept in a graph leaves several questions open. The necessary relation may be missing, the decoder may emphasize an irrelevant neighbor, or the output may combine present concepts into an unsupported statement. Conversely, a reference response may use a concept that another valid response has no need to mention. These are reasons to read the percentages as a diagnostic of accessibility, with output quality evaluated separately.

Some architectures improve inspectability by exposing a retrieved passage, an entity, or a path. Those objects let a reader see which material the system could consult. A path used during generation can provide a more specific account of what was available than a pooled neighborhood vector. Verifying that an output claim follows from that path requires examining the claim and the relations themselves. Similarly, an attention score describes where a learned operation places weight. It gives partial information about how the system computed the output and leaves room for other influences on the words generated.

The automatic metrics also constrain the conclusions. A rise in overlap with reference wording can come from producing a better answer or from reproducing familiar phrasing. Entity recall can reveal improved coverage of expected entities, while saying less about how those entities are related within a full answer. Multiple references reduce the dependence on one wording, though they still sample from the possible good outputs. The paper cites a separate graph-enhanced summarization study in which the summaries supported correct answers to 10% more topically related questions. That result specifically concerns the question-based evaluation in the cited study. The survey’s broader BLEU and ROUGE comparisons estimate other properties of the outputs.

### What came after

#### Where knowledge enters the system

The citing works take up problems that the survey groups under knowledge acquisition and use. Their titles establish their subjects, with more limited evidence about which techniques they inherited from Yu and colleagues. The connections are clearest when the subject of a citing paper addresses a specific choice already visible in the survey, such as learning knowledge through training or supplying it as evidence during generation.

The prompting survey by Liu and colleagues organizes methods around pretraining, prompting, and prediction. The point of contact is how a task is presented to a pretrained system and how that presentation guides what it predicts. The generation survey treats the input and the supplied knowledge as conditions on prediction. Prompting brings attention to the form of those conditions. Min and colleagues’ survey takes a broader view of advances through large pretrained language systems. Its scope relates to Yu and colleagues’ discussion of pretrained parameters as an implicit source of knowledge and of complementary roles for explicit information. The two survey titles identify distinct emphases, one on prompting methods and the other on advances associated with pretraining. [Pre-train, Prompt, and Predict](https://md.research.elamur.ai/free/en/papers/liu-2021-pre-train-prompt-predict-systematic/) · [Recent Advances in Natural Language Processing via Large Pre-Trained Language Models](https://md.research.elamur.ai/free/en/papers/min-2021-recent-advances-natural-language-processing/)

Yasunaga and colleagues study deep bidirectional pretraining with language and graphs. This addresses the meeting point between textual context and relational structure. Yu and colleagues discuss that point through the problem of combining separately learned entity and word vectors and through knowledge-related pretraining exercises. Ovadia and colleagues explicitly compare fine-tuning and retrieval as ways to inject knowledge. Their comparison takes up the distinction between changing what is learned in the parameters and making information available at the point of use. The question is central to interpreting a knowledge-enhanced system because the two routes give the system access to information at different stages. [Deep Bidirectional Language-Knowledge Graph Pretraining](https://md.research.elamur.ai/free/en/papers/yasunaga-2022-deep-bidirectional-language-knowledge-graph/) · [Fine-Tuning or Retrieval?](https://md.research.elamur.ai/free/en/papers/ovadia-2024-fine-tuning-or-retrieval-comparing/)

Yu and colleagues’ citing work on plug-and-play retrieval feedback places retrieval in a feedback role. In the survey, retrieval commonly supplies passages for generation, and inference guidance can change what a system predicts as it writes. Retrieval feedback brings those concerns together as a research question about how retrieved material can guide the ongoing process. ToolkenGPT studies augmentation through tool embeddings while keeping the underlying system frozen. The connection is to the survey’s treatment of ways to supply an additional capability alongside existing parameters, including the problem of representing information so the generator can use it. A tool embedding represents a different kind of resource from a graph entity or a passage. [Improving Language Models via Plug-and-Play Retrieval Feedback](https://md.research.elamur.ai/free/en/papers/yu-2023-improving-language-models-plug-play/) · [ToolkenGPT](https://md.research.elamur.ai/free/en/papers/hao-2023-toolkengpt-augmenting-frozen-language-models/)

#### Factuality, evidence, and the design of evaluations

Lee and colleagues take factuality as the explicit target in open-ended text generation. That focus extends a concern raised by the survey’s examples of factual dialogue, grounded answers, and graph-enhanced summaries. Open-ended writing puts the issue in a setting where the output can contain claims the input did not anticipate individually. Chen and colleagues address misinformation from two directions in separate citing works. One considers opportunities and challenges in combating misinformation. The other asks whether misinformation generated by language systems can be detected. Detection evaluates what has been written, whereas the survey’s acquisition and selection techniques intervene while the system determines what to write. Kumar and colleagues’ survey widens the discussion to harms from generated language and possible responses. The overlapping question is how to assess consequences that the survey’s standard measures of fluency and reference overlap cannot capture on their own. [Factuality Enhanced Language Models for Open-Ended Text Generation](https://md.research.elamur.ai/free/en/papers/lee-2022-factuality-enhanced-language-models-open/) · [Combating Misinformation in the Age of LLMs](https://md.research.elamur.ai/free/en/papers/chen-2023-combating-misinformation-age-llms-opportunities/) · [Can LLM-Generated Misinformation Be Detected?](https://md.research.elamur.ai/free/en/papers/chen-2023-llm-generated-misinformation-detected/) · [Language Generation Models Can Cause Harm](https://md.research.elamur.ai/free/en/papers/kumar-2023-language-generation-models-can-cause/)

Schreieder and colleagues survey evidence-based generation through attribution, citation, and quotation. This makes the relation between output and evidence a subject in its own right. Yu and colleagues ask how to find and use a source during generation. Attribution adds the question of which source supports a claim, citation concerns how that source is identified to the reader, and quotation concerns what wording is taken from it. Each issue can still arise after a retriever has returned a passage that is relevant to the input. [Attribution, Citation, and Quotation](https://md.research.elamur.ai/free/en/papers/schreieder-2026-attribution-citation-quotation-survey-evidence/)

Other citing work sharpens the evaluation question by placing new demands on the input, source, or response. IfQA introduces open-domain questions under counterfactual presuppositions. The connection to the survey’s commonsense benchmarks is the need to reason about a premise that departs from ordinary facts, with the added requirement of answering a question under that premise. BioKGBench frames evaluation as checking a knowledge graph in biomedical science. The graph is itself the object being checked, a different role from that of ConceptNet as a source of coverage in the survey. Balepur and colleagues examine the forced-choice format in evaluations of language systems. It bears on the survey’s attention to benchmark design because a task’s response format determines what success can demonstrate. Selecting an option and composing an answer from evidence impose different demands even when they concern similar knowledge. [IfQA](https://md.research.elamur.ai/free/en/papers/yu-2023-ifqa-dataset-open-domain-question/) · [BioKGBench](https://md.research.elamur.ai/free/en/papers/lin-2024-biokgbench-knowledge-graph-checking-benchmark/) · [Which of These Best Describes Multiple Choice Evaluation with LLMs?](https://md.research.elamur.ai/free/en/papers/balepur-2025-which-these-best-describes-multiple/)

## Cite

Cite as Wenhao Yu, Chenguang Zhu, Zaitang Li, Zhiting Hu, Qingyun Wang, Heng Ji and Meng Jiang. 2022. A Survey of Knowledge-enhanced Text Generation. ACM Computing Surveys.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1145/3512467](https://doi.org/10.1145/3512467) · [arXiv 2010.04389](https://arxiv.org/abs/2010.04389)

```bibtex
@inproceedings{yu2022survey,
  title = {{A Survey of Knowledge-enhanced Text Generation}},
  author = {Wenhao Yu, Chenguang Zhu, Zaitang Li, Zhiting Hu, Qingyun Wang, Heng Ji and Meng Jiang},
  booktitle = {ACM Computing Surveys},
  year = {2022},
  doi = {10.1145/3512467},
  eprint = {2010.04389},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1145/3512467}
}
```

> 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)
