Elamur Research

Professor Forcing: A New Algorithm for Training Recurrent Networks

Paper · 2016 · Alex Lamb, Anirudh Goyal, Ying Zhang et al.

Summary

A recurrent network can learn to predict the next element of a sequence while still struggling to generate a convincing sequence by itself. During ordinary training, the network receives the observed history: the characters, pixels, pen movements, or audio values that actually occurred. During generation, it receives its own previous outputs instead. A small mistake can therefore change the context for later predictions, pushing the network into patterns of activity that its training rarely exposed it to. Professor Forcing addresses this difference between learning with correct histories and continuing from self-generated ones.

The method keeps ordinary likelihood training and adds a second objective. An auxiliary classifier, called the discriminator, watches sequences of internal activity produced under both operating conditions. It learns to identify whether the recurrent network was following observed data or feeding back its own predictions. The generator then receives a training signal that makes this distinction harder to detect. The purpose is to make its internal dynamics more alike across the two conditions, while continuing to learn accurate predictions from the data. Unlike an ordinary generative adversarial comparison between real and artificial examples, the central comparison concerns how the same network behaves under different sources of feedback.

The experiments cover character prediction, sequential image generation, handwriting, and raw vocal audio. On character-level Penn Treebank, the reported validation result improves from 1.50 to 1.48 bits per character. For handwriting, a network trained on observed segments of length 50 is asked to continue for 1000 steps, testing whether the method helps beyond the training horizon. In vocal synthesis, human listeners give Professor Forcing samples an average quality score of 2.20, compared with 1.30 for the teacher-forced baseline. The paper also reports better likelihood behavior and uses visualizations of hidden activity to investigate whether the two operating conditions become more similar.

These findings support a useful but bounded conclusion. Professor Forcing can improve generation and can also serve as a regularizer: an additional training constraint that helps performance on held-out data. Its benefits are not universal. The authors find no improvement on word-level Penn Treebank, and no improvement in their speech experiment when training sequences have length less than 100. The method also adds substantial computation; the character experiment takes 3 times the training time of its teacher-forced counterpart. Its contribution is therefore a particular way to address unstable sequential generation, with encouraging evidence on long sequences, instead of a general replacement for likelihood training.

Interesting ideas

Match operating conditions through internal behavior. A system may encounter different inputs during training and deployment even when its task stays the same. Professor Forcing treats the resulting internal activity as something that can be compared directly. This is useful because visible output errors may appear only after the underlying computation has already drifted. The transferable idea is to identify a meaningful internal trace, collect it under both conditions, and ask whether a learned observer can distinguish them. For another application, the important design choice would be which activity carries evidence of harmful drift.

Keep the supervised objective as an anchor. The discriminator does not replace the requirement to predict the observed sequence well. Likelihood training continues to connect the generator to the data, while the adversarial term constrains how it behaves when running independently. This division of labor is useful whenever a new objective captures a desirable property without fully specifying the task. Behavioral similarity alone would not tell a generator what it should produce. The ordinary prediction objective supplies that missing requirement and makes the additional constraint interpretable as a regularizer.

Judge trajectories rather than isolated decisions. A prediction can look reasonable locally while contributing to a poor sequence. The discriminator receives a sequence of activity, allowing it to use evidence distributed across time. Its bidirectional architecture can inspect both earlier and later parts of that trace. The reusable principle is to match the scope of an evaluator to the failure being studied. When the concern is accumulated drift, a succession of isolated accuracy checks may miss information available in the trajectory as a whole.

Use generated continuations without inventing their correct targets. After a generator leaves an observed path, the next item in the original example need not remain the appropriate answer. Professor Forcing avoids making every self-generated continuation imitate that particular future. It instead asks whether the resulting behavior resembles behavior under observed feedback. This is valuable for tasks with several plausible continuations, where a reference sequence is an example instead of the only legitimate outcome. It also creates a way to train against behavior beyond the length for which observed targets are available.

Separate plausible samples from broad data coverage. The authors assess both generated examples and likelihood on held-out data. These measurements address different concerns: a generator might produce attractive examples while representing only a narrow portion of the data. The useful evaluation habit is to seek evidence about both visible quality and coverage, rather than treating either as a complete answer. The paper’s vocal experiment illustrates why the combination is informative, while also leaving room for stronger checks than a small listening study.

Use null results to locate the method’s scope. The absence of gains on word-level Penn Treebank and on shorter speech sequences matters to the argument. It suggests that the extra training machinery should be justified by a failure involving temporal behavior, rather than added automatically. A researcher borrowing this idea should compare conditions in which accumulated feedback is expected to matter with conditions in which it may matter less. Such comparisons help distinguish a useful structural constraint from a generally beneficial increase in training effort.

Deep dive: Professor Forcing: A New Algorithm for Training Recurrent Networks

Professor Forcing aligns recurrent network behavior during training and generation, improving some likelihoods and long sequence samples. · about 34 minutes to read

How Mova uses it

For Mova, a small transparent language system implemented in Rust, Professor Forcing offers a design principle instead of an established component. No particular Mova implementation of the algorithm is established here. The concrete connection is a question that Mova could make inspectable: does its behavior remain comparable when it processes an observed continuation and when it continues from its own choices?

This question fits the aim of a transparent system because the proposed comparison concerns an observable trace of computation. In the paper, that trace consists of selected recurrent activations and, in some settings, output information. An analogous Mova experiment would first need to identify which existing internal values are meaningful to compare. It would be premature to assume that Mova has GRU states or that the paper’s behavior function transfers directly. The relevant principle is to expose the activity that actually governs continuation in the system being examined.

A concrete exploratory setup would use the same initial context for an observed continuation and a generated continuation. Mova could record its internal activity while following the observed text, then record corresponding activity while feeding back its own output. The first purpose would be diagnosis. If the traces diverged, that would identify a difference between operating conditions; it would not yet establish that the difference caused poor writing or incorrect answers. Output evaluation would still be necessary to connect an internal pattern to a practical problem.

