Elamur Research

Large Scale Multi-Actor Generative Dialog Modeling

Paper · 2020 · Alex Boyd, Raul Puri, Mohammad Shoeybi et al.

Summary

A reply can make sense in a conversation and still sound unlike the person who is supposed to have written it. Earlier approaches to personalized dialogue gave a system facts about a speaker, such as interests or hobbies. Boyd and colleagues ask whether examples of how someone actually writes can give better control over the next reply. Their method, Generative Conversation Control (GCC), supplies exchanges from other threads in which the target speaker participated. Where available, each example includes the comment the speaker was answering. This gives the system evidence about how the speaker responds to other people as well as the words, tone and conventions they use.

GCC adapts GPT-2 to predict the text of a designated participant’s turns. The same conversation can be presented from another participant’s perspective by changing whose history is supplied and which turns are marked as theirs. To train the system, the authors turn Reddit’s branching comment threads into sequences of replies and collect a separate store of past comments by each account. The training collection contains 10.3M conversations from 6 months of Reddit activity. The authors find that the strongest architecture in their comparison is the simplest one they tried: a single decoder reads the reference exchanges and then the current conversation.

On the held-out Reddit data, the size comparison reports that perplexity, a measure of how much probability the system assigns to the observed text, falls from 23.14 at 117M parameters to 13.24 at 8.3B. The abstract and introduction give 13.14 for the largest system. In a same-size comparison at 355M parameters, adding reference history lowers validation perplexity from 19.39 to 18.92, an improvement the authors report as 0.47. This comparison isolates access to past exchanges more closely than the size comparison does.

In the human study, raters compared alternative endings to the same Reddit conversation. Against the original human reply, the 8.3B system was individually preferred more frequently than the 355M baseline without references for realism, resemblance to the speaker’s examples, writing quality and conversational fit. For style matching, those preferences were 42% and 37%, respectively, in the main results table. The direct comparison between systems of the same size was more mixed. In particular, the benefit for style became clearer with longer conversation histories, where the authors also observed a possible cost to reply quality. The study shows that past exchanges can influence the voice of a reply and that greater capacity improves prediction. It also shows why resemblance to a speaker and suitability to the moment need to be measured separately.

Deep dive: Large Scale Multi-Actor Generative Dialog Modeling

Generative Conversation Control uses past Reddit exchanges to shape how a speaker replies, with tests of style matching and the effects of scale. · about 38 minutes to read

The problem and its context

Giving a conversation system a particular voice

The paper studies open-ended conversation. Its immediate problem is how to produce a plausible next contribution when the exchange has no pre-defined objective, such as obtaining a particular piece of information. There may be many reasonable things to say. Which one fits depends on the subject, what other participants have written and how the next speaker tends to respond. In that setting, personalizing a reply involves more than adding a known hobby or preference. Choices about how formally to write, how much to explain, whether to hedge and how to acknowledge the other person all affect whose voice the reply seems to carry. The authors situate the problem in work on dialogue systems.

The paper distinguishes two broad approaches to building a chatbot. A retrieval system searches a pool of candidate replies and selects one for the current exchange. A generative system constructs a response by predicting successive pieces of text, using each piece it produces to help predict the next. Generation can produce combinations absent from a preassembled reply collection. That flexibility makes it possible for the text to reflect the details of the conversation, but it also leaves the system responsible for choosing the reply’s wording and voice throughout. The authors focus on the second approach in the study of chatbots and text generation.

As the authors tell it, early neural dialogue research showed that recurrent networks could sustain simple exchanges. Recurrent networks process the text in sequence and carry a learned representation of earlier material forward. The paper traces this work through efforts to make a reply sensitive to its conversational surroundings and through work on the tendency of a generator to give dull or generic answers. A response can score well as an ordinary continuation while contributing little to the exchange. In the same way, a generally plausible manner of writing can be a poor fit for the particular participant who is supposed to speak. The paper discusses context-sensitive response generation and diversity-promoting objectives for conversation in this context.

The authors describe earlier attempts to control outputs using sentiment, speaker information, outside knowledge and learned representations of users. A speaker embedding represents information associated with a participant as a vector that can affect generation. A latent variable supplies a learned representation whose contents need not be specified in advance. These approaches give the generator a way to vary its replies beyond what the current exchange alone would suggest. The paper also points to the cost of obtaining supplementary annotations at the scale required for training on very large collections. Examples in its account include persona-based conversation, variational hierarchical user-based conversation and knowledge-grounded conversation.

An alternative is to supply short statements about the speaker. The authors discuss a persona-based task in which descriptions specify such things as interests, together with subsequent work that uses pretrained text predictors for this task. A profile gives a direct instruction about which facts can enter a conversation. A statement about an interest, however, leaves open whether the speaker typically introduces that topic eagerly, responds with a joke or gives a brief acknowledgment. In their own interactions with systems that used persona descriptions, the authors found that replies could follow the specified facts while still having a generic voice. This observation motivates their use of conversation examples. The earlier work includes Personalizing Dialogue Agents and Training Millions of Personalized Dialogue Agents.

Making earlier exchanges part of the task

GCC treats a speaker’s contributions in other threads as evidence about their conversational behavior. A single reply in isolation shows what someone wrote. A reply with its parent comment also shows what prompted that wording. That pairing matters for the authors’ idea of style. An informal expression in an answer to a friendly question can tell a different story from the same expression in an argument. Looking at the preceding comment makes it possible, in principle, to learn which features of a person’s replies go with which sorts of interaction. It also helps distinguish the words of the person being emulated from the words they happened to be responding to.

Keeping the reference exchanges separate from the current conversation gives each source of information a different role. The thread being continued provides the immediate subject and the sequence of preceding remarks. The reference set supplies examples of the target participant elsewhere. Its usefulness should therefore extend beyond topic overlap. A reply about one subject may provide evidence about the speaker’s capitalization or register that still applies to another subject. The same separation introduces a difficulty. A reference can carry incidental details or a tone suited to its original exchange, and a reply writer has to decide which aspects to carry forward.

