Elamur Research

Exploiting Sentence and Context Representations in Deep Neural Models for Spoken Language Understanding

Paper · 2016 · Lina M. Rojas-Barahona, Milica Gašić, Nikola Mrkšić et al.

Summary

A spoken restaurant service needs to know whether a caller is asking for an address, giving a price preference, or responding to something the service just asked. The speech recognizer may return several plausible transcriptions, and even a correct transcription may leave part of the meaning implicit. Rojas-Barahona and colleagues build a semantic decoder that uses both kinds of evidence available at that point: the recognizer’s alternatives for the current utterance and the service’s own preceding actions. The decoder turns that evidence into a dialogue act, such as a request or an inform act, and identifies the fields of meaning, or slots, relevant to the turn.

The decoder learns from annotations attached to whole utterances. The annotations specify what a turn means without identifying which words express each part of the meaning. A convolutional network converts each proposed transcription into a vector, and the decoder combines those vectors according to the recognizer’s confidence in them. A long short-term memory network summarizes previous system actions. Together, these representations support a first pass that identifies the act and detects slots, followed by a pass that selects a value for each detected slot. The authors use word embeddings in place of manually designed lexical features and rules that replace expressions with domain-specific symbols.

The paper evaluates the approach on DSTC2 and In-car, both collected with a spoken service for Cambridge restaurants. Speech recognition is less reliable in In-car, where the authors report an average word error rate of 37%, compared with around 29% for DSTC2. On the In-car test set, the first stage’s F1 rises from 65.53% with the utterance alone to 75.9% when the utterance representation is appended to the system-action history. That same change yields a smaller share of correct decisions by the reported accuracy measure. On DSTC2, the effects of adding history are smaller and depend on the metric.

For the complete decoder on DSTC2, the reported F1 is 83.59%, compared with 80.2% for SLU1. On In-car, the decoder reaches 73.06% F1, ahead of the baseline without context features at 70.8% and behind the baseline with context features at 74.2%. The proposed decoder has the lowest reported item cross-entropy on both corpora. That measure evaluates the probabilities assigned to semantic items, so it can favor a decoder even when a baseline achieves a better precision–recall balance in its final predictions. Both corpora cover the same application, leaving the authors’ proposed extension to other domains for future investigation.

Deep dive: Exploiting Sentence and Context Representations in Deep Neural Models for Spoken Language Understanding

How a spoken language decoder combines competing speech transcriptions with dialogue history, and how the approach performs when recognition is noisy. · about 35 minutes to read

The problem and its context

The meaning a dialogue service needs

A caller using the restaurant service can specify a kind of food, a part of Cambridge, or a price preference. After receiving a suggestion, the caller can ask for details about the restaurant, such as its telephone number or address. The service has to distinguish a new preference from a request for information. That distinction matters even when both utterances contain a word such as “food.” The semantic input to the service must record what the caller is doing as well as which part of the domain the caller is talking about. This is the role of the semantic decoder in the paper’s account of spoken dialogue systems.

The paper represents the function of a turn with a dialogue act. An inform act supplies information, whereas a request asks for it. A slot identifies a field the application can use, such as price range, and a value specifies a possible entry in that field, such as cheap. In a request about cuisine, the service needs to record the requested field even when the caller has supplied no cuisine preference. The annotation scheme can distinguish that case from an inform act that provides a value for food. A turn can contain more than one semantic item, so identifying its act leaves part of the decoder’s work still to do. The functional distinction between asking and supplying information is related to speech act theory.

A second source of ambiguity is the division of work between recognition and understanding. Automatic speech recognition, abbreviated ASR, produces candidate word sequences for a spoken input. The recognizer also attaches a confidence to each candidate. The authors call this collection an n-best list. An individual candidate may preserve one clue to the intended meaning while losing another. If the decoder reads only the top candidate, it loses whatever the other candidates retain. If it treats all candidates as equally informative, it discards the recognizer’s assessment of their relative plausibility. The paper addresses this part of spoken language understanding at the point where candidate transcriptions are already available. Speech and spoken language

A third source of ambiguity comes from dialogue itself. A user can give a short response because the service has already established what it is asking about. For example, a caller may say they have no preference without restating the field under discussion. The authors’ annotation scheme has a special slot, this, for elliptical utterances of that kind. The current words and the preceding action then have different roles. The words express a response, and the action supplies information about the situation in which the response was given. The system’s prompt is available to the decoder as a structured action, independently of how accurately the caller’s words were recognized.

The resulting task has three distinguishable levels. The recognizer supplies candidate transcriptions. The decoder supplies semantics for the current turn. A dialogue state tracker, in the related work the authors describe, maintains a belief about the user’s goal across the conversation. Context is relevant at both of the latter levels, but the paper uses it to improve a turn-level interpretation. Its recurrent representation of system actions conditions the decoder’s prediction about the current utterance.

Why whole-utterance labels change the learning problem

The paper describes sequence tagging as a common approach to spoken language understanding. A sequence tagger receives a series of words and assigns labels at positions in that series. Supervised training for this setup can use a label that identifies where each relevant piece of meaning occurs. When the annotation indicates that a phrase expresses a price preference, for example, the training procedure has evidence about which input positions belong to that field. The earlier work surveyed in the paper includes recurrent neural taggers, conditional random fields, and approaches based on deep belief networks. The authors emphasize the specialized annotation effort required to train with word-level labels.

The corpora used here offer a different form of supervision. An annotator can specify which act and semantic items belong to the turn without aligning those items to individual words. The resulting labels can tell the learner that a price range was specified while leaving open which words, or which proposed transcription, carry the strongest evidence. The gap matters when the input is an n-best list. An annotation is about the intended utterance, while the alternatives may contain recognition errors and may disagree about the very phrase that would have received a word-level tag. The paper treats the utterance as the unit of linguistic annotation.

