Elamur Research

Sequential Dialogue Context Modeling for Spoken Language Understanding

Paper · 2017 · Ankur Bapna, Gokhan Tür, Dilek Hakkani-Tür et al.

Summary

When a user supplies a time, names a place, or accepts a suggestion, the words may leave out the task they belong to. In dialogue systems that handle several tasks in one conversation, even the immediately preceding question may leave that task unclear. Bapna and colleagues study whether a spoken language understanding component can use earlier turns to produce a better semantic frame, the structured description of a user’s request. A frame identifies the domain, such as movie ticketing, the user’s intent within the conversation, and any words that supply slot values, such as the name of a movie or the requested time. Speech and spoken language

The authors compare ways to give a recurrent neural tagger access to the conversation. A baseline reads the preceding system utterance. A memory network reads a longer history and combines its utterance representations according to how closely they match the current request. The authors’ Sequential Dialogue Encoder Network also reads the longer history. It pairs each earlier utterance with the current request, then passes the resulting representations through a recurrent encoder in conversation order. This allows information from different turns to interact before the tagger predicts the frame.

The evaluation uses crowdsourced conversations about buying movie tickets, finding restaurants, and reserving tables. Most of the original training conversations cover a single task, while the test conversations span multiple domains. The authors address that mismatch through dialogue recombination. They cut a single-domain conversation at a sampled turn and append the portion of another conversation that begins with an explicit request to start a different task. The resulting training example puts material from another domain into the history without requiring new wording or new frame labels for its constituent turns.

On the multi-domain test set, the memory network has the lowest frame error rate without recombination, at 26.72%. With recombination, the sequential encoder reaches 25.85%, the lowest frame error rate reported, and leads on domain and slot token F1. The memory network with recombination leads on intent F1. The paper illustrates how the sequential encoder can recover a slot when different earlier turns supply complementary clues. The aggregate results establish a narrower point than an advantage for chronology alone. Full-history access helps in this comparison, and the strongest sequential system depends on training examples that expose it to task switches.

Deep dive: Sequential Dialogue Context Modeling for Spoken Language Understanding

How the Sequential Dialogue Encoder Network uses earlier turns to interpret spoken requests, and why training on task switches matters. · about 35 minutes to read

The problem and its context

What a frame has to recover

A task-oriented conversation lets a person specify a goal in pieces. To reserve a table, the person may start by asking for a booking and supply a restaurant name only after the system asks where they want to go. The date, time, and party size can arrive in further turns. An availability check may prompt the user to change a preference. At each stage the understanding component has to turn conversational language into information that the rest of the system can act on. That is the role of natural language understanding studied here.

The paper calls that intermediate representation a semantic frame. Its domain says which area of activity the utterance belongs to. Its intent describes what the user is doing with the utterance, which can be an explicit request to start a task or a conversational act such as accepting a proposed value. Its slots identify task-specific attributes conveyed by the words. The movie title and the theater name, for instance, are different attributes within movie ticketing. The analysis turns language into labeled fields while preserving the distinctions a downstream component needs. It is a form of semantic parsing.

The restaurant example at the beginning of the paper shows why these parts belong together. The user opens by asking for a reservation. The system asks where the user wants to go, and the reply supplies a party size and the name Pho Nam. The opening request establishes the reservation task. The follow-up invites the restaurant name. The final reply contains the words to label as a quantity and a restaurant name. The paper displays tags on the individual words as well as the domain and intent for the utterance as a whole.

That distribution of information is ordinary in a cooperative conversation. A person can leave the purpose of a name implicit because the system has just asked a question. The same economy creates a technical problem. A restaurant name could answer a search question, identify the place to book, or accept a restaurant proposed by the system. A short response can contain a recognizable name and still leave its domain and intent open. The meaning of its words and the role it plays in the conversation are related prediction problems.

Multi-domain conversations also make relevance change over time. A user can begin by buying a movie ticket and later ask to find somewhere to eat. The earlier movie turns may be lengthy and detailed, yet the latest terse response may concern a restaurant. In other cases a new request depends on an earlier task, as when the user wants a table after the movie or a restaurant near the theater. A useful history representation has to accommodate both cases. It must support a shift of focus and leave earlier information available when the new request refers back to it.

Where earlier systems used context

The paper locates the problem at the boundary between understanding a turn and managing the conversation. The spoken language understanding component supplies frames. Dialogue state tracking can then integrate information accumulated across turns, a policy can choose the next action, and response generation can express that action to the user. The authors describe traditional understanding components as typically looking no farther back than the preceding system turn, leaving more extensive contextual ambiguities to later components. Their question is whether history can improve the frame at the point where that frame is first produced.

This placement matters because the components solve different problems. A state tracker may need to keep the requested time available until a booking is made. The understanding component in this paper has to recognize the time expression or determine what the latest utterance is about. Giving it more conversation history changes the information it can use for its own predictions. The output remains a frame for the user’s current utterance.

