Elamur Research

Variational Hierarchical User-based Conversation Model

Paper · 2019 · JinYeong Bak and Alice Oh

Summary

A reply depends on what has just been said and on who is speaking to whom. The same person may discuss different subjects with different partners, and a conversation with a familiar partner can still take an unexpected turn. For dialogue systems, the challenge is to use what is known about the speakers while keeping the unfolding exchange central. JinYeong Bak and Alice Oh approach this problem with the Variational Hierarchical User-based Conversation Model, or VHUCM. They also ask what a system can do when the person expected to reply has no conversations in its training data.

VHUCM builds a running representation of the dialogue from earlier turns. Both speakers contribute to a probability distribution over a hidden vector that supplies information for the conversation as a whole. At each turn, the system also draws a hidden vector informed by the dialogue so far and by the identity of the person who is about to speak. A version called VHUCM-PUE starts with speaker vectors learned from a network of past conversations. To study this approach, the authors assemble a Twitter corpus of 27,152 users, 107,611 pairs, and 770,739 conversations. The corpus follows recurring pairs over time and gives each retained user several conversation partners.

On the chronological Twitter test split, VHUCM-PUE achieved per-word perplexity of 62.7, compared with 65.3 for VHUCM and 71.1 for the variational hierarchy on which both are based. The network-initialized system also led on most automatic measures of its generated replies. In comparisons judged by people who had seen past conversations of the pair and the current dialogue prefix, VHUCM-PUE received more wins than losses against each of the three alternatives tested. Examples of generated replies illustrate how some details can follow the respondent across partners, while other aspects of the response change with the partner.

The cold-start experiment separates an unfamiliar pairing of familiar speakers from a pairing that includes someone unseen in training. When both speakers were familiar, speaker representations helped even if their conversations together had been held out. When one speaker was new, VHUCM-PUE could use the familiar partner’s vector to estimate a starting representation for the newcomer, and it performed better than the comparison systems in that condition. When both speakers were new, the reported performance ranges overlapped. The result puts a practical condition on the benefit of the conversation network: it offers a starting point when a new speaker has a partner whose earlier conversations the system has learned from.

Deep dive: Variational Hierarchical User-based Conversation Model

Bak and Oh use speaker identities and conversation networks to generate personalized replies and test what happens when a speaker is new. · about 34 minutes to read

The problem and its context

What a reply inherits from a conversation

A dialogue generator receives a prefix of a conversation and has to produce the next utterance, meaning the next contribution by a speaker. The last turn can be an incomplete account of what the reply needs to address. A short acknowledgment may follow a long exchange about a plan, and a question may refer to someone identified several turns earlier. A system that sees only the latest utterance has to resolve these connections with a restricted view of the conversation. Bak and Oh describe the basic sequence-to-sequence approach in these terms. It takes an input sequence and produces an output sequence, with the immediately preceding utterance serving as input in the basic dialogue setup they discuss.

A hierarchical recurrent encoder-decoder, abbreviated HRED, adds a representation of how whole utterances follow one another. One recurrent neural network encodes the words of an utterance. A further recurrent network processes the resulting utterance representations in turn order. A decoder uses the accumulated state to produce words. Recurrence means that the state computed at an earlier position contributes to the state at the next position. The hierarchy gives the system a way to track both the words within a turn and the progression across turns. Bak and Oh retain that arrangement as the basis for tracking the conversation.

The authors also situate their work alongside approaches that account for variation in what might follow a dialogue prefix. Earlier variational systems introduced hidden random variables at the turn level or at the level of the whole exchange. A distribution over a hidden variable lets the system represent several possible values for information that is unavailable as a direct observation. A dialogue prefix, in this setup, can support different continuations even when it stays fixed. The preceding work on a hierarchical latent-variable encoder-decoder supplies an example of turn-level variation. VHCR, the variational hierarchical conversation RNN that VHUCM extends, also includes a conversation-level variable.

A conditional variational autoencoder is the route Bak and Oh take to learn the distributions for those variables. Part of the system learns to infer a hidden value with the aid of an observed conversation. Another part learns a distribution it can use when generating a reply before the target words are available. The related work also discusses generative adversarial networks as a different approach explored in dialogue generation. The authors use an adversarially trained dialogue system as a comparison because variation in replies had already been addressed through more than one kind of training.

What a reply inherits from its speakers

The other source of information is identity. A recurring speaker may favor particular expressions or punctuation. Past dialogue can also contain facts that matter when that speaker is asked a personal question. Knowing the addressee supplies a different kind of evidence. An exchange between a pair who usually discuss a shared activity can have different expectations from an exchange involving the same respondent and a different partner. The paper’s task therefore involves both a particular turn’s speaker and a pair whose conversations can recur over time.

Earlier work on a persona-based neural conversation system supplied identity information for the speaker and, in one version, the addressee. The authors characterize its dialogue context as short. They also discuss a multi-turn persona approach in which speaker information still enters at the utterance level. Their concern is that this arrangement can give identity enough influence to produce similar replies to substantially different preceding turns. A system can sound recognizable and still miss the subject at hand. From that observation comes the paper’s central architectural choice to let speaker identities shape a distribution that contributes to the evolving context.

Identity creates a separate difficulty when some of the expected participants were absent during training. A system that learns a vector for each recurring user can look up a familiar participant, but an identifier for a newcomer supplies no trained vector of its own. A related situation occurs when each individual is familiar and their pairing is new. In that case the system has learned both people in other settings, and the question is whether the two representations can be used together. The authors distinguish this case from a new speaker with a familiar partner and from a pair in which neither speaker is familiar.

The paper motivates its solution with an assumption about conversational partners. It draws on work on accommodation, the idea that people can reduce social differences as they communicate, to motivate placing partners near one another in the space of user vectors. The paper’s practical question is whether such proximity gives a reasonable location to try for an unseen participant. The relationship helps define where to start when earlier conversations of the newcomer are unavailable. A speaker’s own history, when present, supplies a different and more direct kind of evidence.

