---
title: "On Knowledge distillation from complex networks for response"
description: "How knowledge distillation helps a compact attention network predict dialogue responses from long documents, and what the experiments show."
canonical: "https://research.elamur.ai/free/en/papers/arora-2019-knowledge-distillation-complex-networks-response/"
---
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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/arora-2019-knowledge-distillation-complex-networks-response/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / On Knowledge distillation from complex networks for response prediction

# On Knowledge distillation from complex networks for response prediction

Paper · 2019 · Siddhartha Arora, Mitesh M. Khapra and Harish G. Ramaswamy

**Authors:** [Siddhartha Arora](https://md.research.elamur.ai/free/en/authors/siddhartha-arora/), [Mitesh M. Khapra](https://md.research.elamur.ai/free/en/authors/mitesh-m-khapra/) and Harish G. Ramaswamy · **Year:** 2019 · **Venue:** Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/N19-1382/)
- [PDF](https://aclanthology.org/N19-1382.pdf)
- [DOI 10.18653/v1/n19-1382](https://doi.org/10.18653/v1/n19-1382)

## Summary

A conversation about a film can move from a favorite character to a fight scene and then to the identities of the people involved. A system that draws its replies from a plot description must find a different passage as the conversation moves on, even when the background document stays the same. Arora and colleagues study this problem on Holl-E, a collection of movie conversations with accompanying background text. They treat response prediction as extraction. Given the latest utterance, the preceding dialogue, and a source document, the system predicts the beginning and end of a passage that can serve as the reply. The approach comes from [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/).

The strongest readers considered in the paper compare words across the dialogue and the document in detail. Those comparisons become expensive when the source is long. The authors build a Simple Attention Model, or SAM, that condenses the latest utterance and each speaker’s history into separate vectors before scoring document positions. They then improve it in two ways. First, they change how the vectors interact after observing that the stronger readers produce more varied representations across turns of the same conversation. The revised network also produces more varied representations of the speakers’ histories. Second, they use knowledge distillation. During training, a larger teacher supplies probabilities for possible starting and ending positions, alongside the annotated boundaries already available to the student. The student extracts responses independently at test time.

On the Holl-E long-document test set, the standalone multiplicative SAM scores 36.49 F1, and the strongest compact variant scores 37.73. That variant uses additive attention and learns from the teacher’s highest-ranked boundary positions. BiDAF and QANeT, trained on short inputs and run over chunks at test time, score 38.30 and 38.10 F1 respectively. In the reported long-document inference runs, SAM uses 1.3GB of memory, compared with 11GB for BiDAF and 3GB for QANeT. The compact network can therefore read the untrimmed source directly and recover some of the accuracy gained by the more expensive readers.

The strongest training choice depends on how much text the system receives. On the short-document test set, where the source has been trimmed around a known answer span, the best compact variant learns from separate BiDAF and QANeT targets and reaches 42.32 F1. The standalone additive baseline scores 41.30 in that setting. Training from teacher probabilities alone performs poorly in the reported comparison, and extra supervision from reordered inputs or teacher gradients yields little improvement. The experiments support a way of reducing the cost of response extraction while retaining some benefit from a larger reader during training.

## Deep dive: On Knowledge distillation from complex networks for response prediction

How knowledge distillation helps a compact attention network predict dialogue responses from long documents, and what the experiments show. · about 32 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

#### Finding a reply in a document

Holl-E gives the authors a way to study grounded conversation in which the supporting text is already available. The corpus consists of crowdsourced conversations about movies, with background material that includes plot information, reviews, and comments. A participant produces alternating replies using material from that background. The original study asked how this source material could support a conversation system. Arora and colleagues take up a specific part of that problem, predicting a passage from the supplied text once the conversation has reached a particular turn. The dataset was introduced in [Towards Exploiting Background Knowledge for Building Conversation Systems](https://md.research.elamur.ai/free/en/papers/moghe-2018-exploiting-background-knowledge-building-conversation/).

The distinction between the latest utterance and the earlier exchange matters. The paper calls the participant who prompts the reply the *prober* and the other participant the *responder*. The most recent prober utterance is the query. Earlier contributions from each speaker make up their respective histories. A query can refer back to a character or scene already under discussion, so its role is broader than that of a standalone question. It can also be a comment that changes what a fitting next reply would say. The response predictor takes the current query and the histories as evidence about which part of the document fits the present turn.

The film conversation illustrated in the paper makes the shifting target concrete. The exchange begins with a favorite character, moves to a fight involving Vernita, and then turns to the fact that the characters are assassins. The plot description contains details about the fight and about Vernita’s membership in a group of assassins. As the speakers move between these subjects, a passage that worked for an earlier reply can become stale. The challenge is to use changes in the conversation to discriminate among pieces of background that are all relevant to the film.

A span is a continuous stretch of document text, identified by the positions of its first and last words. Casting the next response as a span makes it possible to reuse methods developed for reading comprehension. The system needs to predict two positions in text it has already received. Under that formulation, every possible reply comes from the source document, and the choice of boundaries controls both the content and the extent of the reply. The Holl-E construction, in which participants copy or modify material, supplies the motivation for that formulation while leaving a distinction between the full utterance a person wrote and the document passage used to predict it.

#### Why reading-comprehension architectures become expensive

As the paper describes the field, advances in reading comprehension produced systems with specialized components for representing a question, representing its source, relating the two, and extracting an answer. The interaction stage can preserve considerable detail. A reader can ask which words in a question matter for a particular document word, and can also use the question to identify important parts of the document. The paper calls these two directions of comparison co-attention. It also discusses self-attention, in which positions in the document are compared with other positions in that same document. Some earlier readers refine their representations over repeated passes.

Fine-grained comparison is attractive because the evidence for a response can depend on a small part of the query or on relationships within the document. But every added source position contributes more work when it must be compared with every query position. A document-wide comparison also grows as both sides of the comparison acquire more positions. The paper emphasizes the space as well as the time taken by these operations. A reader that works with shorter question-answering passages can encounter memory problems when given the longer background material used for conversation.

BiDAF and QANeT are the principal examples. The authors describe BiDAF as an established span predictor and use its attention representations to guide their analysis. They describe QANeT as designed with greater efficiency in mind and observe that feeding it a long dialogue source can still be demanding. For either reader, the query and the two histories can be concatenated into a single sequence that plays the part of a question. This adapts the input to the existing span-prediction task while retaining the interaction machinery that makes the readers costly. The earlier architectures are described in [Bidirectional Attention Flow for Machine Comprehension](https://md.research.elamur.ai/free/en/papers/seo-2016-bidirectional-attention-flow-machine-comprehension/) and [QANet](https://md.research.elamur.ai/free/en/papers/yu-2018-qanet-combining-local-convolution-global/).

The original Holl-E work addressed the resource constraint with a short-document setting. It trimmed the background while preserving the correct response span. The authors call this an oracle setting because the trimming operation makes use of the known location of the answer. Once the short input has been prepared, the reader still has to identify its predicted boundaries. The preparation has already narrowed the search, however, using information that would ordinarily be unavailable before predicting a response. This makes the setting useful for studying extraction within a manageable window and makes the full-document setting important for a different question, namely whether the reader can find the passage anywhere in the supplied source.

#### What the authors borrow from earlier distillation

The compression literature reviewed in the paper offers another way to handle an expensive predictor. A large teacher can generate training targets for a smaller student. An ordinary label identifies the accepted answer. A teacher’s probability distribution can also distinguish among alternatives, assigning more support to some wrong or incomplete answers than to others. Earlier work trained compact networks from such soft targets, and work on intermediate hints used internal representations as additional guidance. The paper traces these ideas through [Distilling the Knowledge in a Neural Network](https://md.research.elamur.ai/free/en/papers/hinton-2015-distilling-knowledge-neural-network/) and [FitNets](https://md.research.elamur.ai/free/en/papers/romero-2014-fitnets-hints-thin-deep-nets/).

The authors also discuss a precedent in reading comprehension. Earlier work had distilled an ensemble into a single span predictor. As described in this paper, the recipient still used a costly self-attention component and a reinforcement-learning agent. Arora and colleagues ask whether a span predictor with considerably simpler interactions can benefit from a larger teacher. For dialogue response prediction, the intended gain is a student that can inspect the full document with its own attention mechanism after receiving the teacher’s guidance during training.

That question motivates two distinct routes for transfer. One starts from an observation about how representations change across dialogue turns and uses it to choose a different attention function. The other supplies the student with additional targets for the output it already produces. The architecture change is motivated by a characteristic of the larger readers. The training change uses their predictions directly. Keeping those routes distinct allows the experiments to compare a change in how the student computes its own scores with a change in the information used to train those scores.

### The method, step by step

#### Compress the dialogue into a small set of vectors

The student receives a document, the current query, the prober’s history, and the responder’s history. It first represents each word with an embedding, a vector of numbers that can be used as input to the network. The paper uses pretrained [GloVe word embeddings](https://md.research.elamur.ai/free/en/concepts/glove/). A recurrent encoder then processes a sequence of those vectors and produces states informed by surrounding words. The equations describe a bidirectional gated recurrent unit, or BiGRU. It reads in both directions so that a state associated with a word can reflect material on either side. The architecture description also mentions a bidirectional long short-term memory encoder as an option for the query.

The query is encoded early because its representation is used to decide which words to emphasize in each history. The query encoder produces a single vector from its final state. The prober and responder histories, by contrast, initially retain a separate state at every word. A score compares each of those states with the query vector. Normalizing the scores produces weights, and the weighted sum gives a single vector for the history. The operation runs separately for each speaker. The student thus carries into the document stage a representation of the current utterance and a query-conditioned representation of each speaker’s earlier contributions.

The document still has a contextual vector at every position because the answer must be located within it. The system compares each position with the compact dialogue representations to derive scores for response boundaries. The resulting attention computation has a different structure from a full table of document-word and dialogue-word comparisons. The histories have already been summarized by the time the source positions are scored, so the cost of the interaction layer depends on comparing each source position with a fixed set of dialogue vectors. The quality of those summaries matters because the span predictor receives the dialogue through them.

Training and prediction with the simple attention network The steps in order.

#### Score the histories and the document

The notation distinguishes the lengths of the four input sequences. The paper uses `T` for the source document, `I` for the query, `J` for the prober history, and `K` for the responder history. The recurrent encoders use `d` cells in each direction. Their bidirectional states therefore have `2d` components. The symbol `qᵢ` denotes a query state at query position `i`, and `qᴵ` below denotes the state the paper indexes by the final query position `I`. The state of the prober history at position `j` is `hᴾⱼ`, and that of the responder history at position `k` is `hᴿₖ`. The superscripts `P` and `R` identify the speaker. The indexes `j` and `k` run through their respective histories.

The first attention function is multiplicative. Given a history state and the query vector, it assigns their interaction a scalar score through a learned matrix.

```
mulᵂ(v₀, v₁) = v₀ᵀ W v₁
```

Here `mulᵂ` is the multiplicative score with parameters `W`. The vectors `v₀` and `v₁` are the two inputs. The superscript `ᵀ` on `v₀` denotes transposition, turning the column vector into a row for the multiplication. The matrix `W` is learned and determines which pairings of vector components influence the score. The product on the right yields a scalar. In history attention the state for a history word takes the first input, and the vector for the current query takes the second.

```
eⱼ = mulᵂᴾ(hᴾⱼ, qᴵ)
```

The symbol `eⱼ` is the unnormalized attention score at prober history position `j`. In `mulᵂᴾ`, `Wᴾ` denotes the parameters of the prober-history interaction. The inputs `hᴾⱼ` and `qᴵ` are the encoded history word and the query summary. Applying the same function to every prober position gives a sequence of scores `e`. The query vector is shared across these comparisons, while the history state changes from word to word.

```
α = softmax(e)
```

Here `α` is the vector of attention weights, and `e` is the vector of scores over the prober history. The `softmax` operation exponentiates the scores and normalizes them by their sum. Each position gets a weight, and a larger score puts more relative weight on its state. The normalization applies over the positions of a single history for the current input.

```
hᴾ = ∑ⱼ αⱼ hᴾⱼ
```

Here `hᴾ` is the summary of the prober’s history. The sum ranges over its positions `j`, using weight `αⱼ` and state `hᴾⱼ` at each one. The responder summary `hᴿ` is obtained by the analogous procedure over responder states `hᴿₖ`. Both summaries are influenced by the latest utterance. For instance, a query about the fight can put greater weight on earlier references to the characters involved, while a subsequent query can in principle emphasize different material. That flexibility depends on what the score function learns to distinguish.

At the span stage, a document encoder gives a contextual state to each source word. The score at a given position now has several inputs: the source state, the query vector, and the two history summaries. The paper extends the multiplicative function to make the source state interact with each of the other vectors.

```
mulᵂ(u₀, …, uₐ) = u₀ᵀ (∑ᵢ₌₁ᵃ Wⁱ uᵢ)
```

Here `u₀` is the distinguished first vector, and `u₁` through `uₐ` are the remaining inputs. The index `i` identifies one of those remaining vectors, and `a` is their count. The notation `W` denotes the collection of parameters, with `Wⁱ` a learned matrix for input `i`. The sum combines the transformed inputs, and the transpose `u₀ᵀ` projects the result to a scalar by multiplication. At the document stage the distinguished vector describes a source position.

```
sₜ = mulᵂˢᵗʳᵗ(uₜ, qᴵ, hᴾ, hᴿ)
```

Here `t` indexes a position in the source document, and `uₜ` is the contextual state at that position. The scalar `sₜ` scores that position as a possible response start. The superscript on `mul` represents `Wˢᵗʳᵗ`, the parameters for start scoring. The other inputs are `qᴵ` for the query and `hᴾ` and `hᴿ` for the speaker histories. The same summaries are available at every document position, while the document state changes with `t`.

```
α = softmax(s)
```

In this use of the notation, `s` collects the start scores over document positions and `α` is the resulting distribution over the starting word. The normalization now runs over the source document. The paper uses an analogous procedure for the end of the answer, giving two distributions to supervise. The returned passage is specified by a beginning and an end. The loss operates on the respective boundary distributions, so the student receives information about candidate positions even when the ultimate prediction is a single passage.

#### Change how vectors interact

The authors were prompted to revisit multiplicative attention by a recurring error. At different points in a conversation, given the same source, SAM would sometimes select the same passage despite a change in the appropriate response. In the illustrated example, a history containing the favorite-character exchange and a query that turns to the fight should lead to the fight passage. At a later turn, the history and query have changed and the reply should draw on the description of Vernita and the assassins. The paper represents these two expectations using the conversation’s utterance identifiers.

```
Predₛₚₐₙ(SD, S₁, S₂, S₃) = spanSD(S₄)
```

Here `Predₛₚₐₙ` denotes the span predicted for the supplied input. In this example `SD` denotes the source document, and each `S` with a subscript identifies an utterance in the conversation. The inputs `S₁` and `S₂` supply the earlier exchange, and `S₃` is the current prober utterance. The notation `spanSD(S₄)` denotes the source passage that corresponds to the responder’s utterance `S₄`. The equality expresses what a correct prediction would return for that input.

```
Predₛₚₐₙ(SD, S₃, S₄, S₅) = spanSD(S₆)
```

Here the meanings of `Predₛₚₐₙ`, `spanSD`, and `SD` are the same. The latest query is now `S₅`, and the history contains `S₃` and `S₄`. The expected returned passage corresponds to `S₆`. In these two examples the source is held fixed, so the movement from one answer to the other has to be driven by the changed dialogue input.

To investigate whether the representations were varying enough, the authors used conicity. For a group of vectors, this measure averages the cosine similarities between each vector and the mean vector of the group. Cosine similarity compares directions. If the vectors point in much the same direction, their mean tends to point in that direction as well, and conicity is high. Lower conicity indicates a wider spread in direction. The paper illustrates the idea with two sets of vectors and then groups representations by conversation so that successive inputs can be compared when their source text is shared.

For BiDAF, the authors inspect an attention vector that summarizes important document words in light of the dialogue. For QANeT, they inspect row sums of its similarity matrix. For SAM, they look at the two history summaries. The selected representations have different roles in their respective architectures, but the same measure asks how strongly each group of vectors aligns with its own mean. The authors use the comparison to motivate a change to SAM that would make its history representations more varied.

The revised score function transforms each input vector, sums the results, and then applies a nonlinear function before predicting a scalar score.

```
addᵂ(v₀, …, vₐ) = wᵀ tanh(∑ᵢ₌₀ᵃ Wⁱ vᵢ)
```

Here `addᵂ` is the additive interaction, and `W` denotes its learned parameters. The vectors `v₀` through `vₐ` are the inputs, with `i` indexing them. Each matrix `Wⁱ` projects its corresponding `vᵢ` into the space where the sum is formed. The function `tanh`, or hyperbolic tangent, is applied to each component of the sum. The learned vector `w`, transposed as `wᵀ`, converts the resulting vector into a scalar. In the additive version, this function supplies the attention scores where the multiplicative interaction would otherwise be used.

The additive operation keeps the roles of query, histories, and document positions recognizable. The student still summarizes each history and still assigns scores to source positions. What changes is how the participating vectors contribute to a score. At a history position, the projected query and history states meet before the nonlinearity. At a document position, the projected source and dialogue vectors meet in the same way. The expectation that this change would increase directional diversity was also informed by earlier work the paper cites on [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/) embeddings. The new scoring function has no separate conicity target in its training loss. Its effect on conicity is measured after training.

#### Teach the student with boundary probabilities

A teacher is a trained BiDAF or QANeT reader. The authors run the teacher on the same training examples from which it learned, supplying each example’s document and dialogue and collecting distributions for both boundaries. The student receives those distributions during its own training. The annotated start and end already say which locations to favor. The teacher distributions supply relative preferences among locations, potentially giving the student hints about plausible starts and ends that share some features with the labeled ones.

The standard objective adds a teacher-matching term and an annotation term for each boundary. The teacher and annotation terms refer to the same student predictions. The paper writes the loss on a single example as follows.

```
D(pᵀᵦ ‖ pˢᵦ) + D(yᵦ ‖ pˢᵦ) + D(pᵀₑ ‖ pˢₑ) + D(yₑ ‖ pˢₑ)
```

Here `D(A ‖ B)` denotes Kullback–Leibler divergence from a target distribution `A` to a predicted distribution `B`. It measures a discrepancy with an order to its arguments. The superscript `T` on `p` identifies a teacher prediction and `S` identifies a student prediction. The subscript `b`, displayed as `ᵦ`, denotes the beginning, and `e` denotes the end. The vector `yᵦ` puts all of its probability on the annotated beginning, and `yₑ` does the same for the annotated end. The divergence from each of these one-hot targets is the corresponding cross-entropy loss. A term involving `pᵀ` instead encourages the student to fit the wider distribution supplied by the teacher.

This setup permits several comparisons without replacing the span decoder. The train-only additive variant, SAM-add-train, keeps the two annotation terms. SAM-add-teach keeps the two teacher terms. The standard additive distillation variant, SAM-add, uses the full expression. Corresponding multiplicative variants change the score function while keeping the kind of supervision fixed. The names make it possible to distinguish the additive architecture from a specific student trained with both annotations and teacher outputs.

#### Restrict, combine, or extend the teacher signal

The top-*k* variant starts from the idea that a long list of low-ranked document positions may be of limited value to the student. For each boundary, it ranks positions by the teacher’s probabilities and retains the highest-ranked ones. Teacher probabilities are renormalized over that set. The student probabilities are also restricted to the corresponding teacher-selected positions and compared there. The labeled start and end still supervise the full student distributions. In this way the set of positions used for imitation is governed by the teacher, while the annotation terms still refer to the student’s choices across the entire document.

```
D(p̃ᵀᵦ ‖ p̃ˢᵦ) + D(yᵦ ‖ pˢᵦ) + D(p̃ᵀₑ ‖ p̃ˢₑ) + D(yₑ ‖ pˢₑ)
```

The symbol `D` again means Kullback–Leibler divergence, with the target on the left of `‖`. The tilde over `p` marks a distribution restricted and normalized over the top positions. The quantity `k` is the number of teacher-ranked positions retained, with a separate set chosen for each boundary. The superscripts `T` and `S` designate teacher and student, and the subscripts `b` and `e` designate beginning and end. The vectors `yᵦ` and `yₑ` remain the one-hot labels. Their terms use the ordinary student distributions `pˢᵦ` and `pˢₑ`, which have no tilde because they still range over all positions. Keeping those terms intact gives the labeled position a direct training role even when it falls outside the teacher’s selected set.

The authors also try two ways of using both teachers. SAM-add-ensemble uses the average of BiDAF’s and QANeT’s distributions as the target for each boundary. SAM-add-both includes separate divergence terms for each teacher at each boundary, alongside the annotation terms. Averaging forms a single target before computing the loss. Keeping separate terms changes the supervised objective by adding another teacher penalty for each boundary. The paper compares the resulting training procedures empirically.

A further variant, SAM-add-aug, creates additional inputs by reordering words in the original document, query, and histories. Since the teacher is already trained, it can supply boundary probabilities for these rearranged inputs. The teacher-matching terms can therefore be evaluated on examples that have no new human annotation. The extra training data extend the range of inputs on which the student is asked to imitate the teacher. They come from perturbing the original sequences rather than collecting additional conversations with labeled response spans.

SAM-add-grad uses the teacher’s sensitivity to its input as another form of supervision. A gradient describes how a predicted quantity changes as its inputs change. In this setting, the gradient penalty asks the student to match aspects of that sensitivity in addition to matching the boundary probabilities. The paper presents this variant as an application of Sobolev training.

```
‖∇pᵀᵦ − ∇pˢᵦ‖₂ + ‖∇pᵀₑ − ∇pˢₑ‖₂
```

Here `∇` denotes differentiation with respect to the input, which consists of the source, the query, and the histories. The `p` terms are the predicted boundary distributions, with `T` for teacher and `S` for student, and `b` and `e` for the beginning and end. The minus signs form the difference between the teacher and student gradients for each boundary, and `‖·‖₂` denotes the norm applied to each difference. The sum is added to the standard objective. Matching probabilities alone asks for agreement at an input. Matching gradients also asks for agreement in how those probabilities respond to changes in that input.

#### Prepare the teachers and train the compact network

For long sources, the teacher cannot be used in exactly the same way as in the short-document setting. The authors train BiDAF and QANeT on short-document examples. When a teacher is needed for a long document, they partition the document into chunks that can be processed by the trained reader. For response prediction they select the highest-scoring span across the chunks. The same short-trained readers supply teacher predictions when the experiment calls for their guidance on long documents. The compact student can process the long source directly.

The authors choose hyper-parameters using the validation set. The search includes batch sizes of 32 and 64, GRU sizes of 64, 100, and 128, and GRU depths of 1, 2, and 3 layers. The reported best configuration uses a batch size of 32, 2 GRU layers, and a hidden size of 64. The pretrained word vectors have 100 dimensions. The initial learning rate is 0.001, with optimizer settings β₁ = 0.9 and β₂ = 0.999. The L2 weight-decay rate is 0.001. The optimizer is [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/).

### Experiments and results

#### What the two test settings measure

The experiments use the original Holl-E splits. The paper reports 34,486 training triplets, 4388 test triplets, and 4318 validation triplets. A triplet contains the source document, the conversational context, and the response. The context separates the latest prober utterance from the preceding dialogue. At test time the system receives the context and document, then predicts a source span. The dataset includes plot details from Wikipedia and material from reviews and Reddit comments, so the experiment concerns dialogue tied to supplied movie background.

In the long-document setting, labeled LD, the source is left untrimmed. In the short-document setting, labeled SD, the source is reduced to 256 words and the known response span is preserved. The long setting tests extraction with the surrounding document available as potential evidence and as competition for the correct span. The short setting gives all systems a smaller input that is guaranteed to include the target. Results are therefore most directly compared within each setting. A score in SD reflects performance after the answer-preserving preparation, while a score in LD includes the search across the original source, either directly or through chunked prediction.

The performance measure is F1. For response extraction, the metric is read in terms of the overlap between the predicted answer and the target. Precision concerns how much of the prediction is supported by the target, and recall concerns how much of the target the prediction captures. F1 brings these together. A plausible choice of passage can still lose credit if its boundaries include too much text or leave part of the response out. Exact boundary labels are used to train the student, while F1 gives the reader of the results an overlap-based view of response quality. The paper also reports parameter counts, time per training epoch, and memory and time during inference.

#### Accuracy on untrimmed sources

The main long-document baselines are standalone multiplicative SAM, standalone additive SAM, BiDAF, and QANeT. The standalone SAM variants learn from the annotated boundaries. BiDAF and QANeT use their short-document training and chunked inference. The strongest student retains additive attention and learns from the top teacher-ranked boundary positions. For LD the reported value of *k* is 20. The chart marks that student as the paper’s method.

Response predictors on the Holl-E long-document test set by F1 Top-k distillation raises the strongest student's score toward the chunked readers.

**The numbers**

| System or setting | F1 |
| --- | --- |
| SAM-mul-train | 36.49 |
| SAM-add-train | 36.96 |
| SAM-add-topk (this paper) | 37.73 |
| QANeT with chunking | 38.10 |
| BiDAF with chunking | 38.30 |

The architecture change improves LD F1 from 36.49 for standalone multiplicative SAM to 36.96 for standalone additive SAM. The best top-*k* result is 37.73. The paper describes the gain from the standalone multiplicative baseline to that student as an improvement of 3.4%. The F1 endpoints show the full comparison. It spans both the change to additive scoring and the introduction of teacher supervision, so it represents the gain of the resulting student over the original standalone network. The gap to the larger readers remains visible under their chunked inference procedure.

The long-document comparison matters because the student and the teachers reach their predictions through different use of the source. The SAM variants encode the untrimmed document as a sequence and produce boundary scores from their compact dialogue representations. The larger readers are applied separately to pieces of the source and put forward the best-scoring span they find. Both procedures operate on the same test setting, but their access to document context within a prediction differs. The measured F1 is consequently a comparison of the practical configurations that the authors could run.

#### Accuracy with answer-preserving trimming

In SD, standalone multiplicative SAM scores 40.08 F1 and standalone additive SAM scores 41.30. BiDAF reaches 45.54 and QANeT reaches 47.67. The most successful compact setting uses separate targets from both teachers and reaches 42.32. Top-*k* distillation is also tested in SD, with *k* set to 50. In this setting the paper identifies separate supervision from the two teachers as the strongest student configuration.

Response predictors on the Holl-E short-document test set by F1 Separate teacher targets produce the strongest student while the larger readers lead overall.

**The numbers**

| System or setting | F1 |
| --- | --- |
| SAM-mul-train | 40.08 |
| SAM-add-train | 41.30 |
| SAM-add-both (this paper) | 42.32 |
| BiDAF | 45.54 |
| QANeT | 47.67 |

The ordering of the larger readers depends on the setting. QANeT leads on the trimmed input, while BiDAF has the higher of their long-document scores under chunked inference. The short-document result shows how well each system extracts a response within a window whose construction uses the answer location. The LD comparison is the one that captures each system’s behavior when the source is supplied without that preparation. The two rankings describe the resulting procedures as a whole, including their access to context.

The labels-only baselines also benefit from additive attention in both settings. In SD, the additive baseline gives a useful point of reference for the distillation variants because they share the revised interaction function. Comparing the best distilled variant with the multiplicative baseline captures the effect of changing both architecture and supervision. Comparing it with the additive baseline brings the question closer to the effect of adding the teacher signal to the revised student.

#### Cost during training and prediction

The paper reports 0.25 M parameters for SAM, 2.5 M for BiDAF, and 1.3 M for QANeT. The corresponding times per training epoch are 307 secs, 5880 secs, and 2213 secs. A parameter count describes how many quantities a network learns. It captures one aspect of size. The timing comparison also reflects the operations carried out over the input, including the attention computations that motivated the simpler architecture. The figures are reported for the experimental procedures, under which the authors can train SAM with long sources and use short-document training for the larger readers.

During short-document inference, SAM uses 540MB and takes 30 secs. BiDAF uses 11GB and takes 347 secs, and QANeT uses 3GB and takes 90 secs. In LD, the reported memory use is 1.3GB for SAM, 11GB for BiDAF, and 3GB for QANeT. The larger readers use chunking for these LD predictions. The distinction between fitting a long document into memory at once and processing a series of smaller pieces explains how the authors can still report LD inference figures for readers that encounter memory problems on full inputs.

Inference time on the Holl-E long-document test setting The compact reader finishes the reported inference run sooner than either chunked reader.

**The numbers**

| System or setting | seconds |
| --- | --- |
| SAM (this paper) | 43 |
| QANeT with chunking | 150 |
| BiDAF with chunking | 710 |

These durations describe the reported inference runs. The student uses its own parameters and its own document encoder during that stage. Its teacher targets were supplied in training, so predicting a response with SAM does not require rerunning either larger reader. That separation is central to the cost comparison. Distillation adds work to producing the student, while the measurements for SAM inference describe the compact network that remains after training.

### What the ablations show

#### The geometry changes alongside response accuracy

The comparison of the two standalone SAM variants isolates the change in interaction function from the introduction of teacher targets. Conicity for the multiplicative student is about 0.8. It falls to about 0.7 in the additive student. The comparison value for the complex readers is about 0.6. The direction of the change is consistent with the authors’ conjecture that the history summaries in the multiplicative network were too similar across inputs from the same conversation. The additive network also improves test F1 with annotations alone, so its benefit does not depend on distillation.

How far that result can explain the F1 change depends on what conicity measures. The statistic summarizes angular alignment within a group of representations. In the same-film example, a lower value is compatible with the student using the new query to emphasize a different part of the history. But a change in vector direction can correspond to many different changes in scoring. The architecture comparison supports the joint observation that the additive function changes representation geometry and improves extraction. The experiment changes the score function throughout the attention mechanism, leaving the specific contribution of the measured geometry unresolved.

The teacher comparison also concerns different internal objects. BiDAF contributes a document attention summary, QANeT contributes similarity-matrix row sums, and SAM contributes its speaker-history summaries. Their conicities can be compared as descriptive statistics even though the representations are used differently. The authors’ design response is to let the student learn its own, more varied history vectors. The loss does not ask it to reproduce the teacher’s vector directions.

#### Teacher probabilities help most when labels remain

The ordinary distillation comparison asks whether boundary probabilities add information to the supervision already available. Across the reported variants, the authors find that including a teacher generally improves the student. For additive SAM this means that the scoring functions and the decoder can remain the same while the loss adds information about the teacher’s ranking of possible positions. The effect is compatible with the teacher distinguishing nearby or otherwise plausible locations that the one-hot annotation handles uniformly.

The teacher-only ablation makes clear that the annotations matter. The reported short-document teacher-only additive result is 20.23 F1. That is well below the 41.30 F1 of additive SAM trained on labels alone in the same test setting. The teacher has itself trained on labeled responses, but its predicted probabilities are a distinct target for the student, with its own uncertainties and preferences. The experiment shows that removing the direct label terms is costly in the reported setup. The better-performing recipes retain the labeled boundaries and use teacher probabilities as an additional signal.

The two annotation terms also explain a property of top-*k* distillation. A teacher can prefer positions away from the accepted response. The restricted imitation loss still asks the student to reproduce the teacher’s relative scores among its favored positions. The label terms simultaneously reward probability at the accepted boundaries over the full source. The objective can therefore express both kinds of information for the same training example. The paper tests this as a joint loss, so the success of the variant applies to the combination.

#### The scope and combination of teacher targets matter

The strongest LD student uses top-*k* supervision. Its advantage shows that matching every available teacher probability is unnecessary for the best reported compact result on long documents. Restricting the comparison to the teacher’s highest-ranked positions changes what the student is asked to learn from the teacher. It emphasizes their ordering and relative probabilities within the selected set, leaving the full-document distributions to receive direct pressure from the annotation terms. A long document supplies many positions at which imitation may contribute little to the response decision, which is the motivation the variant addresses. The study does not measure how much of the observed gain comes from omitting those positions as opposed to changing the normalization over the ones retained.

In SD, separate losses for BiDAF and QANeT produce the strongest student. This comparison distinguishes SAM-add-both from SAM-add-ensemble. The ensemble variant averages teacher probabilities before the loss is evaluated. The separate-loss variant adds both teachers’ divergences to the remaining annotation losses. It changes how much teacher supervision enters the total objective in addition to how the targets enter it. The result establishes that this recipe is stronger in the reported short-document runs. It cannot by itself tell how much of the gain is due to information supplied by the second reader and how much is due to the balance between teacher and label penalties.

The authors find little overall difference between BiDAF and QANeT as individual teachers. The direct extraction scores show differences between the readers, but their student variants do not establish a consistent preference for either teacher. A larger reader’s own test F1 measures the quality of the spans it returns under a particular input procedure. The quality of its training signal also depends on the shape of its boundary distributions and on what the student can learn from them. The experiments compare teacher choice within the architectures and data at hand.

#### Extra inputs and gradients bring little improvement

Reordering words extends supervision to inputs that the authors can produce from existing examples. The approach is attractive because a teacher can score them without new response labels. In the reported runs, the augmentation variant yields little improvement. Reordering can also disrupt the relationships among words in the original conversation and source. The experiment establishes how this particular perturbation works as a source of additional teacher targets. It leaves the value of other ways to produce additional dialogue examples open.

Gradient matching likewise offers little improvement in the reported experiments. Matching gradients is a stronger requirement than matching probabilities at the training input. It asks the compact student to match the teacher’s local response to input changes as well. The outcome shows that supplying this extra information through the tested penalty did not materially improve the reported extraction results. The top-ranked boundary distributions and the direct labels were more productive sources of supervision in the configurations that achieved the best test scores.

Taken together, the comparisons show why the strongest result is best understood in terms of its training conditions. Changing the attention function helps even before the teacher is introduced. Keeping the labeled boundaries is important when learning from a teacher. Selecting a smaller support for teacher imitation gives the strongest student in LD, while using separate targets from both teachers gives the strongest student in SD. Each conclusion comes from a different comparison and concerns a different part of the final training procedure.

### Limitations

#### Limits the authors identify

The authors’ main constraint is the cost of training and running the larger readers on long sources. BiDAF and QANeT encounter memory difficulties with full-length training examples. Their LD predictions rely on readers trained on short inputs, then applied to chunks of the original source. This is a workable long-document baseline under the reported conditions. It leaves open what the same readers would learn if they could be trained on the untrimmed documents and process them together during inference. The comparisons establish the accuracy and resource use of the configurations the authors were able to run.

The authors also describe the short-document setting as constrained because the correct response must fall inside the trimmed window. The retained window can make the larger architectures feasible and lets the study compare them with the student on a shared input. Its scores describe performance under that preparation. At the point in a live conversation where a system needs to extract a response, the correct span would itself be the unknown quantity. The LD setting avoids answer-guided trimming and is the more direct test of extraction across a supplied source.

The paper identifies several experimental results that qualify the overall gain. The student still trails the larger readers in F1. Removing the annotated boundary terms substantially weakens the reported teacher-only result. The augmentation and gradient variants bring little improvement, and the stronger distillation recipe changes with the document setting. The authors also omit scores for some multiplicative variants whose performance they describe as considerably worse. The reported comparisons therefore give an incomplete view of how every supervision recipe interacts with multiplicative attention.

#### Limits that follow from the setup

The scope of the task is extraction from an available source. Crowdsourced participants can copy or modify background sentences, while the predictor returns a continuous part of the source. This lets the study evaluate document-grounded response selection with span boundaries. It leaves open how the same training ideas would work when a reply needs to be composed from several separated facts, substantially rephrased, or written in a way that fits the speaker’s conversational style. F1 assesses overlap with a target response in the benchmark. The study does not report a separate judgment of whether users would find the extracted passages appropriate replies in a running conversation.

The corpus supplies movie conversations and their accompanying background. The tests assess held-out examples in that corpus, using its established splits. The findings do not establish transfer to dialogue in other domains, to systems that must retrieve their own background, or to readers whose input lengths and architectures differ substantially from those used here. In particular, the method assumes the source document has already been associated with the conversation. Any cost or error introduced by choosing a source would occur before the prediction task studied in the paper.

The representation analysis offers a design motivation and a measurement of a resulting change. It does not identify conicity as an independently tested cause. Replacing the attention function changes both the scoring operation and the representations that emerge from it. The student and teacher statistics come from different internal vectors, and a group-level average cannot say whether a particular turn acquired a more useful representation. A lower conicity value can be consistent with greater sensitivity to the dialogue while leaving unanswered which changes helped the system identify the annotated span.

The teachers supply predictions on the training examples they themselves saw. That gives the student access to their fitted responses, including any preferences inherited from those examples. The label-only and teacher-assisted comparisons test whether these outputs help on the established test splits. They leave open how much supervision would be gained from teacher outputs on other natural conversations, or from independently generated examples with coherent sources and replies. The paper’s augmentation test uses word reordering and therefore addresses only a particular way of expanding teacher supervision beyond the original training inputs.

There is also a limit to what the reported cost measurements cover. Parameter counts and epoch durations help explain the difference between architectures, and the inference results describe the resource use of the resulting predictors. Distillation still requires training the teacher and producing its outputs for the student, with additional teacher work for variants that use augmented data or gradients. The reported per-epoch and inference figures are useful for comparing those stages, but they do not account for the entire cost of producing a distilled network from the beginning. The paper’s direct case for efficiency concerns the relatively small reader and its operation once trained, particularly when processing long sources.

Finally, the accuracy comparisons give point scores. The paper does not report uncertainty estimates or enough repeated runs to judge how stable small differences among student variants would be. The ordering of the reported configurations is observable, and some comparisons, such as removing direct labels, show a substantial change. Finer rankings among closely scoring variants are specific to the experiments as reported. The authors’ conclusion that the choice of individual teacher makes little difference is accordingly a description of the observed pattern.

### What came after

No later citing work is documented here, so there is no follow-on result to attribute to the paper’s approach.

## Cite

Cite as Siddhartha Arora, Mitesh M. Khapra and Harish G. Ramaswamy. 2019. On Knowledge distillation from complex networks for response prediction. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).

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

```bibtex
@inproceedings{arora2019knowledge,
  title = {{On Knowledge distillation from complex networks for response prediction}},
  author = {Siddhartha Arora, Mitesh M. Khapra and Harish G. Ramaswamy},
  booktitle = {Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)},
  year = {2019},
  doi = {10.18653/v1/n19-1382},
  url = {https://doi.org/10.18653/v1/n19-1382}
}
```

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