The authors describe a conditional-random-field approach by Zhou and He that also learns from unaligned annotations. It uses manually tuned features based on words or syntax to provide the learner with useful signals. They also discuss a system by Celikyilmaz and Hakkani-Tur that uses a convolutional network to extract inputs for a triangular conditional random field. That system brings intent detection and slot filling together, with word-level supervision. These examples clarify two independent choices. A decoder can learn representations automatically or receive manually chosen features, and it can learn from word-aligned or utterance-level semantic labels. The proposed approach combines learned representations with utterance-level supervision.

Several approaches discussed in the paper use delexicalisation. This is a deliberate mapping from words or phrases to concepts in a domain’s inventory. Such a mapping can gather different forms of an expression under a common symbol that a classifier can use. The authors argue that maintaining those mappings becomes difficult as a domain grows or language varies. Inflected forms, synonyms, and paraphrases can all increase the number of expressions that need to be accounted for. Their alternative is to give the decoder distributed vectors and learn which patterns in those vectors support its output labels. This changes how language is presented to the classifier. The output still uses an inventory of acts, slots, and values.

What earlier neural work contributed

For the utterance encoder, the authors draw on convolutional approaches to sentence classification that they discuss in connection with sentiment analysis. A short window of words can provide evidence for a sentence-level label, and a convolutional filter can look for related patterns wherever the window occurs. Kim’s work is the specific precedent for the sentence encoder. Its input is a single sentence in the comparison drawn by the authors. The spoken decoder must also combine multiple noisy transcriptions and produce several decisions about the same turn. Convolutional Neural Networks for Sentence Classification

The paper also discusses Kalchbrenner and colleagues as an example of convolution applied to sentence representation. The connection explains why a convolutional encoder is a plausible starting point for extracting useful features from word sequences even when the supervision is at sentence level. In the restaurant task, the resulting representation supports a functional label for the utterance and a set of field-level questions about its contents. The authors adapt the output layers and add a separate route for context. A Convolutional Neural Network for Modelling Sentences

Chen and He’s work is closer in application. As described in the paper, it uses a convolutional network and inputs based on groups of letters to learn representations of utterances and intents. The aim is for utterances with similar intents to be close in the learned space. Rojas-Barahona and colleagues share the interest in a representation that relates utterances by meaning. Their decoder uses its representation for slot decisions as well as for recognizing an act. It also gives the preceding system actions their own representation, so the decision can depend on the utterance’s place in the exchange.

Finally, the authors distinguish their decoder from approaches that go directly from recognized words to distributions over the dialogue state. Those approaches follow the user’s goal through a conversation, assigning beliefs to slot values as turns accumulate. The authors see a continuing role for explicit semantic decoding, especially for identifying a domain and determining what a user is trying to do in a system that handles multiple topics. They also question how far the delexicalisation used by the state-tracking approaches would scale. This is the paper’s motivation for retaining a separate semantic component, with state tracking serving as related work. Word-Based Dialog State Tracking with Recurrent Neural Networks

The method, step by step

From candidate words to semantic decisions

The decoder has two sources of input for a user turn. One is the list of candidate transcriptions, each with its confidence. The other is a sequence of actions taken by the dialogue service before the turn. The convolutional neural network, or CNN, works on candidate transcriptions. A long short-term memory network, or LSTM, works on system actions. A classifier uses the representations produced by these networks to choose the dialogue act and decide which slots are present. A detected slot then goes to a value classifier using the same general architecture.

How the semantic decoder interprets a user turn

The steps in order.

How the semantic decoder interprets a user turnStep 1: Embed the words in each recognition hypothesis1. Embed the words in each recognition hypothesisStep 2: Convolve and pool each hypothesis separately2. Convolve and pool each hypothesis separatelyStep 3: Weight and sum the hypothesis vectors3. Weight and sum the hypothesis vectorsStep 4: Encode previous system actions with an LSTM4. Encode previous system actions with an LSTMStep 5: Combine the utterance and history representations5. Combine the utterance and history representationsStep 6: Predict the act and detect present slots6. Predict the act and detect present slotsStep 7: Classify values for the detected slots7. Classify values for the detected slots

The flow includes two different kinds of combination. Confidence weighting combines alternatives that refer to the same utterance. Context encoding summarizes actions that occurred at different points in the dialogue. These operations preserve different distinctions. The first keeps each transcription intact long enough to recognize local patterns within it. The second lets the order of system actions matter before their information reaches the classifier.

The input words are represented by vectors. In a distributed representation, information about a word is carried across the coordinates of its vector, and related words can have related representations. The authors initialize the word inputs with vectors learned from contextual patterns in a large body of text. For the decoder, this gives each filter access to numerical relationships among words from the start of training. The network can then learn how much those relationships matter for identifying restaurant-search semantics. Word embeddings

Encode each recognition hypothesis separately

Consider one proposed transcription. The decoder represents it as an ordered concatenation of word vectors.

x₁:ₘ = x₁ ⊕ x₂ ⊕ … ⊕ xₘ

Here m is the number of words in the hypothesis and x₁:ₘ is the concatenated representation from the first through the last word. Each xᵢ is the vector for the word at position i. The operator ⊕ joins the vectors in sequence, and … stands for the intervening positions. The width of an individual word vector is k in the paper’s explanation of the CNN.

A filter operates on a window of consecutive words. It applies the same set of weights to each eligible position in the hypothesis. An activation is a measure of the match between the window’s vector and the pattern learned by that filter.