As the authors describe the field, earlier statistical approaches learned to assign domain, intent, and slot labels from annotated examples. Recurrent neural networks brought a way to use the sequence of words directly, with early applications that included slot filling. The paper also cites work showing that a shared recurrent system for domain, intent, and slots could improve complete-frame performance. Sharing the recurrent representation lets the word sequence inform both utterance-level decisions and the classification of individual words. Joint prediction is therefore an inherited part of the setup. The new question concerns the conversation that feeds into it.

A related line of work combined intent recognition with prediction of word sequences. The paper reports promising intent results from this approach in the presence of noisy speech recognition. It also describes earlier work that incorporated frame semantics, previous dialogue, or knowledge-base information. These are distinct sources of context. The current paper uses earlier utterances as evidence for the current parse. The knowledge-base interactions used to construct its conversations play a different role from the text input to the tagger.

The authors place their study alongside work that used history for end-to-end dialogue and for predicting the next utterance. The hierarchical dialogue work by Serban and colleagues is cited for the latter use. A system that predicts the next line and one that labels the current line have different outputs, even when both benefit from representing the turns that came before. The paper also mentions response generation as a downstream application of recurrent networks, citing semantically conditioned LSTM generation and multi-domain language generation.

What it means to keep the order of a conversation

The proposed architecture has a more specific motivation than simply increasing the amount of input. If a memory contains all previous utterances, a system can choose which ones to emphasize. If the memory is reduced to a weighted sum of separately encoded utterances, chronological relationships are available only through information represented within those individual entries, such as the positional markers the authors add. A recurrent encoder over the utterance sequence gives the computation an explicit route for representing how the dialogue reached its current point.

The distinction matters when useful clues occur in different places. A request to find a restaurant may establish the task, while a subsequent system question establishes that the user is being asked to choose among named options. A representation that attends strongly to the first clue can identify the domain. Interpreting the next reply as a particular restaurant choice can also require the second clue. The proposal is to condition each turn on the current utterance and then allow the ordered sequence of these representations to shape the interpretation.

The architecture draws on the hierarchical recurrent encoder–decoder of Sordoni and colleagues. In that design family, an encoder at one level handles the words within a query or utterance, and an encoder at another level handles the succession of those units. Bapna and colleagues introduce the current utterance into the representation of each history item before the session-level encoder reads the history. A given conversation prefix can therefore be encoded differently depending on the utterance the system is trying to interpret.

The question also has a data side. A learner can see varied words and many examples of how earlier turns assist a prediction while still seeing few changes of domain inside a conversation. If each training dialogue mostly stays with one task, any sufficiently clear task cue may remain useful through many turns. That assumption becomes less dependable when the user switches domains. The paper treats the history encoder and the distribution of training conversations as related parts of the same problem.

The method, step by step

The information available at prediction time

The system receives the current user utterance and the dialogue up to that point. Earlier turns can come from the user or the system. Internally, it divides the work between a context encoder and a tagger. The context encoder produces a vector, a fixed-size array of learned features summarizing what the tagger can use from the conversation. The tagger reads the current utterance word by word and uses that vector when assigning labels. This division gives the authors a common prediction architecture for testing different ways of encoding history.

From dialogue history to a semantic frame

The steps in order.

From dialogue history to a semantic frameStep 1: Encode each earlier user or system utterance1. Encode each earlier user or system utteranceStep 2: Encode the current user utterance2. Encode the current user utteranceStep 3: Pair its encoding with each history vector3. Pair its encoding with each history vectorStep 4: Read the paired vectors in chronological order4. Read the paired vectors in chronological orderStep 5: Initialize the tagger from the session encoding5. Initialize the tagger from the session encodingStep 6: Predict domain, intents, and token slot labels6. Predict domain, intents, and token slot labels

The flow describes the Sequential Dialogue Encoder Network. In the paper’s notation the general interface, shared by the context alternatives, is as follows.

hₜ = H(Dₜ)

The subscript t is the position of the user turn being parsed. Dₜ is the dialogue from its beginning through that turn, including the current utterance uₜ. H is the context encoder, and hₜ is the vector it returns for the tagger. The interface allows H to use the current utterance as well as the history. The preceding-turn baseline uses the system utterance immediately before uₜ as its source of context.

An utterance is itself a sequence. In the notation associated with uₖ, k identifies the utterance, xᵏᵢ is its token at position i, and nₖ is the number of tokens in that utterance. This creates a word sequence inside a turn sequence. The architecture exploits that distinction by using a recurrent encoder over words to create utterance representations and, in its sequential version, a separate encoder over the utterance representations.

The preceding system utterance

The baseline called ED, for encoder–decoder in the results, supplies the tagger with just the previous system utterance. It looks up a learned vector for each token in that utterance, using the same embedding parameters as the tagger. These word embeddings provide the numerical input to the recurrent encoder. Sharing them lets the ordinary word vocabulary contribute to both the encoding of the system prompt and the processing of the user’s response.

hₜ = BiGRU꜀(uₜ₋₁)

Here hₜ is the context given to the tagger at turn t, and uₜ₋₁ is the preceding system utterance. BiGRU꜀ designates the bidirectional gated recurrent unit encoder in this baseline. A GRU updates a hidden state as it reads a sequence, using gates to regulate the information carried forward and the contribution of the new input. A bidirectional layer reads the sequence in both directions. The context vector is the final representation from this encoder, with 128 dimensions in total and 64 in each direction.