The conversation may also involve several people. Even within an otherwise coherent exchange, copying the style of the immediately preceding comment could mean copying the wrong person. GCC makes the target explicit and asks how that participant would continue from the shared history. This differs from treating the text as an anonymous sequence of remarks. It also differs from requiring a fixed alternation between two speakers. The paper’s formulation accommodates a participant returning to the conversation after several turns, including turns by different people.

Why context length and pretraining mattered

Some earlier dialogue datasets, the authors say, contained relatively short exchanges. They report median lengths of 3 turns for the collection associated with hierarchical dialogue work and 6 turns for the Ubuntu corpus. Short conversations let a system learn local exchanges, but offer less room to observe how a participant returns to an earlier point or responds after a discussion has developed. By drawing longer paths from Reddit, the authors aim to expose the generator to both short prefixes and substantially developed threads. Their motivation is to study a range of conversational contexts, with prior work represented by hierarchical dialogue generation and the Ubuntu Dialogue Corpus.

The architectural opportunity comes from attention. In the kind of system the authors use, a prediction can draw on representations of different earlier positions in its input. A left-to-right restriction keeps a prediction from seeing the words it is supposed to predict. Within that restriction, the system can relate the current phrase to an earlier turn or to an example from a different thread. The paper places GPT-2 within earlier work on larger pretrained text predictors and their ability to handle extended context. It draws on the architecture introduced in Attention Is All You Need and builds on the Transformer and attention.

The paper also distinguishes its aims from other work on large quantities of social-media dialogue. It presents DialoGPT as an example of harvesting naturally occurring Reddit exchanges to support conversational generation. It discusses another contemporary open-domain chatbot study as evidence for the value of extensive social-media training and as a point of comparison for human judgments. In the authors’ account, their distinguishing question is whether a large generator can use a target speaker’s other conversations as a control signal, and how that ability changes as the generator grows. The comparisons in the paper concern DialoGPT and Towards a Human-like Open-Domain Chatbot.

The method, step by step

From a Reddit thread to a training example

The basic training example combines an ongoing exchange, the identity of a participant whose remarks are to be predicted, and references from that participant’s other exchanges. A turn is one contribution to the current conversation. An account may contribute several turns, and a turn can follow comments by several other speakers. The system receives the preceding turns in order, with markings to identify the target speaker’s contributions. It also receives examples of that speaker’s writing elsewhere, including the parent comments when available. The training signal comes from the actual text that the designated speaker wrote in the current exchange.

The authors obtain the material from the public Pushshift archive of Reddit comments. Training uses comments from October of 2018 through March of 2019, and validation uses April of 2019. The training and validation partitions are therefore separated by month. In both partitions, the authors start with comment threads, whose branches arise when several people reply to the same comment or pursue different parts of a discussion. For the prediction task, they need sequences in which each selected turn follows the turn it answers.

The authors produce those sequences by taking paths through the reply tree. They consider the longest candidates first and accept a path only if it passes their filters. A path needs at least 5 turns and can contain at most 15. Every turn must have at least 3 words, and some turn along the path must reach a karma score of at least 4. The authors use karma as a measure of how Reddit users voted on a comment. An accepted path can share at most 2 turns with previously accepted paths. The procedure also excludes turns from subreddits marked not safe for work.

Each filter affects what the resulting corpus represents. The length rules select exchanges with enough turns to provide conversational development and bound how long a single extracted path can be. The word requirement keeps very short comments out. The karma threshold requires evidence of a favorable response to at least one contribution along the path. The overlap rule limits how often common portions of a branching thread reappear across accepted examples. A sequence continuing one branch can therefore enter the dataset along with a sequence from another branch, subject to how much of the route they share.

Processing proceeds separately for each month because of memory constraints. A path crossing a month boundary is lost under this procedure. The authors see the volume of available discussions as making this loss small for their purposes. They also suggest an advantage to collecting references near the time of the dialogue being predicted. Someone’s current interests and manner of writing could be reflected more closely in nearby comments than in much older ones. The method uses this local window for practical reasons, and the proposed benefit is an interpretation of the choice.

After collecting the dialogue paths, the authors gather references for each user. The procedure retains up to 8 of the user’s highest-scoring comments, together with the comments those replies answer when available. Across users the paper reports an average of 7.1 reference tuples, and about half include a parent comment. A tuple with no parent still contributes the speaker’s remark. A tuple with a parent provides an example of a response to a specific prompt from the conversation. References for a given example are separate from the turns in the dialogue being predicted.

This process turns author metadata and reply links into supervision. The identity attached to a comment says which references may be useful for predicting it. The tree structure identifies which parent belongs with a reference reply and which path forms the active conversation. Manual labels for tone or personality are unnecessary for this training procedure. The categories for style are left implicit in the text, and the system learns which recurring properties of the examples are useful for assigning probability to the actual turn.

Preparing and predicting a target speaker’s turns

The steps in order.

Preparing and predicting a target speaker’s turnsStep 1: Extract dialogue paths from Reddit comment trees1. Extract dialogue paths from Reddit comment treesStep 2: Choose the participant whose turns to predict2. Choose the participant whose turns to predictStep 3: Gather that participant’s exchanges from other threads3. Gather that participant’s exchanges from other threadsStep 4: Mark reference roles and current speaker roles4. Mark reference roles and current speaker rolesStep 5: Place the references before the current dialogue5. Place the references before the current dialogueStep 6: Predict tokens from the available preceding context6. Predict tokens from the available preceding contextStep 7: Use the target speaker’s tokens for training7. Use the target speaker’s tokens for training

How the input tells the system who is speaking