cᵢ = f(w · xᵢ:ᵢ₊ₗ₋₁ + b)

Here cᵢ is the activation for the window beginning at word position i. The window has length l, so xᵢ:ᵢ₊ₗ₋₁ is the concatenation of the word vectors starting at i and ending at i + l − 1. The filter w has lk coordinates, one for each coordinate of the joined window vectors. The dot · takes their inner product. The scalar b is the filter’s bias, and f is the hyperbolic tangent applied to the resulting score.

The filter could respond to a short local expression of price or to a phrase suggesting a request. Training determines what it actually responds to. Its weights are used repeatedly across the hypothesis, so the same pattern can register at different positions. The collection of those responses is the filter’s feature map.

c = [c₁, c₂, …, cₙ₋ₗ₊₁]

The vector c holds the window activations. Here n denotes the length of the hypothesis, the quantity written as m in the concatenation above. The window length is l, and the final starting position for a full window is n − l + 1. Each c with a position subscript is the activation at that position, and … denotes the rest of the sequence of activations.

The hypothesis may contain many eligible windows, while the next layer needs a common number of features across hypotheses. Max pooling gives the filter a single output.

ĉ = max{c}

Here ĉ is the pooled feature, c is the feature map, and max selects its largest entry. A filter therefore reports its strongest response anywhere in the hypothesis. Word order can affect that response inside the window. The pooling operation omits the location of the strongest response from the feature it passes on.

Multiple filters produce multiple features. Filters with the same window width can learn distinct patterns over phrases of that length, and filters at different widths cover different amounts of local text. Collecting the pooled features gives a vector of fixed width for a recognition hypothesis. That shared width allows each proposed transcription to contribute to the same utterance representation, even when the candidates have different lengths. The CNN thus performs its local analysis before information from competing candidates is combined.

Use recognition confidence to combine the candidates

The paper gives the different candidate vectors weights taken from the recognizer. A candidate with greater confidence contributes more strongly to each coordinate of the utterance vector.

sₜ = ∑ⱼ∈H f̂ⱼ pⱼ

Here sₜ is the representation of the user utterance at dialogue turn t. The set H contains its recognition hypotheses, and j indexes a member of that set. The vector f̂ⱼ holds the pooled CNN features for hypothesis j. The scalar pⱼ is the recognizer’s posterior confidence for that hypothesis among the alternatives. Juxtaposition in f̂ⱼ pⱼ means scalar multiplication of the whole feature vector. The summation ∑ adds those weighted vectors coordinate by coordinate.

It matters that the sum occurs after convolution and pooling. A feature can register when its supporting words occur together in a particular transcription. The decoder can then use part of that evidence even if the transcription is lower on the recognizer’s list. When several alternatives produce a similar response to a filter, their contributions support the same coordinate. Conversely, a strong response limited to an alternative with little recognition confidence receives a small weight in the utterance vector. The subsequent classifier sees the aggregate features. The individual candidate identities and the distribution of evidence across those identities are both compressed by the sum.

Represent the sequence of system actions

The context encoder receives structured system actions. An action can include a system dialogue act and associated slot–value information. A welcome action, for instance, differs in structure from an action concerned with a restaurant preference. The authors treat semantic entries such as slot names and values as units with word vectors. Accordingly, the context input represents what the service did in terms of the dialogue’s semantics. The recurrent sequence can cover all preceding system actions or a window of recent actions.

An LSTM carries forward a memory vector and a hidden vector. The memory vector is updated through gates, which allow different coordinates to retain, admit, or expose different amounts of information. The paper expresses the gates using a logistic sigmoid. Its outputs lie in the stated range [0,1], allowing them to modulate other vectors coordinate by coordinate. In the following equations, t counts steps within the recurrent input. The hidden vector used for decoding is the one obtained after processing the context chosen for the current turn.

iₜ = σ(W⁽ⁱ⁾ · xₜ + U⁽ⁱ⁾ · hₜ₋₁ + b⁽ⁱ⁾)

The vector iₜ is the input gate at step t. The vector xₜ is the current recurrent input, and hₜ₋₁ is the hidden output from the preceding step. The learned matrices W⁽ⁱ⁾ and U⁽ⁱ⁾ act on the current input and previous output, respectively. The vector b⁽ⁱ⁾ is the gate’s bias, · denotes matrix–vector multiplication, and σ applies the logistic sigmoid coordinate by coordinate. The input gate controls the contribution of candidate new content to the memory.

fₜ = σ(W⁽ᶠ⁾ · xₜ + U⁽ᶠ⁾ · hₜ₋₁ + b⁽ᶠ⁾)

The vector fₜ is the forget gate. The current input xₜ and preceding hidden output hₜ₋₁ are transformed by the learned matrices W⁽ᶠ⁾ and U⁽ᶠ⁾. The vector b⁽ᶠ⁾ is the forget-gate bias. The dot again indicates matrix–vector multiplication, and σ is the elementwise sigmoid. Each entry in fₜ controls the amount retained from the corresponding coordinate of the previous memory.

oₜ = σ(W⁽ᵒ⁾ · xₜ + U⁽ᵒ⁾ · hₜ₋₁ + b⁽ᵒ⁾)

The vector oₜ is the output gate at recurrent step t. The matrices W⁽ᵒ⁾ and U⁽ᵒ⁾ give this gate its own learned transformations of xₜ, the current input, and hₜ₋₁, the preceding hidden output. The vector b⁽ᵒ⁾ is the output-gate bias, · denotes matrix–vector multiplication, and σ applies the sigmoid to each coordinate. This gate controls how much of each transformed memory coordinate appears in the hidden output.