For a response to a direct question about time or party size, the system’s wording may give the tagger the category of the requested value. This makes ED a meaningful baseline. It has access to the local prompt and a recurrent representation of its tokens. Its information boundary is the previous system utterance. The first request and any intervening task changes can affect the current prediction only insofar as the latest prompt reflects them.

A memory of earlier turns

The memory network, MN, represents each preceding utterance separately. It adds a positional token to each history utterance, allowing its position to affect its encoding. The encoder can therefore learn to distinguish turns using their position as well as their words. That positional information matters when describing the comparison. MN can access a cue about when an utterance occurred, although its final combination does not recurrently process history items in order.

mₖ = BiGRUₘ(uₖ)

Here uₖ is a history utterance at position k before the current turn. BiGRUₘ is the bidirectional GRU used for the memory entries, and mₖ is the resulting vector. The same encoder is used across the history utterances. Each memory vector has 128 dimensions, with 64 contributed by each direction. The paper’s description of the history uses the utterances from u₁ through uₜ₋₁.

The network represents the current user utterance through a separate encoder.

c = BiGRU꜀(uₜ)

Here uₜ is the utterance being parsed, BiGRU꜀ is the current-utterance encoder for this architecture, and c is its output. This encoder also has 128 dimensions, 64 in each direction. Its output provides a representation against which the memory entries can be compared. A short reply can thus change which history receives weight, even at the same point in an otherwise identical exchange.

The paper describes the comparison as cosine similarity, which depends on the direction of the vectors. It writes the scores compactly as a matrix–vector product in its attention expression.

a = softmax(Mc)

Here M has one row per history utterance, with row i representing mᵢ, and c is the current-utterance vector. Mc denotes the per-row comparisons, described in the paper as cosine scores. With cosine similarity, the row and query vectors are treated as normalized for that comparison. The expression softmax converts the scores into relative weights by exponentiating and normalizing them across the entries being considered. The output a is the attention vector, with a weight for each history entry.

hₜ = aᵀM

In this expression aᵀ is the transpose of the attention vector a, M is the matrix of memory representations, and hₜ is their weighted combination for current turn t. Each row contributes according to its corresponding weight. The result has the width of an utterance representation even when many turns enter into it.

This is a single-hop memory. It computes the weights from the current utterance and the encoded history and returns the combined vector in one step. A weight can be large when the current utterance strongly resembles or relates to a particular earlier line in the learned representation. Several turns can contribute at once. The architecture adds their contributions after independent comparisons with c, so a contribution from one turn does not first update a history state used to process the next. This is the distinction the session encoder is designed to address.

A session encoder conditioned on the current turn

The Sequential Dialogue Encoder Network, SDEN, starts from the same kinds of vectors mₖ and c. It puts c beside each mₖ by concatenation. A feed-forward layer transforms that pair into a joint representation. This is an opportunity to encode properties of an earlier turn that matter specifically to the interpretation of the current user’s words. The joint representation for a task request can carry different information from the joint representation for a follow-up question, even though both use the same current-utterance vector.

gₖ = sigmoid(FF(mₖ, c))

Here k indexes the history utterance, mₖ represents that utterance, and c represents the current utterance. FF is the feed-forward transformation applied to their concatenation. Its parameters are shared across all the memory entries. The sigmoid acts element by element on the layer’s output, and gₖ is the resulting 128-dimensional vector for the pair. The operation returns a vector of features for each turn, instead of a single number that governs the turn’s entire contribution.

The session encoder reads those vectors in chronological order. An earlier turn can influence how the recurrent state evolves as other turns are read. Since the layer is bidirectional, it also processes the sequence in reverse. Both directions work within the available history. The rightmost history entry is the utterance before the current user turn, so processing that history backward does not require seeing any later turn in the conversation.

hₜ = BiGRUₛ((g₁, g₂, …, gₜ₋₁))

Here the ordered tuple contains the pair vectors gₖ for the history before t. The ellipsis represents intermediate history positions. BiGRUₛ is the session-level bidirectional GRU, and hₜ is its final state representation, used as the dialogue context. The session layer has 128 dimensions. Unlike the token encoders, its sequence elements correspond to whole turns conditioned on the current utterance.

There are two levels of recurrence in this part of SDEN. Encoding an utterance uses the order of its words. Encoding the session uses the order of the resulting history representations. The first level can capture what a question says. The second can carry information about how that question follows a task request or an earlier system offer. The pairing with the present user utterance happens between those levels. As a consequence, the same conversation materials can be incorporated differently for a reply naming an entity and for a reply accepting an offer.

How the tagger turns context into labels

Across the architecture comparison, the tagger is a stack of bidirectional recurrent layers. Its current-utterance input uses learned 256-dimensional embeddings. The first layer has GRU cells with 256 dimensions overall, 128 in each direction. It produces an output at each token position, giving the next layer a representation of each word in the context of its neighbors.

o¹ = BiGRU₁(uₜ)