A learned discriminator would be a further possibility. It could attempt to classify traces according to their source of feedback, following the paper’s central design. If Mova’s relevant components support the required optimization, a training signal could then encourage less distinguishable behavior. That remains an architectural proposal. The paper does not establish that every transparent language system has suitable differentiable states, or that an adversarial objective would be the best way to improve such a system.

The most immediately reusable part may therefore be the evaluation discipline. Mova could distinguish success at following known text from success at sustaining a self-generated continuation. It could also distinguish performance within a familiar context length from behavior after a longer rollout. These are separate questions even when the same underlying mechanism performs both tasks. Professor Forcing makes that separation explicit and shows why ordinary next-step prediction scores may leave part of the deployment problem unexamined.

The paper also gives a reason to avoid a careless training shortcut. Once Mova generates a different continuation, the subsequent words in an observed example may no longer be appropriate targets for that altered context. An experiment that mixes generated history with unchanged reference targets would need to confront this mismatch. The behavioral comparison offers an alternative objective, although whether it would help Mova would have to be measured.

Finally, transparency could make the limitations of such an experiment easier to communicate. A lower discriminator accuracy would show that the chosen observer found the chosen traces harder to distinguish. It would not on its own establish better language use. Any future Mova application should therefore report the trace definition, the prediction objective, the generation tests, and the computational cost together. That would preserve the paper’s useful distinction between matching internal behavior and demonstrating an improvement that a reader can actually observe.

The problem and its context

Why correct next-step prediction can be insufficient

The paper concerns recurrent generation: producing a sequence by repeatedly predicting its next element and updating an internal state. The elements need not be words. They can be characters, image pixels, handwriting coordinates, or quantized audio values. What joins these tasks is the feedback loop. A prediction becomes part of the context used to make later predictions.

In a language model, for example, a predicted character changes the history on which the next character depends. During teacher forcing, the network receives the character from the observed text instead. This keeps the history on the path supplied by the dataset. The training objective rewards probability assigned to the observed continuation at each point along that path.

That arrangement is well suited to maximum likelihood estimation. The network learns conditional distributions using histories that actually occurred. But generation asks an additional operational question: what happens after the network begins consuming its own output? The paper argues that errors can accumulate in the conditioning history. As that history becomes less like the examples used during training, the network may enter unfamiliar regions of its internal state space.

This is not simply a claim that one bad output inevitably ruins a sequence. The concern is a distributional difference. The collection of contexts and internal trajectories encountered under observed feedback may differ from the collection encountered under generated feedback. A network can therefore have useful local predictive ability while remaining vulnerable to the consequences of its own earlier choices.

The issue becomes especially visible when generation continues beyond the length of the observed training segments. A system trained with short windows may be expected to sustain a much longer sequence. The authors mention long-horizon forecasting as a motivating setting and test the short-to-long situation directly with handwriting. Their broader argument is that a training signal should examine temporal behavior beyond the correctness of an isolated next observation.

What teacher forcing provides

Teacher forcing is the paper’s baseline and remains part of its proposed method. The observed sequence supplies the feedback values, and the network is optimized to assign those observations high probability. This gives a clear statistical objective and a direct connection between the generator and the data.

The paper’s criticism is therefore specific. It does not argue that learning conditional probabilities is misguided, or that the observed history should never be used. It argues that the generator’s behavior under observed histories may fail to prepare it sufficiently for its own generated histories. Professor Forcing adds an objective aimed at that gap.

This distinction matters when interpreting the results. If the extra constraint improves held-out likelihood, that is an additional finding: an objective motivated by generation also helps ordinary prediction. If it improves long samples, that is evidence closer to the original motivation. These outcomes can support each other without becoming interchangeable.

Scheduled sampling and the target problem

The principal alternative discussed in the paper is scheduled sampling. It exposes the network during training to a mixture of observed inputs and its own predictions. The probability of using generated feedback changes over training. This makes training conditions resemble generation more closely without requiring an auxiliary discriminator.

The difficulty arises when the input history changes but the target sequence does not. Suppose the network has generated a continuation different from the observed example. The next observed item was appropriate for the original history; it may be inappropriate for the generated one. Following several generated steps, the mismatch can become more substantial.

The paper describes scheduled sampling as statistically inconsistent, citing earlier analysis of this issue. Even with increasingly abundant data and sufficient capacity, the procedure need not recover the intended distribution. That theoretical objection does not erase its practical gains: the authors acknowledge reports of improved robustness. Their conclusion is that the training–generation discrepancy is worth addressing, while the way it is addressed matters.

Professor Forcing takes a different route. It retains the observed sequence as the source of likelihood targets. Generated continuations are used to construct behavioral traces for the discriminator, instead of being forced to match every subsequent item in an unchanged reference. This is particularly useful when generated trajectories extend past the available observed segment.

The adversarial connection

The method draws on generative adversarial networks and adversarial domain adaptation. In a conventional adversarial generation setup, a classifier learns to distinguish observed examples from generated ones. Its feedback then helps train the generator. Professor Forcing reuses the learned-comparison mechanism but changes the objects being compared.

Here, both classes consist of activity produced by the generator. Their distinction is whether its feedback came from an observed sequence or from its own output. The discriminator is therefore an observer of operating conditions. It can inspect hidden activity that is unavailable to a classifier restricted to finished samples.

The connection to domain adaptation is similarly direct. The paper describes earlier approaches in which a classifier distinguishes hidden representations associated with different input domains. Making that classification difficult encourages representations that carry less evidence of their domain of origin. Professor Forcing applies this reasoning to two ways of operating a recurrent generator.

The authors also discuss actor–critic approaches to sequence prediction, without presenting a direct experimental comparison against them. Another conceptual predecessor is the training of Boltzmann machines. There, learning involves matching statistics associated with observed constraints and autonomous behavior. The paper uses this connection to place its proposal within a broader idea: learning can compare what a system does when guided by data with what it does when allowed to run independently.

That historical connection should not obscure the specific mechanism. Professor Forcing uses an auxiliary learned classifier and recurrent behavior traces. Its contribution lies in this particular formulation and its empirical investigation across several sequential tasks.

The method, step by step

Begin with the same generator in both conditions