Why the corpus matters to the question

A test of speaker-aware generation needs turns that can be attributed to the same person in different conversations. A test of partner effects also needs enough pairs to see a person converse with someone else. For the cold-start experiment, an especially useful property is that removing the training exchanges of a pair can leave some participants visible through other partners while making others disappear from training entirely. These requirements concern the arrangement of conversations in the corpus as much as their volume.

The authors compare their collection with several sources available to earlier studies. Movie dialogue and television transcripts contain speech written for characters. The Ubuntu Dialogue Corpus offers naturally occurring exchanges within a shared technical domain. The authors treat the Reddit data used in Training Millions of Personalized Dialogue Agents as close to their objective in its breadth and origin, while characterizing its exchanges as discussions. They choose Twitter reply chains to study casual, recurring exchanges across a range of topics.

Earlier studies of response generation in social media also used Twitter, and Bak and Oh describe previous Twitter collections as having about three turns per conversation. Short threads can concentrate on greetings and offer little evidence about how a topic develops. DailyDialog provides examples of daily dialogue but lacks the speaker identifiers needed to follow the same participant through a network. The personalized dialogue collection of Zhang and colleagues has a different strength in its controlled collection setting. For Bak and Oh, the priority is to observe exchanges that take place on their own and recur between identifiable accounts over a longer period.

The method, step by step

From reply chains to a dialogue history

The authors define a conversation through Twitter’s reply mechanism. A retained thread is a chain in which a pair of users reply to each other in sequence. The reply links identify the order and the participating accounts. The authors raise the minimum length from three tweets in the earlier collections they discuss to five tweets in their own collection. The reason is to make room for material beyond an exchange of greetings. The additional filters require at least ten conversations per pair and at least three conversation partners per user. These filters give both the dialogue generator and the network representation recurring evidence about the speakers.

A pair of speakers is called a dyad. It is useful to keep the pair separate from the individual conversation, because a dyad can have many reply chains. Inside any one chain, every turn has a sequence of words and a speaker identifier. The pair identifies the participants for the whole conversation. The identifier attached to the individual turn tells the system which of those participants produced it, or which is expected to produce the next turn. This distinction decides where each identity enters the computation.

At generation time, the system has the earlier turns and the relevant speaker identities. It represents the people with learned vectors, called user embeddings, whose entries are numerical features. The pair of vectors determines the distribution from which the system draws a conversation-wide hidden vector. From there, the system moves through the dialogue in order, encoding each utterance and updating a running state. When it reaches the turn to be generated, that state and the identity of its speaker help determine another draw. The decoder receives the running state and both hidden vectors. It then supplies a distribution over the words of the reply.

How VHUCM generates a reply

The steps in order.

How VHUCM generates a replyStep 1: Look up both speakers’ vectors1. Look up both speakers’ vectorsStep 2: Draw a conversation-wide hidden vector2. Draw a conversation-wide hidden vectorStep 3: Encode the preceding utterances in order3. Encode the preceding utterances in orderStep 4: Update the dialogue state using the conversation vector4. Update the dialogue state using the conversation vectorStep 5: Draw a turn vector for the next speaker5. Draw a turn vector for the next speakerStep 6: Decode the reply from the state and vectors6. Decode the reply from the state and vectors

The two draws operate at different scopes. The conversation-wide draw can affect the interpretation of every turn in the exchange, including the way the running context changes. The turn-specific draw can vary as the exchange progresses and the speaker changes. There is no hand-assigned meaning for either vector. The system learns a use for them through the task of predicting the observed utterances. Calling a vector conversation-wide or turn-specific specifies its place in the computation and the information from which it is drawn.

The conversation and its recurrent state

The paper indexes the conversations and their turns as follows.

{c₁, c₂, …, cₙ, …, c_N}

Each c is one conversation. The subscript n identifies a particular conversation, N is the number of conversations, and the ellipses indicate the other conversations in the ordered enumeration. A conversation can have a different number of utterances from its neighbors in the enumeration.

cₙ = {(xₙ₁, sₙ₁), …, (xₙₜ, sₙₜ), …, (xₙMₙ, sₙMₙ)}

Here cₙ is the conversation indexed by n, t is a turn index, and Mₙ is the number of turns in that conversation. The symbol xₙₜ denotes the word sequence at turn t, and sₙₜ identifies the corresponding speaker. Each pair in parentheses associates an utterance with its speaker. The ellipses stand for the intervening turns. Although the paper encloses the pairs in braces, the turn indices give the order used by the recurrent computation.

sₙₜ ∈ {uₙᵃ, uₙᵇ}

The symbol ∈ means that sₙₜ is one of the identifiers in braces. The symbols uₙᵃ and uₙᵇ are the two participants in conversation n, with a and b distinguishing their slots. The equations below follow the paper in dropping the conversation index once a single exchange is under discussion.

hᵉⁿᶜₜ₋₁ = fᵉⁿᶜ_θ(xₜ₋₁)

The symbol xₜ₋₁ is the utterance immediately before the target at turn t. The function fᵉⁿᶜ is the encoder recurrent neural network, θ denotes parameters of the generative system, and hᵉⁿᶜₜ₋₁ is the resulting representation of that utterance. The superscript enc marks the utterance encoder and its output. This is the word-to-utterance stage of the hierarchy.

hᶜˣᵗₜ = fᶜˣᵗ_θ(hᶜˣᵗₜ₋₁, hᵉⁿᶜₜ₋₁, zᶜᵒⁿᵛ)

The symbol hᶜˣᵗₜ is the running dialogue state used at turn t, and hᶜˣᵗₜ₋₁ is the previous state. The function fᶜˣᵗ_θ is the context recurrent network with generative parameters θ. Its other inputs are the encoded preceding turn hᵉⁿᶜₜ₋₁ and the conversation-level random vector zᶜᵒⁿᵛ. The superscript cxt marks dialogue context, and conv marks the conversation-level variable. As the recurrence advances, the state incorporates another utterance in the presence of the same conversation-level draw. This is where information about the pair can influence how the exchange is represented before the response is decoded.