The main architecture is a GPT-2 decoder adapted to handle the two kinds of context. The reference comments go first. When a parent is available, its text precedes the associated reply from the target speaker. The next reference tuple is placed after that pair, and the process continues through the selected references. A special start marker introduces the active conversation. Its turns appear in their original order. The representation is defined relative to the participant being predicted, so the same underlying thread can yield different inputs when the target changes.

Each token, a piece of text from the system’s vocabulary, receives information about its identity, its position and its type. An embedding is a learned vector used to represent such information. The paper adds token-type embeddings to the vocabulary and positional embeddings. Within the references, target-speaker replies receive one type and parent comments another. Within the current conversation, the target participant’s tokens have a different type from the tokens of other participants. The type assignments for references and for the active dialogue are distinct. This lets the system tell, for instance, that a piece of text was spoken by the target elsewhere and is supplied as an example, or that it was spoken by the target in the thread now being continued. The input organization concerns tokenization.

The paper’s architecture illustration shows a conversation in which A speaks, then B, then A again, and finally C. When A is the target, the input starts with A’s references. The current-conversation markings identify both of A’s turns as targets, and turns following A’s last contribution can be discarded. When C is the target, C’s references come first. A’s and B’s text is now context from other people, while C’s contribution supplies the target tokens. This arrangement allows the system to predict several participants in separate passes without requiring unique input types for each of the other speakers.

That relative labeling is central to the multi-actor design. The system learns what distinguishes the person whose history it has been given from the rest of the visible conversation. It can still read the words and order of the other participants’ contributions. Their identities are grouped together in the speaker-type representation, however. If the target changes, the references change with it, along with the positions whose predictions contribute to the training loss. The authors can therefore use one shared procedure across conversations with different sets of participants.

The two portions of the sequence have separate length limits. The references are capped at 512 tokens, with excess text removed from their end. The active conversation is also capped at 512 tokens, and excess text is removed from its beginning. In a given target-specific pass, turns after the final contribution from the chosen participant are discarded. The combined input has a limit of 1024 tokens when references are present, while the variant without references uses 512. These choices preserve the beginning of the assembled reference material and the recent portion of the active thread. A long exchange can consequently lose some of its earliest turns even if it passed the original path-length filter.

From next-token prediction to conditional conversation

The paper begins with the usual sequence prediction problem. A text sequence is assigned a probability by multiplying the probabilities of its successive tokens, each given the part of the sequence before it. In the conditional dialogue task, the text being predicted is broken into turns. A token’s probability can depend on the previous tokens of its own turn and on earlier turns. The authors then add the relevant reference history to the information available for each designated speaker’s contribution. The starting point is the objective of a language model.

pθ(x) = ∏[t = 1 … |x|] pθ(xₜ | x<ₜ)

Here x is a sequence of tokens, t is a token position and |x| is the length of the sequence. The token at that position is xₜ, while x<ₜ is the sequence before it. pθ is a probability supplied by the system with learned parameters θ. The vertical bar inside the probability means “given.” The product sign ∏ multiplies terms across the positions indicated in brackets. The resulting pθ(x) approximates what the paper denotes p∗(x), the probability of the sequence under the underlying distribution of text.

Training favors parameter values that make the observed documents probable. Logarithms let the contributions from different training examples be added. With maximum likelihood, the objective is to make the total log probability of the observed examples as high as possible.

L(θ, D) = ∑[i = 1 … |D|] log pθ(x⁽ⁱ⁾)

L is the objective, θ denotes the learned parameters, and D is the collection of training documents. Its size is |D|. The summation sign ∑ adds a term for every example indexed by i. The token sequence for that example is x⁽ⁱ⁾, and log takes the logarithm of the probability that pθ assigns to the sequence. The parenthesized superscript indexes an example in the dataset.

For dialogue, the paper uses c for the conversation and xⱼ for the turn at position j. The tokens of that turn are indexed separately. A participant’s latest sentence can depend both on language within the present reply and on something another participant said earlier. The factorization makes those two sources of evidence explicit.

pθ(c) = ∏[j = 1 … |c|] pθ(xⱼ | x<ⱼ) = ∏[j = 1 … |c|] ∏[t = 1 … |xⱼ|] pθ(xⱼ,ₜ | xⱼ,<ₜ, x<ⱼ)

c is the complete conversation, and |c| counts its turns. j indexes the turns, xⱼ is turn j, and x<ⱼ contains the turns before it. Within turn j, t is the token position, |xⱼ| is the turn’s token count, xⱼ,ₜ is the token being predicted, and xⱼ,<ₜ is that turn’s prefix before the token. The comma separates pieces of conditioning information. pθ uses parameters θ, the vertical bar means “given,” and each ∏ multiplies the probabilities across its indicated range. The equality expresses the same probability first as a product over turns and then as a product over their tokens. The paper uses a single fixed vocabulary V from which all these tokens are drawn.

The corresponding training objective simply changes what counts as an example. Where the document objective scores a sequence drawn from a document collection, the dialogue objective scores an exchange drawn from a conversation collection.

L(θ, D) = ∑[i = 1 … |D|] log pθ(c⁽ⁱ⁾)

L denotes the objective, and θ denotes the parameters that determine pθ. Here D is a collection of conversations, |D| is the number of examples, and c⁽ⁱ⁾ is the conversation indexed by i. The ∑ adds each example’s log probability, with log denoting the logarithm. At this stage, the probability of the dialogue depends on the text of its preceding turns, and the expression contains no separate history for the speaker.

Adding the speaker’s references to the probability

To define the reference set, the paper considers a turn by the same author as the current target turn and pairs it with the turn it answers. The two members carry different information. The reply shows what the target author chose to write. The parent locates that choice in an exchange. The reply must come from outside the current conversation, and the authors specify that the reference turns and the turns of the current conversation are disjoint.