Professor Forcing does not train separate generators for observed and generated feedback. The recurrent network uses shared parameters in both cases. This is essential: the goal is to make the same system behave compatibly under different operating conditions.

In the observed-feedback pass, the network consumes values from a training example. In the generated-feedback pass, it draws an output from its current predictive distribution and uses that output at the next step. If the task includes conditioning input, such as text for handwriting, that input can remain available in both passes.

The generator’s activity is recorded over time. A discriminator receives the resulting trace and predicts which kind of feedback produced it. Its success supplies evidence that the two conditions differ in ways visible through the selected trace.

Training with observed and generated feedback

The steps in order.

Training with observed and generated feedbackStep 1: Run the generator on observed sequences1. Run the generator on observed sequencesStep 2: Run the generator on sampled feedback2. Run the generator on sampled feedbackStep 3: Record internal activity across time3. Record internal activity across timeStep 4: Train a discriminator to identify feedback conditions4. Train a discriminator to identify feedback conditionsStep 5: Update the generator to confuse classification5. Update the generator to confuse classificationStep 6: Retain likelihood training on observed sequences6. Retain likelihood training on observed sequences

The diagram separates operations that have different purposes. The observed pass supports both likelihood training and the behavioral comparison. The generated pass supplies a trajectory whose dynamics can be challenged without requiring a known correct continuation at every position.

Represent a sequence probabilistically

The paper describes sequential generation through an autoregressive factorization: a sequence probability is built from conditional probabilities for its elements. Its displayed expression is:

P(y₁, y₂, …, y_T) = P(y₁) ∏_{t=1}^{T} P(y_t | y₁, …, y_{t−1})

Here, P denotes probability, y_t is the sequence element at position t, and T is the sequence length. The product symbol ∏ indicates multiplication across positions. Each conditional term assigns probability to the current element using the preceding history.

There is an indexing ambiguity in the displayed expression: it includes a separate initial probability while also beginning the product at the initial position. The underlying construction is nevertheless clear from the surrounding discussion. The generator assigns an initial probability and then successive conditional probabilities. Nothing in Professor Forcing depends on counting the initial term twice.

The notation becomes more general when conditioning input is present. The paper writes the generator’s sequence distribution as P_θg(y | x). Here, x is an input sequence, y is an output sequence, and θg contains the generator parameters. If there is no conditioning input, x is empty. The output and input sequences need not have matching lengths.

This flexibility matters for the range of experiments. Unconditional sequence generation and input-conditioned generation share the behavioral comparison, even though the information supplied to the generator differs.

Choose what counts as behavior

The behavior function is the link between the generator and the discriminator:

b = B(x, y, θg)

The symbol b denotes a sequence of recorded activity. B is the function that extracts that activity from the generator while it processes conditioning input x and output history y using parameters θg. The history y may come from the dataset or may have been generated by the network.

The definition intentionally leaves room for different traces. The discriminator need not see only the final output sequence. It can inspect selected hidden values and output-related quantities over time. In the general experimental description, the authors use activations before the GRU state’s tanh transformation and sometimes include predicted output distributions. The character experiment specifically describes hidden states together with character embeddings as discriminator inputs.

Choosing B is a substantive part of the method. If the trace omits information associated with unstable generation, the discriminator cannot respond to it. Conversely, making the trace richer increases the information available to the classifier but can also increase computational demands. The paper establishes a working family of choices rather than a proof that one representation is always best.

The discriminator’s output is written D(b, θd), where θd contains its parameters. It estimates the probability that a trace came from the observed-feedback condition. Its training examples are balanced across the two conditions, so this interpretation is tied to the sampling procedure used for classification.

Train the discriminator

The classifier learns to give high probability to observed-feedback traces and low probability to generated-feedback traces. The paper expresses its cost as:

C_d(θd | θg) = E_(x,y)∼data[−log D(B(x,y,θg),θd) + E_ỹ∼P_θg(·|x)[−log(1 − D(B(x,ỹ,θg),θd))]]

C_d is the discriminator cost. The notation θd | θg means that the cost is optimized over discriminator parameters while treating the current generator as given. E indicates an expectation, or an average over the stated source of examples. The pair (x, y) comes from the training distribution. The symbol ỹ denotes a generated output sequence drawn from P_θg for the same conditioning input x. This distinct symbol makes the two sources of output histories explicit.

The first negative logarithm penalizes the discriminator when it fails to recognize observed-feedback behavior. The second penalizes it when it assigns observed-feedback probability to generated behavior. Minimizing their combined cost trains the classifier to distinguish the conditions.

In practice, a minibatch combines N observed-feedback sequences with N generated-feedback sequences. N denotes the count taken from each class. Because θg changes during training, the classification task also changes. The discriminator must continue learning against the generator’s current behavior, rather than solving a fixed classification problem once.

Preserve likelihood training

The generator continues to optimize the usual observed-data objective:

NLL(θg) = E_(x,y)∼data[−log P_θg(y | x)]

NLL means negative log-likelihood. P_θg(y | x) is the probability the generator assigns to the observed output sequence y given input x. The expectation averages this loss over training examples.

Minimizing NLL rewards accurate prediction of the observed sequence. This is the part of the method that tells the generator what data distribution it should represent. The adversarial comparison alone would only require similarity between operating conditions; it would not ensure that either condition represented the data well.

The continued presence of likelihood is also important for interpretation. Professor Forcing adds a constraint to an established objective. If the objectives conflict, improvements are not guaranteed. The empirical question is whether the behavioral constraint encourages useful generalization without damaging prediction.

Make generated behavior resemble observed-feedback behavior

The principal adversarial generator objective is:

C_f(θg | θd) = E_x∼data, ỹ∼P_θg(·|x)[−log D(B(x,ỹ,θg),θd)]

C_f is the cost applied to generated-feedback behavior. Conditioning input x is drawn from the data, and ỹ is generated by the current network. The discriminator parameters θd are held fixed during this generator update.

The generator minimizes the negative logarithm of the discriminator’s observed-feedback probability. It therefore tries to make a generated trace look as though it arose under observed feedback. The discriminator is simultaneously trained to discover the distinction, creating the adversarial relationship.