Here uₜ denotes the token sequence of the current user utterance, supplied through the learned embeddings. BiGRU₁ is the first recurrent tagger layer, and o¹ is its sequence of token outputs. The superscript identifies the layer. Each element of o¹ is associated with a position in uₜ.

The second layer uses long short-term memory cells, or LSTMs. Like a GRU, an LSTM is a recurrent cell with mechanisms that govern how information from earlier sequence positions persists. The second layer also has 256 dimensions, with 128 in each direction. The authors chose this cell type for the second layer because their validation comparisons favored it for slot filling across the context architectures. They apply dropout to the outputs of both recurrent layers during training.

o², s² = BiLSTM₂(o¹, hₜ)

Here BiLSTM₂ is the second bidirectional tagger layer. Its sequence input is o¹, the output from the first layer. The other argument, hₜ, supplies the dialogue encoding used to initialize its forward and backward recurrences. The result o² is the sequence of token-level outputs, and s² is the final state representation. The superscript again identifies the layer. This gives the tagger different readouts for decisions about the whole utterance and decisions about a particular token.

The domain classifier uses the final state of that layer.

p_domain = softmax(U s²)

Here p_domain is the vector of probabilities over domains, U is the learned classification matrix for those domains, and s² is the final representation from the tagger. The softmax normalizes the scores across domain labels. Its form corresponds to a choice among domain categories for the utterance.

p_intent = sigmoid(V s²)

Here p_intent contains the intent scores expressed as probabilities, V is the learned intent classification matrix, and s² is the same utterance representation. The sigmoid applies to each intent score independently. This differs from the domain softmax, which couples its output probabilities through normalization over the candidate domains. The architecture uses the utterance as a whole for both readouts.

The slot classifier works at the token level.

p_slot,ᵢ = softmax(S o²ᵢ)

Here p_slot,ᵢ is the distribution over slot tags for token position i, S is the learned slot classification matrix, and o²ᵢ is the second-layer output at that position. The softmax normalizes the tag scores for the token. Where the domain and intent outputs characterize the utterance, the slot outputs indicate where its attribute values occur.

The slot scheme distinguishes the beginning of a value, a continuation inside that value, and words outside any value. A multiword restaurant name can therefore start with a beginning tag for the restaurant-name slot and continue with an inside tag of the same type. The paper expresses the resulting output width for a domain as follows.

2N + 1

Here N is the number of slot types in the domain, 2 gives each type a beginning tag and an inside tag, and 1 accounts for the shared outside tag. The tagged spans supply the actual values, such as the name stated by the user. History helps decide which words fill which roles in the current frame.

How the conversations and labels were made

The authors collect task-oriented conversations by separating the generation of a semantic exchange from the writing of its natural-language turns. In the first stage, a simulated user interacts with a rule-based system. Their exchange consists of dialogue acts and slot information. A dialogue act specifies what a participant is doing, for example requesting a preference, proposing a value, accepting it, or asking for alternatives. This gives the creators a record of the intended semantics before the words of the conversation are written.

The simulator is stochastic and agenda-based, drawing on agenda-based user simulation by Schatzmann and colleagues. A simulated user has a goal expressed through constraints on slots. An unspecified constraint can indicate indifference about the corresponding value. The agenda tracks what still needs to be conveyed. At a given turn, the simulator samples from allowable acts using the goal and agenda, the preceding actions, and a selected profile. The profiles include contrasts in cooperativeness and verbosity, giving the simulator ways to vary how the same broad task proceeds.

The rule-based participant responds to that act. It may ask for missing information or make a backend inquiry about availability. Its response can contain several dialogue acts, depending on the user’s act and the backend reply. This can create a sequence in which an offer is rejected and another is accepted. The interaction therefore specifies more than an initial request and a final successful outcome. It can contain the local shifts in intent that the understanding component will later be asked to label.

In the second stage, crowdworkers receive the semantic exchanges in a form they can turn into natural dialogue. The paper illustrates this with a movie booking in which the user initially leaves some preferences open, supplies a theater and a title, rejects a proposed showing, and accepts a later offer. The natural utterances can be short and elliptical because workers see a sequence of related turns. The target acts and slot values come from the underlying exchange. This lets the authors obtain the initial labels automatically. An expert checks them and supplies missing turn annotations. Linguistic annotation

The movie task includes fields for the date, title, ticket quantity, theater, and time. Restaurant search includes fields such as the location, category, meal, price range, rating, and restaurant name. Restaurant reservation includes the date, party size, restaurant, and time. Some fields recur across tasks, so recognizing a time expression or a restaurant name gives only part of the required answer. The domain and intent determine how that information fits the current dialogue.

The act inventory also distinguishes task requests from more general conversational moves. A direct request to buy a ticket, search for a restaurant, or arrange a reservation names the task. An implicit continuation, labeled contextual in the paper, can supply requested information without restating it. The simulator also supports generic and attribute-specific affirmations or denials. Thus a system has to recognize both the content of the spoken response and the kind of contribution it makes to the exchange.

The authors extend the simulator and the rule-based policy to produce conversations that span multiple domains. A simulated user can have several goals. A later goal can include a condition stated relative to an earlier one, as in choosing where to eat based on the theater location or booking a table in relation to the movie time. Those dependencies are made possible by the multi-domain simulator. They differ from the simpler task boundaries introduced by the recombination procedure.