rⱼ = {(xₖ₋₁, xₖ) | author(xₖ) = author(xⱼ) ∧ xₖ ∉ c}

rⱼ is the reference set for current turn j, and xⱼ is that turn. The braces enclose the set of eligible tuples. Within a tuple, k indexes a reference reply xₖ, while xₖ₋₁ denotes the turn that the reply answers. The parent position is blank when the reference reply has no parent. The vertical bar in the set expression means “such that,” author returns the writer of a turn, and ∧ joins requirements that must both hold. xₖ ∉ c means that the reference reply is outside the current conversation c. As the prose definition specifies, the reference material is separate from the active conversation.

The whole conversation can now be assigned a probability conditional on the relevant set of references. In the factorization, each turn sees the reference history appropriate to its own author. Within that turn, the same reference set is available at each token position.

pθ(c | r) = ∏[j = 1 … |c|] pθ(xⱼ | x<ⱼ, rⱼ) = ∏[j = 1 … |c|] ∏[t = 1 … |xⱼ|] pθ(xⱼ,ₜ | xⱼ,<ₜ, x<ⱼ, rⱼ)

pθ is the probability function parameterized by θ. c is the conversation, r is the collection of reference histories associated with its turns, and rⱼ is the history for turn j. The vertical bar means “given,” and commas separate the conditioning inputs. |c| counts turns, xⱼ is the current turn, and x<ⱼ is the sequence of earlier turns. Inside xⱼ, |xⱼ| counts tokens, t indexes them, xⱼ,ₜ is the current token, and xⱼ,<ₜ contains the preceding tokens of that turn. The products ∏ range over the indicated turns and token positions. This adds the speaker’s material while retaining both the visible conversation and the part of the reply already written.

L(θ, D) = ∑[i = 1 … |D|] log pθ(c⁽ⁱ⁾ | r⁽ⁱ⁾)

L denotes the conditional training objective. θ is the parameter set, and D is the training collection with |D| examples. For example i, c⁽ⁱ⁾ is the observed dialogue and r⁽ⁱ⁾ is the associated reference information. ∑ adds the log probabilities across examples, log takes the logarithm, and the vertical bar in pθ indicates that the conversation probability is evaluated given those references. In the implemented target-specific pass, only the designated participant’s turns supply the losses. Earlier text by other speakers is visible as context.

The distinction between the mathematical factorization and the training pass helps explain the representation. The formula permits a different speaker history at every turn. A single implementation pass puts one speaker’s history in the input and marks all relevant turns for that speaker. That pass gives the next-token probabilities the authors need for the marked turns. If the speaker changes at generation time, the system can be fed the new target participant’s references and an updated conversation that includes the earlier continuation. The appendix illustrates this process by alternating the speakers across a sequence of generated turns.

The architectures and training procedure

The principal architecture, GCC-DEC, puts reference and conversation tokens into one decoder. A left-to-right attention mask covers the combined sequence. The mask controls which positions can contribute to each prediction. Since the reference block comes before the conversation, a conversation prediction can use those references as well as the earlier active dialogue. The text of the reply being predicted becomes available progressively, token by token. The architecture uses one set of decoder parameters across the whole input.

GCC-S2S uses separate components to represent the two sources. A reference encoder reads the reference history bidirectionally, meaning that positions within that history can use surrounding reference text in both directions. A decoder processes the conversation left to right. It uses attention over earlier conversation positions and also attends to the final representations produced by the reference encoder. This arrangement gives the decoder access to encoded reference positions through a separate attention operation and is the paper’s sequence-to-sequence baseline.

GCC-VAE also reads the references with a separate bidirectional encoder. It takes the final representation of a special classification token and uses a linear transformation to obtain the statistics of a normal distribution. A latent state is sampled from that distribution and inserted before the embedded conversation text. A separate decoder then predicts the conversation left to right. This design asks a sampled representation to carry the reference information into conversation prediction. The paper considers it because latent variables have been used as a means of controlling style.

GCC-NRC is the baseline without reference context. It retains the decoder and the speaker markings for the current exchange, so it still knows which turns are by the target participant. The speaker’s writing from other threads is absent. The authors relate this design to earlier autoregressive dialogue work, with changes to support their multi-actor representation and to omit the earlier random padding procedure. The comparison with GCC-DEC therefore tests whether the extra history helps a decoder that already receives the ongoing conversation and knows which participant it is predicting.

Training uses mixed-precision arithmetic and the Adam optimizer with its default hyper-parameters. The learning rate, which governs the size of updates, rises linearly from 0.0 to 1.5e − 4 over the first 1% of iterations. It then follows a cosine decay to 0.0 for the remainder of training. The architectural comparisons start from scratch. For their subsequent decoder comparisons, the authors also start from weights pretrained on broader text, then continue optimizing on the Reddit dialogue task. The pertinent methods are Adam and fine-tuning, and the pretrained initialization comes from Megatron-LM.

Experiments and results

The held-out data and what perplexity measures

The training split contains 10.3M conversations, 72.6M turns, 10.5M users and 73.4M reference tuples. For the validation split, the paper’s dataset table gives 1.8M conversations, 12.5M turns, 1.9M users and 13.2M reference tuples. The abstract and introduction describe the headline perplexity comparison as taking place on 1.7M held-out conversations. The paper gives both counts, with 1.8M attached to the validation collection in the dataset table. The automatic results are identified as validation results on Reddit comments from April of 2019.

The first group of experiments uses perplexity to ask how well each system predicts the observed text. Prediction runs with teacher forcing, which means that when a position is scored, the text before it comes from the observed conversation. The test can therefore evaluate the probability of a real token even if the system would have sampled a different word at an earlier position. Lower perplexity means the system assigned greater probability to the observed text on average under the stated scoring procedure. The paper gives the validation measure in terms of conditional log probabilities.