The comparison concerns distributions of behavior. It does not require the generated sequence to duplicate a particular observed continuation. Nor does it require every hidden state in a generated trace to equal a hidden state from an observed trace. The learned classifier instead supplies a flexible criterion for distinguishing the collections of trajectories.

The paper also considers an optional objective in the other direction:

C_t(θg | θd) = E_(x,y)∼data[−log(1 − D(B(x,y,θg),θd))]

C_t acts on behavior produced while following an observed sequence. It encourages that behavior to receive the discriminator label associated with generated feedback. The symbols x, y, θg, θd, B, D, and E have the same meanings as above.

Including this term means that both conditions can move towards behavioral agreement. Omitting it places the adversarial pressure on the generated-feedback side while retaining observed-feedback activity as the comparison target for that part of the update.

The generator objectives considered in the experiments are:

C_g = NLL + C_f

C_g denotes the total generator cost in the version without the optional reverse-direction term. NLL supplies the prediction objective, and C_f supplies the behavioral constraint on generated trajectories.

C_g = NLL + C_f + C_t

This version adds C_t, allowing the observed-feedback behavior to participate in the adversarial matching. The paper describes both choices but does not provide a comprehensive numerical comparison assigning their relative benefits across all tasks.

Understand the recurrent computation

Most experiments use a GRU generator. A GRU is a gated recurrent unit: a recurrent component whose state update is controlled by learned gates. The authors describe it as a computationally cheaper alternative to an LSTM in their architectural discussion.

At a given step, the generator combines its previous hidden state with the available conditioning input and the current output-history element. Its updated state determines a distribution over the next output:

P_θg(y_{t+1} | h_t) = P_θg(y_{t+1} | x₁, …, x_t, y₁, …, y_t)

The symbol h_t is the generator’s hidden state after step t. The left side says that the next-output distribution is computed from that state. The right side identifies the history represented by the state: conditioning elements through x_t and output elements through y_t.

For discrete outputs, an affine transformation followed by a softmax converts the hidden state into probabilities over possible values. In generated-feedback operation, an output is sampled from those probabilities and fed back. In observed-feedback operation, the next feedback value comes from the training sequence instead.

This architecture explains an important practical claim about discrete outputs. The discriminator can provide gradients through the internal recurrent activity without requiring a differentiable replacement for every discrete sampling decision. That does not make sampling itself differentiable. It changes where the adversarial observer obtains its evidence and where its signal enters the generator.

Build and control the discriminator

The usual discriminator is bidirectional. A recurrent network reads the trace forward, while another reads it backward. Their hidden representations are joined at each position and processed by a shared multilayer network. The paper describes three layers with rectified activations, followed by an affine output transformation and a sigmoid.

The backward pass gives the classifier access to later evidence when interpreting an earlier part of the trace. This is suitable for a training-time observer that receives a completed behavior sequence. It need not obey the same causal restriction as the generator, which must produce its next value before seeing the future.

The authors also impose rules based on classification accuracy. They pass discriminator gradients into the generator only when discriminator accuracy exceeds 75%. If the classifier is too weak, its signal may not be useful. When its accuracy exceeds 99%, they stop updating the discriminator, because continuing to strengthen an already successful classifier was harmful in their experiments.

These thresholds are practical training rules, not a demonstrated universal recipe. They expose a difficulty inherent in the method: the auxiliary task must remain informative as the generator changes. A classifier that is too weak or too successful can both create problems.

Both networks use Adam for adaptive optimization. The authors implemented the experiments in Theano. The principal architectural exception is sequential MNIST, where the discriminator is convolutional to exploit the spatial arrangement of image pixels.

Experiments and results

The experiments ask related but distinct questions. Does the extra objective improve probability estimates on held-out data? Does it improve generated sequences as judged by people? Can it help when generation extends beyond the observed training horizon? Does internal activity become more similar across operating conditions? The evidence is strongest when these measurements are kept separate and interpreted according to what each actually tests.

Character-level Penn Treebank

The character experiment uses Penn Treebank with an alphabet of 50 symbols. The training split contains 5059k characters, the validation split 396k, and the test split 446k. Training text is divided into non-overlapping segments of length 500.

The generator has a single recurrent hidden layer with 1024 units. Adam uses a learning rate of 0.0001. The discriminator receives hidden activity and character embeddings; its layers have 2048 hidden units. The final layer’s output activation is clipped between -10 and 10.

The authors monitor training negative log-likelihood and evaluate character prediction in bits per character, abbreviated BPC. Lower BPC means that the observed characters receive higher predictive probability, expressed on a bit-based scale.

Character-level Penn Treebank validation bits per character

Professor Forcing gives the lower reported validation loss.

Character-level Penn Treebank validation bits per characterTeacher Forcing: 1.50Teacher Forcing1.50Professor Forcing (this paper): 1.48Professor Forcing (this paper)1.48
The numbers
System or settingbits per character
Teacher Forcing1.50
Professor Forcing (this paper)1.48

These are validation results. Although the paper makes broader claims about improved test likelihood, the explicit character-level values reported in the experimental prose refer to the validation split. They should not be relabeled as test measurements.

The learning curves are described as showing a faster decline in training cost for Professor Forcing. That is an improvement measured across training iterations. It does not imply a reduction in elapsed training time: the authors report that this setup takes 3 times as long as teacher forcing because it includes generated rollouts and discriminator processing.

The result is therefore a tradeoff. The added objective improves the reported character prediction metric and changes the course of optimization, while requiring substantially more computation. The paper does not supply a full analysis of quality as a function of equal computational budget for this experiment.

Sequential generation of MNIST pixels

The image experiment uses the standard binarized MNIST dataset. Images are treated as sequences of pixel values, so generation proceeds by predicting successive elements instead of producing an entire image at once.

Selecting hyper-parameters through validation yields a learning rate of 0 and 512 hidden states.0001. The generator uses a 3-layer GRU architecture. A convolutional discriminator replaces the usual bidirectional recurrent classifier because the pixel sequence also has a spatial image structure.