Drawing the conversation vector

The prior is the distribution available on the generation side of the architecture. At the conversation level, it uses the identities of the participants, represented by their vectors. The paper specifies a Gaussian distribution, meaning a normal distribution over the possible hidden vectors.

p_θ(zᶜᵒⁿᵛ ∣ hᵘˢᵉʳₐ, hᵘˢᵉʳᵦ) = 𝒩(z ∣ μᵈ, σᵈ I)

The symbol p_θ denotes a generative distribution with parameters θ. The vertical bar separates the random quantity from the information that conditions it. The symbols hᵘˢᵉʳₐ and hᵘˢᵉʳᵦ are the vectors for the two participants, indexed here by their slots a and b. The symbol zᶜᵒⁿᵛ is the conversation vector and z is a possible vector under the Gaussian 𝒩. The mean is μᵈ, with d referring to the dyad. The scale term is σᵈ and I is the identity matrix in the paper’s Gaussian notation. The diagonal form shown in the equation gives the distribution no explicit off-diagonal dependence among dimensions.

μᵈ = MLP_θ(hᵘˢᵉʳₐ, hᵘˢᵉʳᵦ)

The symbol μᵈ is the mean of the distribution for the pair. MLP_θ denotes a multilayer perceptron, a feed-forward network with parameters θ. Its arguments hᵘˢᵉʳₐ and hᵘˢᵉʳᵦ are the two user vectors. The network learns how to place the center of the distribution given those participants.

σᵈ = Softplus(MLP_θ(hᵘˢᵉʳₐ, hᵘˢᵉʳᵦ))

The symbol σᵈ is the scale term of the dyad-conditioned Gaussian. The MLP_θ is the feed-forward mapping for that term, with generative parameters θ and the same two user vectors as input. Softplus maps its output to positive values. The paper uses the same notation for the feed-forward mappings that predict different distribution parameters. A draw from the resulting Gaussian can vary across exchanges even when the identities and the distribution parameters are held fixed.

Drawing the turn vector and decoding the words

By the target turn, the dialogue state reflects the preceding utterances and the conversation draw. The authors condition a further prior on that information and on the speaker expected at this turn. This is a direct route for the respondent’s identity to affect the reply, alongside its contribution to the pair-level distribution.

p_θ(zᵘᵗᵗₜ ∣ x₍<ₜ₎, zᶜᵒⁿᵛ, hᵘˢᵉʳₛₜ) = 𝒩(z ∣ μₜ, σₜ I)

The symbol zᵘᵗᵗₜ is the latent vector for the utterance at turn t. The distribution p_θ uses parameters θ. The expression x₍<ₜ₎ denotes all utterances before t, zᶜᵒⁿᵛ is the conversation draw, and hᵘˢᵉʳₛₜ is the user vector accessed with the speaker identifier sₜ. The bar separates the draw from its conditions. The Gaussian 𝒩 is evaluated at a possible vector z with mean μₜ and a scale term σₜ, written with the identity matrix I. The subscript t allows the distribution to change from turn to turn.

μₜ = MLP_θ(hᶜˣᵗₜ, zᶜᵒⁿᵛ, hᵘˢᵉʳₛₜ)

The symbol μₜ is the turn prior’s mean, and MLP_θ is the generative feed-forward mapping with parameters θ. Its arguments are the dialogue state hᶜˣᵗₜ, the conversation vector zᶜᵒⁿᵛ, and the vector hᵘˢᵉʳₛₜ for the speaker at turn t. The state is how the history of words and turns enters this parameter calculation.

σₜ = Softplus(MLP_θ(hᶜˣᵗₜ, zᶜᵒⁿᵛ, hᵘˢᵉʳₛₜ))

The symbol σₜ is the turn prior’s scale term. The function MLP_θ maps the dialogue state hᶜˣᵗₜ, the conversation vector zᶜᵒⁿᵛ, and the current speaker vector hᵘˢᵉʳₛₜ to parameters for that scale. Softplus again makes the values positive. The two parameter calculations allow the dialogue and speaker to influence both where the turn distribution is centered and how it spreads around that center.

p_θ(xₜ ∣ x₍<ₜ₎, zᵘᵗᵗₜ, zᶜᵒⁿᵛ) = fᵈᵉᶜ_θ(hᶜˣᵗₜ, zᵘᵗᵗₜ, zᶜᵒⁿᵛ)

The left side denotes the probability distribution p_θ over the target word sequence xₜ, given the prefix x₍<ₜ₎ and the utterance and conversation draws zᵘᵗᵗₜ and zᶜᵒⁿᵛ. The function fᵈᵉᶜ_θ is the decoder recurrent network, with parameters θ. It takes the dialogue representation hᶜˣᵗₜ and both draws. The identity of the current speaker has already entered through the turn prior, and both identities have entered through the conversation prior. The decoder can therefore receive speaker-dependent information through the two draws as well as through the effect of the conversation draw on the state.

What the inference networks see during training

During training, the recorded response is available. The inference networks use observed words to propose hidden vectors that account for the conversation. The papers on variational dialogue describe such a distribution as an approximate posterior. It addresses a different prediction problem from the prior: given the observed dialogue, what hidden values might explain it? The objective then brings the prior distributions closer to the inference distributions, so the system can draw useful hidden values at generation time.

For the conversation posterior, the utterance encoder’s outputs are collected by a bidirectional gated recurrent unit, or GRU. A GRU is a recurrent network whose gates control how its state changes as inputs arrive. Bidirectionality lets the inference network process the sequence from both directions. That is appropriate here because the full recorded exchange is available to this part of training. With the utterances indexed up to the final turn M of the current conversation, the recurrence can be written as follows.