How single-domain conversations were recombined

The original single-domain data are more plentiful than the original multi-domain training data. The authors want additional training histories in which a task cue ceases to be the right guide for the next turn. They construct them by joining part of one single-domain conversation to a task-opening segment from another. Their assumption is local to the join. An explicit task request can start a segment that remains intelligible when preceded by a different task.

The paper represents a dialogue as paired turns and labels.

d = ((tᵈ₁, fᵈ₁), …, (tᵈₙᵈ, fᵈₙᵈ))

Here d is the dialogue, tᵈᵢ is its turn at position i, and fᵈᵢ is the associated semantic labeling. The superscript d identifies the dialogue that the pair comes from, and nᵈ is its length in turns. The first and last pairs bound the sequence represented by the ellipsis. Keeping a turn and its labels together preserves the annotations of the constituent dialogue segments.

The procedure samples a dialogue x from one single-domain dataset and a dialogue y from another. In y, it finds the earliest user turn whose intent explicitly requests the task. That is the start of the inserted segment. In x, it chooses an insertion turn at random. The generated conversation contains the part of x through that position, followed by the part of y beginning at its explicit task request and extending to the end.

dᵣ = ((tˣ₁, fˣ₁), …, (tˣₖ, fˣₖ), (tʸₗ, fʸₗ), …, (tʸₙʸ, fʸₙʸ))

Here dᵣ is the recombined dialogue. The superscripts x and y identify the source dialogues. Each t is a turn and each f is its corresponding annotation. The subscript k is the last retained turn of x, l is the task-opening turn chosen in y, and nʸ is the length of y. The ellipses indicate the intervening pairs from each source segment.

In the paper’s example, a movie-ticket conversation reaches a question about which theater the user wants. The user’s next line in the recombined dialogue initiates a search for an Italian restaurant in Mountain View. The later exchange about price and a recommendation comes from the original restaurant dialogue. The remainder of the original movie booking is dropped. A reply about seating, a date, or a theater from the removed part could have depended on earlier exchanges that are interrupted by the splice. Ending the first segment at the insertion point avoids asking the new conversation to resume those dependencies.

The sample also shows what the assumption does permit. The new task may begin in a place where a direct answer to the previous question would be expected. The explicit request gives that change a readable interpretation, although the new conversation may leave the first task unresolved. The point for training is that the history now contains plausible cues for a different domain before the user announces the active one.

The authors repeat sampling and recombination 10,000 times for each combination of source datasets. They relate the approach to earlier semantic parsing work by Jia and Liang, which used recombination to enrich single-turn examples. In the present study the material being recombined is a sequence of already annotated turns. No new labels have to be inferred at the splice to make the resulting dialogue available as training input.

Experiments and results

What the systems were trained and tested on

The single-domain collections contain 1319 restaurant reservation dialogues, 976 restaurant search dialogues, and 1048 movie ticketing dialogues. All of these single-domain dialogues are used for training. The separately collected multi-domain data contribute 467 dialogues to training, 50 to validation, and 273 to the test set. The test task is thus understanding turns from multi-domain conversations in both training conditions. Recombination changes the training input while preserving the evaluation set.

The architecture comparison uses the same kind of joint tagger for ED, MN, and SDEN. ED is the baseline that uses the preceding system turn. MN sees the longer history and pools its memory entries using attention. SDEN reads a sequence of current-conditioned history representations. The paper trains each architecture with the original training data and with recombined dialogues added. In the result labels, DR indicates the dialogue recombination condition.

Tokens appearing at least 11 times in the training set make up the vocabulary. The authors use this restriction to reduce reliance on training-set entities. They replace digits with the special token #, intending the system to generalize across particular numeric values. These settings affect how to read the reported examples. Successfully identifying a quantity shows that the system can assign a slot role to the number mention under this representation. The result is about the semantic label of the mention as encountered in the input.

For batch processing, histories are padded to 40 utterances. Turns in the diagnostic examples can therefore occupy only part of the input over which the memory mechanism assigns weight. The paper notes that some attention can go to padding, which affects the totals visible for the genuine history turns. This batch representation also establishes the history setting for the reported comparison.

The authors train with RMSProp for 100,000 steps, using a batch size of 100. The learning rate begins at 0.0003 and is multiplied by 0.95 every 3000 steps. They clip the gradient norm when it exceeds 2.5. They choose architecture and optimization hyper-parameters through a grid search whose selection criterion is frame error on the validation set. The separate test dialogues provide the reported performance figures.

What the scores measure

The paper reports F1 for domain classification, intent classification, and token-level slot labeling. F1 brings precision and recall together. A system can lose precision by predicting labels that should not be present and lose recall by missing labels that should be present. Slot token F1 measures performance on token labels, so it describes a finer unit than the correctness of a whole utterance frame. A system can identify many words correctly and still leave a particular multiword value incomplete. Evaluation and benchmarks