The paper reports the second-best likelihood then reported for this task, behind PixelRNN. That ranking is meaningful as an author-reported result, but no numerical likelihood entries accompany the comparison in the experimental text. It is therefore not possible to give an exact score comparison or a numerical margin.

The architectural comparison also needs care. PixelRNN uses a more elaborate generator, according to the authors. Professor Forcing is a training approach that could in principle be combined with another generator architecture, but that combination is not tested here.

The paper identifies a practical obstacle to such a combination. PixelRNN can parallelize computation under observed feedback in a way that does not carry over to sequential sampling. Because Professor Forcing requires sampling during training, a straightforward combination would be very slow. This is an important reminder that an objective can be conceptually compatible with an architecture while remaining expensive to implement.

The authors show generated digit examples under both training methods. Those images illustrate the kind of output being studied, but they do not replace the missing numerical likelihood comparison or establish broad visual superiority on their own.

Handwriting beyond the observed horizon

The handwriting experiment directly tests a short-training, long-generation setting. The system learns text-conditioned pen trajectories from IAM-OnDB, a dataset containing 13,040 handwritten lines contributed by 500 writers. Each output includes coordinates and binary information about whether the pen is touching the writing surface.

Observed training segments have length 50, corresponding to only a small amount of writing. Generation continues for 1000 steps. This makes the evaluation substantially different from checking prediction within the same segment length used for training.

The teacher-forced baseline follows the open-source implementation by de Brébisson and its associated hyper-parameters, based on the earlier handwriting approach discussed by the authors. Professor Forcing produces a long rollout and applies a discriminator to non-overlapping portions of length 50. The comparison therefore uses locally observed-scale segments drawn from a much longer autonomous trajectory.

Both systems generate with a sampling bias of 0.5. The human evaluation also uses equal training time and the same sampling procedure, which helps isolate the comparison from straightforward differences in generation settings.

For the study, 48 volunteers compare 16 randomly selected Professor Forcing examples with 16 randomly selected teacher-forced examples. The pairings are randomized, and participants do not know which method produced which sample. They select the better example and indicate whether their preference is slight or substantial.

The paper presents this study as evidence of improved handwriting quality. However, the numerical contents of its results table are not stated in the experimental text. The study design can be described precisely, but an exact preference percentage cannot be reported.

The strongest feature of this experiment is its alignment with the central motivation. It examines behavior after the generator has continued far beyond an observed segment. Its limitation is that the available account does not give a numerical breakdown of the human judgments or a detailed analysis of how quality changes with rollout position.

Vocal synthesis from raw audio

For the vocal experiment, the authors collect three hours of monk chanting from YouTube. Audio is sampled at 1 kHz, and each training or validation example spans four seconds. Signal values are quantized into 8000 bins whose boundaries are uniformly placed between the dataset’s smallest and largest values.

Each example is represented as a sequence of length 4000, with 8000 possible values at each position. This makes the recurrent task one of directly predicting quantized waveform values. The setup concerns this particular vocal dataset and representation, rather than a general evaluation of all speech synthesis.

The paper reports improved negative log-likelihood behavior on training and validation data. It also includes randomly chosen audio examples and a listening study. Exact endpoint likelihood values are not stated, so the likelihood finding remains qualitative in the numerical account available here.

The listening study involves 29 volunteers. Participants hear five randomly chosen examples from each method, presented in randomized order without identifying the training algorithm. They assign quality ratings on the paper’s 1-3 scale.

Vocal synthesis human evaluation mean quality rating

Listeners give the Professor Forcing samples the higher average rating.

Vocal synthesis human evaluation mean quality ratingTeacher Forcing: 1.30Teacher Forcing1.30Professor Forcing (this paper): 2.20Professor Forcing (this paper)2.20
The numbers
System or settingmean quality rating
Teacher Forcing1.30
Professor Forcing (this paper)2.20

These values measure perceived sample quality under that study’s conditions. They are not likelihoods, speech recognition scores, or measures of textual intelligibility. The paper’s figure also displays a standard-deviation spread, but no corresponding numerical spread is stated.

The authors explicitly consider a weakness of judging generated examples. A system might produce attractive samples by representing only a narrow selection of training examples. They argue that the accompanying validation-likelihood improvement makes that explanation less plausible for their result.

This argument is useful without being conclusive. Human ratings provide evidence about the sampled audio, while held-out likelihood provides evidence about probability assigned to other data. Their agreement is more informative than either alone, but the experiment is still limited to the particular dataset and evaluation procedure.

Results that did not improve

On word-level Penn Treebank, the authors find no difference between the training methods. They suggest that character prediction may place greater demands on long-range dependencies, but present this as a possible explanation rather than a demonstrated cause.

They also find no difference in speech synthesis when training uses sequences of length less than 100. This result is consistent with the method being more useful when extended recurrent behavior matters. It does not establish a universal length threshold, since the observation belongs to the reported speech setup.

These negative results belong alongside the positive findings. They show that adding a behavioral discriminator does not automatically improve every sequential prediction task, even within the domains investigated by the paper.

What the ablations show

The paper does not offer a comprehensive component-by-component ablation study. Its most informative analyses instead compare operating conditions, sequence regimes, and representations of internal activity. These comparisons help assess whether the proposed mechanism is plausible, while leaving several causal questions unresolved.

Does the internal discrepancy become smaller?

The authors use T-SNE visualizations to compare hidden states from observed-feedback and generated-feedback operation. T-SNE maps high-dimensional points into a lower-dimensional display, allowing the relationship between collections of states to be inspected visually.

Under teacher forcing alone, the displayed states from the two conditions occupy distinct regions at t = 500. Under Professor Forcing, those regions overlap more substantially. This is evidence directed at the method’s immediate objective: reducing distinguishability between the generator’s operating conditions.

The authors compute 30 T-SNE visualizations for each method and report a smaller mean distance between the condition centroids.

Hidden-state T-SNE analysis mean centroid distance

Professor Forcing reduces separation between the two operating conditions.

Hidden-state T-SNE analysis mean centroid distanceTeacher Forcing: 3000.0Teacher Forcing3000.0Professor Forcing (this paper): 1800.0Professor Forcing (this paper)1800.0
The numbers
System or settingmean centroid distance
Teacher Forcing3000.0
Professor Forcing (this paper)1800.0