PPL(θ, D) = exp(−(1 / |D|) ∑[i = 1 … |D|] log pθ(c⁽ⁱ⁾ | r⁽ⁱ⁾))

PPL denotes perplexity, θ is the system’s parameter set, and D is the collection being scored. |D| is its number of examples and i indexes them. c⁽ⁱ⁾ is the observed conversation for instance i, and r⁽ⁱ⁾ is its reference information. pθ assigns the conversation a probability conditional on those references, as indicated by the vertical bar. log takes the logarithm, ∑ adds the log probabilities, and division by |D| takes the average shown in the paper. The minus sign negates that average, and exp exponentiates it.

The authors use this automatic measure to compare architectures and sizes because it can be computed efficiently over a large collection, without sequentially sampling full replies. The reference-free setting uses the history of the current conversation alone. A low validation perplexity indicates good prediction of the text people actually wrote under the evaluation setup. Human review addresses a separate question. A generator can produce a suitable alternative to the observed ending, or it can make errors early in a sampled reply that change everything it produces afterward. Both cases call for looking at the generated output.

Reading the references directly or through an encoder

The architecture search compares GCC-DEC with GCC-S2S and GCC-VAE under two ways of matching capacity. In one comparison, the authors aim for similar total parameter counts. In the other, the encoder-based variants have decoders the same shape as the decoder-only system’s decoder. When a separate encoder is present, its width, depth and attention head count match those of the corresponding decoder. Each system in this comparison trains from scratch for 200,000 iterations, with a global batch size of 256.

At comparable total size, GCC-DEC gets 19.10 perplexity with 355M parameters. GCC-S2S gets 22.09 with 375M, and GCC-VAE gets 22.43 with 362M. The encoder-based alternatives in this comparison have less capacity in their decoders than GCC-DEC. The authors therefore also test larger versions of those systems. With comparable decoder sizes, GCC-S2S obtains 19.89 with 810M total parameters, and GCC-VAE obtains 20.49 with 711M. Giving the separate encoder architectures larger decoders improves their results. The shared decoder still scores best in the comparison.

Architecture comparison on April Reddit validation perplexity

The shared decoder has the lowest perplexity under both ways of matching system size.

Architecture comparison on April Reddit validation perplexityGCC-S2S, 375M parameters: 22.09GCC-S2S, 375M parameters22.09GCC-VAE, 362M parameters: 22.43GCC-VAE, 362M parameters22.43GCC-DEC, 355M parameters (this paper): 19.10GCC-DEC, 355M parameters (this paper)19.10GCC-S2S, 810M parameters: 19.89GCC-S2S, 810M parameters19.89GCC-VAE, 711M parameters: 20.49GCC-VAE, 711M parameters20.49
The numbers
System or settingperplexity
GCC-S2S, 375M parameters22.09
GCC-VAE, 362M parameters22.43
GCC-DEC, 355M parameters (this paper)19.10
GCC-S2S, 810M parameters19.89
GCC-VAE, 711M parameters20.49

The result gives the authors a reason to use GCC-DEC in the rest of the study. Its advantage holds against alternatives where total size is approximately matched and against alternatives where the separate encoder increases the total count. The choice also changes how references reach a prediction. The decoder can attend to the reference material within the same sequence used to predict the conversation. In the other variants, the conversation reads a separate encoder’s output, either through attention to reference representations or through a sampled latent state.

Pretrained initialization and speaker history

The next set of comparisons keeps the architecture at 355M parameters, with hidden size 1024, depth 24 and 16 attention heads. The paper compares the decoder with references trained from scratch to the same decoder initialized from a pretrained checkpoint. The scratch run is listed at 200K iterations with a batch size of 256. Starting from the pretrained run, adaptation proceeds for 70K iterations using batches of 128. Validation perplexity is 19.10 from scratch and 18.92 after adaptation. This establishes that the tested pretrained run reached a better result on the Reddit split with fewer task-specific updates and a smaller batch.

The authors also start GCC-NRC from the same pretrained checkpoint and adapt it for 70K iterations in batches of 128 to assess what speaker history contributes. It reaches 19.39 validation perplexity, compared with 18.92 for GCC-DEC under the same schedule. The authors report an improvement of 0.47 from using the references. Since the decoder without references still sees the conversation up to the prediction and has target speaker markings, the gain measures the benefit of providing the additional exchanges in this setup.

Initialization and reference context at 355M on April Reddit validation perplexity

The pretrained decoder with speaker references scores best among the compared configurations.

Initialization and reference context at 355M on April Reddit validation perplexityGCC-DEC trained from scratch: 19.10GCC-DEC trained from scratch19.10Pretrained GCC-NRC without references: 19.39Pretrained GCC-NRC without references19.39Pretrained GCC-DEC with references (this paper): 18.92Pretrained GCC-DEC with references (thispaper)18.92
The numbers
System or settingperplexity
GCC-DEC trained from scratch19.10
Pretrained GCC-NRC without references19.39
Pretrained GCC-DEC with references (this paper)18.92

These runs answer related questions with different controls. The adaptation experiment changes initialization and also uses a different fine-tuning schedule from the scratch training schedule. Its practical finding is about the performance available from the pretrained starting point in the reported regime. The reference comparison holds the initialization, duration and batch size fixed. It more directly measures what changes when a target-speaker history is present, although that choice also changes the amount of text the decoder can read.

Scaling the shared decoder

The size comparison uses pretrained GCC-DEC configurations. The adaptation process for each runs for 70,000 iterations using batches of 128. The configurations vary the dimensions of the decoder, including the number of layers, the size of its hidden representations and, in some runs, the number of attention heads. Thus the study tests a family of progressively larger systems. All the systems have the same kind of input and task, including access to past references.

