---
title: "Augmenting BERT-style Models with Predictive Coding to"
description: "Araujo and colleagues train BERT and ALBERT to predict future sentence representations, improving several tests of discourse relations."
canonical: "https://research.elamur.ai/free/en/papers/araujo-2021-augmenting-bert-style-models-predictive/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/araujo-2021-augmenting-bert-style-models-predictive/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Augmenting BERT-style Models with Predictive Coding to Improve Discourse-level Representations

# Augmenting BERT-style Models with Predictive Coding to Improve Discourse-level Representations

Paper · 2021 · Vladimir Araujo, Andrés Villa, Marcelo Mendoza et al.

**Authors:** [Vladimir Araujo](https://md.research.elamur.ai/free/en/authors/vladimir-araujo/), Andrés Villa, [Marcelo Mendoza](https://md.research.elamur.ai/free/en/authors/marcelo-mendoza/), [Marie-Francine Moens](https://md.research.elamur.ai/free/en/authors/marie-francine-moens/) and [Alvaro Soto](https://md.research.elamur.ai/free/en/authors/alvaro-soto/) · **Year:** 2021 · **Venue:** Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.emnlp-main.240/)
- [PDF](https://aclanthology.org/2021.emnlp-main.240.pdf)
- [DOI 10.18653/v1/2021.emnlp-main.240](https://doi.org/10.18653/v1/2021.emnlp-main.240)

## Summary

A sentence can be clear on its own while its role in a passage depends on what comes before or after it. A second sentence might explain the first, qualify an expectation it creates, or describe a later event. Araujo and colleagues ask whether an encoder can learn more about these connections by practicing a task that crosses sentence boundaries. They extend [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and [ALBERT](https://md.research.elamur.ai/free/en/papers/lan-2019-albert-lite-bert-self-supervised/) so that, during training, the networks use the text they have already processed to anticipate vector representations of upcoming text. The aim is to improve the sentence vectors that the encoders will produce by themselves.

The design draws on predictive coding, a theory in which higher levels of a processing system send predictions down toward lower levels. In the paper’s implementation, a prediction at a given layer draws on the current text, context from the layer above, and context retained from the preceding step. The encoder also processes the upcoming text to supply a target vector. Training rewards a prediction that matches its target more strongly than other vectors drawn from the same batch. The authors retain masked word prediction alongside this new objective. After pretraining, they remove the added prediction machinery and test the encoders with their weights frozen.

The authors report improvements in 6 out of 11 tasks across DiscoEval and SciDTB-DE. The strongest results concern the relationships that clauses or sentences express. On the scientific-text benchmark’s relation semantics task, PredBERT-B reaches an accuracy of 72.92, compared with 68.75 for CONPONO and 64.93 for BERT-B. PredALBERT-L leads the reported comparison on several other relation tasks. The gains vary with the evaluation. The original encoders or CONPONO still lead on tasks such as sentence position, sentence ordering, and detection of scrambled text. The broad discourse coherence task in DiscoEval is an exception to that pattern and improves under predictive training.

The ablations help explain where the gains come from. Removing the connections that pass context downward hurts average accuracy on both benchmarks, even when the predictor can still carry information forward over time. Applying prediction at the final encoder layer alone also lowers the benchmark averages relative to the full PredALBERT-B configuration. A version restricted to the upper part of the encoder remains competitive with the full version. The experiments therefore support training with downward context and prediction at multiple depths, while leaving open which individual layers benefit from the added objective.

## Deep dive: Augmenting BERT-style Models with Predictive Coding to Improve Discourse-level Representations

Araujo and colleagues train BERT and ALBERT to predict future sentence representations, improving several tests of discourse relations. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a sentence vector has to carry

An encoder turns text into numerical features. A sentence vector collects features that another system can use to make a decision about the sentence. Its usefulness depends on the decision. A vector suited to recognizing that two sentences discuss the same subject may still offer little help in deciding whether one gives a reason for the other. The problem in this paper is to make information about such relationships accessible in the vectors, including when the encoder is frozen and a downstream classifier has to work with the features already available.

The authors use discourse to refer to the organization of text across units such as clauses and sentences. This includes questions about coherence, such as whether units are arranged in a plausible order, and questions about the meaning of their connection, such as whether they stand in a temporal or causal relation. The distinction matters even in a short passage. Recognizing that an explanation belongs with a claim and recognizing that it supplies a cause are different judgments. An encoder can supply useful evidence for one without supplying equally useful evidence for the other. These are questions of [discourse analysis](https://md.research.elamur.ai/free/en/topics/discourse-analysis/).

The paper situates the problem in self-supervised pretraining. In this setup, the text supplies the targets for training. For example, the system can hide part of an input and use the original text to score a prediction, without a person assigning a label to the example. The authors discuss causal, masked, and permutation-based objectives as established ways of learning from text. They argue that these objectives leave room for better representations of discourse. Their point concerns what the training exercise asks the encoder to preserve. A system can learn useful features for recovering a word while receiving a weaker signal about how the surrounding sentences are related. [Language models and pretraining](https://md.research.elamur.ai/free/en/topics/language-models/)

BERT uses a [transformer encoder](https://md.research.elamur.ai/free/en/concepts/transformer/), which builds contextual representations of its input through a stack of layers. Its masked language modeling objective asks the network to recover hidden tokens, the units into which the input text is divided. BERT also has a next-sentence prediction objective. That objective supplies a signal about sentence pairs, so it would be misleading to describe the authors’ proposal as introducing sentence-level supervision to BERT for the first time. The change is in the task and where it acts. The proposed network has to use context from a sequence of steps to predict features of upcoming text, and it does so at intermediate levels of the stack.

ALBERT supplies another starting point. Its sentence-order prediction objective focuses on coherence by training on the order of a pair of text segments. It gives the encoder a direct reason to retain information useful for recognizing order. The authors’ proposal asks for something broader from the training signal. They want the representation of upcoming text to be learnable from the preceding context, including features that help identify the connection between units. The resulting approach can be applied to either BERT or ALBERT, which lets the paper examine what happens when the same predictive design is attached to different pretrained encoders.

The paper also describes systems that optimize sentence vectors for a particular family of comparisons. [Sentence-BERT](https://md.research.elamur.ai/free/en/papers/reimers-2019-sentence-bert-sentence-embeddings-siamese/) uses paired encoding branches to learn vectors for textual similarity. [ConveRT](https://md.research.elamur.ai/free/en/papers/henderson-2020-convert-efficient-accurate-conversational-representations/) uses a dual encoder for response selection, where the aim is to identify a suitable reply. Both make useful sentence vectors central to the task. Their training signals serve particular applications. Araujo and colleagues seek a representation that can support several kinds of discourse judgment through the same frozen encoder.

Two lines of earlier work concentrate more directly on discourse. SLM trains by unshuffling sentences, so relationships among sentences become relevant to reconstructing their arrangement. CONPONO predicts surrounding sentences from an anchor and is the paper’s closest comparison. It already shows how to define a pretraining exercise using text around a given passage. The distinction Araujo and colleagues draw concerns how the context is used. CONPONO uses a single context vector to make predictions at several positions. Their own predictor advances through the text, updates its context along the way, and passes information down the network at each step.

#### Why predict at several levels?

Predictive coding provides the architectural motivation. As the authors describe the theory, higher levels of a processing hierarchy generate expectations for the information arriving at lower levels. The discrepancy between an expectation and incoming information supplies an error signal. The paper notes that research on human language has often considered expectations about upcoming words and also discusses the possibility of prediction within and across utterances. This motivates the choice to give the network an exercise that reaches across sentence boundaries. The experimental question is whether that exercise makes discourse information more accessible in a computational encoder.

Earlier computational work separates two parts of the design. PredNet makes predictions at different levels of a network and uses downward connections to predict future video frames. Its relevance is the combination of a hierarchy and prediction across time. Contrastive Predictive Coding, or CPC, supplies a way to predict future information in a latent space. A latent representation is a set of features produced by an encoder instead of an item supplied directly as a training label. A predictor can be trained to recognize which features belong to the continuation without reconstructing every detail of it. The paper combines the downward connections associated with the first line of work with a prediction loss taken from the second. [PredNet](https://md.research.elamur.ai/free/en/papers/lotter-2016-deep-predictive-coding-networks-video/) and [Contrastive Predictive Coding](https://md.research.elamur.ai/free/en/papers/oord-2018-representation-learning-contrastive-predictive-coding/)

There is a practical reason to place the extra training signal at several depths. An encoder already constructs different representations as the text moves through the stack. If prediction is attached at the top alone, lower layers contribute to it through the ordinary path of the encoder. When prediction is attached at intermediate depths, their representations also take part directly in the predictive exercise. At the same time, a downward connection lets the context calculation at a lower level depend on what has been assembled above it. Both changes can matter, so the method and the ablations treat the location of prediction and the direction of context flow as distinct design choices.

The authors’ goal also determines when they need those extra connections. They want representations that remain accessible through an ordinary encoder at evaluation time. The recurrent predictor is used to shape the encoder during pretraining, then left out when generating vectors for the probes. This makes the evaluation a test of what the encoder has learned to express. A successful classifier cannot rely on having the training-time recurrence available to follow the text or predict its continuation on the classifier’s behalf.

### The method, step by step

#### Turn a paragraph into a sequence of prediction steps

The unit in the architectural description is a sentence from a paragraph. The implementation groups adjacent sentences into longer inputs. The authors start from a conventional BERT input length of 512 tokens and explain that individual sentences are unlikely to fill that length. They therefore join 3 contiguous sentences for each input sequence, truncate sequences that are too long, and pad those that are shorter. Padding supplies positions to fill out the input length. Truncation drops excess material.

Adjacent groups share a boundary sentence. The paper illustrates this with a paragraph extending from sentence 1 through sentence 9. The initial group contains sentences 1, 2, and 3. The next group contains sentences 3, 4, and 5. The repeated sentence gives the groups continuity. When the paper describes predicting a future sentence, the implemented prediction step can therefore refer to an upcoming input group with some content already present at the preceding step. The target remains the encoder’s representation of that group as a whole.

The authors report that early validation experiments favored the overlapping arrangement for predictive ability. They hypothesize that a shared sentence helps the predictor anticipate material in the following group. This is an empirical design choice made during development. The paper’s main benchmark tables evaluate the resulting system. They do not give a separate set of downstream scores for replacing overlapping windows with disjoint ones, so it is useful to keep the window design separate from the layer and pathway changes tested in the formal ablations.

Pretraining sets the horizon to 2 future sequences. The first input group is encoded, and the recurrent predictor uses its representations to anticipate the group that follows. When the following group is processed, its encoder representations supply the targets for that comparison. Its representations also support the next prediction step. The procedure repeats to reach the specified horizon. In the authors’ analogy to sequence-to-sequence learning, what matters is that the predictions are made in successive steps and the context advances with the input. [Sequence to Sequence Learning](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/)

Predictive pretraining on contiguous text The steps in order.

#### Read out the current text at each depth

The encoder starts from pretrained BERT or ALBERT weights. Each input group passes through its transformer layers. At every participating depth, the system takes the vector at the special `[CLS]` position. That position supplies a fixed place to read out a representation of the input, even when the input contains several sentences. A vector from this position is available at every layer, so the predictor has a local feature vector for each layer at the current timestep.

Two axes organize the computation. Time moves forward from one input group to the next. Depth runs through the layers of the transformer. The encoder builds the ordinary features of the current input by passing information up through its stack. The added context computation can then use information from higher layers as it works downward. On the time axis, the predictor can use context saved from the preceding input. These directions perform different jobs. A message from above describes the current step at a higher depth. A message from the past describes what the same depth has carried across steps.

The encoder part of the paper’s first equation can be written separately as follows.

```
zₜˡ = gₑₙ꜀(sₜ)
```

Here `sₜ` is the text at timestep `t`. It denotes a sentence in the architectural description and takes the form of a contiguous input group in the implementation. The function `gₑₙ꜀` is the BERT or ALBERT encoder. The vector `zₜˡ` is its `[CLS]` representation for that input at layer `l`. The layer index `l` runs from `1` to `L`, where `L` is the encoder’s total depth. The equality says that the representation comes from encoding the observed text at the indicated depth. The parentheses enclose the input to the encoder.

These vectors have a dual role during training. Once the text at a step becomes available, its vectors provide evidence for the next forecast. They can also be used as targets to assess a forecast from the preceding step. In both roles, the vector comes from the encoder and uses the same layer index. This links prediction to the particular representation that the downstream experiment will later extract. A lower-layer forecast is evaluated against the actual lower-layer representation of the upcoming input, and the analogous comparison takes place at the other participating layers.

#### Build a context from the layer above and the preceding step

The additional module uses a gated recurrent unit, or GRU, as its autoregressive component. A recurrent component carries a state over time and updates that state when a new input arrives. The GRU provides the mechanism for learning how much earlier context to retain and how to incorporate the new information. The paper cites the [RNN encoder–decoder work](https://md.research.elamur.ai/free/en/papers/cho-2014-learning-phrase-representations-rnn-encoder/) for the GRU. In this application, the context update also accepts information from above, giving the recurrence a route across depth as well as across time.

The second part of the first equation describes the three sources of information in this update.

```
cₜˡ = gₐᵣ(zₜˡ, cₜˡ⁺¹, cₜ₋₁ˡ)
```

The output `cₜˡ` is the context vector for time `t` at layer `l`. The function `gₐᵣ` is the autoregressive context update. Its first argument, `zₜˡ`, is the encoder vector for the current input at that layer. Its second argument, `cₜˡ⁺¹`, is the current context at layer `l+1`, the layer immediately above it. Its third argument, `cₜ₋₁ˡ`, is the context from time `t−1`, the preceding step, at layer `l`. The commas separate the arguments of the update. The higher-layer term describes the top-down link wherever a layer above is available.

The current encoder vector says what the system has observed at this depth. The earlier context carries information from the preceding steps into the update. The same-step upper context provides information computed higher in the hierarchy. A layer can thus use local features and an account of the surrounding text that has already been integrated above it. Because the upper layer’s context can carry its own earlier state, the downward input can reflect more than the features of the current group in isolation.

The lowest layers need the upper contexts to be available before they can use them. The authors’ diagram depicts this by showing the current sentence being represented by the encoder and then showing the context computation descending the hierarchy. The resulting context vectors sit alongside the ordinary encoder representations. This matters for understanding the evaluation. The context vectors make the forecasts during training. The ordinary encoder vectors are what survive as downstream features once the prediction branch is removed.

The authors share the autoregressive parameters across layers for efficiency. Sharing the update parameters still allows each layer to produce its own context. Different depths supply different encoder vectors and have their own preceding context values. The method thereby applies a common kind of update across the hierarchy while allowing its outputs to vary with the layer and the text. The paper reports the parameter counts of the resulting systems separately for training and inference.

#### Predict the features that will be observed next

A predictive function turns each context vector into a forecast. It forecasts the upcoming encoder representation at the corresponding depth. This makes the target available from the input data itself. After the upcoming group is encoded, the system can compare the forecast with the features produced from the group. Human-supplied discourse labels play no part in constructing these targets.

```
ẑₜ₊₁ˡ = f(cₜˡ)
```

The symbol `ẑₜ₊₁ˡ` denotes the predicted encoder vector for layer `l` at time `t+1`. The hat distinguishes a prediction from the observed encoder vector `z` at that position. The function `f` is the predictive transformation, and `cₜˡ` is its context input from time `t` at layer `l`. The `+1` indicates that the target is the next timestep. The parentheses enclose the argument to the prediction function.

There is a practical difference between this operation and asking the system to produce the continuation as text. A textual continuation would require decisions about particular words and their order. Here success is defined in the encoder’s feature space. The forecast only has to match the representation of the upcoming group under the loss used during training. The authors describe this as a generative use of next-sentence prediction because the network produces a forecast vector. The experiments give no text completions to assess, and the forecast is used to improve representation learning.

The process is sequential even though all the text needed for training is available in the corpus. At the first step the forecast uses the current context. The next observed group supplies the target for that forecast. Its encoded features also let the module form the context used for the following step. This is the distinction from making several predictions from a single context vector. It also specifies how to read the training horizon. A later prediction in the illustrated procedure can use the intervening observed group. The horizon measures the length of the predictive sequence used in training.

#### Make the matching vector stand out

The authors train the forecast with InfoNCE, the contrastive loss used in CPC. Contrastive training compares a matching pair with competing pairs. For a given forecast, the positive pair consists of the forecast and the encoder vector at the same target time and layer. Negative pairs hold the forecast fixed and replace the target with other encoded vectors from the batch at that layer. The score of a pair is the dot product of its vectors. This supplies a single similarity score that can be used to favor the actual target over the alternatives.

```
Lₙₛₘ = −∑ᵢⱼ log [exp((ẑᵢʲ)ᵀ zᵢʲ) / ∑ₘ exp((ẑᵢʲ)ᵀ zₘʲ)]
```

The symbol `Lₙₛₘ` is the next-sentence modeling loss. The index `i` identifies the target time position and `j` identifies the layer. The predicted vector is `ẑᵢʲ`, and the corresponding encoder vector is `zᵢʲ`. The index `m` runs over the candidate target vectors used in the denominator, and `zₘʲ` is the candidate indexed by `m` at layer `j`. When `m` is the matching index `i`, the candidate forms the positive pair. Other candidates provide the negative pairs. The superscript `ᵀ` transposes the predicted vector so that multiplication by a candidate vector gives the dot product. The function `exp` exponentiates that score. The division normalizes the positive pair’s exponentiated score by the sum over all candidates, including the match. The function `log` is the logarithm. The outer sum adds the terms over prediction positions and layers. The leading minus sign makes a higher normalized score for the match yield a lower loss.

One way to understand the loss is to imagine ranking several possible target vectors for the same forecast. If the forecast gives the true target a high score and also gives equally high scores to several alternatives, its normalized score for the true target is reduced. Training favors a forecast that discriminates. The loss consequently depends on the alternatives available in the batch. Vectors that are easy to distinguish from the target pose a different training problem from vectors that express related subject matter or similar sentence structure. The authors use batch negatives as a simple choice and leave more elaborate selection for possible improvement.

The paper pairs this new objective with masked language modeling. In that task the encoder must supply information for recovering hidden tokens. The two losses act together during training.

```
L = Lₙₛₘ + Lₘₗₘ
```

Here `L` is the total objective to minimize, using the same letter that denotes encoder depth when it appears as a layer limit. The term `Lₙₛₘ` denotes next-sentence modeling. The term `Lₘₗₘ` denotes masked language modeling. The plus sign combines the two terms with the coefficients implicit in the displayed equation. Masked token recovery retains a training signal at the token level while the contrastive objective adds a signal across successive inputs.

#### Continue pretraining, then keep the encoder

The authors train on Wikipedia and [BookCorpus](https://md.research.elamur.ai/free/en/papers/zhu-2015-aligning-books-movies-towards-story/), the sources they also identify with pretraining for their comparison systems. Text comes from paragraphs so that the ordering and overlap of the input groups are inherited from contiguous passages. The encoder is initialized from the corresponding pretrained checkpoint. The autoregressive component starts with random weights. The experiment therefore studies the addition of predictive training to existing BERT and ALBERT weights.

The authors implement the systems with Hugging Face’s [Transformers library](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/). They train for 1M steps at a batch size of 8, using Adam with weight decay and a learning rate of 5e-5. For masked language modeling they draw a new masking pattern each time a sequence is presented and randomly mask 10% of its tokens. Dynamic masking allows the same text to provide different recovery targets on different presentations. These settings are part of the training recipe whose final representations are evaluated.

The system names identify the starting architecture and size. PredALBERT-B extends ALBERT base, PredALBERT-L extends ALBERT large, and PredBERT-B extends BERT base. PredALBERT-B has 12 layers and 17.7M parameters during training, with 11.7M retained for inference. PredALBERT-L has 24 layers and goes from 28.3M training parameters to 17.7M inference parameters. PredBERT-B has 12 layers and goes from 114.2M training parameters to 109.5M inference parameters. These figures describe the parameter budget at the two stages, including the distinction between training with the prediction apparatus and extracting features with the encoder.

At evaluation, the authors discard the added top-down machinery. They take the `[CLS]` vector from each encoder layer and average these vectors to form the sentence representation for the probes. This averaging operates over depths for a given input. It differs from the later averaging of accuracies across evaluation runs. The probing classifier trains on sentence representations while the weights of the encoder stay fixed. Any advantage that remains in that setting is accessible in the encoder features and the way they are pooled.

### Experiments and results

#### What the two benchmarks ask

DiscoEval supplies several ways to ask whether a sentence representation carries discourse information. Its Sentence Position task, SP, concerns where a sentence belongs in a larger passage. Binary Sentence Ordering, BSO, asks about the arrangement of a pair. Discourse Coherence, DC, tests coherence directly, and Sentence Section Prediction, SSP, concerns the section to which a sentence belongs. The authors group these as coherence-oriented classification tasks. Their targets emphasize different kinds of textual evidence. Information associated with a section can help on SSP, for example, while relative arrangement is central to BSO.

The other part of DiscoEval concerns the type of relation between units. The Penn Discourse Treebank evaluations distinguish explicit relations, PDTB-E, from implicit ones, PDTB-I. An explicit relation has an overt expression of the connection, whereas identifying an implicit one requires evidence beyond a marker that directly announces it. The Rhetorical Structure Theory task, RST, also calls for relation classification. These tasks require a classifier to choose among relation categories. They address a different question from deciding whether a larger sequence seems coherent overall.

SciDTB-DE examines representations of scientific text. Its Swapped and Scrambled tasks test coherence at the clause or sentence level by looking for disturbed order. Its relation tasks ask whether a discourse relation can be detected, BinRel, and what kind of semantic relation is expressed, SemRel. Together they let the paper examine whether a technique that helps recognize relationships also helps flag rearrangements. They also provide a setting outside the Wikipedia and book text used for pretraining.

The evaluation is a form of [probing](https://md.research.elamur.ai/free/en/topics/interpretability/). A probe trains a classifier on features from an encoder whose weights remain fixed. Here that classifier is logistic regression, which learns a mapping from the pooled encoder features to the benchmark labels. The same broad procedure applies to the baselines and the predictive variants. The setup rules out task-specific updates to the encoder as an explanation of score differences. A score still depends on the representation, the way it is pooled, and the classifier trained to read it. These are therefore [evaluation benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) for accessible features under a particular protocol.

The authors use the original DiscoEval code and report that it produces different scores for CONPONO from those in CONPONO’s own paper. For SciDTB-DE they follow the scientific-text benchmark’s use of [SentEval](https://md.research.elamur.ai/free/en/papers/conneau-2018-senteval-evaluation-toolkit-universal-sentence/). They rerun all baseline evaluations so the comparisons use the same procedure. The results table reports mean accuracy across 10 trials with different seeds. The mean describes repeated runs of the probe evaluation and the paper does not assign a separate seed average to independent pretraining runs.

#### Which comparisons answer which questions

The base and large ALBERT checkpoints and the BERT base checkpoint supply direct counterparts for the predictive systems. PredALBERT-L compared with ALBERT-L, for instance, asks how the full predictive training recipe changes performance relative to the starting encoder of the corresponding size. The parallel comparisons for ALBERT base and BERT base show whether the pattern repeats with other starting architectures or budgets. Because the original checkpoints have not undergone the same predictive training continuation, these comparisons measure the result of the overall recipe.

CONPONO is the comparison with an existing discourse-oriented objective. The evaluated checkpoint was pretrained to predict 2 upcoming surrounding sentences. Its role is especially important on relation tasks, where a comparison with the corresponding original encoder alone would say little about whether the approach is competitive with another attempt to train discourse-aware representations. The authors call CONPONO their main baseline. On some individual tasks another baseline has the higher reported score, so the rank on each task is more informative than a single baseline label.

BERT and ALBERT also give the paper ways to discuss inference size. PredALBERT-B and PredALBERT-L can be competitive with the larger BERT and CONPONO systems while keeping the smaller parameter budgets of their ALBERT encoders at inference. The reported accuracy comparison and the parameter comparison describe different properties. A compact retained encoder can still require an added module during training, and the paper reports that overhead separately. Choosing a comparator by encoder family, objective, or inference size answers a different question in each case.

#### Discourse coherence and relation classification

DiscoEval’s DC task is one of the clearest gains. PredBERT-B achieves 62.25 mean accuracy. The two predictive ALBERT systems also score above the original encoders and CONPONO, with PredALBERT-B at 61.69 and PredALBERT-L at 61.87. This is a result about coherence classification under DiscoEval’s protocol. Its presence alongside losses on the other ordering-oriented tasks is a reason to keep the individual task names in view.

DiscoEval Discourse Coherence mean accuracy Each predictive variant leads its corresponding original encoder, with PredBERT-B highest overall.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| ALBERT-B | 53.89 |
| ALBERT-L | 53.85 |
| BERT-B | 59.27 |
| CONPONO | 58.62 |
| PredALBERT-B | 61.69 |
| PredALBERT-L | 61.87 |
| PredBERT-B (this paper) | 62.25 |

PredALBERT-L supplies the highest accuracy in the table on both Penn Discourse Treebank evaluations. On PDTB-E it scores 42.66, with BERT-B at 42.52 and CONPONO at 41.37. On PDTB-I it reaches 42.92, with BERT-B at 41.97 and CONPONO at 41.27. The explicit result sits close to BERT-B, while the implicit scores show a clearer lead for the large predictive ALBERT. PredBERT-B illustrates why those outcomes must be reported separately. Its PDTB-I accuracy of 42.20 exceeds the BERT-B result, while its PDTB-E accuracy of 40.10 falls below it.

On RST, PredALBERT-L scores 59.93, followed among the strongest comparisons by CONPONO at 59.74 and BERT-B at 59.63. PredALBERT-B reaches 58.54, compared with 54.03 for ALBERT-B. Thus a gain over a matched encoder can be meaningful even when another architecture still leads the comparison. PredBERT-B’s RST accuracy is 59.58, slightly below its direct baseline. Improvements on the relation group as a whole do not imply that the same predictive variant improves every relation task.

On the scientific-text tasks, PredALBERT-L has the highest reported BinRel accuracy at 78.11. CONPONO scores 77.86, and PredALBERT-B reaches 77.83. ALBERT-L scores 72.03. These numbers show both scales of comparison in the same task. PredALBERT-L is close to the discourse-oriented baseline and further ahead of its starting encoder. PredBERT-B scores 76.21, close to BERT-B’s 76.17, so the BERT variant’s strong result on relation semantics does not carry over in the same form to binary relation detection.

SemRel shows a different ranking. PredBERT-B leads at 72.92, and PredALBERT-L scores 70.15. CONPONO records 68.75. PredALBERT-B improves on its own baseline, but its 65.49 places it below CONPONO. The results support the paper’s emphasis on relation detection and classification while also showing how much the result depends on the specific task and encoder. The strongest configuration for identifying a relation’s meaning is different from the strongest configuration for the binary relation probe.

SciDTB-DE Relation Semantics mean accuracy PredBERT-B leads the comparison, and PredALBERT-L also exceeds CONPONO.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| ALBERT-B | 56.32 |
| ALBERT-L | 54.86 |
| BERT-B | 64.93 |
| CONPONO | 68.75 |
| PredALBERT-B | 65.49 |
| PredALBERT-L | 70.15 |
| PredBERT-B (this paper) | 72.92 |

For the group of improved tasks discussed in the results, the authors report that PredALBERT-L leads CONPONO by ∼1.34 accuracy points on average and PredBERT-B by ∼0.94. They describe PredALBERT-B as competitive with CONPONO across this group. In the corresponding comparisons with the original encoders, they report average gains of ∼3.92 points for PredALBERT-B over ALBERT-B, ∼7.43 for PredALBERT-L over ALBERT-L, and ∼1.46 for PredBERT-B over BERT-B. These are the authors’ averages for the highlighted tasks. Treating them as benchmark-wide gains would fold in tasks with a different pattern of results.

The paper also reports Stuart–Maxwell tests for PredALBERT-L. It gives p = 0.009 for the comparison with ALBERT-L and p = 0.05 for the comparison with CONPONO. The authors report these as evidence of a difference between the paired systems. The individual accuracy entries still carry the information about effect size and direction. The tests reported for PredALBERT-L do not assign a separate significance result to each small gap in the benchmark table.

#### Where position and order remain difficult

CONPONO achieves the strongest reported SP and BSO accuracies at 54.52 and 72.81. PredALBERT-L reaches 51.70 and 70.35 on those tasks. The same predictive encoder improves on ALBERT-L on the relation probes, so these results establish a genuine tradeoff within a single configuration. It is possible for the representation to support better judgments about the meaning of a relationship while making a classifier less successful at recovering position or order.

SSP shows a similar pattern. CONPONO records 80.87 on DiscoEval, while PredALBERT-L records 79.85 and ALBERT-L records 80.45. On SciDTB-DE’s Swapped task, PredALBERT-L and ALBERT-L both score 92.67. The tie is relevant because the broad characterization of coherence losses can hide cases with preserved performance. For Scrambled, ALBERT-L leads at 87.79, while PredALBERT-L scores 84.79. PredBERT-B scores 80.18 compared with 86.91 for BERT-B. Those results are further evidence that predictive training helps certain features more than others.

The authors explain the order and coherence results by looking at the original training tasks. ALBERT explicitly learns sentence order. They associate BERT’s pair objective with topic information and describe CONPONO as drawing on order and topic. If an evaluation rewards the cues that one of those objectives emphasizes, the baseline starts with a training signal closely aligned with the probe. The paper offers this as an interpretation of the pattern. The comparison does not isolate the contribution of each cue or follow individual examples through each training objective.

The abstract’s 6 out of 11 description is best read with the result categories in mind. The authors highlight DC and the relation evaluations, including the distinct explicit and implicit Penn Discourse Treebank scores. Across the table, different predictive configurations provide the strongest result on different tasks. The scientific-text and DiscoEval results together support a targeted improvement in discourse features. They give a more qualified answer for discourse competence taken as a whole.

### What the ablations show

#### Keep prediction and change where it happens

The formal ablations use PredALBERT-B as the Default. In that configuration, recurrence and downward context run from layer 12 to layer 1. The comparisons remove or restrict parts of the predictive mechanism, and the paper reports task accuracies and averages for both benchmarks. Unlike a comparison with an original ALBERT checkpoint, these tests preserve more of the predictive training design. They can therefore help identify which architectural changes are associated with the observed performance.

The Half configuration keeps the GRU and predictive layer from layer 12 to layer 6. On DiscoEval it averages 57.48, compared with 57.45 for Default. On SciDTB-DE it averages 79.94, compared with 79.80. The paper reports the leads as ∼0.03 and ∼0.14 points, respectively. These configurations have nearly equal benchmark averages even though Half restricts the depths with direct predictive computation.

The averages conceal useful disagreements. Half raises DiscoEval DC from 61.69 to 62.71, while its explicit and implicit PDTB scores of 40.26 and 40.67 are below Default’s 40.71 and 41.40. On SciDTB-DE, Half reaches 79.73 on BinRel compared with Default’s 77.83. The ranking reverses on SemRel, where Default records 65.49 and Half 63.54. The depth restriction therefore changes which kinds of relation evidence are most accessible in the final pooled vectors. The ablation offers no single ranking of the two settings that serves every task.

The Last configuration keeps the GRU and prediction layer only at layer 12. Its DiscoEval average is 56.54 and its SciDTB-DE average is 77.39. The authors report reductions of ∼0.91 and ∼2.41 points relative to Default. DiscoEval DC again shows why the averages have to be interpreted with the task scores. Last reaches 62.88 on DC, above both Default and Half in the PredALBERT-B ablation. On SciDTB-DE SemRel, Last drops to 59.51. Concentrating the prediction exercise at the top can preserve or improve one coherence score while weakening the representation for other uses.

These two comparisons change a bundle of properties. Restricting prediction to fewer layers changes where the context is formed, where explicit targets are used, and how far the downward pathway can extend. The comparisons establish that the full and upper-layer configurations work better on average than the last-layer version in this setup. They give weaker grounds for locating where a particular kind of feature originates. Because the final probe averages vectors from the encoder layers, its score gives no direct account of which layer supplies the feature it uses.

#### Keep recurrence and remove downward context

A separate ablation removes the top-down connections across the Default network. Its context update takes the current encoder representation and the preceding context at the same layer.

```
cₜˡ = gₐᵣ(zₜˡ, cₜ₋₁ˡ)
```

The vector `cₜˡ` is the updated context at time `t` and layer `l`. The autoregressive update `gₐᵣ` receives `zₜˡ`, the current encoder vector at that layer, and `cₜ₋₁ˡ`, the same layer’s context from the preceding step. The commas delimit the inputs to the update. Temporal recurrence is still present. The current context at the layer above has been removed from the arguments, so the recurrence at each depth uses its own inputs and history.

This change reduces the DiscoEval average to 54.56 and the SciDTB-DE average to 75.37. The authors report drops of ∼2.89 and ∼4.43 points relative to Default. The loss is visible across tasks rather than being confined to a single difficult relation label. DiscoEval Sentence Position falls to 45.67, and SciDTB-DE Swapped falls to 88.81. Both are below their Default values of 50.59 and 92.51. The mixed results of Half and Last make the breadth of this decrease particularly informative. The recurrence on its own does not preserve the accuracy obtained with downward context.

PredALBERT-B ablations on SciDTB-DE average accuracy The upper-layer configuration edges ahead of the full version, while removing downward context produces the lowest average.

**The numbers**

| System or setting | average accuracy % |
| --- | --- |
| Default across layers | 79.80 |
| Half with upper layers (this paper) | 79.94 |
| Last layer only | 77.39 |
| Without top-down connections | 75.37 |

The removal experiment is the paper’s most direct evidence about the value of the pathway. The predictive loss still has access to vectors at several depths and the recurrence can still reach back in time. Performance drops when the context at each depth loses access to current context from above. In combination with the Half result, this supports downward communication in the tested architecture while leaving substantial flexibility about its extent. The experiment concerns PredALBERT-B during pretraining. It does not measure an inference-time benefit from adding recurrence to a downstream classifier.

The authors relate the uncertain layer choice to earlier research on the kinds of features encoded at different depths. If syntactic and semantic information are unevenly distributed through the encoder, predictive training might benefit from treating those types of information differently. The ablations motivate that question through the mixed task-level results of Half and Last. They do not identify syntax-specific or semantics-specific predictors. [What Does BERT Learn about the Structure of Language?](https://md.research.elamur.ai/free/en/papers/jawahar-2019-what-does-bert-learn-about/)

#### Look at the sentences that the vectors bring together

The paper also uses a qualitative check on PredBERT. The authors take sentences with known discourse relations from the MIT Discourse Relations Annotation Guide and use them as queries against unlabeled Gutenberg sentences. They represent the sentences with the same layer pooling used for the probes. They rank candidates by cosine similarity, which compares the directions of the vectors, and inspect the top 3 results for each query. This lets them ask whether the representation groups sentences by a relation even when the subject matter changes. [Semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/)

The temporal example uses a query about recognizing a good meal when eating it. One retrieved sentence presents succession through an expression of what happened after a meal. Another uses a form of `when` to indicate that circumstances coincide. A close match in phrasing about recognizing a particular kind of person is judged by the authors to lack the temporal relation. The neighbors show both plausible relation evidence and a failure case in which a similar construction yields an inappropriate match.

The comparison query is about a company’s shares rising while the wider market declines. A retrieved sentence about markets and bonds matches its vocabulary in spite of lacking the intended comparison. Other retrieved sentences concern personal behavior or feelings about money and express a counter-expectation through `but`. This illustrates a distinction the supervised score alone leaves implicit. Candidates can reach the top of a similarity ranking through shared content words or through how their clauses connect, with both kinds of match present in the same result set.

For contingency, the query explains a refusal to pay a cobbler the full amount by citing the quality of the work. The retrieved sentences contain vocabulary related to payment, reward, or economic circumstances. The authors identify a cause relation in two of the candidates, with the causal link expressed in different ways. They judge the remaining candidate to be temporal. These examples give a concrete picture of what it would mean for the vectors to encode something about discourse roles. The simultaneous presence of related vocabulary makes it difficult to separate relation similarity from lexical similarity using these examples alone.

The retrieval exercise complements the probes because it gives examples of what the vector geometry brings together without fitting a classifier for that lookup. Its conclusions are correspondingly qualitative. The paper shows particular cases in which relation matches appear among the near neighbors and particular cases in which they do not. The benchmark scores remain the evidence for how consistently the features support trained discourse classifiers.

### Limitations

#### Limits the authors identify

The authors explicitly leave the choice of layers unresolved. Removing all downward links hurts performance, but limiting the mechanism to the upper portion of PredALBERT-B preserves the average performance of the full configuration. The results establish that prediction at several depths can be useful under the tested conditions. They provide no map of which depths need the mechanism for each kind of discourse feature. The authors suggest specialized treatment of syntactic and semantic information as a direction for further study.

They also identify their choice of negative samples as simple. A target has to compete against vectors obtained from the training batch. The authors suggest that more elaborate generation of negatives could improve the results. The paper supplies no comparison among negative sampling methods, so the gains concern the batch-based formulation actually tested. The possible benefit of selecting different competitors remains a hypothesis.

The discussion recognizes that improvements are concentrated. The authors draw attention to relation tasks and DC, alongside weaker results on several tasks tied to order or coherence. Their explanation invokes the fit between those tasks and the original pretraining objectives of the baselines. This explains why outperforming a baseline on one dimension of discourse need not imply an advantage on another. The explanation is offered for a pattern across tasks, without a separate experiment that decomposes each original objective into its effect on the final classifier.

#### Limits of the experimental setup

The contrastive targets are derived from groups with overlapping text. A predictor can use the shared sentence as a cue. The paper’s early validation observation gives a reason to prefer overlapping groups for its predictive task, but the benchmark table cannot tell us how much downstream performance comes from that overlap. In particular, a gain in classifying a discourse relation does not demonstrate that every successful forecast required the system to infer a relationship across wholly unseen text. The training objective can reward several ways to distinguish the correct target.

The main comparisons change more than the downward pathway. A predictive variant continues training from an existing checkpoint using the grouped inputs, the contrastive objective, and the stated masking procedure. Its original-encoder baseline comes from the pretrained checkpoint used for probing. The resulting comparison measures the benefit or cost of the recipe as a whole. The no-top-down ablation narrows the causal question considerably, but its evidence applies directly to the PredALBERT-B setup used for that ablation. The paper does not report the corresponding removal experiment across all the predictive encoders.

The sweep over layer coverage also has a limited resolution. The Default, Half, and Last comparisons change groups of layers together. A probe pools the resulting vectors before making a prediction. Hence, even when a task changes sharply under an ablation, the score cannot identify which layer supplied the original signal or whether the ablation altered learned features elsewhere in the encoder. The paper’s results are compatible with several distributions of discourse information across depth.

Accuracy from a frozen linear probe establishes that useful features can be read in this evaluation setting. It does not show how the encoder would fare if trained end to end for those tasks or used in an application that requires reasoning across a long document. The downstream experiments also leave the recurrent predictor out. They test what remains in the encoder after predictive training and supply no downstream measure of the quality of forecasts made at deployment.

The reported parameter counts establish a difference between training and inference budgets. They do not measure training time, memory usage, or execution speed. The paper’s efficiency result is therefore strongest as a statement about retained parameters. A smaller encoder that performs well on the probes is attractive on that measure, while the added computation used to obtain its weights remains a separate question.

The retrieval examples have their own evidential limit. Their labels guide the authors’ reading of selected nearest neighbors, and the displayed results include both plausible relation matches and matches that can be explained by wording or topic. The exercise supplies no corpus-wide estimate of how often a neighbor preserves the query relation. Taken together with the frozen probes, it supports the claim that relation information is accessible in the vectors. It leaves open how much of that information depends on explicit markers, topical associations, or patterns that generalize beyond the examples and benchmarks used here.

Finally, predictive coding is the motivation for the design. The empirical comparisons concern a particular recurrent network, contrastive training objective, and set of discourse tasks. They offer evidence about when this architecture learns useful features. They cannot adjudicate the psychological account of how people anticipate upcoming language.

### What came after

[Evaluation Benchmarks for Spanish Sentence Representations](https://md.research.elamur.ai/free/en/papers/araujo-2022-evaluation-benchmarks-spanish-sentence-representations/) places the citation in the context of evaluating sentence representations for Spanish. The connection is to the measurement problem that motivated the earlier paper’s use of frozen probes. Having a sentence vector available leaves open which properties a downstream classifier can recover from it. A benchmark makes that question concrete by specifying what the reader of the vector must decide. The citation establishes a connection to this evaluation work. It leaves open whether the Spanish benchmarks include a direct test of the recurrent predictor or the same set of discourse relations.

[A Review of Incorporating Psychological Theories in LLMs](https://md.research.elamur.ai/free/en/papers/liu-2026-review-incorporating-psychological-theories-llms/) cites the work in a survey whose subject is the incorporation of psychological theories into language systems. Araujo and colleagues give a concrete instance of that move. They take the general idea of higher levels sending expectations downward and turn it into a trainable pathway, with future-vector prediction as the exercise and discourse probes as the test. The review citation connects the work to that broader question. It does not establish another experimental result for predictive coding or a new test of the architecture.

The two links reflect different questions raised by the paper. One concerns how to evaluate what a sentence representation carries in a particular language. The other concerns how a theory of prediction can inform the design of a computational system. The original experiments are where the evidence for this particular design lies. They show that adding predictive context during training can improve a frozen encoder’s relation features, with the strongest support coming from the relation probes and from the loss of performance when downward context is removed.

## Cite

Cite as Vladimir Araujo, Andrés Villa, Marcelo Mendoza, Marie-Francine Moens and Alvaro Soto. 2021. Augmenting BERT-style Models with Predictive Coding to Improve Discourse-level Representations. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2021.emnlp-main.240](https://doi.org/10.18653/v1/2021.emnlp-main.240)

```bibtex
@inproceedings{araujo2021augmenting,
  title = {{Augmenting BERT-style Models with Predictive Coding to Improve Discourse-level Representations}},
  author = {Vladimir Araujo, Andrés Villa, Marcelo Mendoza, Marie-Francine Moens and Alvaro Soto},
  booktitle = {Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.240},
  url = {https://doi.org/10.18653/v1/2021.emnlp-main.240}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