The paper describes this change as a 40% relative reduction. It also reports a separate mean distance between hidden states associated with training and sampling in vocal synthesis: 22.8 under teacher forcing and 16.4 under Professor Forcing.

These measurements support the claim that the recorded activity becomes more similar. They should not be treated as a general-purpose generation metric. A projection can reveal a pattern without preserving every relationship in the original state space, and closer internal activity does not by itself guarantee better outputs.

The evidence is consequently strongest as a mechanism check alongside the likelihood and human evaluations. The method aims to reduce a behavioral discrepancy, the internal analysis shows a reduction under its chosen measurements, and other experiments report useful output-level changes.

Does the sequence regime matter?

The word-level language result and the shorter speech result provide controlled contrasts in which gains disappear. Their value is not that they isolate a single mechanism perfectly. Rather, they challenge an overly broad interpretation that adversarial regularization is beneficial simply because it adds another learning signal.

The authors’ explanation focuses on temporal dependence. If the difficult part of a task depends less strongly on extended autonomous behavior, matching long trajectories may offer less benefit. The experiments are compatible with that explanation, but do not directly measure how much information must be carried across time in each task.

The handwriting comparison addresses the horizon issue more directly. Observed segments remain short while generated sequences are long. Applying the discriminator to portions of the long rollout allows the method to constrain behavior after extended self-feedback. This demonstrates the feasibility of the training construction, although it does not isolate which aspects of the trace account for the quality improvement.

What remains unseparated

Several important choices are described without a full comparative breakdown. The objectives may include or omit the teacher-side adversarial term, but the paper does not provide a systematic account of which variant contributes what on each dataset.

Likewise, the behavior trace can contain hidden activity and output-related information, yet their individual contributions are not separately established. The discriminator architecture also changes for the image task, so differences across domains cannot be attributed solely to the training objective or solely to the observer.

The accuracy thresholds are motivated by harmful behavior observed during development. The paper does not present a threshold sweep demonstrating that the stated values are optimal or broadly stable. They are part of the working procedure, not independently validated constants.

Finally, the positive comparisons mostly use teacher forcing as the baseline. The discussion of scheduled sampling is important conceptually, but there is no broad experimental comparison establishing that Professor Forcing produces better results than scheduled sampling at a matched computational budget.

Limitations

Limits identified by the authors

The most explicit cost is additional computation. Professor Forcing needs generated rollouts during training, records behavior under both feedback conditions, and trains a discriminator. In the character experiment, this produces a training time 3 times that of teacher forcing. Faster progress per update therefore coexists with a higher cost per update.

The authors also identify an architectural compatibility problem. Some generators exploit the availability of observed inputs to parallelize training. Autonomous sampling may prevent that same parallelism. Their discussion of PixelRNN shows why requiring generated trajectories during training can make a seemingly natural combination impractical.

The null results are another stated boundary. No gain appears on word-level Penn Treebank, and the shorter speech sequences show no difference. The paper consequently supports selective use rather than a blanket claim that every recurrent generator should receive the extra objective.

The training procedure itself acknowledges instability. A weak discriminator can provide harmful gradients, while an overly successful one can also interfere with learning. The accuracy-based rules are a practical response. They do not remove the need to manage a changing interaction between the classifier and generator.

The authors also recognize that good-looking or good-sounding samples are an incomplete evaluation. Their use of held-out likelihood is intended to address the possibility that sample quality improves at the expense of coverage. This is an acknowledged evaluation concern, not an issue that the paper assumes away.

Limits visible in the experimental design

A careful reader should distinguish reported claims from reported numerical support. The paper claims likelihood improvements across several tasks, but the explicit character comparison gives validation BPC. The sequential MNIST and handwriting table entries are not stated in the experimental prose, and the vocal likelihood curves do not come with exact endpoint values. The direction of those findings can be described, but their missing numerical magnitudes should not be invented.

The human evaluations also have a limited scope. The vocal study rates a selected collection of generated examples, and the handwriting study compares a selected set of paired examples. Random selection and blinded presentation strengthen those comparisons, but do not establish quality across every possible conditioning input or generation length.

For vocal synthesis, the data consist of monk chanting with the stated sampling and quantization choices. An improvement there does not establish an improvement in conversational speech, other musical material, or a different audio representation. Those would require their own experiments.

For handwriting, the longer-horizon result shows that the training construction can be used when generation exceeds the observed segment length. It does not show that every aspect of long-range structure is preserved. A discriminator operating on segments can challenge local portions of a long trajectory, but that alone does not prove that distant portions form a globally coherent whole.

The internal-state analysis has a related limitation. Reducing a distance or increasing overlap in a visualization is evidence about the chosen representation and analysis procedure. It does not establish that every important property of recurrent computation is shared between conditions. Nor does it identify exactly which internal changes caused the gains in likelihood or perceived quality.

What the objective cannot guarantee

Behavioral matching is distributional. The method does not promise that a generated trajectory will follow the observed example, or that corresponding hidden states will match position by position. Such a requirement would be inappropriate for many generative tasks, but its absence limits how the result should be described.

The discriminator also defines the practical scope of the comparison. If it cannot detect a relevant difference, making it less successful will not necessarily eliminate that difference. Its architecture, inputs, and optimization therefore matter to what the adversarial objective actually enforces.

Keeping likelihood training avoids relying on behavioral similarity alone, but the combined objective may still contain competing pressures. The paper’s regularization interpretation is supported by empirical improvements; it is not a proof that adding the adversarial term preserves optimal likelihood estimation in every setting.

Likewise, the criticism of scheduled sampling does not on its own establish a complete statistical guarantee for Professor Forcing. The paper offers a different construction and evidence that it can help. It does not supply a general convergence result showing that the adversarial game always recovers the intended sequence distribution.

Finally, improved handling of longer sequences remains an empirical claim about the tested settings. The work motivates a broader concern with long-term dependencies, but it does not measure every kind of dependency or establish unlimited stable generation. Its strongest conclusion is that comparing internal behavior across feedback conditions can be a useful training constraint, with benefits that depend on the task and the cost of obtaining informative trajectories.