hᶜᵒⁿᵛ = fᶜᵒⁿᵛ(hᵉⁿᶜ₁, …, hᵉⁿᶜ_M)

The function fᶜᵒⁿᵛ is the bidirectional GRU for conversation inference, and hᶜᵒⁿᵛ is its representation of the exchange. The hᵉⁿᶜ terms are the utterance encoder’s representations from the initial turn through turn M. The ellipsis denotes the representations at the intervening turns. This hᶜᵒⁿᵛ summarizes observed utterances for inference, while zᶜᵒⁿᵛ is a random draw.

q_φ(zᶜᵒⁿᵛ ∣ c, hᵘˢᵉʳₐ, hᵘˢᵉʳᵦ) = 𝒩(z ∣ μ′ᵈ, σ′ᵈ I)

The symbol q_φ denotes the inference distribution with parameters φ. The conditioning information is the conversation c and the user vectors hᵘˢᵉʳₐ and hᵘˢᵉʳᵦ. The target of inference is zᶜᵒⁿᵛ. The Gaussian 𝒩 is written at a possible value z. Its mean μ′ᵈ and scale term σ′ᵈ carry primes to distinguish them from those of the dyad prior. The identity matrix is I.

μ′ᵈ = MLP_φ(hᶜᵒⁿᵛ, hᵘˢᵉʳₐ, hᵘˢᵉʳᵦ)

The symbol μ′ᵈ is the posterior mean at the conversation level. The function MLP_φ is a feed-forward network with inference parameters φ. Its inputs are the GRU’s conversation representation hᶜᵒⁿᵛ and the two user vectors hᵘˢᵉʳₐ and hᵘˢᵉʳᵦ. The parameter calculation therefore sees what the pair actually said during the training example.

σ′ᵈ = Softplus(MLP_φ(hᶜᵒⁿᵛ, hᵘˢᵉʳₐ, hᵘˢᵉʳᵦ))

Here σ′ᵈ is the conversation posterior’s scale term. The MLP_φ calculating it uses inference parameters φ and receives the conversation representation hᶜᵒⁿᵛ and the two user vectors. Softplus constrains its output to positive values. Both this formula and the preceding mean formula use the encoding of the complete observed conversation.

q_φ(zᵘᵗᵗₜ ∣ c, zᶜᵒⁿᵛ) = 𝒩(z ∣ μ′ₜ, σ′ₜ I)

The q_φ on this line is the inference distribution for the utterance vector zᵘᵗᵗₜ at turn t. Its parameters are denoted by φ. It is conditioned on the recorded conversation c and the conversation draw zᶜᵒⁿᵛ. The Gaussian 𝒩 assigns density at a possible value z, with posterior mean μ′ₜ, posterior scale term σ′ₜ, and identity matrix I. The conversation supplies both the target words and the identifier for the target speaker.

μ′ₜ = MLP_φ(xₜ, hᶜˣᵗₜ, zᶜᵒⁿᵛ, hᵘˢᵉʳₛₜ)

The symbol μ′ₜ is the turn posterior’s mean. The function MLP_φ is a feed-forward mapping with inference parameters φ. Its inputs are the observed target utterance xₜ, the dialogue state hᶜˣᵗₜ, the conversation draw zᶜᵒⁿᵛ, and the vector hᵘˢᵉʳₛₜ of the turn’s speaker. Access to xₜ is the additional evidence that distinguishes this inference calculation from the corresponding prior calculation.

σ′ₜ = Softplus(MLP_φ(xₜ, hᶜˣᵗₜ, zᶜᵒⁿᵛ, hᵘˢᵉʳₛₜ))

The symbol σ′ₜ is the turn posterior’s scale term. Its MLP_φ uses inference parameters φ and takes the observed utterance xₜ, state hᶜˣᵗₜ, conversation draw zᶜᵒⁿᵛ, and current speaker vector hᵘˢᵉʳₛₜ. Softplus maps the output to positive values, as in the other scale calculations.

The training objective includes the evidence lower bound, or ELBO. The paper describes its terms as a reconstruction loss and a Kullback–Leibler divergence between the generative and inference distributions. Reconstruction penalizes poor predictions of the observed words when the system decodes using its inferred hidden information. The divergence penalizes disagreement between distributions that have different information available to them. The authors use KL cost annealing, which changes the weight of that penalty during training, following Generating Sentences from a Continuous Space.

They also add an auxiliary bag-of-words loss, drawing on Learning Discourse-level Diversity for Neural Dialog Models using Conditional Variational Autoencoders. A bag of words describes the words of an utterance with their ordering set aside. Predicting that information gives the hidden variables a training signal tied to the content of the target in addition to the ordered reconstruction. The authors add it to address the risk that the decoder learns to rely on its other inputs and makes little use of the latent variables. They describe the loss by its components and role.

Starting from the conversation network

VHUCM-PUE changes how the user vectors are initialized. It starts with a graph built from conversations. Each node stands for a user. An edge joins two users who have had conversations, and the number of conversations gives an edge weight. The authors apply node2vec to learn enough about this graph to represent each node by a vector. These vectors provide the initial representations for the speakers in VHUCM-PUE. The utterances still enter through the hierarchical encoder, state, and decoder. The graph contributes the starting user embeddings, and the reply architecture consumes those embeddings in the distribution calculations.

The paper relates this design to soc2seq, which it describes as using a more elaborate social representation built from comments and likes, with a simpler encoder-decoder dialogue architecture. For VHUCM-PUE, the graph is specifically a record of conversation partnerships. The edge carries evidence that the speakers converse and can be weighted by how often. The word content and order of any particular exchange are supplied separately through the dialogue pathway. A partner relationship can therefore help position a user vector before the response learner has to account for the words of a particular turn.

Placing a new speaker in the learned space