Frame error rate imposes a stricter condition. The unit is the user utterance. An error in the domain, an intent, or a slot makes the frame count as wrong. This measure reflects what the shared tagger is intended to provide as a package. If a response contains the right date and ticket quantity but omits the movie name, it still incurs a frame error. A correct domain also gives only partial credit in the descriptive F1 breakdown if the intent or value needed by the downstream system is missed.

These levels of measurement can rank architectures differently. An improvement in intent F1 can coexist with a worse frame error rate if other types of mistakes occur on enough utterances. Similarly, an architecture can improve many token decisions without changing whether their utterances contain an error somewhere else in the frame. The paper reports both the component scores and the whole-frame measure, allowing the reader to see where the leading result comes from without assuming that all label decisions move together.

The complete-frame comparison

Frame error rate on the multi-domain test dialogues by architecture and training data

The sequential encoder with dialogue recombination has the lowest error, while the memory network leads under original training.

Frame error rate on the multi-domain test dialogues by architecture and training dataED: 31.87ED31.87MN: 26.72MN26.72SDEN: 31.31SDEN31.31ED + DR: 30.72ED + DR30.72MN + DR: 27.48MN + DR27.48SDEN + DR (this paper): 25.85SDEN + DR (this paper)25.85
The numbers
System or settingframe error rate %
ED31.87
MN26.72
SDEN31.31
ED + DR30.72
MN + DR27.48
SDEN + DR (this paper)25.85

On the multi-domain test set, ED has a frame error rate of 31.87% with original training and 30.72% with recombination. The latter condition gives the baseline more training turns that follow task switches, although its access at prediction time remains limited to the preceding system utterance. The authors associate its comparatively high error with in-dialogue responses for which that utterance provides insufficient evidence of the domain and, in some cases, the intent or slots.

The memory network records 26.72% test frame error without recombination. This is the strongest original-training result. Under that condition, looking beyond the preceding system turn and making a weighted combination of history entries is effective even with the smaller collection of original multi-domain training dialogues. With recombination, MN records 27.48% test frame error. The overall score therefore moves in the opposite direction from ED when the extra data are introduced.

SDEN reaches 31.31% test frame error under original training. This is close to the preceding-turn baseline in the reported comparison and trails MN. With recombination, SDEN reaches 25.85%. The change in ordering matters as much as the identity of the lowest result. One can find evidence for longer context in the memory result under original training, and evidence for the sequential architecture in its recombined-data result. The paper’s best complete-frame outcome comes from the combination of architecture and training condition.

How the component scores differ

Slot token F1 on the multi-domain test dialogues by architecture and training data

The sequential encoder with recombination leads in slot token F1, and every architecture scores higher with recombination.

Slot token F1 on the multi-domain test dialogues by architecture and training dataED: 0.891ED0.891MN: 0.896MN0.896SDEN: 0.896SDEN0.896ED + DR: 0.911ED + DR0.911MN + DR: 0.904MN + DR0.904SDEN + DR (this paper): 0.926SDEN + DR (this paper)0.926
The numbers
System or settingslot token F1
ED0.891
MN0.896
SDEN0.896
ED + DR0.911
MN + DR0.904
SDEN + DR (this paper)0.926

With the original training data, domain F1 on the multi-domain test set is 0.937 for ED, 0.964 for MN, and 0.960 for SDEN. MN leads this component as well as frame error in that condition. With recombination, the test domain F1 scores are 0.936 for ED, 0.968 for MN, and 0.975 for SDEN. SDEN has the best reported domain score. ED’s domain F1 is slightly lower with recombination, even though its complete-frame error improves and its other component scores rise.

The intent comparison has a different winner. On the multi-domain test set without recombination, ED scores 0.865 intent F1, MN scores 0.890, and SDEN scores 0.870. With recombination, their test intent F1 scores are 0.885, 0.902, and 0.898, respectively. MN leads intent F1 under both training conditions, and 0.902 is the best intent F1 in the reported comparison. The strongest complete-frame result thus coexists with a component on which another architecture has the higher score.

For slot token F1, all the recombined-data settings exceed their original-training counterparts on the multi-domain test set. MN and SDEN share a test score of 0.896 without recombination, while the preceding-turn baseline scores 0.891. With recombination, SDEN reaches 0.926, ED reaches 0.911, and MN reaches 0.904. ED’s slot token F1 under that condition exceeds MN’s, even while MN has the lower frame error. The component rankings make it possible to describe these distinct outcomes without treating slot recovery, intent recognition, and complete-frame accuracy as interchangeable.

What the ablations show

Changing the context encoder and changing its training

The paper’s controlled comparisons cross the choice of context encoder with the presence of recombined dialogues. The tagger design and the multi-domain test set are common across the comparison. This allows two questions to be asked of the results. One concerns which encoder works best with a given training condition. The other concerns what happens to each architecture when recombined dialogues are added.

Under original training, MN improves on ED in each reported component score as well as frame error. That supports the authors’ claim that the understanding system can make use of information older than the immediately preceding system prompt. It also shows that a memory network with a weighted pool is a strong comparator for a sequential history encoder. It gets a test frame error of 26.72% when SDEN, with the same broad availability of history, gets 31.31%.

