CTRL: A Conditional Transformer Language Model for Controllable Generation
Paper · 2019 · Nitish Shirish Keskar, Bryan McCann, Lav R. Varshney et al.
Summary
The opening words of a passage can fit several kinds of writing. A sentence about a public figure might lead into a news report, a discussion thread, or a biography. A language model that receives only the sentence has to infer which kind of continuation the user wants. CTRL gives the user another way to specify that choice. It puts a control code before the text and learns to predict the next token with that code in view. The same opening can then lead to different continuations depending on the code, and a code can start a generation by itself. The system has 1.63 billion parameters and uses a Transformer.
The authors obtain many of their controls from information that already accompanies the writing. An encyclopedia entry has a known source, a product review has a rating, and a web document has an address that may name its subject or carry a date. The authors turn these features into parts of the input and train on 140 GB of prepared text. They also format examples of question answering and machine translation so that recognizable markers introduce the task. All of these examples use the same next-token training objective. A source code identifies the domain at the beginning of every training sequence. Finer controls, such as a review rating or a web address, appear where the underlying data supply them.
The generation examples show what this buys in practice. Changing the domain code while holding the opening fixed can shift the kind of prose CTRL produces. A constructed web address can steer a continuation towards a date or subject without retrieving a document. The authors also show combinations that cross the boundaries of the training formats, including diet discussion interleaved with English and German translation. These are demonstrations of steering on individual prompts. The paper also examines a separate issue that arises after the input is chosen. Sampling can select a plausible wrong answer even when the correct answer has the highest score, while repeated selection of the highest-scoring token can lead to loops. The authors try near-greedy generation with a penalty for reusing tokens.
The link between codes and training sources also supports a reverse question. Given a passage, CTRL can score it under different domain codes and rank the domains by how well they predict its wording. The ranking describes associations learned from the corpus. Opposing claims can fit the same domain, and a punctuation change can shift the result. The authors released multiple full-sized pretrained versions of CTRL for further work on controllable generation and the relationship between a generator and its training data.
Deep dive: CTRL: A Conditional Transformer Language Model for Controllable Generation
CTRL uses control codes from training data to steer what it writes and to rank which parts of its training corpus best fit a passage. · about 36 minutes to read
The problem and its context
A prompt has to do several jobs
In ordinary continuation, the prompt supplies both the subject matter and whatever clues the system has about the intended output. A few words can identify the thing being discussed while leaving the desired register, format, or task unsettled. More context may help, but the user then needs to know what kind of wording will make the intended pattern recognizable. Even a well-written opening can plausibly belong to several kinds of text. The paper treats this ambiguity as a practical problem for text generation.
The problem is distinct from producing a fluent sentence. A plausible continuation can be well formed and still be a poor fit for the user's purpose. A generator may interpret a question as the opening of a conversation, for instance, when the user wants a direct answer. Likewise, a statement that could open a book or a web article leaves room for both kinds of continuation. Raising the quality of the underlying next-token predictions can improve the writing while leaving these choices implicit. The authors ask how a general system can expose some of them as inputs people can deliberately vary.
Their comparison with image generation is about the history of the research problem. The paper describes how generative adversarial networks improved image generation and how subsequent work studied control over the process and the estimation of the underlying distributions. This suggested a direction for text research. Once a generator can produce credible samples, the next question is which properties a person can specify before asking it to generate. CTRL pursues that question through the organization of the training data.
What existing approaches already offered
Conditional generation was familiar in settings where the task supplied a clear input and output. In translation, a source sentence gives the system something to translate. In abstractive summarization, a document supplies material for a shorter text. The paper points to Sequence to Sequence Learning with Neural Networks and Neural Attention for Abstractive Sentence Summarization as examples of work in this tradition. The task largely determines what kind of continuation or response counts as appropriate. A generator trained across varied material needs a way to distinguish those task conventions from the conventions of articles, books, reviews, and discussions.
Language modeling also had an established role in learning representations that could be reused. The authors describe work that learned representations of words and documents, and work that represented a word differently depending on its surroundings. They also discuss carrying a trained network over to another task through fine-tuning, which updates its parameters using the new task's data. These approaches made pretraining useful for a variety of applications. CTRL's question concerns what a user can specify at generation time while working with a common set of trained parameters. The earlier representation work includes Deep Contextualized Word Representations and BERT.
The paper also describes large Transformer systems, including GPT-2, OpenGPT-2, and Megatron, whose diverse training text supported broad generation capabilities. The authors saw early evidence that a language model could adapt to patterns shown in a prompt and carry out multiple tasks. A prompt written by a person or generated by another system could therefore supply some direction. Much of the burden still fell on the phrasing. Control codes give recurring choices, such as the desired domain, a stable form that the system encounters throughout training.
Multitask research offered precedents for several kinds of signals. Some work described tasks through ordinary language. Other work used explicit markers or learned discrete codes. Multilingual translation was a particularly relevant example because a marker could distinguish outputs that share much of their surrounding format. The authors place CTRL between fully natural prompts and an interface made entirely of special symbols. It can begin with an explicit domain label, then accept structured fragments and ordinary prose in the same sequence. The broader context includes unified approaches such as Natural Language Processing (Almost) from Scratch and benchmarks such as GLUE.
Why use information that is already there?
A separate set of labels for every desired attribute would require a decision about what to label and how consistently it can be identified across sources. The paper starts from information that comes with the material. Reviews already associate their text with judgments made by their authors. A subreddit identifies a community in which a submission appeared. A publisher's address can contain hints about its section, the entities mentioned, and the time of publication. Each is useful at a different level of detail. A community label covers a broad range of posts, while a particular address may carry information specific to a single article.
This choice also changes what a control means. A domain label refers to a collection of documents with shared provenance and potentially many shared habits of writing. Its meaning is learned from those documents. A rating has a more explicit interpretation, but its linguistic effects still depend on the reviews that accompany it. A date encoded in an address acquires whatever associations the document collection supports. The controls therefore expose patterns in the data. Their meaning does not come from a set of hand-written rules for how the continuation should sound.
The paper's source-attribution question follows from the same choice of labels. If a code represents a known part of the training corpus, a passage can be evaluated under that code and under alternatives. The design gives direction to generation when the code is known and supports comparison between domains when the text is known. Those two operations ask different questions of the same learned probabilities. Generation asks what text is likely in a specified setting. Attribution asks which available setting makes the observed text more likely.
The method, step by step
From documents to sequences with controls
CTRL learns from examples in which the source is visible at the beginning. Consider a review that comes with a numeric rating. The authors can present its domain, the rating marker and value, and the review itself in a predictable order. In training, the continuation is already known, so the system can learn which words tend to follow that combination. At generation time, the user can supply the same kind of prefix. A review with a different rating uses the same general format, while the changed value brings a different set of examples to bear on the continuation.
The corpus draws on Wikipedia in English, German, Spanish, and French, as well as books from Project Gutenberg. Other sources include submissions from 45 subreddits, OpenWebText, news collections, and Amazon Reviews. The news sources named through the paper's citations include CNN/DailyMail, The New York Times, and Newsroom. The translation material comes from Europarl and United Nations data in WMT. Its language pairs are English with German, Spanish, or French. The question data include ELI5 and material assembled for the MRQA shared task. That material includes SQuAD, NewsQA, and TriviaQA. It also includes SearchQA, HotpotQA, and Natural Questions. CTRL receives the questions and answers from these sources. The associated reading passages are left out.
The procedure distinguishes a domain code from a marker that belongs to a particular document or part of a document. Wikipedia, Books, News, and the multilingual domain have no secondary code in the appendix's breakdown. A Reviews prefix can be followed by Rating: and one of the values 1.0, 2.0, 3.0, 4.0, and 5.0. Links can take a full or partial web address. Reddit material can use Title: or Text: to mark which part of a submission follows. Task formats add markers at the points where the output is meant to answer a question or continue a translation example.
For tokenization, the authors use fastBPE. Byte-pair encoding, or BPE, gives the system a vocabulary that can represent common strings as units and divide less common words into smaller units. The authors learn the segmentation rules from English Wikipedia and a 5% split of the OpenWebText material they collected. That split serves to learn the vocabulary. The paper gives no generation score on it. The resulting inventory is roughly 250K tokens. The authors choose an inventory this large so that common words frequently take fewer tokens while rare words can still be represented through subword tokenization.
An unknown token accounts for material the vocabulary cannot represent. The preprocessing drops sequences with more than 2 unknown tokens. The authors also store the prepared material in compressed TFRecords. They give 180 GB for the material gathered and 140 GB for the prepared training data, attributing the reduction to filtering together with compressed storage. Those figures describe sizes at different stages and do not specify how much text was discarded by the unknown-token rule.
The text is treated as a stream, with secondary markers inserted where they belong, often at document boundaries. Contiguous sections of that stream become training sequences. Each sequence comes from a domain, and the authors prepend its domain code as the first token. This gives a stretch of text its domain label even if the stretch begins within a document. Secondary markers have a different treatment. Their positions come from how examples are formatted in the stream, and they are carried into a chunk when that chunk contains them. A user can encounter both kinds of control in a single prefix, but only the domain label is guaranteed to be at the beginning of each training sequence.
How CTRL learns from text with control codes
The steps in order.
What CTRL learns to predict
A sequence probability can be broken into a series of next-token probabilities. In an ordinary continuation, the first textual token is predicted without an earlier textual token, and each successive prediction depends on the prefix that has accumulated. The paper writes the ordinary sequence probability as follows.
p(x) = ∏ᵢ₌₁ⁿ p(xᵢ | x₍₍ᵢ₎)
Here x is the full sequence, n is its length, and i is a position from 1 through n. The term xᵢ is the token at position i, and x₍₍ᵢ₎ denotes the prefix strictly before position i. The symbol p denotes a probability, the vertical bar means “given,” and ∏ multiplies the conditional probabilities across the positions. For the first position, the preceding text is empty.
The authors express training through negative log-likelihood. Their displayed loss sums over examples and leaves the token position implicit. With that position shown in the notation, the ordinary loss takes this form.
ℒᵢ(D) = −∑ₖ₌₁^|D| log pθ(xᵢ⁽ᵏ⁾ | prefixᵢ(x⁽ᵏ⁾))
Here ℒᵢ(D) is the loss contribution for position i over dataset D, and |D| counts the examples. The index k identifies a sequence in the dataset, x⁽ᵏ⁾ is that sequence, xᵢ⁽ᵏ⁾ is its observed token at i, and prefixᵢ(x⁽ᵏ⁾) is the part of that sequence strictly before i. The notation pθ denotes the probability assigned by a network with parameters θ. The vertical bar introduces what the prediction is conditioned on. The symbol ∑ adds the contributions over examples, log takes the logarithm of each probability, and the minus sign makes assigning higher probability to an observed token yield a smaller loss. Next-token training uses contributions at the prediction positions across the sequences.
CTRL adds the code to each factor in the sequence probability. Written with the same prefix notation, the conditioned form is:
p(x | c) = ∏ᵢ₌₁ⁿ p(xᵢ | prefixᵢ(x), c)
Here p(x | c) is the probability of text x given control c. The index i runs from 1 to the sequence length n, xᵢ is the token being predicted, and prefixᵢ(x) contains the earlier tokens. The product ∏ combines the next-token probabilities. The comma includes both the earlier text and the control on the conditioning side of the vertical bar. When there is no earlier text, c still gives the system something to condition on.
The corresponding training expression supplies the appropriate code from each example.
ℒᵢ(D) = −∑ₖ₌₁^|D| log pθ(xᵢ⁽ᵏ⁾ | prefixᵢ(x⁽ᵏ⁾), c⁽ᵏ⁾)
Here ℒᵢ(D) is again the position's contribution to the loss over training dataset D, with |D| examples indexed by k. The target token is xᵢ⁽ᵏ⁾, its earlier text is prefixᵢ(x⁽ᵏ⁾), and c⁽ᵏ⁾ is the control for that example. The network parameters θ determine the conditional probability pθ. The vertical bar marks the supplied context, log converts the probabilities to logarithms, and −∑ adds their negatives over examples beginning with index 1. There is no separate prediction task for whether the output sounds like its source. The code can affect the loss through the probabilities it helps assign to the actual tokens.
For generation, the authors begin with a code and any additional prompt, turn the scores for the next token into probabilities, select a token, and append it to the prefix. The next prediction then uses both what the user supplied and what CTRL has produced so far. Iterating gives a continuation whose later choices depend on the earlier generated choices. The code influences the initial distribution and remains part of the conditioning context while it is in view.
How the Transformer computes a prediction
A token enters the network as a learned vector. To identify its location in the sequence, the authors add a sinusoidal position vector, whose components vary with position according to sine and cosine patterns. The resulting vectors form the input matrix X₀. It lies in ℝⁿˣᵈ, the space of real-valued matrices with n rows and d columns, where n counts input positions and d is the width of each representation. The paper follows the positional scheme of the original Transformer in Attention Is All You Need.
The network processes this matrix through a stack of attention layers. In an attention operation, a position supplies a query, earlier positions supply keys that can be compared with that query, and a weighted combination of value vectors carries information forward. A mask prevents use of positions later than the one being processed. This matters in training because the full sequence is present, including the tokens the network is learning to predict. The mask enforces the same dependence on preceding material that will apply when the future text is being generated. In the paper's notation, the operation is:
Attention(X, Y, Z) = softmax(mask(XYᵀ) / √d) Z
Here X, Y, and Z are the query, key, and value matrices for the attention calculation. Yᵀ is the transpose of Y, so XYᵀ gives the query–key scores. The function mask blocks future positions, and √d is the scaling factor in the paper's expression, with d denoting the model dimension there. softmax turns the allowed scores for each query into normalized weights. Multiplication by Z then forms the corresponding weighted value vectors.
Each head has its own learned projections. This lets different heads calculate different sets of attention weights from the same input.
hⱼ = Attention(XWⱼ⁽¹⁾, XWⱼ⁽²⁾, XWⱼ⁽³⁾)
Here hⱼ is the output of the head indexed by j. In this expression X is the input to the attention block. The matrices Wⱼ⁽¹⁾, Wⱼ⁽²⁾, and Wⱼ⁽³⁾ project that input to the query, key, and value matrices supplied to Attention, respectively. The superscripts label the projections. The operation takes the three projected matrices in the same order as in the preceding formula.
MultiHead(X, k) = concat(h₁, …, hₖ) Wₒ
Here MultiHead is the operation that processes input X with k heads. The notation h₁, …, hₖ stands for all the head outputs from the first to the last. The function concat places their features side by side, and Wₒ is a learned output projection that brings the combined representation back to width d. The head count k in this equation is distinct from the example index in the loss and the candidate count used in sampling.
The second part of each layer applies a feedforward network at each position. Attention can combine information across positions. The feedforward calculation gives the resulting representation at a position a learned transformation of its own.
FF(X) = max(0, XU) V
Here FF names the feedforward block and X is its input matrix. The learned matrix U projects from width d to an inner width f. The maximum with 0 acts on each element, replacing negative values with zero. This activation is the rectified linear unit, or ReLU. The learned matrix V projects from width f back to d, so the block preserves the representation width expected by the next operation.
The paper places layer normalization before the core calculation in each block. It writes the attention stage with a residual addition as follows.
X̄ᵢ = LayerNorm(Xᵢ)
Here Xᵢ is the input to layer i, LayerNorm normalizes the features of the representations, and X̄ᵢ is the normalized result. The bar indicates the form that the layer sends to attention.
Hᵢ = MultiHead(X̄ᵢ) + X̄ᵢ
Here Hᵢ is the intermediate output of layer i, and MultiHead(X̄ᵢ) is the attention calculation on the normalized layer input X̄ᵢ. The head count is implicit. The plus sign adds the normalized input back to the block output, matching the residual path as written in the paper. The connection is an instance of the idea discussed in Deep Residual Learning for Image Recognition.
H̄ᵢ = LayerNorm(Hᵢ)
Here Hᵢ is the output just obtained from the attention block, LayerNorm is the normalization operation, and H̄ᵢ is the normalized form used by the feedforward block.
Xᵢ₊₁ = FF(H̄ᵢ) + H̄ᵢ
Here Xᵢ₊₁ becomes the input to the following layer, FF is the feedforward transformation, and H̄ᵢ is its normalized input. The plus sign again denotes the residual addition, with the normalized input added to the transformation's result.
At the top of the stack, a projection gives a score for each vocabulary item at each position.
Scores(X₀) = LayerNorm(Xₗ) Wᵥₒ꜀ₐᵦ
Here Scores(X₀) denotes the vocabulary scores computed from the initial matrix X₀. The index l is the number of layers, Xₗ is the final layer output, and LayerNorm normalizes that output. The learned vocabulary projection Wᵥₒ꜀ₐᵦ maps a representation to a row of scores indexed by vocabulary item. The authors tie this output projection to the learned input embeddings. During training, the scores enter a cross-entropy loss against the observed next tokens. At generation time, the scores at the final input position give the distribution for extending the sequence.
The CTRL configuration has 48 layers, an input and output width d of 1280, a feedforward width f of 8192, and 16 attention heads in each layer. Dropout after the residual connections has probability 0.1. The authors implement the network in TensorFlow. A Cloud TPU v3 Pod distributes a global batch of 1024 across 256 cores. The run lasts 800k iterations and takes about 2 weeks.
The optimizer, Adagrad, adjusts its updates using accumulated gradient information. The authors warm up the learning rate linearly from 0 to 0.05 in 25k steps. They clip gradient norms at 0.25, which bounds the size of the gradient used for an update. They run with no additional learning-rate decay and relate that choice to the way Adagrad's accumulator grows. The paper also reports trials of 256-token and 512-token training sequences, choices constrained by memory and optimization.
From scores to a continuation
The distribution used by the decoder affects how strongly the generator follows its highest-scoring options. The authors start from temperature sampling. A smaller positive temperature concentrates probability around higher scores, while a larger one gives lower-scoring alternatives more weight. For this calculation, the score for a particular candidate is a scalar from the row of vocabulary scores.
pᵢ = exp(sᵢ / T) / ∑ⱼ exp(sⱼ / T)
Here pᵢ is the probability of choosing candidate token i, sᵢ is its score, and T is the positive temperature. The function exp gives the exponential of the rescaled score. The denominator sums the same quantity over candidate tokens indexed by j, using sⱼ for each score, so the probabilities add to one. At very low temperature the distribution approaches greedy selection, while at very high temperature its weights approach uniformity.
A top-k decoder limits sampling to a fixed number k of leading candidates. Nucleus sampling makes the candidate count depend on the distribution by keeping the shortest leading list whose cumulative probability passes a threshold. The paper describes the criterion in terms of sorted probabilities.
k = min {r : ∑ⱼ₌₁ʳ p₍ⱼ₎ > pₜ}
Here p₍ⱼ₎ is the probability at rank j after sorting from highest to lowest, pₜ is the cumulative probability threshold, and r is a possible list length. The sum runs from rank 1 through r. The greater-than sign marks the condition for crossing the threshold, and min chooses the smallest qualifying length as k. A sharp next-token distribution can cross the threshold with few candidates. A diffuse distribution can require more.
The authors' own decoding heuristic adjusts the scores of tokens already produced. They use θ for the penalty factor in their sampling discussion. In the formula below it is written as α to distinguish it from the network parameters.
aᵢ = α if i ∈ g, otherwise 1
Here aᵢ is the divisor assigned to candidate i, g is the list of generated tokens, and ∈ tests whether i occurs in that list. The factor α applies to a token that has already occurred. A token absent from g gets divisor 1, which leaves its score unchanged.
pᵢ = exp(sᵢ / (T · aᵢ)) / ∑ⱼ exp(sⱼ / (T · aⱼ))
Here pᵢ is the next-token probability after the adjustment. The terms sᵢ and sⱼ are the scores for the candidate of interest and the candidates in the denominator. The temperature is T, and aᵢ and aⱼ are the corresponding divisors. The dot indicates multiplication. The numerator exponentiates the adjusted score for i, and ∑ⱼ adds the exponentials for all candidates to normalize the result. Setting α to 1 recovers the ordinary temperature distribution. The adjustment is made during generation, without a term in the training objective for this penalty.
From an observed passage to a domain ranking
With generation, the user supplies the code and receives text. For source attribution, the text is fixed. CTRL scores that text separately under each candidate domain code by evaluating its successive tokens in order. The authors use the following relationship to turn those likelihoods into a relative ranking.
pθ(c | x) ∝ pθ(x | c) p(c)
Here x is the observed passage, c is a candidate domain code, and θ denotes the trained network parameters. On the left, pθ(c | x) is the inferred probability of the code given the passage. On the right, pθ(x | c) is the passage likelihood under that code and p(c) is the prior probability assigned to the code before seeing the passage. The vertical bar marks conditioning and ∝ means proportional to. A common normalization across candidate codes would make the probabilities sum to one. For ranking, the scores can be compared directly.
The authors give all candidate domains equal prior weight for the reported examples. Under this choice, the ordering is determined by how well each code predicts the passage. A prior based on the sizes of the training domains would answer a different version of the question, one that gives more initial weight to sources that supplied more data. The paper compares those choices qualitatively and uses the uniform prior because the empirical prior favored large domains too strongly for the intended analysis.
Experiments and results
What the demonstrations measure
The paper presents demonstrations across several kinds of input, including fixed text under different codes, a code without additional prose, a structured web address, and task templates. It also compares training configurations and shows next-token distributions for factual questions. These pieces of evidence concern different things. Holding a prompt fixed makes it possible to see whether a code affects the continuation. Inspecting a factual prompt's distribution shows which candidate answers the system considers plausible before decoding. An attribution example instead compares how well domains predict words that have already been supplied.
The training corpus provides the categories used in these demonstrations. Review ratings come from the reviews, the Links prefix is associated with OpenWebText, and community codes come from subreddit submissions. The task examples use formats learned from question–answer pairs and parallel text. The results are qualitative for these generation tasks. The paper reports no aggregate rate of domain, rating, or task adherence on a test split. It gives no benchmark accuracy or translation score for CTRL and no head-to-head generation score against GPT-2 or the other earlier systems it discusses. Its explicit comparisons are mostly between inputs, decoders, or training settings within the project.
The numerical comparison below concerns the length of the sequences on which the two configurations were trained. Its unit is tokens in a training sequence. The star identifies the checkpoint used in the reported source-attribution analysis. The paper's preference for that checkpoint came from its observed attribution behavior and the fact that it had trained longer.
CTRL training sequence length on the prepared mixed-domain corpus
The source-attribution examples use the checkpoint trained on shorter sequences.
The numbers
| System or setting | tokens per training sequence |
|---|---|
| Longer-window CTRL | 512 |
| CTRL checkpoint used for source attribution (this paper) | 256 |
The direction in the chart refers to shorter training sequences for this comparison. The paper reports little difference in generation quality within the first 256 tokens for the two systems, without a numerical quality scale or specified evaluation split for that judgment. It also reports generating beyond the training windows by sliding the context forward. That finding concerns the ability to continue generating. It gives no measure of how much earlier information remains effective as the continuation grows.
The authors relate their choice of context lengths to the vocabulary. They describe it as approximately 4 times larger than in similar approaches, so it can often cover more characters at the same token count. This is their reason for viewing its effective context in characters as comparable despite the shorter training sequences. They do not give a character-length benchmark in the experiments. For optimization, they compare smaller Adagrad runs with smaller runs using Adam. They describe comparable convergence rates and a substantial memory saving with Adagrad, without giving elapsed-time, loss, or memory measurements for that comparison.
Domain and rating controls
The shared-prompt demonstration makes a code the deliberate change in the input. The beginning of the prose is identical across conditions, and the resulting examples take on different domain styles. The relevant evidence is the change in the continuation in spite of the shared opening. Since each code represents a corpus, a successful change can involve several features at once. A different domain can supply a different register, preferred topics, or document structure. The examples do not score those features independently.
The authors also show that a domain code can begin generation with no free-form prompt. This case matters because the initial words themselves cannot account for the choice of form. CTRL starts with whatever distribution it learned under that code and builds a continuation from it. More specific markers can constrain the same operation. A marker for the title of a Reddit submission asks for a different part of the document from a marker for its body. Both are familiar structures from training.
A review rating asks for finer control within one source. The source remains Reviews while the prefix supplies a requested value after Rating:. That format can help a user express an intended evaluation without having to write an opening that already conveys it. The paper illustrates the use of the rating control, but it supplies no separate sentiment classifier, human agreement score, or count of how often readers would infer the requested rating from generated reviews. The demonstration shows a usable input format and examples of its effect.
What a constructed address can convey
The authors use web addresses because they can compress several cues about a document into a prefix. A publisher name can suggest a kind of writing. A path can specify a desk or topic. A slug can carry names and relationships. A date can make the same descriptive phrase compatible with different entities. During training, CTRL observes addresses alongside document text. At generation time, the addresses in the demonstration are constructed to resemble those seen in training. They need not point to existing pages for the prefix to carry such cues.
In the date example, the phrase identifying the US president is paired with dates in 2007, 2014, and 2018. Those numbers are years in the constructed addresses. The paper describes an interpretation of the role that changes with the date. The comparison illustrates sensitivity to the date within the address without providing a broader evaluation of historical facts. The dates are attributes of the input here and are not measurements of generation quality.
A publisher example similarly shows that star can be interpreted differently under CNN and ET Online cues. The George Clooney example changes the topical framing between style and politics while preserving the named person. These cases illustrate why an address can do more than identify a publisher. Its components can jointly suggest what kind of document to write about the same entity. The continuations provide evidence of that effect for the selected examples. The paper reports no separate rate for keeping an entity fixed while following the other components.
Task templates and mixed inputs
A task prefix gives familiar structure to an ordinary-language request. A question states what information is wanted, and the surrounding markers establish where the answer belongs. Translation markers identify the languages and organize what is to be continued. From the perspective of next-token prediction, both formats remain text sequences. Their regular structure gives CTRL a way to distinguish task examples from the other material in its training corpus.
The question-answering examples are closer to trivia than to reading comprehension with a supplied document. This follows directly from constructing the training examples from questions and answers without their passages. The task demonstrations show that CTRL can continue the format with an answer. The evidence does not quantify how frequently the answer is correct across the datasets from which the questions were drawn. Likewise, the translation examples demonstrate how to elicit translations and provide no test-set comparison against a system trained specifically for translation.
The more unusual examples cross formats. The authors combine the Diet code, associated with r/keto, with English and German translation markers. The displayed output alternates languages, follows the diet topic, and stays coherent across several translated lines according to the authors. Their explanation is that diet examples offered multiline continuity, while the translation training examples were shuffled individual lines. A domain associated with connected passages can therefore bring a structural pattern to a prompt that also calls for translation. The second case combines the Politics code from r/politics with an opening in French. The authors report finding no instances of that combination in training. The result is an example of generalization across input features, with no estimate of how often other unseen combinations work.
Decoding factual questions and ranking sources
The next-token plots deal with a local decision. For the question about Australia's capital, the paper describes Canberra as receiving more probability than other cities that remain plausible under the model. The figure also examines the distribution for a question about the first person to walk on the Moon. These cases explain how sampling can change an outcome even when the leading prediction is suitable. A sampled alternative can be a recognizable city or person and be wrong for the question. Only the relative behavior of the distributions is used in the argument. The paper gives no numeric probabilities for those candidates in its prose.
The paper reports that near-greedy decoding with a repetition penalty of approximately 1.2 gave a good balance in the authors' use. The value is the score-divisor setting for generated tokens, instead of a measured amount of repetition or accuracy. The reasoning is that choosing among the leading predictions helps preserve good factual choices while penalizing reuse can interrupt loops. The paper describes the resulting balance qualitatively and gives no rated sample, benchmark split, or aggregate comparison with top-k or nucleus sampling.
Attribution produces a ranking over candidate domain codes for a supplied sequence. The authors illustrate that changing only whether a climate-related claim ends with a period can change its attribution. This keeps the words fixed and changes a detail in how the sentence is written. They also observe that opposing claims can receive similar attributions because places where one claim appears may be places where people dispute it. The evaluation is therefore about the response of the learned likelihoods to given text. The authors do not report held-out source-classification accuracy or a calibration study of the inferred probabilities.
What the ablations show
The paper gives no systematic ablation that retrains the same system with parts of the code design removed. Its controlled prompt changes, decoding analysis, and comparisons between training and attribution settings show how particular choices affect the examples.
Changing the input while holding the system fixed
The fixed-prompt comparison is the clearest evidence for using the domain code as an input at generation time. The user-supplied prose remains the same while the source marker changes. The observed change in style can therefore be associated with changing the code for that prompt. This tests sensitivity within the trained system. To measure the effect of code-aware training itself, a separate comparison would have to train with and without the codes while matching the corpus and other settings. The paper does not offer that comparison.
The secondary controls give a narrower view of the same idea. The title marker can specify where in a submission the generation should begin. A rating can refine what the Reviews code requests. The date and topic examples with web addresses test whether meaningful structure within a prefix can help distinguish continuations that share a subject. These controls vary along dimensions that a domain code alone leaves open. Since the outputs are displayed examples, they establish particular successful uses. They leave open how reliably one can vary a rating, date, or topic while preserving all the other desired features.
The mixed-code comparison gives the authors a way to reason about the origin of the multiline behavior. The training examples for translation are shuffled lines, while the Diet material can contain longer units of connected text. When the mixed prompt produces continuity across alternating English and German lines, the authors attribute the connecting structure to the Diet data. That explanation fits the contrast they describe. The demonstration changes both the source setting and the composition of the input. It does not isolate how much of the effect comes from the domain code itself, from particular text in the prompt, or from training on multiline examples.
The Politics example tests a different kind of combination. The code is associated with a subreddit, and the opening is French. The absence of that combination among the examples the authors found is relevant because the system has to carry a domain cue and a language cue together. The result shows that a continuation can reflect both. It provides no comparison across such combinations in other domains or languages, so it gives a concrete case of cross-over instead of a general measure of compositional control.
Changing the decoding decision
The factual plots isolate a decision that takes place after the system assigns scores. A random draw from a distribution can select a lower-ranked answer. Greedy decoding chooses the highest score at each step. Repetition can then arise because the system may continue to favor the same pattern after producing it. The penalty changes this decision by giving previously produced tokens different treatment in the scoring rule. The authors use it to preserve much of the near-greedy behavior while addressing repeated output.
Setting the penalty to 1 recovers the unpenalized temperature distribution mathematically. Increasing it changes the scores for every candidate token that has appeared in the generation, including tokens whose recurrence may be appropriate. The rule tracks membership in the generated list. It does not distinguish a repeated phrase from a necessary reuse of a grammatical word. The paper's evidence for approximately 1.2 is the authors' reported judgment about the balance in their generations. There is no penalty sweep with measured factual accuracy and repetition rates, so the evidence supports the rationale and the reported setting without establishing a general optimum.
Changing training settings and attribution assumptions
The training-length comparison tells readers how the authors chose a checkpoint for one analysis. The shorter-window version trained longer and gave better source estimates in their assessment. Training duration and sequence length differ together. The choice therefore supports the use of that checkpoint for the examples, with the cause of its better estimates unresolved. Similarly, the small-model optimizer comparison supports the authors' choice of Adagrad for its memory use at comparable reported convergence. It leaves open how much of that advantage would persist across larger settings and which parts of the generation behavior, if any, depend on the optimizer. Trials of SM3, Adafactor, and NovoGrad are described as mixed, without enough measurements to rank them.
The domain-prior analysis changes an assumption at inference time. The passage likelihood can be held fixed while the prior changes from empirical corpus proportions to equal domain weights. The empirical choice favors large sources before any evidence from the passage is considered. The uniform choice makes the ordering reflect the conditional likelihoods. That is a suitable match to the authors' interest in comparing associations learned from different sources, given their judgment that frequency dominated too much under the empirical prior. It is a decision about what the ranking should express. The paper does not show that equal weighting yields more accurate identification of real-world origins.
The punctuation example makes another assumption visible. To CTRL, an altered ending is a change in the sequence being scored, even if a reader interprets the proposition in the same way. A change in ranking under that variation is evidence that surface form matters to the attribution procedure. The example gives no prevalence estimate for such sensitivity. It does identify a distinction that matters when interpreting the other examples. A ranking pertains to the wording given to the system, including how the wording is presented.
Limitations
Limits the authors state
The authors describe their corpus as covering only part of the available language and carrying the cultural associations of its sources. Each code names a partition within that corpus. It therefore exposes one collection of patterns while inheriting the gaps in what the authors gathered. A community or style poorly represented in the training data will have correspondingly limited representation in the learned controls. The paper connects this directly to bias, fairness, and safety. Source attribution depends on the same cultural associations that can limit the generator's predictions.
The authors draw a careful boundary around attribution. It can indicate which represented domain tends to give higher likelihood to a passage. It cannot establish whether a claim is accurate, desirable, or justified. An argument and a rebuttal can fit the same domain because they share terminology and appear in related settings. A domain that ranks highly may have learned the language of a dispute without preferring either conclusion. The authors frame the ranking as a descriptive aid for examining large amounts of text and reject normative judgments based on it.
The paper also leaves open the scope of the task interface. Its question-answer pairs support trivia-style generation without a reading passage. Extractive question answering requires finding an answer in supplied text, which the paper identifies as an open direction. The authors likewise leave open whether the approach can achieve strong multilingual translation while keeping its general language capabilities. They mention commonsense reasoning and abstractive summarization as areas for future work. The task markers establish a shared way to request behaviors for which examples were included. They do not establish that the same training approach reaches the standard of a specialist system on every task.
The scope of the controls is another stated limit. A single Wikipedia code spans material that could be distinguished by language edition, article, or article section. A Books code could be refined using author, title, and chapter information already present in the text. The authors suggest those extensions to explain where finer controls might come from. The existing demonstrations establish certain degrees of granularity, especially through addresses. They leave those proposed book and encyclopedia controls for later work. The authors also leave open how to make the interface easiest for people to use and how more explicit control might help with creative and exploratory applications.
Limits visible in the evaluation
The strongest generation evidence comes from readable examples, which let a reader inspect the prompt and continuation together. An example can show that a combination is possible while leaving its frequency unknown. The paper gives no selection procedure or denominator from which to estimate a success rate. It therefore supplies no basis for saying what proportion of arbitrary prompts will hold the requested style or satisfy multiple controls together. The same distinction applies to source-sensitive facts. A continuation can reflect a date cue on a displayed prompt without establishing dependable temporal accuracy across dates, topics, and publishers.
The domains bundle several properties. A source label may carry associations with vocabulary, topic, format, and community at once. When the fixed-prompt output changes, the cause at the input level is clear. Which property of the training material produces each change is harder to tell. A review-rating experiment can narrow the requested change, but review ratings may also correlate with different products or problems mentioned in the corpus. The demonstration does not independently measure whether a requested attitude changes while subject matter stays fixed.
The address experiments have a related boundary. A structured address is text the system interprets using learned associations. A date, person, or section in the address constrains the probability distribution on continuations. The procedure shown does not fetch documents or check statements against them. The observed adaptations therefore show learned use of URL patterns. Evaluating whether continuations respect all the constraints of more varied addresses, including ones that bring competing cues together, would require a separate test. In the same way, the plausible factual answers in the probability plots explain why decoding matters while leaving the prevalence of correct leading answers undetermined.
Likelihood-based attribution and actual provenance are different quantities. The candidates are the domains defined in training, and the ranking is relative to those candidates and to the chosen prior. A passage may fit the language of one corpus even though it came from another, from outside the set, or from a place where several styles overlap. The examples establish no procedure for finding a particular source document. They also establish no threshold for deciding whether any domain is a good match. A ranking can always put one candidate ahead of another even when the available labels are a poor fit for the text.
Training on short windows also limits what can be inferred about longer writing. Sliding a window forward allows the system to keep producing tokens. The authors' quality comparison covers the first 256 tokens and is qualitative. It does not evaluate whether the continuation preserves facts, domain cues, or decisions made much earlier. The large vocabulary complicates comparisons based on token counts because segmentation affects how much text a window contains. The paper explains that tradeoff without measuring long-range control under a matched context budget.
What the release process establishes
The authors sought pre-release review through the Partnership on AI and used scenario planning to consider possible harmful uses and unintended effects. They released the trained versions with a code of conduct and questions meant to encourage reflection about artificial text generation. They also invited users to document what they built and report how they used CTRL, as part of a plan to observe developments after release. The paper describes the code of conduct as a way to communicate community expectations and recognizes its lack of legal force.
These are accounts of decisions and mechanisms for review and feedback. The paper gives no outcome data on how those measures affected use or misuse after release. The generation and source-attribution demonstrations similarly give no quantitative safety assessment. The authors make public release part of the research contribution while treating observation of its effects as work that extends beyond the experiments reported in the paper.
What came after
The later citing work takes up several problems that CTRL brings together. Some titles emphasize how to present a task to a general system, others emphasize where to intervene to obtain a desired output, and still others concern how to evaluate or govern the resulting capabilities. The citation relationships establish a connection to CTRL. The specific lines of descent are clearest when stated as comparisons between the approaches named by the papers.
Specifying tasks and behavior
CTRL represents translation and question answering as text whose surrounding markers identify the task. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer also treats a common text interface as central, in its case to the study of transfer learning. The relationship is in the choice to express multiple tasks through textual inputs and outputs. CTRL uses that choice to put task examples alongside a broader corpus and make them accessible through explicit cues.
Pre-train, Prompt, and Predict surveys prompting methods across natural language processing. CTRL provides a concrete case for the distinction between prompt forms a developer deliberately teaches during training and instructions a user composes for an immediate request. Its domain labels and task formats come from recurring patterns in the training input. Prompt Programming for Large Language Models takes prompt design itself as a subject and looks beyond the few-shot paradigm. Its title points to a different source of expressive power within the same interface problem, the way a user organizes the prompt.
RLPrompt addresses discrete prompts through reinforcement learning. CTRL chooses many of its prefixes because they identify existing attributes of a corpus. Optimizing a discrete prompt treats the choice of text as a problem in its own right. Training Language Models to Follow Instructions with Human Feedback frames the desired behavior through instructions and human feedback. That line of work shares an interest in making user intent matter, while the named training signal differs from CTRL's learned associations between source information and continuations.
Intervening during generation
CTRL uses learned conditioning for domain and task control and makes a separate decoding adjustment for repetition. Several citing papers take controlled decoding as their subject. Plug and Play Language Models presents a plug-and-play approach to controlled text. GeDi puts generative discriminator guidance at the center of sequence generation. DExperts explicitly describes control at decoding time through experts and anti-experts. These titles mark a shift in where the intervention operates. A CTRL code first affects the probabilities as part of the input. Guidance at decoding time acts on the choices made as the continuation is produced.
Diffusion-LM Improves Controllable Text Generation addresses the broader control problem through a diffusion approach. That connection is at the level of the objective for the interface. A person should be able to request some property of the resulting text. CTRL studies that objective with a causal next-token process and recognizable prefix structure. Diffusion-LM names a different generation framework for pursuing it.
Testing the consequences of generation
The CTRL paper treats corpus associations as both a source of control and a limit on what the resulting text can establish. RealToxicityPrompts takes toxic degeneration as an evaluation problem. This brings attention to a property of continuations that a source or task label by itself does not measure. Self-Diagnosis and Self-Debiasing addresses corpus-based bias through diagnosis and mitigation. Its connection to CTRL lies in the concern with what a generator learns from its text collections, while its stated aim extends beyond describing associations with sources.
On the Opportunities and Risks of Foundation Models places those questions in a broader discussion of reusable pretrained systems. CTRL had already made release, documentation, and feedback part of the discussion around a general generator. The later work's broader framing connects that concern to the opportunities and risks of systems reused in many settings. Across these citing works, the shared problem is how to make the behavior of a broadly trained generator responsive to a particular request, and how to establish that it responds as intended.
Fields, topics and concepts
Shelves 5The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksComputer Vision and Pattern Recognition · 3,621 works
Topics 1Research subjects and languages the work is about.Language models & pretraining · 4,145 works
Concepts 1Key ideas and methods explained on our concept pages.Transformer and attention · 30 works
Cite
Cite as Nitish Shirish Keskar, Bryan McCann, Lav R. Varshney, Caiming Xiong and Richard Socher. 2019. CTRL: A Conditional Transformer Language Model for Controllable Generation. arXiv:1909.05858.
@misc{keskar2019ctrl,
title = {{CTRL: A Conditional Transformer Language Model for Controllable Generation}},
author = {Nitish Shirish Keskar, Bryan McCann, Lav R. Varshney, Caiming Xiong and Richard Socher},
year = {2019},
doi = {10.48550/arxiv.1909.05858},
eprint = {1909.05858},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1909.05858}
}References
- Annotation and benchmarking on understanding and transparency of machine learning lifecycles (ABOUT ML), 2019. URL https://www.partnershiponai.org/about-ml/. Partnership on AI (PAI), v0. OpenAlex ↗ · Scholar ↗
- Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: A system for large-scale machine learning. In 12th $\{$USENIX$\}$ Symposium on Operating Systems Design and Implementation ($\{$OSDI$\}$ 16), pp. 265–283, 2016. our card
- Rohan Anil, Vineet Gupta, Tomer Koren, and Yoram Singer. Memory-efficient adaptive optimization for large-scale learning. arXiv preprint arXiv:1901.11150, 2019. OpenAlex ↗ · Scholar ↗
- Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In International conference on machine learning, pp. 214–223, 2017. OpenAlex ↗ · Scholar ↗
- Matthew Arnold, Rachel K. E. Bellamy, Michael Hind, Stephanie Houde, Sameep Mehta, Aleksandra Mojsilovic, Ravi Nair, Karthikeyan Natesan Ramamurthy, Darrell Reimer, Alexandra Olteanu, David Piorkowski, Jason Tsay, and Kush R. Varshney. Factsheets: Increasing trust in AI services through supplier's declarations of conformity, August 2018. arXiv:1808.07261 [cs.CY]. our card
- Mikel Artetxe, Gorka Labaka, Eneko Agirre, and Kyunghyun Cho. Unsupervised neural machine translation. arXiv preprint arXiv:1710.11041, 2017. our card
- Jimmy Ba, Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. CoRR, abs/1607.06450, 2016. OpenAlex ↗ · Scholar ↗
- Loïc Barrault, Ondřej Bojar, Marta R Costa-jussà, Christian Federmann, Mark Fishel, Yvette Graham, Barry Haddow, Matthias Huck, Philipp Koehn, Shervin Malmasi, et al. Findings of the 2019 conference on machine translation (wmt19). In Proceedings of the Fourth Conference on Machine Translation (Volume 2: Shared Task Papers, Day 1), pp. 1–61, 2019. our card
- Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Jauvin. A neural probabilistic language model. Journal of machine learning research, 30 (Feb):0 1137–1155, 2003. our card
- Thorsten Brants, Ashok C Popat, Peng Xu, Franz J Och, and Jeffrey Dean. Large language models in machine translation. In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL), pp. 858–867, 2007. our card
- Miles Brundage. Artificial intelligence and responsible innovation. In Vincent C. Müller (ed.), Fundamental Issues of Artificial Intelligence, pp. 543–554. Springer, 2016. OpenAlex ↗ · Scholar ↗
- Miles Brundage, Shahar Avin, Jack Clark, Helen Toner, Peter Eckersley, Ben Garfinkel, Allan Dafoe, Paul Scharre, Thomas Zeitzoff, Bobby Filar, Hyrum Anderson, Heather Roff, Gregory C. Allen, Jacob Steinhardt, Carrick Flynn, Seán Ó hÉigeartaigh, Simon Beard, Haydn Belfield, Sebastian Farquhar, Clare Lyle, Rebecca Crootof, Owain Evans, Michael Page, Joanna Bryson, Roman Yampolskiy, and Dario Amodei. The malicious use of artificial intelligence: Forecasting, prevention, and mitigation, February 2019. arXiv:1802.07228 [cs.AI]. our card
- Isaac Caswell, Ciprian Chelba, and David Grangier. Tagged back-translation. arXiv preprint arXiv:1906.06442, 2019. OpenAlex ↗ · Scholar ↗
- Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in neural information processing systems, pp. 2172–2180, 2016. OpenAlex ↗ · Scholar ↗
- Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. our card
- Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pp. 160–167. ACM, 2008. OpenAlex ↗ · Scholar ↗
- Ronan Collobert, Jason Weston, Léon Bottou, Michael Karlen, Koray Kavukcuoglu, and Pavel Kuksa. Natural language processing (almost) from scratch. Journal of machine learning research, 120 (Aug):0 2493–2537, 2011. our card
- Ruth Schwartz Cowan. The consumption junction: A proposal for research strategies in the sociology of technology. In Wiebe E. Bijker, Thomas P. Hughes, and Trevor J. Pinch (eds.), The Social Construction of Technological Systems, pp. 261–280. MIT Press, Cambridge, MA, USA, 1987. OpenAlex ↗ · Scholar ↗
- Andrew M Dai and Quoc V Le. Semi-supervised sequence learning. In Advances in neural information processing systems, pp. 3079–3087, 2015. our card
- Zihang Dai, Zhilin Yang, Yiming Yang, William W Cohen, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. our card
- John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 120 (Jul):0 2121–2159, 2011. OpenAlex ↗ · Scholar ↗
- Matthew Dunn, Levent Sagun, Mike Higgins, V Ugur Guney, Volkan Cirik, and Kyunghyun Cho. Searchqa: A new q&a dataset augmented with context from a search engine. arXiv preprint arXiv:1704.05179, 2017. our card
- Angela Fan, Mike Lewis, and Yann Dauphin. Hierarchical neural story generation. arXiv preprint arXiv:1805.04833, 2018. our card
- Angela Fan, Yacine Jernite, Ethan Perez, David Grangier, Jason Weston, and Michael Auli. Eli5: Long form question answering. arXiv preprint arXiv:1907.09190, 2019. our card
- Boris Ginsburg, Patrice Castonguay, Oleksii Hrinchuk, Oleksii Kuchaiev, Vitaly Lavrukhin, Ryan Leary, Jason Li, Huyen Nguyen, and Jonathan M Cohen. Stochastic gradient methods with layer-wise adaptive moments for training of deep networks. arXiv preprint arXiv:1905.11286, 2019. OpenAlex ↗ · Scholar ↗
- Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. OpenAlex ↗ · Scholar ↗
- Max Grusky, Mor Naaman, and Yoav Artzi. Newsroom: A dataset of 1.3 million summaries with diverse extractive strategies. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 708–719, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. URL http://aclweb.org/anthology/N18-1065. our card
- Kazuma Hashimoto, Caiming Xiong, Yoshimasa Tsuruoka, and Richard Socher. A joint many-task model: Growing a neural network for multiple nlp tasks. arXiv preprint arXiv:1611.01587, 2016. our card
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. our card
- Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in neural information processing systems, pp. 1693–1701, 2015. our card
- Ari Holtzman, Jan Buys, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751, 2019. our card
- Jeremy Howard and Sebastian Ruder. Universal language model fine-tuning for text classification. arXiv preprint arXiv:1801.06146, 2018. OpenAlex ↗ · Scholar ↗
- Hakan Inan, Khashayar Khosravi, and Richard Socher. Tying word vectors and word classifiers: A loss framework for language modeling. arXiv preprint arXiv:1611.01462, 2016. our card
- Melvin Johnson, Mike Schuster, Quoc V Le, Maxim Krikun, Yonghui Wu, Zhifeng Chen, Nikhil Thorat, Fernanda Viégas, Martin Wattenberg, Greg Corrado, et al. Google’s multilingual neural machine translation system: Enabling zero-shot translation. Transactions of the Association for Computational Linguistics, 5:0 339–351, 2017. our card
- Mandar Joshi, Eunsol Choi, Daniel S Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. arXiv preprint arXiv:1705.03551, 2017. our card
- David Kaiser and Jonathan Moreno. Self-censorship is not enough. Nature, 4920 (7429):0 345–347, December 2012. . OpenAlex ↗ · Scholar ↗
- Lukasz Kaiser, Aidan N Gomez, Noam Shazeer, Ashish Vaswani, Niki Parmar, Llion Jones, and Jakob Uszkoreit. One model to learn them all. arXiv preprint arXiv:1706.05137, 2017. OpenAlex ↗ · Scholar ↗
- Łukasz Kaiser, Aurko Roy, Ashish Vaswani, Niki Parmar, Samy Bengio, Jakob Uszkoreit, and Noam Shazeer. Fast decoding in sequence models using discrete latent variables. arXiv preprint arXiv:1803.03382, 2018. OpenAlex ↗ · Scholar ↗
- Nitish Shirish Keskar, Bryan McCann, Caiming Xiong, and Richard Socher. Unifying question answering and text classification via span extraction. arXiv preprint arXiv:1904.09286, 2019. OpenAlex ↗ · Scholar ↗
- Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. our card
- Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. our card
- Ryan Kiros, Yukun Zhu, Ruslan R Salakhutdinov, Richard Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Skip-thought vectors. In Advances in neural information processing systems, pp. 3294–3302, 2015. OpenAlex ↗ · Scholar ↗
- Catherine Kobus, Josep Crego, and Jean Senellart. Domain control for neural machine translation. arXiv preprint arXiv:1612.06140, 2016. OpenAlex ↗ · Scholar ↗
- Wojciech Kryściński, Nitish Shirish Keskar, Bryan McCann, Caiming Xiong, and Richard Socher. Neural text summarization: A critical evaluation. arXiv preprint arXiv:1908.08960, 2019. our card
- Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:0 453–466, 2019. our card
- Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. arXiv preprint arXiv:1901.07291, 2019. OpenAlex ↗ · Scholar ↗
- Guillaume Lample, Alexandre Sablayrolles, Marc'Aurelio Ranzato, Ludovic Denoyer, and Hervé Jégou. Large memory layers with product keys. arXiv preprint arXiv:1907.05242, 2019. OpenAlex ↗ · Scholar ↗
- Hector Levesque, Ernest Davis, and Leora Morgenstern. The winograd schema challenge. In Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning, 2012. OpenAlex ↗ · Scholar ↗
- Patrick Lewis, Ludovic Denoyer, and Sebastian Riedel. Unsupervised question answering by cloze translation. arXiv preprint arXiv:1906.04980, 2019. our card
- Minh-Thang Luong, Quoc V Le, Ilya Sutskever, Oriol Vinyals, and Lukasz Kaiser. Multi-task sequence to sequence learning. arXiv preprint arXiv:1511.06114, 2015. our card
- Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. Image-based recommendations on styles and substitutes. In Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 43–52. ACM, 2015. OpenAlex ↗ · Scholar ↗
- Bryan McCann, James Bradbury, Caiming Xiong, and Richard Socher. Learned in translation: Contextualized word vectors. In Advances in Neural Information Processing Systems, pp. 6294–6305, 2017. our card
- Bryan McCann, Nitish Shirish Keskar, Caiming Xiong, and Richard Socher. The natural language decathlon: Multitask learning as question answering. arXiv preprint arXiv:1806.08730, 2018. our card
- Stephen Merity, Nitish Shirish Keskar, and Richard Socher. Regularizing and optimizing lstm language models. arXiv preprint arXiv:1708.02182, 2017. our card
- Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013. our card
- Margaret Mitchell, Simone Wu, Andrew Zaldivar, Parker Barnes, Lucy Vasserman, Ben Hutchinson, Elena Spitzer, Inioluwa Deborah Raji, and Timnit Gebru. Model cards for model reporting. In Proceedings of the Conference on Fairness, Accountability, and Transparency (FAT* '19), January 2019. . OpenAlex ↗ · Scholar ↗
- Amit Moryossef, Roee Aharoni, and Yoav Goldberg. Filling gender & number gaps in neural machine translation with black-box context injection. arXiv preprint arXiv:1903.03467, 2019. OpenAlex ↗ · Scholar ↗
- Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 807–814, 2010. OpenAlex ↗ · Scholar ↗
- Ramesh Nallapati, Bowen Zhou, Caglar Gulcehre, Bing Xiang, et al. Abstractive text summarization using sequence-to-sequence rnns and beyond. arXiv preprint arXiv:1602.06023, 2016. our card
- Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. arXiv preprint arXiv:1802.05365, 2018. our card
- Carol W Pfaff. Constraints on language mixing: intrasentential code-switching and borrowing in spanish/english. Language, pp. 291–318, 1979. OpenAlex ↗ · Scholar ↗
- Shana Poplack. Sometimes i’ll start a sentence in spanish y termino en espanol: toward a typology of code-switching1. Linguistics, 180 (7-8):0 581–618, 1980. OpenAlex ↗ · Scholar ↗
- Ofir Press and Lior Wolf. Using the output embedding to improve language models. arXiv preprint arXiv:1608.05859, 2016. our card
- Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. URL https://s3-us-west-2.amazonaws.com/ openai-assets/research-covers/langu ageunsupervised/language_understand ing_paper.pdf, 2018. OpenAlex ↗ · Scholar ↗
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. URL https://d4mucfpksywv.cloudfront.net /better-language-models/language_mo dels_are_unsupervised_multitask_learn ers.pdf, 2019. OpenAlex ↗ · Scholar ↗
- Nazneen Fatema Rajani, Bryan McCann, Caiming Xiong, and Richard Socher. Explain yourself! leveraging language models for commonsense reasoning. arXiv preprint arXiv:1906.02361, 2019. our card
- Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100,000+ questions for machine comprehension of text. arXiv preprint arXiv:1606.05250, 2016. our card
- Alexander M Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. arXiv preprint arXiv:1509.00685, 2015. our card
- Evan Sandhaus. The new york times annotated corpus. Linguistic Data Consortium, Philadelphia, 60 (12):0 e26752, 2008. OpenAlex ↗ · Scholar ↗
- Thomas Scialom, Sylvain Lamprier, Benjamin Piwowarski, and Jacopo Staiano. Answers unite! unsupervised metrics for reinforced summarization models. arXiv preprint arXiv:1909.01610, 2019. our card
- Abigail See, Peter J Liu, and Christopher D Manning. Get to the point: Summarization with pointer-generator networks. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1073–1083, 2017. OpenAlex ↗ · Scholar ↗
- Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909, 2015. our card
- Noam Shazeer and Mitchell Stern. Adafactor: Adaptive learning rates with sublinear memory cost. arXiv preprint arXiv:1804.04235, 2018. OpenAlex ↗ · Scholar ↗
- Jack Stilgoe, Richard Owen, and Phil Macnaghten. Developing a framework for responsible innovation. Research Policy, 420 (9):0 1568–1580, November 2013. . OpenAlex ↗ · Scholar ↗
- Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014. our card
- Trieu H Trinh and Quoc V Le. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847, 2018. our card
- Adam Trischler, Tong Wang, Xingdi Yuan, Justin Harris, Alessandro Sordoni, Philip Bachman, and Kaheer Suleman. Newsqa: A machine comprehension dataset. arXiv preprint arXiv:1611.09830, 2016. our card
- Lav R. Varshney, Nitish Shirish Keskar, and Richard Socher. Pretrained AI models: Performativity, mobility, and change, September 2019. arXiv:1909.03290 [cs.CY]. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 5998–6008. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/7181-attention-is-all-you-need.pdf. our card
- Alex Wang, Amapreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. arXiv preprint arXiv:1804.07461, 2018. our card
- Sean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan, Kyunghyun Cho, and Jason Weston. Neural text generation with unlikelihood training. arXiv preprint arXiv:1908.04319, 2019. our card
- Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. OpenAlex ↗ · Scholar ↗
- Stratos Xenouleas, Prodromos Malakasiotis, Marianna Apidianaki, and Ion Androutsopoulos. Sumqe: a bert-based summary quality estimation model. arXiv preprint arXiv:1909.00578, 2019. OpenAlex ↗ · Scholar ↗
- Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W Cohen, Ruslan Salakhutdinov, and Christopher D Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. arXiv preprint arXiv:1809.09600, 2018. our card
- Rowan Zellers, Ari Holtzman, Hannah Rashkin, Yonatan Bisk, Ali Farhadi, Franziska Roesner, and Yejin Choi. Defending against neural fake news. arXiv preprint arXiv:1905.12616, 2019. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/keskar-2019-ctrl-conditional-transformer-language-model/