For an unseen user with a known partner, the authors propose putting the new vector near learned partner vectors and adding random noise. They describe the center as an average over the available partners. The displayed equation writes a sum of partner vectors without a divisor. In the worked case F has just one known partner, E, so both descriptions give E’s vector as the center for that example.

hᵘˢᵉʳ_F = ∑ᵢ∈friends(F) hᵘˢᵉʳᵢ + ε

The symbol hᵘˢᵉʳ_F is the vector assigned to the unseen user F. The sum runs over i, an index for a member of friends(F), the available partners of F. The summand hᵘˢᵉʳᵢ is the learned vector of that partner. The term ε is the random perturbation. In the paper’s example, friends(F) contains the familiar user E.

ε ∼ Uniform(u_min, u_max)

The symbol ∼ means that ε is drawn from the indicated uniform distribution. The vectors u_min and u_max contain the minimum and maximum values observed in each dimension of the trained user vectors. Thus the paper sets the per-dimension ranges of its noise using the learned embedding space.

hᵘˢᵉʳ_G ∼ Uniform(u_min, u_max)

Here hᵘˢᵉʳ_G is the vector for the unseen user G. The symbol ∼ again indicates a random draw, and Uniform uses the dimension-wise lower and upper bounds u_min and u_max. In this example the system has no learned partner to use as a center. The authors use random initialization for unseen users in VHUCM, and in VHUCM-PUE when both speakers are new. Once a vector is supplied, the remaining generation steps can proceed through the same architecture. The authors made the code and conversation data available through the VHUCM project.

Experiments and results

A test on later conversations of recurring pairs

The Twitter corpus contains 27,152 users and 107,611 dyads, with 770,739 conversations and 6,109,469 tweets. The tweets span April 2007 to June 2013. Conversations last around 4.5 hours on average. Within a dyad, the average span between the first and last conversations is around 110 days. These two time measurements describe different things. The first concerns how a single reply chain unfolds. The second concerns how long the corpus follows a pair through separate exchanges.

For the main response-quality experiment, the conversations of each dyad were ordered by time and divided using an 80/10/10 training, validation, and test split. The corresponding parts from the dyads were then pooled. This way of splitting retains the progression from earlier to later conversations within each pair. The held-out task asks whether a system can respond to later utterances when it has learned from earlier examples of the participants talking. The cold-start experiment, discussed below, deliberately changes which pair histories remain available.

HRED is the baseline for the hierarchical recurrent structure. VHRED adds an utterance-level latent variable, and VHCR adds a conversation-level variable to that framework. These comparisons put the hierarchy used by VHUCM in context. VHCR is the closest of these baselines because it has latent variables at both scopes, before the speaker-conditioning machinery introduced by Bak and Oh.

SpeakAddr is the Speaker-Addressee version of the earlier persona approach. The authors select it because the earlier work reported it ahead of the speaker-only variant. It serves as a comparison with another way to supply identity information. DialogWAE is represented by its Gaussian-mixture-prior variant, DialogWAE-GMP, which the authors identify as the stronger version. It brings a conditional Wasserstein autoencoder and adversarial training into the comparison. VHUCM and VHUCM-PUE then show the outcomes of the authors’ architecture with its ordinary and network-based user initialization.

How well the systems predict the held-out words

The authors first calculate per-word perplexity using reconstruction errors on the Twitter test set. Perplexity reflects how much probability the system gives to the recorded words, with lower values indicating better prediction under the reported procedure. For the variational systems, they estimate it by importance sampling. This uses draws and weights to estimate the contribution of latent values to the probability calculation. Perplexity evaluates the recorded response as data, which is a separate operation from scoring the reply a system chooses to generate.

Per-word perplexity on the chronological Twitter test split

Both speaker-conditioned systems improve on VHCR, and the version initialized from the conversation network has the lowest perplexity.

Per-word perplexity on the chronological Twitter test splitHRED: 72.6HRED72.6VHRED: 71.2VHRED71.2VHCR: 71.1VHCR71.1SpeakAddr: 85.5SpeakAddr85.5DialogWAE-GMP: 81.0DialogWAE-GMP81.0VHUCM: 65.3VHUCM65.3VHUCM-PUE (this paper): 62.7VHUCM-PUE (this paper)62.7
The numbers
System or settingPer-word perplexity
HRED72.6
VHRED71.2
VHCR71.1
SpeakAddr85.5
DialogWAE-GMP81.0
VHUCM65.3
VHUCM-PUE (this paper)62.7

The move from VHCR to VHUCM is visible on this measure even before adding the network initialization. The Twitter test perplexity for VHCR is 71.1, compared with 65.3 for VHUCM. VHUCM-PUE has the lowest value at 62.7. The ranking of the two alternative approaches also matters for interpretation. SpeakAddr’s test perplexity is 85.5, and DialogWAE-GMP’s is 81.0 in this evaluation. Those numbers describe their fit to the held-out words and give one point of comparison with judgments of the generated replies themselves.

How the generated replies compare with references

For generated text, the paper considers several kinds of agreement with the observed reply. The BLEU score measures overlap in word sequences. The authors calculate it for individual sentences and use the version they call smoothing seven. Smoothing makes the sentence-level metric usable for short strings when some orders of word sequences have no matches. The paper reports the scores in the decimal form shown below, following a method for smoothing sentence-level BLEU.

Sentence-level BLEU on the chronological Twitter test split

VHUCM-PUE has the highest BLEU, while VHUCM ties VHRED below VHCR.

Sentence-level BLEU on the chronological Twitter test splitHRED: 0.090HRED0.090VHRED: 0.120VHRED0.120VHCR: 0.137VHCR0.137SpeakAddr: 0.037SpeakAddr0.037DialogWAE-GMP: 0.127DialogWAE-GMP0.127VHUCM: 0.120VHUCM0.120VHUCM-PUE (this paper): 0.161VHUCM-PUE (this paper)0.161
The numbers
System or settingBLEU
HRED0.090
VHRED0.120
VHCR0.137
SpeakAddr0.037
DialogWAE-GMP0.127
VHUCM0.120
VHUCM-PUE (this paper)0.161