uₜ = tanh(W⁽ᵘ⁾ · xₜ + U⁽ᵘ⁾ · hₜ₋₁ + b⁽ᵘ⁾)

The vector uₜ is candidate content for the memory at step t. The matrices W⁽ᵘ⁾ and U⁽ᵘ⁾ are the learned transformations of the current input xₜ and preceding hidden output hₜ₋₁ for this candidate. The vector b⁽ᵘ⁾ is the candidate bias, and · denotes matrix–vector multiplication. The function tanh is the hyperbolic tangent, applied separately to each resulting coordinate.

cₜ = iₜ ⊙ uₜ + fₜ ⊙ cₜ₋₁

The vector cₜ is the memory after step t, and cₜ₋₁ is the previous memory. The symbol c here belongs to the LSTM and denotes a different quantity from the convolutional feature map. The vectors iₜ, uₜ, and fₜ are the input gate, candidate memory content, and forget gate, respectively. The operator ⊙ multiplies the matching coordinates of two vectors. The plus sign combines the admitted new content with the retained old content.

hₜ = oₜ ⊙ tanh(cₜ)

Here hₜ is the hidden output at step t, oₜ is the output gate, and cₜ is the updated memory. The function tanh acts on each memory coordinate, and ⊙ multiplies each result by its corresponding output-gate coordinate. The hidden output is available to the next recurrent step and, after the chosen input sequence has been processed, serves as the context representation.

This recurrence gives the classifier a way to use the immediate system action while also having access to information that survived from earlier actions. The context window determines what history the LSTM can see. Its gates determine what the learned representation carries forward within that window. Those are distinct controls. With all prior actions available, the encoder still has to learn which actions to preserve information about. With only the latest action available, any signal unique to older actions is outside the input.

Combine the utterance with its context

The first combination method keeps the utterance and action history in separate encoders until a shared hidden layer. Each representation receives a learned linear transformation, and the decoder applies a nonlinear function to their sum.

ĥₜ = tanh(Wₛ · sₜ + W𝚌 · hₜ)

In this expression, sₜ represents the current user utterance, and hₜ denotes the context vector obtained from the selected sequence of system actions for that turn. The learned matrices Wₛ and W𝚌 transform the utterance and context vectors into the common space of the classifier’s hidden input. The dot denotes matrix–vector multiplication. The function tanh acts on their sum coordinate by coordinate. The resulting ĥₜ is the combined representation the output layers read.

One way to understand this arrangement is to think about a short response to a question. The utterance vector can support an interpretation such as a response of indifference. The context vector can carry information about what the system has been asking. The transformations learn how each kind of evidence contributes to the same hidden features. The training annotations specify the desired output. They leave the allocation of explanatory work between the two encoders to the learning procedure.

The second combination method runs the system actions through the LSTM and then gives it the encoded utterance as the final recurrent input. The classifier’s hidden input is the recurrent output after that last update.

ĥₜ = hₜ

Here ĥₜ is the representation supplied to the prediction layers, and hₜ is the final LSTM output after it has processed the system-action history followed by the utterance vector. In this configuration, the user’s turn can alter the recurrent memory through its gates. In the first configuration the history is encoded before the utterance and history vectors meet in the shared layer. The comparison therefore tests two different places for the interaction to occur.

Decide what is present, then fill its value

The first stage gives the combined representation to several output layers. One addresses the act decision, and a separate output layer answers the presence question for each slot. The act can be chosen from categories such as inform, request, and offer. For an individual slot, the categories are absent and present. These layers share upstream features, so evidence about the function of a turn can shape the representation used for slot decisions. The scoring rule in the paper gives each output layer its own category probabilities.

P(Y = k | ĥ, W, b) = exp(Wₖ · ĥ + bₖ) / ∑ₖ′ exp(Wₖ′ · ĥ + bₖ′)

Here P is a conditional probability and Y is the category chosen by the particular output layer. The index k identifies the category whose probability is being calculated. The vector ĥ is the hidden input supplied by the encoder, and W and b collect the layer’s learned weights and biases. The row Wₖ supplies the weights for category k, and bₖ is its bias. The dot indicates the inner product with ĥ. The exponential function exp converts each category score to a positive quantity. The index k′ runs through the categories in that layer, and the sum ∑ normalizes the result over those alternatives.

The paper’s decision rule then chooses the category with the largest probability.

ŷ = argmaxₖ P(Y = k | ĥ, W, b)

Here ŷ is the predicted category. The operator argmaxₖ returns a category index k that maximizes the probability P for the output variable Y, conditional on the representation ĥ, weights W, and biases b. In the presence classifier, the paper uses 0 for absent and 1 for present. Since each slot has its own such decision, a turn can be associated with several slots.

In the second stage, the architecture is used for value prediction within a particular slot. The output categories now identify the possible values of that slot. The paper’s example is price range, whose candidates are cheap, moderate, expensive, and dontcare. Restricting the value decision to the relevant slot avoids placing price categories and food categories in the same softmax. It also makes slot detection a gate in the overall decoder. A value classifier is called for a slot selected by the first stage. For a slot with a single possible value, detecting the slot already determines the value.

There are consequently two different senses of sharing in the architecture. Within the first stage, the act and slot-presence layers read a common hidden representation and are optimized jointly. Across stages, the authors reuse the architecture for separate value classifiers. The resulting system can learn features in the first stage that support multiple outputs, while the second stage trains a classifier for the alternatives within each applicable slot.

How the networks are trained