What came after

The later citation record places Professor Forcing alongside work on sequence-level learning, adversarial alignment, autonomous generation, and the limitations of next-step prediction. A citation establishes that a later paper refers to this work; it does not on its own establish that the later method implements its discriminator or reproduces its objective. The titles identify several clear areas of connection, but do not support detailed claims about experiments or mechanisms within those later papers.

Sequence decisions beyond local prediction

Self-critical Sequence Training addresses training for image captioning. Its subject places it near Professor Forcing’s concern with the gap between learning local predictions and judging a completed sequence. The citation connects the papers historically, while the title alone does not establish that self-critical training uses behavioral matching.

Vision-and-Language Navigation concerns following visually grounded instructions in real environments. This is another setting in which successive choices form a trajectory. The connection worth carrying forward is the question of how training prepares a system for the consequences of its own decisions. The citation information does not establish which particular element of Professor Forcing the navigation work adopts.

Adversarial Learning for Neural Dialogue Generation explicitly brings adversarial learning into dialogue generation. That title supports a clear thematic connection to learned evaluators for generated sequences. It does not establish that the evaluator distinguishes internal activity under observed and generated feedback, which is the defining comparison in Professor Forcing.

Contrastive Decoding presents open-ended generation as an optimization problem. Its placement in the citation record shows that Professor Forcing remained relevant to later discussion of generation. The title points toward decisions made during decoding, whereas Professor Forcing’s intervention is a training objective. Any stronger account of their technical relationship would require details beyond the citation entry.

Alignment across conditions and domains

Cross-Alignment for Style Transfer concerns transferring text style without parallel examples. Its title makes alignment across different conditions central. This is thematically close to Professor Forcing’s effort to align distributions of behavior, although the objects being aligned and the exact training procedure are not established by the title.

Unsupervised Machine Translation studies translation using monolingual corpora alone. The citation links Professor Forcing to a setting where direct paired supervision is restricted. It would be too strong to infer from this that the translation method uses a teacher-forced versus autonomous-state discriminator. The reliable connection is its place among later work considering how useful structure can be learned under different supervision conditions.

Towards Robust Neural Machine Translation names robustness as its focus. That concern resonates with the original paper’s motivation: a sequence generator should remain useful when its operating conditions differ from the histories emphasized by training. The citation entry does not specify whether robustness is pursued through the same kind of behavioral comparison.

Language Models as Discriminators studies unsupervised text style transfer using a language-based discriminator. The title establishes a later use of learned discrimination in generation, but not Professor Forcing’s particular classification task. The distinction matters because an evaluator of text and an evaluator of internal recurrent traces need not provide the same training information.

Adversarial Connective-exploiting Networks addresses implicit discourse relation classification. Its appearance broadens the citation record beyond sequence generation into adversarial learning for a linguistic classification problem. The available citation information supports that topical placement, without establishing a direct transfer of the recurrent-dynamics objective.

Autonomous dynamics and the training–generation gap

Learning Latent Dynamics for Planning concerns planning from pixels through learned latent dynamics. Its subject makes the behavior of a learned system over successive steps especially relevant. The citation situates Professor Forcing within that broader concern, but does not show that the planning work trains the same auxiliary classifier.

Self Forcing provides the most explicit thematic continuation in its title: it addresses a train–test gap in autoregressive video diffusion. That wording directly recalls Professor Forcing’s central problem of different conditions during training and generation. The citation information does not, however, establish whether Self Forcing retains adversarial state matching, changes the training rollout, or uses another mechanism.

The Pitfalls of Next-Token Prediction also names a concern closely related to the original motivation. Professor Forcing argues that a next-observation objective may leave important aspects of autonomous behavior unconstrained. The later title indicates continued scrutiny of next-token prediction, but does not justify attributing any particular diagnosis or result to that work.

Toward Consistent World Models names multi-token prediction and latent semantic enhancement in its title. This places consistency and prediction beyond an isolated next element among the subjects of later citing work. It does not establish that the paper obtains consistency through Professor Forcing’s discriminator.

A broader citation footprint

Several further citations reach settings whose technical relationship cannot be recovered from their titles alone. Long Chain-of-Thought Reasoning concerns extended reasoning traces, while PyramidInfer concerns cache compression for high-throughput inference. Both cite Professor Forcing, but that fact is insufficient to claim that either uses adversarial trajectory matching.

Multilingual Mathematical Autoformalization brings the citation into mathematical formalization across languages. HSS-Synth concerns synthetic data for humanities and social sciences. Their entries establish the application areas and the citation relationship, without describing a concrete reuse of the training objective.

Self-Guided Alignment names adaptive preference sensing for generation with multiple objectives. Its subject connects broadly to the use of additional criteria alongside a generator’s existing objective. The available information does not establish a closer technical dependence.

Across these connections, the durable question is precise: how should a system be trained for the trajectories it will encounter after its own outputs begin shaping its future inputs? Professor Forcing supplies one concrete answer. It preserves observed-data prediction, records behavior under both feedback conditions, and learns a classifier whose difficulty becomes part of the generator’s objective. The later citation record shows that this question remained relevant across increasingly varied forms of sequential learning and generation, while leaving the exact nature of each later paper’s borrowing to its own evidence.

Cite

Cite as Alex Lamb, Anirudh Goyal, Ying Zhang, Saizheng Zhang, Aaron C. Courville and Yoshua Bengio. 2016. Professor Forcing: A New Algorithm for Training Recurrent Networks. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1610.09038 · arXiv 1610.09038

@misc{lamb2016professor,
  title = {{Professor Forcing: A New Algorithm for Training Recurrent Networks}},
  author = {Alex Lamb, Anirudh Goyal, Ying Zhang, Saizheng Zhang, Aaron C. Courville and Yoshua Bengio},
  year = {2016},
  doi = {10.48550/arxiv.1610.09038},
  eprint = {1610.09038},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1610.09038}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/lamb-2016-professor-forcing-new-algorithm-training/

References