The detailed size table gives 23.14 validation perplexity at 117M parameters, 18.92 at 355M, 17.18 at 774M, 16.08 at 1.2B and 13.24 at 8.3B. Every increase in size in that table is accompanied by lower perplexity. The abstract and introduction instead give 13.14 as the endpoint for 8.3B. Both appearances identify the largest system and describe the same direction of improvement. The detailed comparison below follows the size table.

GCC-DEC size comparison on April Reddit validation perplexity

Validation perplexity declines at each larger size in the comparison.

GCC-DEC size comparison on April Reddit validation perplexityGCC-DEC, 117M parameters: 23.14GCC-DEC, 117M parameters23.14GCC-DEC, 355M parameters: 18.92GCC-DEC, 355M parameters18.92GCC-DEC, 774M parameters: 17.18GCC-DEC, 774M parameters17.18GCC-DEC, 1.2B parameters: 16.08GCC-DEC, 1.2B parameters16.08GCC-DEC, 8.3B parameters (this paper): 13.24GCC-DEC, 8.3B parameters (this paper)13.24
The numbers
System or settingperplexity
GCC-DEC, 117M parameters23.14
GCC-DEC, 355M parameters18.92
GCC-DEC, 774M parameters17.18
GCC-DEC, 1.2B parameters16.08
GCC-DEC, 8.3B parameters (this paper)13.24

The table answers how well the family predicts text given both kinds of history as it gets larger. It does not break out how much of that benefit comes from a better use of the speaker’s references. A larger decoder may also be better at arranging words, following a topic or using earlier turns of the current conversation. To examine effects visible in the replies, the authors look at ratings of generated examples, asking about style alongside other aspects of performance.

How people judged generated replies

The human evaluation uses 375 original Reddit conversations. The examples represent lengths of 2, 4, and 8 turns in even proportions, and the study assigns 3 raters to each example. A rater sees the same conversation with alternative final turns. Depending on the comparison, the alternatives come from a generator and the original Reddit participant, or from two generators. Each generator provides a single reply for each underlying comparison item, reused across the evaluation tasks. The paired presentation gives raters a shared context for deciding whether one ending shows a quality more clearly than the other.

The study separates realism, reference matching, writing quality and coherence. Realism asks whether the response seems human. Reference matching asks how closely it follows the target speaker’s previous exchanges. Writing quality covers interest and grammar. Coherence asks how well the ending follows the turns that came before it. Only the reference-matching task displays the speaker’s past replies to raters. Keeping those replies out of the other tasks was intended to prevent the style evidence from influencing every judgment.

For each quality, a rater can favor one response, favor the other, select both or select neither. The main results table reports how frequently each source alone was selected, and the appendix includes all categories. A percentage for the generated reply is consequently a rate of exclusive preference in a particular pairing. A low exclusive preference rate can coexist with frequent judgments that both endings have the desired quality. The distinction matters when comparing systems that give more interchangeable replies with systems that produce stronger reactions in both directions.

The authors use Mechanical Turk for these trials. They condition inclusion on a time requirement and completion of a survey about the worker’s Reddit use. They report that this procedure disqualified 33.2% of their labels. The paper reports agreement between 2 of the 3 raters about 75-80% of the time and unanimity about 10% of the time. Those figures are for a setup with both ordinary preference choices and the two choices that apply to the pair as a whole.

What the preferences show

In the human comparisons against original Reddit replies, the 355M GCC-NRC baseline receives exclusive preference rates of 31% for realism, 37% for reference matching, 29% for quality and 32% for coherence. Against the same kind of human alternative, GCC-DEC at 8.3B receives 37% for realism, 42% for reference matching, 42% for quality and 40% for coherence. These are the rounded percentages in the main human results table. The paper uses the endpoints to describe improvement, but the human endpoint comparison changes both size and access to references. The baseline in this table is 355M without references, whereas the 117M result is the starting point in the separate automatic scaling experiment.

The appendix gives finer detail on the largest system. For realism, the generator is chosen alone in 37.4% of judgments against the human ending, and the human ending alone in 40.4%. For style matching, the generator alone gets 41.9%, while the original reply alone gets 37.9%. For writing quality, the equivalent preferences are 41.8% and 42.3%. For coherence, they are 40.2% and 41.8%. The comparison therefore gives the largest decoder an advantage over the original reply on exclusive preference for reference matching. On the other tasks, the original reply receives a slightly higher exclusive preference rate.

The authors describe the largest generator as more polarizing. The full ratings help explain that account. In the comparison against human text for writing quality, the 8.3B decoder is chosen alone more frequently than any other tested generator, and its human opponent is also chosen alone more frequently than the human opponents of the smaller generators. Both endings are selected as high quality in 15.3% of judgments for that pair, compared with 32.6% in the human comparison with the reference-conditioned 355M decoder. Lower rates of selecting both allow the exclusive preferences on each side to rise together. The larger number of votes for the generated reply is meaningful within that distribution of judgments.

For a more direct view of size, the paper pairs neighboring sizes of GCC-DEC. The reference-conditioned 8.3B decoder is preferred for realism in 41.1% of judgments against the 1.2B decoder, which is preferred in 36.9%. For coherence, the corresponding rates are 41.5% and 39.3%. For style matching, the order reverses in that pair. The larger system alone is selected in 39.3% of judgments and the smaller one in 43.2%. The authors find that larger variants are generally similar or better across the paired comparisons. The individual outcomes show why the automatic trend in perplexity should be read alongside the ratings for the quality of interest.

What the sample continuations illustrate

Several examples in the paper continue a real prefix with 3 generated turns. The appendix identifies these as outputs of the 8.3B GCC-DEC system using nucleus sampling with p = 0.95. Nucleus sampling chooses among a set of likely next tokens assembled using a cumulative probability threshold. The parameter p is that threshold in the reported samples. After sampling one participant’s reply, the system can add it to the visible conversation and continue with another participant as the target. These examples show the architecture in use across successive turns, while the human preference trials assess an alternative ending at a single point in a conversation.