The CNN uses filter widths of 3, 4, and 5 words with 100 feature maps for each width. These are lengths of word windows within an ASR hypothesis. The w4 label used in the experiments refers separately to a window of 4 preceding system actions. The CNN window determines what one filter can inspect at a time. The action window determines how much dialogue history is made available to the recurrent encoder.

The vectors used for initialization have dimension 100. Training updates the vectors used for system actions, while the vectors for recognized words remain fixed. The authors give computational cost as the reason for keeping the transcription embeddings fixed. The CNN’s filters can still learn to detect useful patterns in those vectors. The action side can adapt the embedding of an input unit as well as the recurrent transformations that handle it. The starting vectors are GloVe.

The training objective is negative log-likelihood. For an output decision, the loss grows as the probability assigned to the annotated category falls. Back-propagation carries this training signal from the output layers through the transformations that produced the prediction. The authors train on shuffled mini-batches with a batch size of 50, using stochastic gradient descent with an Adadelta update and a decay parameter of 0.95. They reserve 10% of the training set for validation in the reported training setup and use early stopping.

Dropout is applied to the layers just before the final layers of the CNN and LSTM, with a rate of 0.5. During training, dropping some hidden units interrupts reliance on a fixed set of activations and is intended to reduce co-adaptation among them. The authors implement the networks in Theano. The mechanism they cite for masking hidden units during training is dropout.

Experiments and results

Corpora, splits, and reported measures

Both corpora concern a Cambridge restaurant information service. Callers can specify preferences about area, price, and food, then ask for particular information about a suggested restaurant. The shared task provides a useful basis for comparing the decoder in different recording conditions. DSTC2 comes from a dialogue state tracking challenge and includes the semantic annotations used here. Its training set contains 2118 dialogues and 15,611 turns. Its test set contains 1117 dialogues and 9890 turns. The authors identify DSTC2 as publicly available.

Recordings in the in-car category come from three settings: a car simulator, a car in motion, and a parked car recorded separately with the air conditioning fan running and with it off. Its training set has 1508 dialogues and 10,532 turns, and its test set has 641 dialogues and 4861 turns. The authors give an average ASR word error rate of 37% for In-car and around 29% for DSTC2. Word error rate describes the transcription input to the decoder. Semantic scores describe what the decoder recovers from that input. The In-car corpus was collected through industry-funded work and is unavailable for public use.

Evaluation covers the act and slot-presence stage, slot-value classification, and the complete decoder. For the first stage, DSTC2 has 14 dialogue-act categories and 5 slot decisions, while In-car has 14 dialogue-act categories and 7 slot decisions. The authors report 10 fold cross-validation on the training sets and separate evaluation on the corpora’s test sets. The folds show how the configurations compare on partitions drawn from the training data. The test-set evaluation shows how those comparisons look on the separate test material. In the paper, the configurations can change position across these evaluations.

Accuracy reports the share of decisions counted as correct. Precision concerns the fraction of predicted positive items that are correct, and recall concerns the fraction of reference items that are recovered. F1 combines precision and recall, so a high score requires a favorable balance between them. The results also report item cross-entropy, or ICE. It scores the confidence assigned to each candidate semantic item against whether the reference includes that item. Lower ICE is better. These measures give the reader different views of an individual prediction system. Accuracy counts the decisions, F1 emphasizes the positive semantic items, and ICE also uses the probabilities behind the predictions.

The paper defines the confidence for a semantic item explicitly, including the case in which the decoder supplies none.

cᵤw = p if a confidence is assigned, and 0 otherwise

Here u indexes a user utterance, w indexes a candidate semantic item, and cᵤw is the confidence the decoder assigned to the presence of that item in that utterance. The symbol p is the assigned confidence when one is available, and 0 is the value used when the system assigns none. This confidence is for a semantic item, distinct from pⱼ, the recognizer’s confidence in a transcription.

δᵤw = 1 if item w is in the reference for utterance u, and 0 otherwise

Here δᵤw indicates whether the reference semantics for utterance u include item w. The value 1 marks presence and 0 marks absence. This reference indicator determines which side of the decoder’s probability is credited for the item.

N = ∑ᵤ, w δᵤw

Here N counts the semantic items marked present in the reference across the evaluation utterances. The summation ∑ ranges over utterance indices u and semantic item indices w, and δᵤw is the reference indicator. The paper uses U for the total number of utterances and W for the total number of available items.

ICE = (1/N) ∑ᵤ, w −log(δᵤw cᵤw + (1 − δᵤw)(1 − cᵤw))

Here ICE is item cross-entropy, and the factor 1/N normalizes by the number of reference items. The sum ranges over utterances u and available items w. The quantities δᵤw and cᵤw are the reference indicator and predicted confidence just defined. For a reference item, the argument to the logarithm log is its predicted confidence. For an absent item, the argument is the complement of that confidence. The minus sign turns low probability for the actual outcome into a larger penalty. The scoring rule can therefore distinguish two decoders that make similar category decisions but assign different probabilities to the possible items.

First-stage results on dialogue acts and slots

The sentence-only CNN is the paper’s internal baseline. Its output layers read the convolutional representation of the ASR hypotheses directly. The CNN+LSTM configurations combine that representation with system history through the shared nonlinear layer. The w1 setting uses the latest system action, w4 uses a window of 4 actions, and w uses all previous actions. The separate LSTM all configuration processes the available history and places the utterance vector last in the recurrent sequence.