36 references, from the paper's own bibliography.

  1. Ajakan, H., Germain, P., Larochelle, H., Laviolette, F., and Marchand, M. (2014). Domain-Adversarial Neural Networks. ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  2. Al-Rfou, R., Alain, G., Almahairi, A., and et al. (2016). Theano: A python framework for fast computation of mathematical expressions. CoRR, abs/1605.02688. our card
  3. Bahdanau, D., Cho, K., and Bengio, Y. (2014). Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473. our card
  4. Bahdanau, D., Chorowski, J., Serdyuk, D., Brakel, P., and Bengio, Y. (2015). End-to-end attention-based large vocabulary speech recognition. arXiv preprint arXiv:1508.04395. our card
  5. Bahdanau, D., Brakel, P., Xu, K., Goyal, A., Lowe, R., Pineau, J., Courville, A., and Bengio, Y. (2016). An Actor-Critic Algorithm for Sequence Prediction. ArXiv e-prints. our card
  6. Bengio, S., Vinyals, O., Jaitly, N., and Shazeer, N. (2015). Scheduled sampling for sequence prediction with recurrent neural networks. In Advances in Neural Information Processing Systems, pages 1171–1179. OpenAlex ↗ · Scholar ↗
  7. Bengio, Y., Léonard, N., and Courville, A. (2013). Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation. ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  8. Brebisson, A. (2016). Conditional handwriting generation in theano. https://github.com/adbrebs/handwriting. OpenAlex ↗ · Scholar ↗
  9. Chen, X. and Lawrence Zitnick, C. (2015). Mind's eye: A recurrent visual representation for image caption generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2422–2431. OpenAlex ↗ · Scholar ↗
  10. Cho, K., Van Merriënboer, B., Gülçehre, Ç., Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. (2014a). Learning phrase representations using RNN encoder–decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1724–1734, Doha, Qatar. Association for Computational Linguistics. our card
  11. Cho, K., Van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. (2014b). Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078. our card
  12. Chorowski, J. K., Bahdanau, D., Serdyuk, D., Cho, K., and Bengio, Y. (2015). Attention-based models for speech recognition. In Advances in Neural Information Processing Systems, pages 577–585. our card
  13. Daumé, III, H., Langford, J., and Marcu, D. (2009). Search-based Structured Prediction. ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  14. Ganin, Y., Ustinova, E., Ajakan, H., Germain, P., Larochelle, H., Laviolette, F., Marchand, M., and Lempitsky, V. (2015). Domain-Adversarial Training of Neural Networks. ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  15. Germain, M., Gregor, K., Murray, I., and Larochelle, H. (2015). Made: Masked autoencoder for distribution estimation. arXiv preprint arXiv:1502.03509. OpenAlex ↗ · Scholar ↗
  16. Goodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial networks. In NIPS'2014. OpenAlex ↗ · Scholar ↗
  17. Graves, A. (2012). Supervised Sequence Labelling with Recurrent Neural Networks. Studies in Computational Intelligence. Springer. OpenAlex ↗ · Scholar ↗
  18. Graves, A. (2013). Generating sequences with recurrent neural networks. Technical report, arXiv:1308.0850. our card
  19. Graves, A. (2013). Generating Sequences With Recurrent Neural Networks. ArXiv e-prints. our card
  20. Gregor, K., Danihelka, I., Graves, A., and Wierstra, D. (2015). Draw: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623. our card
  21. Hochreiter, S. and Schmidhuber, J. (1997). Long short-term memory. Neural Comput., 9(8), 1735–1780. OpenAlex ↗ · Scholar ↗
  22. Huszár, F. (2015). How (not) to Train your Generative Model: Scheduled Sampling, Likelihood, Adversary? ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  23. Kingma, D. and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980. our card
  24. Larochelle, H. and Murray, I. (2011). The neural autoregressive distribution estimator. OpenAlex ↗ · Scholar ↗
  25. Liwicki, M. and Bunke, H. (2005). Iam-ondb - an on-line english sentence database acquired from handwritten text on a whiteboard. In Eighth International Conference on Document Analysis and Recognition (ICDAR'05), pages 956–961 Vol. 2. OpenAlex ↗ · Scholar ↗
  26. Mikolov, T. (2010). Recurrent neural network based language model. OpenAlex ↗ · Scholar ↗
  27. Mikolov, T. and Zweig, G. (2012). Context dependent recurrent neural network language model. OpenAlex ↗ · Scholar ↗
  28. Murray, I. and Salakhutdinov, R. R. (2009). Evaluating probabilities under high-dimensional latent variable models. In D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou, editors, Advances in Neural Information Processing Systems 21, pages 1137–1144. Curran Associates, Inc. OpenAlex ↗ · Scholar ↗
  29. Raiko, T., Yao, L., Cho, K., and Bengio, Y. (2014). Iterative neural autoregressive distribution estimator NADE-k. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 27 (NIPS 2014), pages 325–333. Curran Associates, Inc. OpenAlex ↗ · Scholar ↗
  30. Ross, S., Gordon, G. J., and Bagnell, J. A. (2010). A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning. ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  31. Salimans, T., Kingma, D. P., and Welling, M. (2014). Markov chain monte carlo and variational inference: Bridging the gap. arXiv preprint arXiv:1410.6460. OpenAlex ↗ · Scholar ↗
  32. Sutskever, I., Vinyals, O., and Le, Q. V. (2014). Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pages 3104–3112. our card
  33. Theis, L., van den Oord, A., and Bethge, M. (2015). A note on the evaluation of generative models. ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  34. van den Oord, A., Kalchbrenner, N., and Kavukcuoglu, K. (2016). Pixel Recurrent Neural Networks. ArXiv e-prints. OpenAlex ↗ · Scholar ↗
  35. Williams, R. J. and Zipser, D. (1989). A learning algorithm for continually running fully recurrent neural networks. Neural computation, 1(2), 270–280. OpenAlex ↗ · Scholar ↗
  36. Xu, K., Ba, J., Kiros, R., Courville, A., Salakhutdinov, R., Zemel, R., and Bengio, Y. (2015). Show, attend and tell: Neural image caption generation with visual attention. arXiv preprint arXiv:1502.03044. our card