Adding recombination improves SDEN on domain, intent, and slot token F1, as well as on frame error. ED improves on intent and slot token F1 and obtains a lower frame error, with a small decline in domain F1. MN improves on the component measures and has a higher frame error. For MN, the component scores alone could have suggested an improvement in parsing. Its whole-frame result shows why the authors’ comparison also needs an utterance-level measure.

The authors suggest that the larger and more complex sequential architecture is prone to fitting the single-domain contexts in its training set too closely. Under that interpretation, more examples of histories with domain switches help it learn which parts of a conversation matter when the active task changes. The ranking with and without recombination is consistent with that explanation. It does not isolate overfitting as a cause. The paper offers an architectural and data interpretation of the pattern, supported by additional examination of example predictions.

Recombination also affects properties other than the presence of a task boundary. The paper reports that it increases average turn length for the training dialogues toward that of the test material, and introduces potentially distracting context. The authors suggest a regularization-like effect, in the sense that training with those distractions could make the learner less dependent on a simple, consistently relevant history. The comparison uses the whole augmentation procedure, so it jointly tests the effects of additional examples, altered histories, and synthetic switches.

When the local question is enough

The paper examines a movie-ticket conversation in which the user first gives a showing time and theater, and the system then asks for the title, ticket quantity, and date. The last reply supplies the title Trolls, the quantity, and the day. All the systems in the example have been trained with recombination. ED and SDEN recover the intended domain, intent, and slots. MN recovers the quantity and date but misses the movie title.

The ED outcome is informative because its history is just the preceding question. That question explicitly says what types of information are needed, including the movie name. In this case it provides enough context to resolve the reply. The example gives a concrete explanation for why adding history cannot be assumed to help on every utterance. Additional entries are useful to the extent that the architecture gives them appropriate influence.

The authors describe the memory network’s attention as diffuse for this dialogue. They report that the sequential encoder’s session state changes focus on the recent turns most directly related to the movie domain and to the requested title. This gives a plausible account of the prediction difference. The system gets a particularly valuable cue from the question about the missing details. The fact that ED also uses it successfully makes the example principally a comparison of how the systems handle an available local cue.

When different turns answer different questions

A second test conversation begins with movie ticketing and then changes to finding a Brazilian restaurant. After the user requests a restaurant, the system offers named options and asks the user to choose. The final reply names Fogo de Cho Brazilian steakhouse. This conversation separates the clue that identifies the active task from the clue that establishes the role of the name. The user’s explicit restaurant request signals the domain switch. The system’s question supplies the immediate setting for a choice.

ED predicts the movie domain and leaves the restaurant-name slot empty in the reported example. Its input includes the system’s list of alternatives, yet its prediction does not recover the restaurant-search frame. MN does identify restaurant search, and its largest attention is on the user’s explicit request for a Brazilian restaurant. It still leaves the restaurant-name slot empty. SDEN identifies the search domain and marks the restaurant name. The reported prediction also leaves the intent blank where the gold frame has an attribute-specific affirmation. The successful combination in this example concerns the domain and the slot.

The authors point to the change in the sequential system’s recurrent state at the recent turns as evidence consistent with using both cues. The request explains why the discussion has left movies. The question about alternatives helps explain why the concluding name should be treated as a selected restaurant. Several tokens in the example were outside the vocabulary or replaced during preprocessing. The successful slot prediction shows that known wording around a value and cues in earlier turns can accompany correct tagging even when a name includes unfamiliar tokens.

This case illustrates a different use of context from the first. In the movie example, the most recent question already specifies the role of the relevant words. In the restaurant example, the latest question and the earlier task request offer complementary evidence. A memory network can focus strongly enough on a task request to get the domain right while still missing the value supplied in response to a later prompt. The two examples give that proposed mechanism a concrete interpretation while leaving its frequency across the test set undetermined.

What the diagnostics actually measure

The examples display different quantities for the two full-history systems. For MN, the paper reports the attention weights used to pool memory entries. A weight is the result of the comparison between the current utterance and an earlier utterance, normalized with the other comparisons. SDEN shows how much the session GRU state changes at a position in the history. It indicates how much the recurrent representation changes there. The authors use that quantity as a proxy to visualize where the sequential computation responds strongly.

A large state change can occur when a turn introduces a new task or when its representation contains information especially relevant to the reply. The number alone does not identify which information produced the change or how it affected the final classification. The memory weights likewise describe how the representations are pooled, while the downstream decision also depends on which features those representations contain. The most direct evidence in the examples is the combination of the actual turns and the reported labels. The diagnostic quantities help explain how the architectures might have reached those labels.

There is no dedicated experiment that keeps the SDEN computation fixed while changing just the order of the history. ED and MN show what happens with other ways of forming a context vector. The LSTM choice for the tagger comes from an observation on the validation set about slot filling, and the two dialogues illustrate how the history encoders can behave in particular cases. Together these analyses support the usefulness of full-history access and the feasibility of combining cues across turns. The degree to which chronology itself accounts for the best result remains open.

Limitations

Limits the authors identify