On the DSTC2 training folds, the sentence-only CNN gives 96.1% accuracy, 87.8% F1, and 0.245 ICE. Adding the window of 4 system actions gives 96.11% accuracy, 88.03% F1, and 0.271 ICE. Thus the small improvement in the reported hard-decision measures comes with a higher probability penalty. The latest-action variant achieves 87.43% F1 and 0.275 ICE, and the full-history CNN+LSTM achieves 87.53% F1 and 0.277 ICE. The authors judge the effect of context on this corpus to be limited.

The In-car training folds show a clearer separation between the sentence-only baseline and the variants given system history. The CNN yields 76.96% F1, with 83.87% precision and 71.57% recall. For the window of 4 system actions, the corresponding figures are 78.85% F1, 84.16% precision, and 74.6% recall. The full-history CNN+LSTM yields 78.83% F1, 91.77% accuracy, and 0.448 ICE. The sentence-only CNN has 90.45% accuracy and 0.498 ICE. Among the reported fold results on In-car, full history gives the highest accuracy and lowest ICE. The paper regards the F1 scores of the context window variants as close.

On the DSTC2 test set, the CNN+LSTM with a window of 4 actions leads on F1, at 87.43%. The sentence-only CNN gives 87.14% F1, the highest accuracy at 96.03%, and the lowest ICE at 0.268. The windowed variant has 95.79% accuracy and 0.292 ICE. Its recall, at 86.02%, is higher than the CNN’s 84.74%, while its precision is 88.95%, compared with the CNN’s 89.73%. The two systems’ F1 values reflect that exchange between precision and recall.

The In-car test set has the strongest first-stage result for the LSTM all configuration by F1 and ICE. The differences among its windowed alternatives are smaller than the separation from the utterance-only CNN on F1.

First-stage act and slot classification on the In-car test set by F1

The recurrent combination leads, and all history-aware settings exceed the utterance-only CNN.

First-stage act and slot classification on the In-car test set by F1Utterance-only CNN: 65.53Utterance-only CNN65.53CNN+LSTM w1: 74.89CNN+LSTM w174.89CNN+LSTM w4: 75.15CNN+LSTM w475.15CNN+LSTM w: 75.02CNN+LSTM w75.02LSTM all (this paper): 75.9LSTM all (this paper)75.9
The numbers
System or settingF1 %
Utterance-only CNN65.53
CNN+LSTM w174.89
CNN+LSTM w475.15
CNN+LSTM w75.02
LSTM all (this paper)75.9

The test-set accuracy tells a different story. The CNN gives 87.60% on In-car, while LSTM all gives 82.3%. On the same first-stage test, LSTM all has 78.12% precision and 74.04% recall, compared with the CNN’s 69.96% precision and 62.14% recall. Its ICE is 1.106, lower than the CNN’s 1.332. The windowed variant with 4 actions reaches 82.25% accuracy and 1.333 ICE. The paper’s favorable conclusion about context on In-car is strongest when the first-stage results are read in terms of item recovery and, for LSTM all, the probability distribution.

What happens when the decoder fills in the values

The value-classification experiments use the w4 architecture on both corpora. The authors report selecting particular cross-validation runs for the preceding detection step. The chosen DSTC2 run is the 4th fold, with 90.42% accuracy, 88.69% F1, and 0.251 ICE. The chosen In-car run is the 5th fold, with 93.13% accuracy, 81.49% F1, and 0.393 ICE. These are reported properties of the selected fold runs. The separately reported first-stage test-set results and the complete-decoder results describe different evaluations.

For each detected slot, the authors train a value classifier with the chosen architecture. Two In-car slots are exceptions because their inventories contain a single value each. Type takes the value restaurant, and task takes the value find. The scores for those slots therefore come from the presence classifier. The paper reports 90.69% F1 and 0.290 ICE for type, and 72.95% F1 and 0.175 ICE for task, in the In-car slot-value evaluation. Their different F1 scores illustrate that a fixed value still leaves the presence decision to be solved.

Food is the hardest field by F1 in the slot-value results for both corpora. In DSTC2, its vocabulary of possible values contains 74 entries, and the food classifier achieves 74.58% F1 and 1.989 ICE. For In-car, the food inventory contains 25 values, and the reported food score is 66.41% F1 with 2.309 ICE. In each corpus the food inventory is substantially larger than that of the other slots. Area also shows a marked change between corpora, with 92.74% F1 and 0.563 ICE on DSTC2 and 73.41% F1 and 1.676 ICE on In-car.

Several other entries are more stable across the two reported evaluations. Price has 92.89% F1 and 0.729 ICE on DSTC2 and 90.37% F1 and 0.632 ICE on In-car. The special slot this, used for elliptical utterances, reaches 95.33% F1 on DSTC2 and 90.07% on In-car. The row labeled Slot represents cases in which a field is mentioned or requested without a supplied value, as when a caller asks what kind of food a restaurant serves. Its F1 is 93.24% on DSTC2 and 67.51% on In-car. That row concerns a different semantic decision from resolving the particular kind of food a user wants.

Across the rows of the slot-value evaluation, the paper reports a mean F1 of 89.76% and mean ICE of 0.774 for DSTC2, with 78.77% mean F1 and 0.863 mean ICE for In-car. These means summarize the individual rows, which cover different sets of slots in the two corpora. They answer a different question from the complete-decoder scores, which assess the combined Semantic output. In particular, the mean F1 of the slot-value rows should be read alongside the first-stage and overall results using the label appropriate to each evaluation.

Comparison with earlier decoders

The external baselines use weighted counts of word sequences as features. In the Henderson approach used for In-car, the contribution of an n-gram, a sequence of adjacent words, depends on its frequency in the 10-best recognition hypotheses and on the recognizer’s confidence in those hypotheses. WNGRAMS uses these utterance features, while WNGRAMS+Ctxt adds context features. On DSTC2 the comparison is with SLU1, described as a similar approach evaluated by Williams. The authors describe the earlier implementations as collections of binary classifiers for the semantic decisions. N-grams