This ranking qualifies the perplexity finding. The VHUCM reply score of 0.120 on Twitter test BLEU is below VHCR at 0.137, even though VHUCM assigned better probabilities to the recorded words by the perplexity measure. VHUCM-PUE reaches 0.161 on BLEU and leads on both measures. The contrast concerns two different evaluation operations. One scores the recorded words under the system’s distribution, while the other compares the output the system actually produces with those words.

The paper also scores responses through word embeddings, using pretrained Google News vectors. The authors choose these vectors to keep the representation used for the metric independent of the dialogue training data. The average method compares representations formed by averaging word vectors. The extrema method constructs an utterance representation using extreme component values, and greedy matching compares words by their closest matches in the other utterance. These methods give credit based on similarities in vector space in addition to what can be measured through literal word overlap. The dialogue evaluation work of Liu and colleagues supplies the metric family.

On the chronological Twitter test set, VHUCM-PUE scores 0.643 for embedding average and 0.400 for greedy matching. VHUCM scores 0.633 and 0.394 on those same metrics, while VHCR scores 0.599 and 0.381. Embedding extrema gives a different ordering. SpeakAddr reaches 0.384, compared with 0.376 for VHUCM-PUE and 0.373 for VHUCM. The systems’ rankings therefore depend on which aspects of the two utterances the embedding comparison preserves.

ROUGE-L compares the longest sequence of words that appears in both replies in the same order. The matching words can have intervening words between them. Precision describes how much of the generated response is matched, recall describes how much of the reference is covered, and the F score combines the two. On the Twitter test split VHUCM-PUE has a ROUGE-L F score of 0.087, compared with 0.080 for DialogWAE-GMP and 0.079 for VHUCM. VHUCM-PUE’s recall is 0.082. SpeakAddr has ROUGE-L precision of 0.218, ahead of VHUCM-PUE at 0.162. The authors connect SpeakAddr’s precision to its short answers. Its average test reply length is 4.8, whereas the corresponding averages are 10.1 for VHUCM and 10.6 for VHUCM-PUE. A short response can contain a large share of overlapping words while covering little of the reference.

The authors also ask how varied the outputs are across the test set. Distinct unigram and distinct bigram scores measure diversity using individual words and consecutive word pairs, respectively. These are n-grams, sequences of a given length. Distinct scores address reuse across the generated replies. A system can score well by this criterion while the quality of an individual reply still depends on the context and the words that were chosen.

Distinct bigram scores on the chronological Twitter test split

The network-initialized system produces the most diverse word pairs by this measure.

Distinct bigram scores on the chronological Twitter test splitHRED: 0.072HRED0.072VHRED: 0.063VHRED0.063VHCR: 0.076VHCR0.076SpeakAddr: 0.031SpeakAddr0.031DialogWAE-GMP: 0.104DialogWAE-GMP0.104VHUCM: 0.108VHUCM0.108VHUCM-PUE (this paper): 0.123VHUCM-PUE (this paper)0.123
The numbers
System or settingDistinct bigram score
HRED0.072
VHRED0.063
VHCR0.076
SpeakAddr0.031
DialogWAE-GMP0.104
VHUCM0.108
VHUCM-PUE (this paper)0.123

The distinct unigram result points in the same direction. The Twitter test score is 0.034 for VHUCM-PUE, 0.030 for VHUCM, and 0.020 for VHCR. VHCR nevertheless generates longer replies on average, at 12.3, than VHUCM-PUE at 10.6. Length and diversity are therefore measuring different features of the output here. Taken across the automatic comparisons, VHUCM-PUE leads on most measures, and individual baselines retain advantages on some measures.

What people preferred

For the human evaluation, the authors randomly sampled 150 dyads. Each task was built using three randomly selected training conversations from the pair and one randomly selected conversation from the test split. The annotators first saw the three past conversations. They then saw a three-turn dialogue prefix from the test conversation and two proposed replies. VHUCM-PUE generated one, while a comparison system generated the other. The annotator could choose the more appropriate reply or mark a tie. Five annotators answered each task, and the paper reports mean preferences with a 90% confidence interval for each outcome.

Against SpeakAddr, the mean preference results for VHUCM-PUE are 40.7 ± 3.0 wins, 34.9 ± 3.0 losses, and 24.4 ± 2.4 ties, expressed as percentages of judgments. Against VHCR, they are 45.5 ± 2.7 wins, 40.4 ± 2.8 losses, and 14.1 ± 2.1 ties. Against DialogWAE-GMP, they are 52.5 ± 2.9 wins, 34.5 ± 2.8 losses, and 13.0 ± 2.1 ties. In each comparison, the mean win rate exceeds the mean loss rate. The largest separation is in the comparison with DialogWAE-GMP. The permission to mark a tie matters to the reading of the first two comparisons, where the mean win rate is below half of all judgments and the authors’ system still receives the greater share of decisive preferences.

Showing the pair’s past conversations gives annotators evidence beyond the immediate prefix. That choice fits the test’s purpose. It gives readers a chance to notice whether a reply is plausible in light of how this particular pair had interacted, while still judging it as the next turn of a particular exchange. The rating question combines these considerations into overall appropriateness. The paper also illustrates the task with replies to contexts involving an engagement, a meeting at a station, and a conversation about an exam. Its qualitative reading is that SpeakAddr often gives general responses, VHCR and DialogWAE address more of the dialogue context, and VHUCM-PUE sometimes draws on that context more specifically.

A separate test for unfamiliar users and pairs

For the cold-start experiment, the authors create a smaller network with 2,187 users, 3,833 dyads, and 84,295 conversations. They retain the requirement of ten conversations per pair and use a filter of five conversation partners per user. They again split the conversations by time within each pair. Next, they choose 20% of the dyads at random and exclude the selected dyads’ conversations from both the training and validation sets. Their test conversations stay in place. The research team repeats the procedure six times with different random seeds.