The authors emphasize SDEN’s weak showing when it is trained without recombined examples. They describe its larger parameter set and more complex architecture as making it susceptible to overfitting when data are limited. Since much of the original training material is single-domain, they suggest that the learner may adapt to histories that are less complicated than those encountered in the multi-domain test dialogues. The observed performance establishes sensitivity to the training condition. The proposed explanation concerns what the learner may be picking up from that condition.

The paper also makes clear that its recombination is partial. Once the second task starts, the remaining turns from the first conversation are discarded. Those turns can rely on the context of the original exchange and become hard to interpret if inserted after the new task. The augmentation gives the system examples of switching focus. It provides no parallel mechanism for teaching the system to resume an interrupted task later in the same dialogue.

A related assumption concerns independence across the join. An explicit new task can make the subsequent turns interpretable on their own, which is why the authors begin the inserted segment at a task-intent turn. Their separately simulated multi-domain dialogues can have stronger cross-task dependencies, including requests stated relative to a theater or a movie time. Splicing self-contained segments under the independence assumption gives a source of extra domain switches. It reproduces a particular part of the task structure in the multi-domain data.

The authors’ interpretation of the example histories is explicitly suggestive. The examples hint that the sequential system is useful when multiple turns provide information that fits together. The attention display also comes with the qualification that some memory weight can fall on padding. A reader cannot treat the values shown next to the visible turns as a complete distribution over meaningful conversation material.

What the experimental design leaves open

The most important unresolved question is how much of SDEN’s advantage with recombination is due to preserving chronology. SDEN changes the way the system combines history and current text, introduces a recurrent session encoder, and increases the size of the architecture. MN receives positional cues, yet summarizes history through weighted pooling. The comparison is between complete designs with different operations and capacities. There is no order-shuffling test with the same session encoder, and no comparison that matches the architectures in capacity while varying the use of turn order. The results show what the proposed design achieves with the available data.

Likewise, recombination changes several aspects of training at once. It adds examples, extends the context seen for retained utterances, includes material from another task, and brings some properties of the training dialogues closer to those of the test dialogues. The paper supplies no equal-size comparison that varies only whether a new task begins in the history. Its treatment therefore supports a claim about the effectiveness of the full augmentation scheme for particular architectures. The separate influence of data quantity, longer histories, and the task switch remains unmeasured.

The corpus also defines the scope of the generalization being demonstrated. The supported tasks are movie tickets, restaurant search, and restaurant reservations. Their semantic exchanges are generated by a simulator and a rule-based policy, then rendered as natural-language turns by crowdworkers and checked by an expert. This procedure establishes a controlled relation between the language and its labels. It leaves open performance on spontaneous conversations whose goals, interruptions, repairs, or unsupported requests arise without a scripted exchange underneath.

The test dialogues span multiple domains already represented in training. Good results there show that an architecture can handle some changes of task within the known inventory. The setup does not evaluate adding a new domain, transferring to a different dialogue policy, or handling different combinations of labels in a new application. The reported results concern text tokens and frame annotations. The paper supplies no controlled comparison under differing levels of speech-recognition error, and it does not measure whether end users complete more bookings or find better restaurants as a consequence of the improved frames.

The vocabulary and digit handling qualify what successful slot prediction demonstrates. A prediction can identify a number as a quantity even though specific digits are normalized for the encoder. A restaurant name can receive the right span tag despite containing words outside the learned vocabulary. Those outcomes provide evidence about labeling such mentions in context. The experiment gives no direct measure of the accuracy of entity resolution or of converting a labeled phrase into a database record.

Finally, the aggregate scores and examples leave the distribution of gains uncertain. The paper presents point estimates, without uncertainty intervals or repeated-run variation that would show how stable the rankings are. It does not break down frame error according to whether a turn follows a domain switch or requires evidence from multiple earlier turns. The selected dialogues illustrate concrete successes and remaining mistakes. They cannot show how often each pattern occurs or how much it contributes to the aggregate result. In particular, the restaurant example’s missing intent shows why an improvement on the domain and slot can still leave a frame incomplete.

What came after

The later-work record contains no documented follow-up that traces how another study used the Sequential Dialogue Encoder Network or its conversation recombination procedure. The paper itself establishes their relationship to earlier hierarchical encoders, memory networks, and data recombination. Whether later research adopted the current-utterance conditioning, used task-switch splices in a new corpus, or tested chronological encoding independently remains undocumented here.

Cite

Cite as Ankur Bapna, Gokhan Tür, Dilek Hakkani-Tür and Larry Heck. 2017. Sequential Dialogue Context Modeling for Spoken Language Understanding. Proceedings of the 18th Annual SIGdial Meeting on Discourse and Dialogue.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w17-5514

@inproceedings{bapna2017sequential,
  title = {{Sequential Dialogue Context Modeling for Spoken Language Understanding}},
  author = {Ankur Bapna, Gokhan Tür, Dilek Hakkani-Tür and Larry Heck},
  booktitle = {Proceedings of the 18th Annual SIGdial Meeting on Discourse and Dialogue},
  year = {2017},
  doi = {10.18653/v1/w17-5514},
  url = {https://doi.org/10.18653/v1/w17-5514}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bapna-2017-sequential-dialogue-context-modeling-spoken/