One illustration is a discussion about a handheld game system. Different speakers’ capitalization habits appear in the generated continuation, and the paper points out a connection between the target’s wording in the references and a detail carried into the generated exchange. This makes the variation tangible. Some of the evidence concerns spelling and case, which can be seen directly, while some concerns the content selected for the response. A separate technical-support example shows a generated reply adopting the practice of signing off with initials, as the account does in its own comments. The apparent transfer is a convention of the account’s writing. The initials themselves are part of the new sample.

The appendix includes other kinds of exchanges, among them a debate about replacing a phone and a discussion about player transfers in club soccer. These examples show the task the authors want the generator to perform. It must respond to a specific prompt, maintain a recognizable contribution from a designated participant, and leave room for another participant to respond. The examples allow a reader to examine transitions across successive sampled turns. The paired rating experiments provide the quantitative evidence about how often particular qualities were preferred.

What the ablations show

Reference organization matters for prediction

The architecture comparison changes the route by which reference information reaches a reply. In GCC-DEC, the conversation can draw on earlier reference positions through the same left-to-right attention mechanism it uses for the current thread. GCC-S2S separates reference encoding from conversation decoding, while GCC-VAE reduces the reference to a sampled latent representation before decoding. The shared decoder performs best in both capacity comparisons. Within the designs tried here, adding a special reference encoder did not improve the system’s prediction of the held-out text.

The authors interpret this result in terms of direct access. The shared decoder uses the same parameters for reference exchanges and conversation text and has no sampled bottleneck between the two. A prediction can pick up different patterns from different reference positions. The comparison supports the effectiveness of that arrangement as a whole. It does not assign independent effects to weight sharing, attention over the combined context or the absence of a bottleneck. The encoder-based alternatives change several of these properties together.

The sequence-to-sequence and latent-variable results are also informative in relation to each other. The former has the better validation perplexity in both capacity settings. The study thus finds weaker performance from the particular design that compresses the speaker’s history into a sampled state. The test concerns the ability to predict Reddit replies, and the evidence for its result comes from the automatic experiment. The paper does not give an equivalent human rating comparison across those alternative architectures.

Access to speaker history helps, with a trade-off in longer threads

The matched comparison between the pretrained 355M decoders is the paper’s clearest reference ablation. In the automatic study, giving the decoder the speaker’s other exchanges lowers perplexity by the reported 0.47. The two decoders already have the current conversation and its speaker markings. The improvement therefore comes from making the historical material available in addition to those existing inputs, under the paper’s way of choosing and presenting it.

The results against the original human ending also give the reference-conditioned 355M decoder higher exclusive preference rates than GCC-NRC across the four tasks. The direct comparison between those two generators is more qualified. On style, the conditioned decoder is chosen alone in 40.5% of judgments and the reference-free decoder in 38.9%. For writing quality, the corresponding rates are 36.5% and 36.1%. The reference-free system receives the higher exclusive preferences in their direct realism and coherence comparisons. These outcomes make the choice of comparison important. An improvement in separate comparisons with a human ending does not guarantee the same ordering when the two synthetic replies are shown together.

The paper also separates results by the amount of current dialogue visible before the reply. In its figure for the 355M variants, the authors report that the decoder without references tends to depart farther from the speaker’s reference style when the active conversation offers a longer context. They suggest that it may instead follow the manner of writing in the thread it sees. The decoder with references shows better style matching in the longer-context condition. The authors also observe a possible decline in reply quality there and suggest that examples chosen without regard to their relevance to the current discussion could be contributing.

This analysis is important because both sources of context offer useful information. Earlier turns can establish a local register and make clear what type of reply would fit. Examples from other discussions can preserve distinctive aspects of the target speaker’s writing even as the local exchange gets longer. A reference-conditioned reply can receive credit for sounding like the target and receive weaker judgments for how it works in the present exchange. Measuring the two outcomes separately shows where the added history helps and where the task calls for a more selective use of it.

Scale has its clearest effect on held-out prediction

The size ablation produces an orderly decline in perplexity across the tested decoder configurations. The human results support an improvement with size in broad terms, with some comparisons showing similar scores or category-specific reversals. In particular, the largest decoder can win more frequently than its neighbor on realism and conversational fit while receiving fewer exclusive choices for resemblance to the reference author. This limits what can be inferred about style from the smooth decline in perplexity.

The paper’s most striking style result for the largest decoder comes from pairing it with the original Reddit ending. A generated reply may concentrate conspicuous habits from the examples, while the true author may use those habits less strongly on that occasion. This is one interpretation of why the generated ending can be judged the better match to the visible references. The task asks raters to assess evidence in the text. It can show recognizable stylistic resemblance without requiring the generated answer to duplicate what the person actually wrote.

Increasing size also changes the general quality of the generator. The authors point to previous work connecting perplexity and human-likeness for systems from the same family. Their own results show how that relationship can coexist with local disagreements among the criteria. Because the paper does not compare every decoder size both with and without references, the size study establishes the performance trend for the reference-conditioned family. The separate 355M comparison establishes the value of references at that size. Together they support both choices in GCC, while leaving the interaction between the two open.

Limitations

Limits the authors identify

The authors distinguish teacher-forced perplexity from the quality of text generated without access to the original ending. In validation, the system sees the correct earlier tokens even when it would have generated something else. That procedure makes prediction scores practicable across a large dataset. It leaves open how errors accumulate in an independently generated exchange and how often a plausible alternative reply differs substantially from the observed one. The human experiment gives additional evidence about generated text, with the main trials focused on one alternative turn at the end of a shared conversation.