Removing all the training exchanges for a pair can have several consequences, depending on which other edges are retained. The paper calls a pair Known Dyad when it still has conversations in training and validation. In Known Users, the pair’s earlier conversations are withheld but both people can be learned from their exchanges with other partners. In Known Partner, only one participant is represented in the retained training conversations. In New Users, neither participant is represented. These names describe the status of the evidence after the holdout procedure. A user marked new for one trial is new to that training setup.

In both the Known Dyad and Known Users cases, VHUCM and VHUCM-PUE perform better than VHCR. The latter result is the test of recombining familiar people in an unfamiliar pairing. In Known Partner, VHUCM-PUE leads both VHUCM and VHCR. This is the scenario where its initialization can borrow a position from the familiar participant’s vector. For New Users, the reported performance overlaps across the systems. The response-quality figure presents the runs with error bars spanning one standard error of the measured values across trials. The paper describes the comparisons by condition and gives the direction of the effects. Exact values for the points in that figure are not reported in its prose.

What the ablations show

Speaker conditioning and network initialization

The paper’s closest architectural comparison starts from VHCR. It keeps the idea of both a conversation-level and a turn-level hidden variable, then gives those levels access to speaker representations in VHUCM. The comparison is useful because a generic hierarchical dialogue system with no hidden draws would change several additional properties at once. On the chronological Twitter test split, the move from VHCR to VHUCM improves perplexity and the embedding average and greedy matching scores. It also improves the two distinct scores. The same change lowers BLEU, from 0.137 for VHCR to 0.120 for VHUCM. Speaker conditioning as a package therefore changes several measured aspects of the reply, with the direction depending on the measure.

VHUCM-PUE adds a network-derived starting point for the user vectors. This is the cleanest comparison of the initialization choice because both named versions use the same speaker-conditioned architecture. On the chronological test, the network-initialized version improves on VHUCM in per-word perplexity, BLEU, ROUGE-L F, and the distinct measures. Its improvement over VHUCM there applies to users in the ordinary later-conversation setup, where the participants can have their own training histories. The result therefore concerns the representation of familiar people as well as the possibility of placing a newcomer near a familiar partner.

The earlier hierarchy baselines provide another comparison. Per-word perplexity on the Twitter test set goes from 72.6 for HRED to 71.2 for VHRED and 71.1 for VHCR. In that family of baselines, the first addition introduces an utterance-level draw and the next introduces one for the conversation. These values describe the succession of tested systems. The paper does not give a corresponding removal study within VHUCM that switches off only its speaker-conditioned conversation route or only its speaker-conditioned turn route. The tests support the design as a whole while leaving the contribution of each identity pathway unresolved.

The comparison with SpeakAddr addresses a broader alternative. It already uses speaker and addressee information, so any difference between the two systems cannot be explained by the mere availability of identity information. The systems also differ in their dialogue context and latent structure. SpeakAddr’s short outputs and its differing results across precision, recall, perplexity, and human preference are consistent with the authors’ concern about fitting responses too strongly to the speaker. The comparison does not isolate that effect from the architectural differences between the systems.

What changes when only the partner is known

The controlled removal of pair histories varies the type of information left in training. Known Users is informative because both people retain their own history elsewhere, even though the experiment withholds their earlier shared conversations. The advantage of the speaker-conditioned systems over VHCR in this case shows that a learned user representation can still help in a pairing unseen in training. The representation does not need a vector learned specifically for that edge to be used in the pair-conditioned distribution.

Known Partner asks a narrower question. The reply system has a learned vector for only one side of the pair. VHUCM initializes a missing vector randomly in this experiment. VHUCM-PUE uses the known partner to place the newcomer. Its advantage in this condition gives evidence for the combined use of graph initialization and partner-based estimation. The result compares the tested configurations as deployed for that scenario. It does not separately measure how a graph-initialized system would perform under every possible way of filling in the missing vector. When neither side supplies a known vector, both speaker-aware versions fall back on random values and the figure shows overlapping performance across the evaluated systems.

What the learned geometry shows

The authors check the premise of partner-based placement by grouping user pairs according to whether they had conversations. They then measure Euclidean distance, the straight-line distance between vectors in the learned space. The means for VHUCM are 2.449 ± 0.004 for conversation partners and 2.453 ± 0.001 for pairs without conversations. For VHUCM-PUE they are 2.879 ± 0.003 for conversation partners and 5.444 ± 0.001 for pairs without conversations. The uncertainties are 90% confidence intervals for the group means. The authors describe the groups as statistically distinguishable for VHUCM-PUE and report that distinction for the network-initialized version only.

The comparison is meaningful within each embedding space. Conversation partners have similar average distances to other pairs under VHUCM, while the means are more separated under VHUCM-PUE. The scale of one embedding space can differ from the scale of another. What matters for the proposed initialization is whether partners are close relative to other pairs under the representation used for placement. The graph already supplies direct evidence about who talks to whom, and the distance analysis checks that the resulting representation expresses that distinction in the form the cold-start procedure uses.

A visual comparison uses t-SNE to project the vectors into a plane. The authors first run VHUCM-PUE with the conversations that were removed for the cold-start experiment restored to training. This gives a view of where the partners sit when both histories are available. In the plot for VHUCM trained on the reduced data, randomly initialized newcomers fail to reproduce the same pairing pattern. In the reduced-data VHUCM-PUE plot, the partner-based placements bring the newcomers close to the familiar partners again. The distance comparison describes the learned spaces numerically, while the projection illustrates the effect of the missing-user rule on particular people and pairs.

What changes when the questioner changes

The personalized-response examples vary the questioner and respondent to examine whether information follows the person or the relationship. When different partners ask user A about a hometown, the generated replies name North Carolina across the cases shown. The authors connect this to a disclosure in A’s training conversations. When A asks other people, their generated responses vary according to which person is answering. On age, A gives 19 in some responses and says A is slightly older when answering B. B answers 18 in the examples. The relative response illustrates a way in which an answer can be consistent with another speaker’s reply even without repeating the age.

