A Personalized Dialogue Generator with Implicit User Persona Detection
Paper · 2022 · Itsugun Cho, Dongyang Wang, Ryota Takahashi et al.
Summary
A conversation can reveal what somebody cares about before they ever describe themselves in a profile. Their choice of topic, the details they volunteer, and the questions they answer all give a conversational partner something to work with. Cho and colleagues ask how dialogue systems can make use of those clues. Their aim is to generate replies that take an interest in the particular person speaking. Giving an agent a consistent character can make its replies recognizable across conversations. The authors study a different part of personalization, where the conversation partner’s interests and circumstances help determine what the agent says next.
Their system learns from conversations paired with written descriptions of the person receiving the reply. During training, these descriptions help shape a perception variable, a numerical representation of plausible user traits and interests. A second quantity, the fader variable, concerns how strongly the reply should draw on that information. At generation time, the conversation history supplies the evidence for both. The system can sample different representations from the same history, which lets it pursue different plausible lines of conversation. The authors also introduce a training penalty intended to keep the generator from ignoring the representation it has learned.
On ConvAI2, using the benchmark’s validation partition as their test set, the authors’ system scores 0.167 on Distinct-1 and 0.538 on Distinct-2, measures of vocabulary and phrase diversity. It also leads the comparison on the authors’ profile-similarity measure, P.Distance, with 0.401. In the human evaluation, drawn from 50 dialogues in that test set, it receives 1.177 for coherence, 1.203 for engagingness, and 1.207 for persona relevance. DialoGPT has the strongest perplexity result at 14.966, while the authors’ system records 15.671. The replies that people judged more engaging and more relevant to the conversation partner thus came from a system whose reference-response prediction was competitive on this split.
The paper also examines what the internal quantities capture. Profile categories show some organization in a visualization of the perception variable learned from written profiles. Manually changing the fader changes the generated replies, with higher settings associated with longer responses and lower similarity to the reference profile. A separate Penn Treebank experiment finds that the training penalty keeps more of the latent representation active than the techniques tested alongside it. Together, these experiments support the use of conversational clues to guide replies. How much the system can infer about an individual from those clues remains a separate question.
Deep dive: A Personalized Dialogue Generator with Implicit User Persona Detection
Cho and colleagues test whether a dialogue generator can infer a user's interests from conversation and use them to produce more engaging replies. · about 36 minutes to read
The problem and its context
Whose personality should guide the reply?
Personalization can refer to either participant. Giving a conversational agent its own background helps it maintain a character. A stated interest can give the agent something to talk about, and a set of background facts can make its self-descriptions more consistent from turn to turn. A reply can satisfy both aims while telling the other person very little about whether their contribution was understood. The authors’ criticism of earlier personalized generators is that their responses frequently put the agent’s character at the center of the exchange.
A user-oriented reply has a different starting point. When somebody mentions basketball, the next turn can explore what they enjoy about playing, how they got involved, or what role they take on. The system needs to decide which part of the preceding conversation is worth developing, then decide how much of that decision to show in its reply. A fact about the user can shape the choice of question even when the response never states that fact. This distinction matters to the authors because a useful conversation frequently develops through signs of interest in what the other person has already chosen to share.
Written profiles would make the problem easier to define. If the person’s interests were available as a list, a generator could condition its response directly on those statements. The authors consider collecting sufficiently detailed profiles for every prospective user impractical. They treat the written profile as a teaching signal, available in the training corpus, and ask the eventual generator to work from dialogue history. The arrangement makes the input at generation time resemble the conversational situation they want to study. It also makes the task uncertain, because a history may support several interpretations of what the person cares about.
The authors use persona for the kinds of information represented by the profile descriptions in their data. Interests, activities, and personal circumstances can all matter. Their examples include liking music, playing a sport, and being a student. The immediate purpose of the representation is to guide the next response. The paper’s experiments center on how well a generated reply fits the speaker and the conversation, with the written descriptions giving the researchers a separate point of comparison.
Why some turns call for less personalization
The paper identifies persona sparsity as a difficulty. Many perfectly natural turns convey little about either participant’s enduring interests or background. Such a turn can still call for an acknowledgment, a clarification, or a follow-up on the immediate topic. A mechanism that always tries to express a profile detail could make these ordinary replies awkward. Even a plausible inference about the user may be poorly timed.
This is why the authors divide the task into perception and expression. The first concerns which traits the history makes plausible. The second concerns how much those traits ought to influence the response in that situation. The two questions can have different answers within the same exchange. A discussion may make a hobby quite clear, while the latest turn calls for a straightforward answer about something else. Conversely, a small conversational clue may be enough to support a question that invites the user to say more.
There is also a choice among replies that would all make sense. The same turn can support curiosity about the person, a comment on their experience, or a return to a point raised earlier. The paper treats this variety as part of the task. Its aim is to learn a distribution that supports several continuations for a given history. In the authors’ account, a generator has more room to vary its responses if it can vary which aspect of the user’s persona it draws on as well as which words it chooses.
These requirements create a tension in training. Each example supplies a particular reply from the original conversation, so the system can learn how likely that reply should be. Yet the reply that happened to be recorded represents only one path through the conversation. The written profile can supply clues that remain unspoken in that turn, and another well-chosen reply could make one of those clues relevant. The representation must therefore be useful both for reconstructing the observed response and for generating alternatives when the history is encountered on its own.
How earlier dialogue research approached the task
The authors discuss TTransfo and P²BOT as strong earlier approaches to personalized conversation. TTransfo adapts a pretrained Transformer through a training objective that combines several tasks. In the paper’s account, this is a route to fluent responses conditioned on a persona. P²BOT approaches interaction more explicitly through mutual persona perception. Its transmitter and receiver framework combines supervised training with self-play fine-tuning. Cho and colleagues place both approaches in a line of work that uses additional information about the agent’s persona. Their own design puts the conversation partner’s possible traits into the inference procedure. You Impress Me
A second line of work concerns variation in generated text. A variational autoencoder uses a hidden numerical representation from which it tries to reconstruct observed data. The authors trace this approach from earlier work on images to its use for natural-language generation. A conditional variational autoencoder, or CVAE, adds information that is available for the particular example. In dialogue, that information can be the history, with the hidden representation accounting for some of the choices left open by it. Auto-Encoding Variational Bayes and Generating Sentences from a Continuous Space
The earlier dialogue CVAE discussed by the authors uses a latent distribution to capture variation at the level of discourse. Replies can differ in the conversational function they serve, so the differences go beyond exchanging one phrase for another. Cho and colleagues adopt the idea that a single history can support several replies and give the hidden quantities a more specific job. They use the profile to help organize the uncertainty around the user’s persona, and the observed reply to help teach when that information is expressed. Learning Discourse-level Diversity
The method, step by step
What the generator learns from each conversation
A training example combines a dialogue history, the next reply, and a written profile for the person addressed by that reply. The history gives the system the information it would have while conversing. The next reply gives it a target to reconstruct. The profile provides a fuller description of the conversation partner than a particular stretch of dialogue may reveal. The target of personalization is fixed by the example: it is the recipient of the reply, so the agent’s earlier words and the user’s earlier words play different roles.
The architecture has a route that can use the written profile during training and a route whose starting point is the history alone. During training, the first route places the persona in a numerical space and uses the relationship between the profile and the recorded response to inform the fader. The history-based route learns distributions that can supply the corresponding quantities at generation time. The decoder learns to use the quantities together with the history. Once training is complete, the profile and the original next reply have already served their purpose, and the decoder can continue a new history using the history-based route.
Learning persona from profiles and generating from dialogue
The steps in order.
The formal starting point is the corpus of aligned examples.
𝒞 = ((Cᵢ, Rᵢ, Pᵢ))ᵢ₌₁ⁿ
Here 𝒞 is the corpus and n counts its examples. The index i identifies an example, with 1 marking the first index. Cᵢ is the context, composed of earlier utterances. Rᵢ is the next response. Pᵢ is a collection of profile descriptions for the person receiving Rᵢ. The paper drops the index when discussing a single example.
For a new history, the desired output can be a set of alternative responses. The authors want those responses to have a relationship to the person’s actual profile when the history supports it. They express that aim in terms of mutual information, which here refers to how much knowing about the profile can tell us about likely responses. They also specify that coherence with the current history should take precedence when it offers little persona information. The training objective implements this overall aim through reconstruction and comparisons between learned distributions.
Giving perception and expression separate roles
The perception variable represents possible user persona features. It is latent, meaning that the example supplies text from which to learn it while the variable itself takes a value in a numerical space. During training, a network reads the profile and produces a distribution over that space. A companion network reads the history and learns a distribution intended to place weight on compatible persona representations. Sampling makes it possible to give some weight to several interpretations of the same exchange.
The fader comes after perception in the route used for generation. The network that estimates it can use both the history and the sampled persona representation. This ordering lets the system judge whether a particular interpretation of the speaker should matter for a particular response. During training, the paper uses a parameter-free similarity function of the profile and the observed reply to supply the fader. The relationship between those texts serves as evidence of how the reply reflects the profile.
The conditional joint distribution describes the dependency order.
p(R, Zₚ, Zα | C) = p(R | C, Zₚ, Zα) p(Zα | C, Zₚ) p(Zₚ | C)
In this expression, p denotes a probability distribution, or a density for continuous quantities. C is the history, R is a response, Zₚ is the perception variable, and Zα is the fader variable. The vertical bar means that the quantities to its right are given. The left side describes a response and both latent quantities for a given history. On the right, the adjacent terms are multiplied. Reading from the rightmost term gives the generation order: draw perception with the history as evidence, estimate the fader with access to that draw, and produce the reply with both quantities and the history available.
The authors call the networks on this route priors. Here a prior already takes the dialogue history into account. It is prior in the sense that it supplies the latent quantities before the reply to be generated has been seen. The fader prior also receives the sampled perception value. The recognition route, used during training, has access to observations that the priors must eventually do without.
Why training uses a lower bound
A generated reply could be compatible with many values of the hidden quantities. To assign a probability to the reply given the history, the formal procedure combines the probability it receives under each possible pair of latent values, weighted by the chances of drawing that pair.
pθ(R | C) = ∬ pθ(R | C, Zₚ, Zα) pθ(Zα | C, Zₚ) pθ(Zₚ | C) dZₚ dZα
The symbol pθ indicates that the decoder and prior distributions are parameterized by θ, their learned parameters. R is the response and C is the context. Zₚ and Zα are the perception and fader variables. The double integral, shown by ∬, sums over their continuous range, with dZₚ and dZα indicating the two variables of integration. The conditional factors inside the integral are the response distribution, the fader prior, and the perception prior.
The paper treats this integration as intractable and trains via stochastic gradient variational Bayes. The recognition distributions supply examples of latent values that are informed by the training observations. In the paper’s notation, the perception recognition distribution is qϕ(Zₚ | P), with ϕ denoting recognition parameters and P the profile. The fader recognition distribution is written qϕ(Zα | P, R), with R the reply as well as P the profile. The implementation describes this second route as parameter-free. The shared parameter notation is used in the objective for the recognition route as a whole.
The authors describe these routes as approximations to posterior distributions. After the reply has been observed, the plausible latent values should reflect the evidence in that reply. For perception, the paper expresses this update as a proportionality.
p(Zₚ | C, R) ∝ p(R | C, Zₚ) p(Zₚ | C)
Here p is the probability distribution or density, Zₚ is perception, C is the history, and R is the observed reply. The symbol ∝ means proportional to. The reply’s likelihood for a particular perception value weights the prior density of that value. In the joint construction, the likelihood p(R | C, Zₚ) incorporates the possible fader values. The corresponding recognition network takes the written profile as the observation from which to estimate perception.
The paper gives a related proportionality for the fader.
p(Zα | C, R, Zₚ) ∝ p(R | C, Zₚ, Zα) p(Zα | C, Zₚ) p(Zₚ | C)
Here Zα is the fader, Zₚ is the perception value, C is the history, and R is the reply. On the right are the decoder likelihood, the fader prior, and the perception prior. The sign ∝ leaves out a normalizing factor so that the resulting distribution over Zα has total mass one. Since Zₚ and C are fixed in this update, the last factor is constant as Zα changes. The training implementation uses the profile and reply to obtain an approximation for the fader.
The evidence lower bound, or ELBO, combines the ability to reconstruct the response with the requirement that the history-based priors track the recognition distributions. The paper writes it in the following form.
L(θ, ϕ; P, C, R) =
− KL(qϕ(Zₚ | P) ∥ pθ(Zₚ | C))
− KL(qϕ(Zα | P, R) ∥ pθ(Zα | C, Zₚ))
+ E[qϕ(Zₚ | P), qϕ(Zα | P, R)] [log pθ(R | C, Zₚ, Zα)]
L is the training bound for a profile P, context C, and response R. The parameters θ belong to the priors and decoder, and ϕ identifies the recognition route. The semicolon in the notation separates parameters from observations. The symbols Zₚ and Zα retain their meanings of perception and fader. KL(A ∥ B) is the Kullback–Leibler divergence from distribution A to distribution B, a non-negative discrepancy whose direction matters. The negative signs make larger discrepancies reduce the bound. E denotes averaging over the two indicated recognition distributions, and log is the logarithm of the probability assigned to the observed reply. This last term rewards reply reconstruction under latent values supplied during training.
The first divergence ties a representation learned from a profile to one drawn using dialogue alone. The second ties the fader supplied through the profile and reply to the fader prior. The reconstruction term gives the hidden quantities a reason to preserve information that helps with response generation. These goals are coupled. The system needs to learn training representations informative enough to help the decoder, and it needs to be able to obtain useful counterparts from the history at generation time.
The appendix derives the bound by introducing the recognition distributions into the expression for the response likelihood and separating discrepancies from the reconstruction term. The compact expression isolates the fader divergence even though its prior depends on Zₚ. The appendix explicitly invokes an approximation in moving terms involving the fader across integration over perception. The dependence is still present in the generation architecture, where the fader prior takes the perception sample as an input.
How text becomes a persona representation
The system first converts the dialogue into a sequence of input embeddings. An embedding is a vector associated with an input token. Each token receives both a word embedding and a position embedding, which lets the network use token identity and order. The paper adds a role embedding to utterances belonging to the other party. That extra signal helps the system distinguish evidence contributed by the user from things said by the agent. Profile descriptions or separate utterances are delimited with [SEP]. The history and profile sequences use [BOS] and [EOS] for their boundaries.
The authors use byte-pair encoding for subword tokenization. The GPT-2 vocabulary contains 50,257 tokens and is shared by the prior and posterior networks. Input embeddings come from the GPT-2 tables, and both the embedding size and the reported latent size are 1024. This shared representation lets the system pass the sampled quantities to the decoder alongside its sequence inputs.
The perception networks use a special token, [Zₚ], prepended to the text they read. A special latent token has an empty position embedding. The perception prior reads this token followed by the dialogue history, while the recognition network reads it followed by the written profile. Each is described as a three-layer encoder based on Transformer and attention, followed by a two-layer fully connected network. The output at the special token is used to summarize the sequence for the perception distribution.
The paper describes both the prior and recognition distribution as multivariate Gaussians with diagonal covariance. They produce a mean and a variance description for the numerical persona representation. In the paper’s Gaussian shorthand, I is the identity matrix and the squared scale multiplies it. The projections are printed separately for the prior and recognition routes.
[μₚ; log(σₚ²)] = Wₚ h[Zₚ] + bₚ
The brackets denote the combined outputs of the projection. μₚ is the mean of the history-based perception distribution, and σₚ² denotes its variance parameters. The logarithm expresses those parameters on a scale from which positive variances can be recovered. The symbol h[Zₚ] denotes the final encoder state for the perception token in the history input. Wₚ is the learned weight matrix, bₚ is the learned bias, and their subscript p marks this projection as the prior. Matrix multiplication applies Wₚ to the state and the plus sign adds bₚ.
[μq; log(σq²)] = Wq h[Zₚ] + bq
Here μq is the mean of the profile-based perception distribution and σq² its variance parameters. The log of those parameters again forms part of the combined output. The state h[Zₚ] now comes from the encoder that reads the profile. Wq and bq are the weight matrix and bias for that route, with q indicating recognition. The paper uses D for the size of the hidden state and K for the projection’s output dimension in its description of the matrices and biases.
The perception draw comes from the recognition Gaussian during training and from the prior Gaussian during generation. The authors use the reparameterization trick to train through the draw. In effect, the random part of drawing a value is expressed separately from the trainable mean and scale. The decoder’s reconstruction signal can then adjust those parameters through the sampled representation. The distinction between the two sources of the draw matters because a well-organized space learned from profiles is useful at generation time only insofar as the history-based route can reach useful values in that space.
How the decoder uses the fader and perception
The fader prior receives the perception sample, a fader token [Zα], and the history in that order. The paper describes it as a three-layer Transformer encoder that takes the final hidden state of the fader token as the fader value. The architecture diagram identifies parameter sharing between the two prior networks. The training route obtains the fader through the profile–reply similarity function. The paper describes the comparison’s purpose and its inputs, while leaving its numerical construction at the level of that description.
For response generation, the authors use a pretrained GPT-2 decoder with 16 attention heads, 24 layers, a hidden size of 1024, and 345M parameters. During training, the sequence begins with perception and fader, then continues with context and the observed reply. During generation, the prefix ends with the context and the decoder produces the reply autoregressively, with each successive token conditioned on what comes before it. Giving the latent quantities the first positions makes them available to subsequent positions, including the ones used to generate the response.
The authors give the latent quantities another route into the decoder by periodically mixing their current hidden states with the original latent values. The paper reports applying this operation at intervals of four Transformer layers. The original value and the current hidden state each receive weight 0.5. This keeps the original persona and fader signals available deeper in the decoder and gives the training signal a more direct route back to them. Both the placement at the beginning of the sequence and the repeated mixing are part of the full system evaluated on ConvAI2.
Adam optimizes the model during training at a learning rate of 2.6e-5 and a warmup of 3000 steps. For generation, the paper reports nucleus filtering with top-k set to 4 and top-p set to 0.8. The decoding filter constrains the token choices under consideration, while sampling the perception variable gives the generator another way to vary continuations before it selects any response tokens. Adam and The Curious Case of Neural Text Degeneration
Keeping the latent representation in use
The architecture gives the decoder the dialogue itself, a rich source of information about the next reply. That creates a training failure mode. If the decoder can reconstruct the response sufficiently well from the history, there is little pressure to preserve useful distinctions in the latent representation. The KL terms can then be made small by bringing the recognition and prior distributions close while allowing the decoder to pay little attention to their values. The authors refer to this situation as posterior collapse.
Their posterior-discriminated regularization starts from a simple expectation. If the recognition distribution captures useful differences between profiles, changing the profile should frequently change that distribution. The authors compare posteriors obtained from different training inputs and penalize pairs whose divergence falls below a chosen margin.
Lₚₒ₋dᵢ = ∑ᵢ₌₁ⁿ [min(KL(qϕ(Zᵢ | Xᵢ) ∥ qϕ(Z̄ᵢ | X̄ᵢ)) − λ, 0)]²
The left side, Lₚₒ₋dᵢ, is the auxiliary cost. The summation sign ∑ adds the contributions indexed by i, starting at 1 and ending at n, the number of terms in the expression. Xᵢ denotes one training input, and X̄ᵢ denotes a different input used for comparison. Zᵢ and Z̄ᵢ are their associated latent variables, and qϕ is the recognition distribution with parameters ϕ. The KL divergence measures how far apart the two conditional posteriors are in the indicated direction. The margin λ specifies how much separation the term seeks. The min operation takes whichever is smaller, the divergence minus the margin or 0, and the square makes a shortfall contribute a positive cost.
When the divergence reaches the margin, that pair’s contribution is zero. When it falls short, minimizing the term favors greater separation. The dialogue implementation uses λ equal to 0.15 and makes the comparisons in minibatches with random sampling without replacement. The authors apply the idea to the perception posterior. Its purpose is to make the training distributions respond to differences between profiles, complementing the prior-matching term, which compares routes for the same example.
The paper writes its combined expression as follows.
Adding Lₚₒ₋dᵢ to L(θ, ϕ; P, C, R) gives L′(θ, ϕ; P, C, R).
L′ is the final expression labeled as a loss. L is the earlier bound, Lₚₒ₋dᵢ is the auxiliary cost, and the plus sign is the combination printed in the paper. The parameters θ and ϕ, and the observations P, C, and R, retain their earlier meanings. The prose calls for maximizing the bound and minimizing the auxiliary cost. Read literally, the displayed sum leaves the optimizer’s sign convention unclear, since those two quantities have different desired directions. The intended effect of the auxiliary term itself is clear from its definition: penalize posterior pairs that are closer than the margin.
Experiments and results
The dialogue corpus and the comparison systems
The authors evaluate on ConvAI2, an extension of PERSONA-CHAT with a hidden test set. Crowd workers were given profiles and asked to converse in the roles of people getting acquainted. Both participants have written personas, which can be paired with the dialogue and responses during training. This setting gives the researchers a known profile against which to compare a reply, while leaving the system’s generation route to work from the conversation.
The original training partition contains 17,878 dialogues associated with 1,155 profiles. The original development partition contains 1,000 dialogues associated with 100 profiles. Each profile has at least five descriptions. Since the benchmark’s test set is hidden, the authors use the original development partition as the test set for their experiments and randomly draw 500 dialogues from the training partition for their own validation. They also report removing some utterances they regarded as superficially self-centered. The reported dialogue comparison therefore refers to their experimental split and preparation.
The baselines cover different ways of producing a reply. HRED is a hierarchical recurrent generator that works without persona input. The earlier CVAE baseline also works without persona input, using latent variation to capture conversational factors. Together, they give the authors comparisons with systems that organize multi-turn context and, in the CVAE’s case, already support sampling diverse responses. Building End-To-End Dialogue Systems and Learning Discourse-level Diversity
TTransfo and P²BOT bring explicit personalization into the comparison. Their inclusion helps test whether adapting to the person being addressed yields a different kind of reply from those produced by systems designed around an agent persona. DialoGPT supplies a pretrained general dialogue baseline. The authors use its 345M version, which their paper identifies as the version with the strongest result in the DialoGPT study. They describe it as built on GPT-2 and trained using Reddit comments. DialoGPT
For the authors’ system and the CVAE baseline, the paper uses N = 3 latent draws to generate responses for evaluation and averages the resulting scores. The point of averaging is particularly relevant to a system whose output can change because it samples a different latent value. The averages summarize performance across the sampled responses and still allow particular replies to vary substantially in quality.
What the automatic scores measure
Perplexity, abbreviated PPL, summarizes how much probability a generator assigns to the reference sequence. Lower values correspond to stronger prediction of that sequence. A dialogue history may have several sensible continuations, so reference prediction tests one aspect of a generator’s behavior. The diversity measures instead examine what appears in the replies the system actually produces.
Distinct-1 counts different unigrams, or individual words, relative to the total number of generated words. Distinct-2 does the same for different bigrams, which are adjacent word pairs. The denominator in the authors’ description is the number of generated words for both measures. Higher values indicate greater variety at the corresponding level. The motivation for these measures comes from earlier work on diversity in neural conversation. A Diversity-Promoting Objective
The authors introduce P.Distance to estimate how closely a response relates to the recipient’s reference profile. They remove stop words from both texts, select keywords using frequencies in the training set, and look up the keywords in pretrained Google News word2vec word embeddings with dimensionality 300D. Every selected profile word is compared with the selected response words. The score asks how well the best match in the reply covers each profile keyword, then averages over the profile.
Mᵢ = [Sim(pᵢ, r₁), Sim(pᵢ, r₂), …, Sim(pᵢ, rₙ)]
Mᵢ is the row of similarities for profile keyword i. The vector pᵢ represents that keyword, and the vectors r₁ through rₙ represent the response keywords, with n counting the response keywords in this expression. The ellipsis denotes the intervening comparisons. Sim is cosine similarity, which measures how closely two vectors point in the same direction. Each entry describes a profile keyword’s relationship to one response keyword.
P.Distance = Ave(Max(M₁), Max(M₂), …, Max(Mₙ))
P.Distance is the resulting score. Max selects the largest similarity from a row M, and Ave takes the average of those row maxima. The indices on M now run over the profile keywords, so n in this expression counts the profile rows. The ellipsis denotes the intervening rows. The operation gives each selected profile keyword one contribution and uses its strongest response match. In spite of the metric’s name, higher values indicate greater proximity in this evaluation.
This procedure can credit a response that uses a related word in place of exact wording from the profile. A reply can therefore receive credit for approaching the person’s interests in an indirect way. The measure operates over individual words in an embedding space. The human ratings add judgments about how those words are used in conversation and whether the reply makes sense as a whole.
Automatic results on the experimental test set
On the ConvAI2 partition used as the test set, the authors’ system records Distinct-1 of 0.167, ahead of TTransfo at 0.142 and DialoGPT at 0.139. Its Distinct-2 score is 0.538. DialoGPT, the baseline with the highest Distinct-2, scores 0.417, with the earlier CVAE at 0.405 and TTransfo at 0.400. The full comparison includes a smaller spread of unigram and bigram types for HRED, with 0.078 and 0.225, and for P²BOT, with 0.083 and 0.268. The two diversity measures support the same overall finding for the proposed system.
Persona Distance on the ConvAI2 experimental test set
The proposed generator has the highest profile keyword similarity among the systems compared.
The numbers
| System or setting | P.Distance |
|---|---|
| HRED | 0.246 |
| CVAE | 0.258 |
| TTransfo | 0.329 |
| DialoGPT | 0.359 |
| P²BOT | 0.370 |
| Cho and colleagues (this paper) | 0.401 |
P²BOT is the strongest baseline on P.Distance at 0.370. The proposed system’s 0.401 places it first on this measure. Its advantage also holds against the earlier CVAE, which scores 0.258. The latter comparison is relevant because the earlier system already uses conditional latent variation. The two systems differ in several ways, but their results illustrate the distinction between generating varied replies and producing varied replies whose vocabulary is also close to the addressed person’s profile.
Perplexity gives the comparison a different ordering. DialoGPT leads with 14.966 on the same ConvAI2 split. The proposed system records 15.671, followed by P²BOT at 16.620 and TTransfo at 18.011. The earlier CVAE scores 19.501 and HRED scores 21.095. The authors suggest that the stochastic variation introduced by their latent quantities may contribute to the difference from DialoGPT. The reported values establish the ordering on reference prediction, while the explanation concerns how sampling might affect that prediction.
What the human judges saw
The authors randomly sample 50 dialogues from their experimental test partition for human evaluation. Six native speakers, described as graduate students outside the study, judge the generated replies. For each dialogue, responses from the different systems are shuffled in order. The judges assign scores on the scale [0, 1, 2] for coherence, engagingness, and persona relevance.
For coherence, a 0 goes to an unrelated reply. A reply that touches the context but fails to fit it earns 1, and a fitting reply with specific content earns 2. Engagingness concerns whether the response gives the user a reason to continue. A generic or poor response can earn 0, a usable but dull continuation can earn 1, and an interesting turn that opens a direction for conversation can earn 2. These rubrics make the highest score depend on conversational usefulness as well as topical fit.
Persona relevance, reported as P.Relevancy, asks the judges to infer the conversation partner’s persona from the dialogue. A reply with irrelevant subject matter earns 0. A specific question directed at the other person can earn 1. A response that addresses an aspect of the person’s persona earns 2. This scoring rule gives a targeted question some credit even if it is still eliciting information. It suits a system designed to engage with an inferred persona, since asking an apt question can be a useful response to incomplete evidence.
Human-rated persona relevance on the ConvAI2 test sample
The proposed generator receives the highest average persona relevance rating.
The numbers
| System or setting | P.Relevancy |
|---|---|
| HRED | 0.670 |
| CVAE | 0.523 |
| TTransfo | 0.877 |
| DialoGPT | 0.900 |
| P²BOT | 0.873 |
| Cho and colleagues (this paper) | 1.207 |
On the human sample, the proposed system scores 1.177 in coherence, ahead of DialoGPT at 1.037. P²BOT records 0.953 and TTransfo records 0.840. The recurrent HRED and the earlier CVAE receive 0.657 and 0.557, respectively. The relative performance of those baselines is consistent with the authors’ view that the larger pretrained generators are stronger at following the dialogue. The proposed system’s lead within the pretrained group is the comparison most relevant to their design.
The proposed system scores 1.203 in engagingness. P²BOT is the highest baseline at 0.920, followed by DialoGPT at 0.883. HRED and TTransfo each receive 0.703, while the CVAE receives 0.673. The authors interpret this result alongside the persona relevance lead. A specific question about the person can give the conversation somewhere to go, so the same property of a response can contribute to both scores.
The paper reports a statistical test with p-value < 0.05 and gives Fleiss’ kappa at around 0.33 for agreement among the human judges, which the authors characterize as fair. The aggregate ratings favor the proposed system on all three human criteria. The study judges generated replies to sampled conversations, so engagingness here records a judgment about whether an exchange could develop further.
What the ablations show
The comparison with a pretrained dialogue generator
The authors describe the comparison with DialoGPT as akin to an ablation. Their reasoning is that removing the latent quantities leaves a GPT-2 basis for response generation. DialoGPT shares that architectural ancestry and supplies a strong, pretrained dialogue comparator. Against it, the full system improves both Distinct scores, P.Distance, and all three human ratings, while DialoGPT retains the perplexity lead.
DialoGPT was separately pretrained on Reddit comments. As a result, this comparison changes more than the availability of the latent inputs to the authors’ decoder. It tests how the full systems perform against each other on the dialogue task. The isolated contribution of each latent variable, the repeated injection operation, and the auxiliary loss on ConvAI2 remains undetermined by this comparison. The paper’s focused analyses supply different evidence about those elements.
What the profile-based perception space contains
To inspect the perception representation, the authors assign training profiles to six pre-defined categories using a pretrained zero-shot classifier. The classifier estimates category membership by pairing a profile with a category in the form of a premise and hypothesis. The researchers then project the profile-based representations into 2D with t-SNE and examine how the category labels are distributed in the projection. The labels are assigned for analysis, while the perception route itself learns from the profile inputs. BART
The authors report that the distribution of projected points reflects the assigned profile categories. This observation is consistent with the hypothesis that perception encodes something systematic about profile content. Profiles of related kinds can yield related representations in a network whose training task is to support dialogue generation. The evidence comes specifically from the recognition route, which reads the profile. The corresponding organization of representations obtained from dialogue alone is a separate empirical question.
The visualization also concerns broad categories rather than a separate mapping for each user. Organizing by category can be useful for surfacing a plausible topic, such as a sport or another interest. Individual identification and retrieval of a particular missing fact would require a more specific test than the organization visible in a projection. The paper uses the plot as a check on the intended role of the perception variable.
What happens when the authors move the fader
The fader experiment changes an input at generation time. The authors substitute a manual setting for the output of the history-based fader network, moving Zα from 0 to 1 in increments of 0.1. They compare the generated replies to the known profile with P.Distance and track response length in tokens. This intervention asks whether the decoder is sensitive to the fader it receives after training.
As the manual setting increases, the paper reports lower profile proximity and a tendency toward longer replies. The direction is important when interpreting the name fader. In this experiment, greater numeric values go with weaker similarity on the profile measure. The result gives a concrete behavioral reading of the control and shows that changing it can affect more than the vocabulary shared with a profile. Response length changes as well, so the experiment captures a joint change in output behavior.
The intervention has a narrower scope than the performance of the learned fader prior. It shows what happens when the decoder receives manually chosen values. A test of whether a history produces the appropriate fader value would need to compare the inferred settings against some criterion for how strongly the reply should reflect the user’s persona. The plotted intervention addresses the decoder’s responsiveness to the signal.
How sampled replies differ within one exchange
The qualitative case follows a hypothetical user over four turns. Their profile includes music, basketball, height, and student life. The authors sample three replies at each turn, advancing the exchange along the first sampled reply from the preceding turn. The remaining replies illustrate possible continuations at the same point in that particular conversation.
After the user brings up music, a sampled reply asks about a favorite singer. When basketball enters the exchange, replies ask about the user’s position or experience with the sport. Once the person says they play center, a reply asks about height. Later, after the person gives their height and mentions playing with roommates, a reply asks whether they are in school. These examples show several ways a generated response can take up the user’s side of the exchange. Some are direct elaborations of facts already mentioned, and some use those facts as clues when choosing the next question.
The samples vary in how closely they follow the persona. A question about pets appears among the music continuations, and a question about siblings appears late in the example. Other samples introduce the agent’s own interests or details. The case makes the diversity result easier to interpret because it shows both the latitude and the variability that come with sampling. The basketball and school turns illustrate how a question can be relevant when the system has incomplete information about the person. The collection as a whole shows that the same history can also yield a more tangential choice.
The authors connect these questions to the human ratings. A question tied to something the speaker has said gives that speaker a straightforward way to answer and elaborate. It can therefore support both engagingness and persona relevance under the scoring rubrics. The case illustrates how this can happen in a conversation. The ratings supply the broader evidence that evaluators tended to prefer the proposed system’s behavior on the sampled test dialogues.
A controlled test of posterior regularization
The most direct comparison of training techniques uses a separate task, language prediction on Penn Treebank. The authors train a sequence-to-sequence variational autoencoder based on gated recurrent units, or GRUs, and compare ways to maintain a useful latent representation. The change in task and architecture lets them examine the penalty outside the dialogue system. The outcomes are test-set perplexity, active units, and KL cost.
Active units count dimensions of the latent representation that are in use under the study’s diagnostic. KL cost measures the divergence associated with matching the recognition and prior distributions. In this experiment, the authors want the latent dimensions to retain variation while the system keeps perplexity low. A very small KL cost combined with few active units is consistent with posterior collapse. Judging both diagnostics alongside perplexity helps distinguish a representation that stays active from one that also helps the prediction task.
The comparison starts with a standard VAE. The alternatives include KL annealing, cyclic annealing, aggressive training, and a bag-of-words objective. Here, KL annealing raises the divergence term’s weight from 0 to 1 along a linear schedule spanning the initial 5000 steps. Cyclic annealing changes the schedule in repeated cycles. Aggressive training changes how the inference part is trained, while the bag-of-words objective adds a prediction task involving the words present in the target. Posterior-discriminated regularization instead adds a cost for posteriors that remain too close across different inputs.
Perplexity by training technique on the Penn Treebank test set
The proposed regularization at its best tested margin gives the lowest perplexity.
The numbers
| System or setting | PPL |
|---|---|
| Standard VAE | 58.391 |
| KL annealing | 53.564 |
| Cyclic annealing | 51.547 |
| Aggressive training | 50.000 |
| Bag-of-words loss | 48.637 |
| Posterior regularization λ = 0.12 | 48.467 |
| Posterior regularization λ = 0.15 | 47.674 |
| Posterior regularization λ = 0.18 (this paper) | 45.925 |
| Posterior regularization λ = 0.21 | 46.883 |
The standard VAE has 0 active units and a KL cost of 0.049 on the Penn Treebank test set. The bag-of-words comparison has 11 active units and a KL cost of 11.165. At λ = 0.15, the setting also used in the dialogue system, the proposed penalty gives 14 active units and a KL cost of 16.096 in the Penn Treebank experiment. The strongest perplexity setting there is λ = 0.18, which also gives 14 active units and a KL cost of 22.047. Increasing the tested margin to 0.21 keeps the active-unit count at 14 and raises the KL cost to 25.126, with perplexity rising to 46.883. Greater separation under the diagnostic therefore accompanies a change in prediction quality whose direction depends on the setting.
The training curves supply a timing detail. The authors observe that linear KL annealing helps avoid an early collapse in the cost, with that benefit diminishing after the KL weight reaches 1. Cyclic annealing and aggressive training sustain the cost more effectively in the reported curves. The bag-of-words method comes closer to the proposed penalty in perplexity. The regularizer achieves its result by comparing posteriors directly, so it avoids adding the extra prediction network used by the bag-of-words approach. The experiment supports that training mechanism on the separate Penn Treebank setup. Its downstream contribution to the ConvAI2 ratings is left open by the dialogue comparisons.
Limitations
Limits identified by the authors
The authors see a need to test on dialogue that better reflects the way people develop a conversation by exploring something already said. They name PersonalDialog as a potentially better fit and propose using it to investigate whether implicit persona inference can be strengthened. Their stated reason concerns the character of the exchange, since a system trained to notice persona clues depends on the kinds of clues speakers offer and on how the conversation gives them opportunities to elaborate.
The authors also identify the relation between the prior and recognition routes as a subject for further study. The recognition route can read a written profile, and the prior has to work with whatever part of that information is present in the dialogue. The visualization examines the route with direct access to profiles. Determining how those representations relate to ones inferred from dialogue is necessary for a fuller account of what the perception variable learns in use.
Finally, they propose extending the regularization scheme with weights that adaptively govern the KL divergence. The reported experiment uses fixed margins, with different settings giving different perplexity and KL costs. The authors’ proposed extension addresses how the strength of the divergence constraint might be regulated during training. The paper reports its results for the fixed settings.
Limits of the dataset and evaluation
The results describe a benchmark in which crowd workers portray participants with supplied profiles while getting to know each other. Such conversations provide the method with examples that align a dialogue, a relevant response, and an external description of the speaker. This arrangement is helpful for assessing personalization. The inference problem in other conversations may involve sparser clues, topics that matter only temporarily, or interests that the person chooses to keep private. The study establishes performance under the role-based ConvAI2 setup, leaving generalization to those different conditions open.
The training procedure depends on written profiles even though generation starts with the dialogue. The profile supervision is what gives the recognition route access to a fuller statement of the person’s persona. Accordingly, the paper’s result concerns a way of transferring information from supervised training into a generation process that uses a smaller set of observations. Its dependence on the coverage, content, and availability of training profiles remains relevant when interpreting the claim of inferring persona from dialogue.
The test partition is the public development set, with a separate validation sample drawn from the original training dialogues. The authors also report filtering some self-centered utterances. They give the motivation for the removal, while the quantity and detailed selection rule remain unspecified. Those choices define the comparison for the paper’s experiments. How the systems would rank on the hidden ConvAI2 test set, or under a different filtering procedure, remains unmeasured.
The human study covers 50 test dialogues, with fair agreement as characterized by the authors. Its engagingness scores are judgments about the potential for a conversation to continue. The evaluation does not observe whether the people originally addressed would choose to respond, whether a follow-up remains welcome across several turns, or whether the person would recognize the inferred interest as their own. Those are different outcomes from the ones captured by ratings of individual turns.
There is also some conceptual overlap between the scores. A specific question may be easier to continue than a stock acknowledgment, and the persona relevance rubric explicitly gives credit to a question directed towards the user. High scores on both criteria can therefore partly reflect the same choice of reply. That choice is compatible with the authors’ goal, but the ratings alone leave open how frequently it depends on an accurate inference about a particular person as opposed to a sensitive reading of the topic at hand.
Limits of what the latent variables establish
P.Distance helps answer whether reply keywords are close to profile keywords in the chosen embedding space. Cosine similarity and the maximum over response keywords can reward a topical association even if the reply fails to correctly express a fact. A question about school may be an apt continuation for a student, for example, while still leaving the speaker’s status open. The automatic and human measures both allow such a question to be useful. Neither was designed as a direct estimate of the factual accuracy of an inferred user profile.
The case study similarly mixes replies that follow explicit disclosures with replies that develop weaker clues. Asking about position after the speaker mentions basketball demonstrates responsiveness to what is already known. Asking about school after roommates are mentioned illustrates a more speculative continuation. Those are different kinds of success. The examples establish that the system can produce both kinds of turns, while the experiment does not count how reliably it recovers previously unstated facts.
The perception visualization, fader intervention, and regularization trial examine complementary pieces of the design. The visualization concerns representations obtained from profiles. The fader intervention changes a decoder input manually and shows an effect on resulting text. The Penn Treebank trial compares ways of keeping latent dimensions active on another task. The dialogue results measure the joint system. A causal account of how much each component contributes to persona relevance on ConvAI2 would require matched dialogue comparisons with the components selectively changed.
What came after
The later citations place the paper alongside work on role-playing systems, the governance of personalization, and expressive generation. Their stated topics offer three ways to understand where a user-oriented dialogue generator fits. The citation links establish the connection to Cho and colleagues. The specific role their method played in each citing work is less clear from the documented scope of those works.
Persona and personalization in role-playing systems
From Persona to Personalization (2024) surveys role-playing language agents. Its scope brings together the idea of giving an agent a persona and the broader question of personalization. Cho and colleagues’ distinction helps explain why both questions can arise in a single conversation. One concerns the character the agent portrays. The other concerns how the agent’s response changes with the person who is speaking to it. The survey’s citation connects the dialogue generator to that broader subject. Whether it discusses the perception and fader variables separately or treats the work as an example of user-oriented personalization is unspecified.
Personalization as a question of policy
Personalisation within bounds (2023) develops a risk taxonomy and policy framework for alignment using personalized feedback. Its scope differs from the technical question Cho and colleagues test, while giving a context for considering the consequences of adaptation. In the dialogue generator, evidence about the person can influence the next reply without a written profile being supplied at that moment. The policy work concerns how personalization should be bounded when a system is being aligned with individualized feedback. The citation connects those two levels of inquiry. Any adoption of the conditional variational method or its regularization penalty is unspecified.
The expressive choice behind a generated reply
Multi-modal Sarcasm Generation (2023) presents a dataset and a solution for generating sarcasm from multimodal input. Sarcasm generation and personalized dialogue address different choices about expression. The former concerns producing a particular kind of utterance, while the latter concerns how much a reply should reveal its attention to the person speaking. Both topics make it possible to ask what evidence guides an expressive choice and how that choice shows up in the output. The citation establishes a connection between the papers. Reuse of the persona representation, fader, or training penalty is unspecified.
Cite
Cite as Itsugun Cho, Dongyang Wang, Ryota Takahashi and Hiroaki Saito. 2022. A Personalized Dialogue Generator with Implicit User Persona Detection. Proceedings of the 29th International Conference on Computational Linguistics.
@inproceedings{cho2022personalized,
title = {{A Personalized Dialogue Generator with Implicit User Persona Detection}},
author = {Itsugun Cho, Dongyang Wang, Ryota Takahashi and Hiroaki Saito},
booktitle = {Proceedings of the 29th International Conference on Computational Linguistics},
year = {2022},
url = {https://aclanthology.org/2022.coling-1.29/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cho-2022-personalized-dialogue-generator-implicit-user/