Both the external baselines and the proposed decoder use confidence information from recognition. The representation being weighted is what changes. One approach accumulates occurrence counts for recognized word sequences. The other weights features extracted by filters over word vectors and then integrates a learned action-history representation. The overall comparison consequently tests complete approaches that differ in several respects, including their feature design and the organization of their predictions.

On DSTC2, the overall F1 comparison favors the proposed CNN+LSTM decoder with a window of 4 system actions. Its ICE is 0.758, while SLU1 has 1.943 in the same overall comparison.

Overall semantic decoding on DSTC2 by F1

The decoder with a learned utterance and action history representation leads the reported comparison.

Overall semantic decoding on DSTC2 by F1SLU1: 80.2SLU180.2CNN+LSTM w4 (this paper): 83.59CNN+LSTM w4 (this paper)83.59
The numbers
System or settingF1 %
SLU180.2
CNN+LSTM w4 (this paper)83.59

On In-car, the overall F1 scores are 70.8% for WNGRAMS, 74.2% for WNGRAMS+Ctxt, and 73.06% for the proposed CNN+LSTM w4. The context-enriched baseline therefore leads by F1. The proposed decoder leads by ICE, including against that strongest F1 baseline.

Overall semantic decoding on In-car by item cross-entropy

The windowed CNN and LSTM combination assigns better probabilities by this measure than either n-gram baseline.

Overall semantic decoding on In-car by item cross-entropyWNGRAMS: 1.76WNGRAMS1.76WNGRAMS+Ctxt: 1.497WNGRAMS+Ctxt1.497CNN+LSTM w4 (this paper): 1.106CNN+LSTM w4 (this paper)1.106
The numbers
System or settingICE
WNGRAMS1.76
WNGRAMS+Ctxt1.497
CNN+LSTM w4 (this paper)1.106

On DSTC2, the final comparison favors the proposed decoder on both reported metrics. On In-car, the relative ranking depends on whether the evaluation emphasizes selected items or the probabilities assigned to the available items. The paper treats the In-car result as evidence that learned features can be competitive with the context-enriched baseline while avoiding manually designed feature sets and application-specific semantic dictionaries.

What the ablations show

Giving the decoder access to history

The direct test of context compares the sentence-only CNN with CNN+LSTM variants that also receive system actions. In cross-validation on DSTC2, the small F1 gain for w4 coincides with poorer ICE than the sentence-only configuration. The DSTC2 test results again favor w4 for F1, while the sentence-only decoder has better accuracy and ICE. In-car is different. Context consistently raises first-stage F1 on the test set, and it raises recall across the configurations that use it. The cost in reported test accuracy shows why the positive effect should be attached to particular metrics.

The authors connect that contrast with the higher word error rate in In-car. Their interpretation is that preceding actions provide useful disambiguating information when the transcriptions have lost some evidence. The comparison is consistent with this account. A decoder that knows what the service recently asked can use that information alongside words that survived recognition. The experiment measures the aggregate effect of giving the network that input. It leaves open which individual utterances the history resolved, including how frequently the decisive clue was related to an elliptical turn.

How much history to include

Comparing the w1, w4, and w variants asks whether supplying additional system actions improves the same type of combination layer. The In-car training-fold results favor all previous actions for accuracy and ICE, while the authors find little separation in F1 between recent and longer histories. On the In-car test set, w4 has the highest F1 among those window-based CNN+LSTM variants. The full-history variant has the highest precision of that group, while w4 has the highest recall. On DSTC2, w4 also has the highest reported test F1 among the windowed variants.

The experiment thus gives evidence for access to system history, with more mixed evidence about how far back that access should extend. A long window makes older prompts and actions available, and a short window centers the most recent exchange. The comparisons report the quality of the final predictions after training. They give no direct measurement of whether a gate retained a particular earlier action or whether the decisive information typically came from the immediately preceding prompt. The useful practical distinction is between a history window that is available and the history information the learned representation actually uses.

Where the utterance meets the history

The paper also compares adding the completed utterance vector to the completed context vector with passing the utterance through the LSTM after the history. On the In-car test set, putting the utterance last gives the best first-stage F1 and ICE. It also gives higher recall than the variants that combine separate finished representations. On DSTC2, the same recurrent combination yields 86.42% test F1 and 0.308 ICE, below the best available result on either measure. The advantage of a recurrent interaction is therefore specific to the reported In-car comparison.

The closest comparison of the two combination rules is between CNN+LSTM w and LSTM all, since each gives the recurrent encoder the previous system actions. Comparing LSTM all with w4 changes the span of action history as well as the way the representations meet. On In-car, the comparison using full history still favors appending the utterance for F1 and ICE. This supports a narrower conclusion than treating the configuration as superior in general. When applied to the noisier test corpus in this experiment, the recurrent update with the utterance fits the semantic decisions better by those measures.

What the remaining comparisons can explain

The food results are a breakdown by slot, rather than a controlled experiment on the number of choices. Within each corpus, food has the largest inventory and the lowest F1 among the reported slot-value rows. That makes the inventory a plausible part of the difficulty. Across corpora, In-car has fewer listed food values and still has the lower food F1. Changes in recording conditions, available training examples, and which values occur in the data can also matter. The slot results do not assign a share of the error to each factor.