Questions about affection produce a more pair-dependent pattern. The replies for A with B and A with C are affirmative in both directions in the examples, whereas the replies for A with D are negative. The authors connect the difference to the pairs’ earlier vocabulary and topics. They describe more emotional expressions and emoticons for the affirmative pairs and more matter-of-fact computing exchanges for A with D. They also point to the smiley and the sign-off xx in replies from C, features that appeared in that user’s training tweets. These examples illustrate several forms of personalization, from details associated with a respondent to habits that vary with a pair. They are inspections of particular outputs, with the automatic and human evaluations supplying the broader aggregate evidence.

Limitations

Limits identified by the authors

The authors explicitly identify a boundary to their cold-start procedure in the case where both people are new. The approximation uses a learned partner vector, and an exchange between two unseen participants gives it no such starting point. The system assigns random vectors in this case. The resulting performance overlap is consistent with the two speaker-conditioned versions having lost the evidence that distinguishes the partner-based procedure. The conclusion about benefiting unseen speakers is therefore tied to the availability of a familiar conversation partner.

The authors also point to a limitation of interpreting ROUGE-L precision by itself. SpeakAddr leads on precision in the automatic comparison, and the paper attributes that result to its tendency to generate short replies. A brief reply can match some of the reference with few unmatched words of its own. Recall, length, and the pairwise judgments help interpret that result. More generally, the paper describes VHUCM-PUE as leading on most automatic metrics, a qualification reflected in the extrema and precision results.

Limits of the evaluation design

The corpus favors users who recur and have several active partnerships because those are the users for whom there is enough history to learn embeddings and construct a network. It also requires exchanges long enough to pass the tweet-count threshold. The test evidence thus concerns recurring, two-person Twitter chains under those selection rules. Occasional participants, short contacts, and exchanges with several people fall outside the studied setup. The measured performance applies to replies following the specific threading and interaction conventions of the collected data.

The simulated newcomers likewise originate in a filtered network of recurring participants. The authors produce a new user by withholding prior conversations, then retain a later exchange for testing. This makes the available evidence controllable. It also means that the experiment studies an unseen user drawn from that underlying population and paired according to its recorded conversation graph. How well the method handles people arriving in a different population, or changes in the kinds of ties that connect users, remains an open empirical question.

The automatic evaluation represents each test turn with the recorded reply. It measures predictive fit, overlap, vector similarity, and variety from distinct perspectives. A recorded reply is one outcome of an open-ended exchange. The observed words can reward some perfectly plausible continuations more than others, and output diversity can increase independently of contextual accuracy. The human comparisons provide a separate check, with annotators allowed to consult examples of the pair’s history. Their judgments concern appropriateness under that viewing procedure. The experiment gives no direct measure of whether the original participants would accept the generated response, or of how the system would perform if its own replies became the input to a longer exchange.

The human ratings compare VHUCM-PUE with SpeakAddr, VHCR, and DialogWAE-GMP. There is no corresponding pairwise human result for VHUCM against VHUCM-PUE. The automatic comparisons can therefore establish a difference on their own measured outcomes, while the reported human experiment establishes preferences for VHUCM-PUE against the selected baselines. It leaves the human preference effect of network initialization itself unmeasured. The published task also asks for a single appropriateness choice. It gives context and past conversations to the annotators without collecting separate ratings for each potential source of that preference.

Limits of the claims about users and architecture

The examples about hometown, age, and affection demonstrate outputs consistent with some historical disclosures or interaction patterns. They offer a close look at what a generating system can produce given specific identities. The paper does not give an aggregate error rate for personal attributes across the corpus or verify the generated attitudes with the people involved. In particular, recurring affectionate language is evidence about expression in the recorded interactions. An inference about an individual’s feelings would require evidence beyond the generated answer and the word patterns discussed in the study.

The embedding analysis concerns the relationship between vectors and conversation edges. Because VHUCM-PUE is initialized from those edges, its separation of partners from other pairs is evidence about the geometry learned from the network. It cannot establish that partners became socially similar through their conversations, or how much of their proximity comes from accommodation as opposed to who chooses to speak to whom. The t-SNE plots illustrate placements in a lower-dimensional representation. The measured Euclidean distances supply the direct comparison in the learned spaces, and the cold-start response experiment tests whether the placement is practically associated with better outputs in the studied condition.

Finally, the architecture introduces speaker information in several places. The pair determines the conversation prior, the next speaker enters the utterance prior, and the inference distributions use speaker vectors during training. The paper compares this design with related systems and compares two initializations, but does not establish which individual pathway accounts for which gain. The same applies to the division between the effect of graph pretraining and the effect of partner-based placement in the cold-start comparison. The full setup improves performance in the reported Known Partner condition. More narrowly attributable effects would require varying those choices separately.

What came after

There are no later citing studies covered here. The follow-on questions remain those raised by the paper’s own comparisons. Its evidence is strongest for a particular situation in which a dialogue generator knows how one participant has spoken in the past, knows that this person is the newcomer’s partner, and can use the learned vector when generating the reply. The evaluation also distinguishes that situation from the use of two familiar speakers in a new pairing. Whether later systems preserved those distinctions or obtained similar results in other conversation networks remains outside the documented record.

Cite

Cite as JinYeong Bak and Alice Oh. 2019. Variational Hierarchical User-based Conversation Model. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).

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

@inproceedings{bak2019variational,
  title = {{Variational Hierarchical User-based Conversation Model}},
  author = {JinYeong Bak and Alice Oh},
  booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
  year = {2019},
  doi = {10.18653/v1/d19-1202},
  url = {https://doi.org/10.18653/v1/d19-1202}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bak-2019-variational-hierarchical-user-based-conversation/