The paper describes ratings against original human replies as noisy. Adjacent-size comparisons limit the number of pairings, and the authors say that obtaining enough judgments for stronger statistical conclusions would be prohibitively expensive at the study’s scale. The results should therefore be read as observed preferences under the stated protocol. Small differences between paired percentages give weaker grounds for claiming a reliable ordering than the consistent direction of the automatic scaling results. The available agreement figures also show that raters often accepted different choices for the same example.

The authors point to a potential tradeoff between matching the speaker’s examples and writing a good continuation for longer conversations. They propose retrieving references chosen for relevance to the active thread as a possible improvement. Their implementation gathers highly scored comments by the user within its collection procedure. It does not test whether a more targeted selection makes the reply more coherent or whether style transfer would survive that change. The proposal follows from the observed tension between reference resemblance and quality in some contexts.

The data procedure has a practical limit the authors describe directly. Month-by-month collection discards threads that cross those boundaries. The authors regard this as a small loss given the scale of the material and raise the possibility that temporally local references better reflect current habits. The study does not compare nearby and older references under a matched protocol, so that explanation remains a motivation for the setup instead of a measured effect of reference recency.

Limits of what the setup can establish

The held-out data come from a later month of the same source, using the same kinds of path and comment filters. This supports an evaluation on a temporally separate Reddit collection. The split description does not establish whether the same accounts appear in both partitions, so it leaves open how well the approach generalizes specifically to speakers absent from training. Generalization to other sources and formats is also outside the reported evaluation. Reddit thread structure supplies both the reply sequence and the author’s examples, and the paper’s protocol depends on that information being available.

The filters also define a particular type of conversation. Recorded paths need to meet limits on length, overlap and word count, and at least one comment must clear the karma requirement. References favor comments with higher scores. The study consequently provides evidence about that selected material. A speaker whose visible contributions consist mainly of brief replies, or whose available examples come from very different situations, may offer a different kind of input. The paper has no separate result for those cases or for accounts with especially sparse reference material.

Persona in this study is observable through writing. The results can establish that raters see similarities in capitalization, wording, content or interaction style when a generated reply is compared with past comments. They cannot establish that those similarities represent a stable personality beyond the sampled Reddit exchanges. The technical-support example is a concrete illustration of the distinction. An account’s characteristic sign-off can be learned as a writing convention even when the account’s own conventions distinguish between different people writing under it. The label being conditioned on is the account associated with the comments.

The formal task gives each turn a history from the appropriate speaker. In the implemented representation, the current target is distinguished from everybody else. The other participants’ text and its order stay visible, but their token types are shared. The paper therefore demonstrates a way to condition on different actors by changing the target between passes. It gives less evidence about whether the system maintains separate representations of every participant at once, especially across long exchanges with several interlocutors. The demonstrations of successive generated turns show that the procedure can be applied repeatedly. The principal human evaluation measures the fit of a single proposed continuation within an existing exchange.

The paper leaves some potential explanations for the reference benefit unresolved. It does not isolate the contribution of parent comments from that of the author’s replies, or compare highly scored references with references chosen for style alone. Nor does the ablation independently vary input length while matching its contents. The reference-conditioned decoder gets more text as well as different text. Perplexity improvements may reflect information about topic or phrasing in addition to the aspects of style visible to human raters. The strongest claim is that the complete reference procedure improves prediction at the matched size and supplies a measurable control signal for parts of the human evaluation.

The paper also reports different figures for the headline automatic comparison in different places. The dataset table gives the validation collection as 1.8M conversations, while the headline account refers to 1.7M held-out conversations. The scale table gives 13.24 perplexity for the 8.3B decoder, while the abstract and introduction give 13.14. The paper does not reconcile these figures. The scale table supports the ordering of the tested configurations, and the precise endpoint depends on which reported figure is used.

What came after

The subsequent citing work connects GCC to two lines of research. One is the continuing study of dialogue systems, where the paper belongs to the part of the field concerned with producing replies in a particular speaker’s voice. The systematic survey by Ni and colleagues covers advances in dialogue systems based on deep learning. The citation places GCC within that broader area. It represents a task in which the system takes examples of a participant’s previous conversational behavior as a condition on what to write next. The connection is through the survey’s coverage of dialogue research. Recent advances in deep learning based dialogue systems

MEGATRON-CNTRL addresses controllable story generation using external knowledge. Its connection to GCC is the use of contextual material beyond the passage being continued to influence a generation task. In GCC the external material consists of exchanges by a target Reddit participant, which provide evidence about voice and response habits. In MEGATRON-CNTRL the stated aim is to control story generation with external knowledge, which concerns the content of a developing narrative. The citation links two ways of investigating control over extended text generation. It does not establish that the story system adopts GCC’s speaker representation or its Reddit training procedure. MEGATRON-CNTRL

In their conclusion, Boyd and colleagues also identify possible continuations of their own work. They propose applying the pretrained conversation systems to knowledge-grounded exchanges and question answering. They also suggest selecting speaker references for relevance, so that the conditioning evidence could better suit the conversation in progress. That proposal follows from a specific result in the paper. Additional context can make a reply more recognizably like the speaker, while a stronger match to the examples can coexist with reduced quality in a longer exchange. The two citing works place the study in broader research on dialogue and controlled generation. The paper’s proposed reference-selection experiment remains a separate question about which past exchanges are useful for the reply being written.

Cite

Cite as Alex Boyd, Raul Puri, Mohammad Shoeybi, Mostofa Patwary and Bryan Catanzaro. 2020. Large Scale Multi-Actor Generative Dialog Modeling. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2020.acl-main.8

@inproceedings{boyd2020large,
  title = {{Large Scale Multi-Actor Generative Dialog Modeling}},
  author = {Alex Boyd, Raul Puri, Mohammad Shoeybi, Mostofa Patwary and Bryan Catanzaro},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.8},
  url = {https://doi.org/10.18653/v1/2020.acl-main.8}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/boyd-2020-large-scale-multi-actor-generative/