The earlier baselines give another view of context. On In-car, the context-enriched n-gram baseline improves on the n-gram baseline without context in both overall F1 and ICE. The learned decoder’s ICE is lower still, while the context-enriched baseline has the highest F1. This is evidence about the full systems and the kind of output each metric rewards. It does not isolate whether the neural decoder’s probability advantage came from its convolutional filters, its recurrent history, its use of word embeddings, or the division between slot detection and value prediction.

The paper’s controlled comparisons concentrate on whether history is available, how many actions are supplied, and how the action sequence is combined with the utterance. Other design choices, such as weighting the recognition hypotheses by confidence and fixing the embeddings on the transcription side, are shared by the relevant variants. The experiments establish how those variants perform with those choices in place. They leave the contribution of individual shared components unmeasured.

Limitations

Limits the authors state

The authors acknowledge that the learned decoder trails WNGRAMS+Ctxt on overall In-car F1. Their positive conclusion for the complete In-car system relies on its comparison with the baseline without context features, its lower ICE, and the fact that its features are learned without an application-specific semantic dictionary. This qualification matters when the application will act on a selected set of semantic items, since stronger probability scores and stronger selected-item F1 are different outcomes. On DSTC2, the reported overall comparison favors the decoder on both measures.

The authors also put uses across domains in future work. They propose studying whether the representations produced during joint act and slot detection could support topic management in a system with multiple domains. In that application, the component would help identify which domain a turn belongs to and what the user intends. They also raise adaptation to potentially open domains as an area to investigate. Avoiding delexicalisation is the motivation for expecting easier extension. The paper’s empirical results are for the restaurant task.

The In-car data restriction limits independent reproduction of the part of the evaluation that shows the strongest first-stage effect from context. DSTC2 is the publicly available corpus, and the paper finds smaller effects of history there. The distinction between the two corpora therefore affects what can be independently checked with the original recordings and annotations, as well as how broadly the conclusions apply.

Limits of the experimental setup

The two corpora offer evidence from different dialogue collections and recording conditions within one domain. They are not a controlled intervention on recognition noise. The training and test sets contain different numbers of dialogues and turns, and the slot inventories differ. Word error rate describes an important difference between the corpora, and the authors’ explanation for the In-car findings is plausible. A causal estimate of the effect of increasing recognition noise would require comparing equivalent utterances under changes to the recognition input while holding the rest of the setup fixed. The reported experiments compare the corpora as collected.

The decoder also continues to depend on the structure of the target application. It needs semantic labels on utterances, a list of available slots, and an inventory of candidate values for the classifiers that fill those slots. The paper reduces the work of mapping expressions in a transcript to hand-coded semantic symbols and eliminates the need to align the training labels with individual words. It does not demonstrate prediction of slot values outside the classifier’s given inventory. The value decision for price range illustrates that boundary concretely: the softmax distributes probability among the categories defined for price range.

Because the system is staged, slot-value results can reflect errors of detection as well as errors of choice among values. Missing a slot prevents the associated value classifier from recovering it. Detecting an incorrect slot can prompt a value decision for a field the turn did not express. A controlled evaluation that provides the reference slots to the value classifiers could distinguish value difficulty from inherited detection error. The paper reports the staged setup and its slot-by-slot results. It gives no such comparison, so the scores should be interpreted as outcomes of the reported pipeline.

There is also a qualification about how the second-stage configuration was selected. The paper identifies a particular w4 fold run on each corpus and associates the selection with cross-validation F1. Its fold averages on In-car give a slightly different ordering among the context windows. The selected run, the average behavior of a configuration across folds, and held-out test performance are separate quantities. The reported choice establishes which classifier fed the value stage. It does not establish that w4 would lead each metric if all the context configurations were compared as complete decoders.

Finally, the fused representations compress information before the output layers use it. The weighted sum conceals which recognition alternative provided a feature, and max pooling retains the strength of a local response without carrying its position explicitly. The context input is structured system actions, rather than a separate encoding of everything either participant previously said. These are identifiable boundaries of the architecture. The experiments show that the resulting representations are useful for the reported semantic decisions. They do not measure how much finer detail could be recovered by preserving hypothesis identity, adding user-turn history, or keeping the location of the strongest lexical evidence.

What came after

A later study that cites the paper takes dialogue-act classification into group chats and names DAG-LSTMs as its approach. Dialogue-act classification is the part of the spoken decoder that decides what a turn is doing. The later title identifies a different setting for that decision, centered on group chat instead of the recognized input of a spoken restaurant service. Dialogue Act Classification in Group Chats with DAG-LSTMs

The connection is clearest at the level of the classification task. In Rojas-Barahona and colleagues’ decoder, an LSTM summarizes the service’s prior actions so that the current utterance can be read in context. The group-chat study addresses act classification and names a different recurrent architecture. The citation establishes the relationship between the papers, while the title establishes the task and architecture of the later work. It leaves open whether that study directly reused any part of the spoken decoder’s treatment of recognition hypotheses, system actions, or slot values.

Cite

Cite as Lina M. Rojas-Barahona, Milica Gašić, Nikola Mrkšić, Pei-Hao Su, Stefan Ultes, Tsung-Hsien Wen and Steve Young. 2016. Exploiting Sentence and Context Representations in Deep Neural Models for Spoken Language Understanding. Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{rojasbarahona2016exploiting,
  title = {{Exploiting Sentence and Context Representations in Deep Neural Models for Spoken Language Understanding}},
  author = {Lina M. Rojas-Barahona, Milica Gašić, Nikola Mrkšić, Pei-Hao Su, Stefan Ultes, Tsung-Hsien Wen and Steve Young},
  booktitle = {Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers},
  year = {2016},
  url = {https://aclanthology.org/C16-1025/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/barahona-2016-exploiting-sentence-context-representations-deep/