Introduction
Transformer-based models like BERT have revolutionized natural language processing by mastering word and sentence-level semantics. However, they often struggle with discourse-level representations—the "connective tissue" that defines how sentences relate to form a coherent narrative. Standard pre-training objectives like Masked Language Modeling (MLM) focus on local context, while Next Sentence Prediction (NSP) is a binary task that often fails to capture deep functional relationships, such as causality or elaboration. This research introduces PredBERT and PredALBERT, which leverage "Predictive Coding" (PC) from neuroscience to bridge this gap.
Methodology
The proposed framework treats the model as a "prediction machine" that anticipates future sensory input. To implement this in a Transformer, the authors introduce a top-down pathway using an autoregressive GRU ($g_{ar}$) that operates across layers.
As illustrated in Figure 1, for a given sentence $s_t$, the model generates a context vector $c_t^l$ at each layer $l$. This vector is used to predict the latent representation (specifically the [CLS] token vector) of the subsequent sentence $s_{t+1}$. The training objective utilizes a Contrastive Loss (InfoNCE) to maximize the similarity between the predicted vector $\hat{z}_{t+1}^l$ and the actual representation $z_{t+1}^l$, while distinguishing it from "noise" sentences in the same batch. This predictive objective is combined with standard MLM. Crucially, the top-down connections are only used during pre-training; for inference, these modules are discarded, resulting in a standard Transformer architecture that is no more computationally expensive than the original.
Experimental Setup
Models were pre-trained on the BookCorpus and English Wikipedia datasets. Evaluation was conducted across two major discourse-related benchmarks:
- DiscoEval: A suite of 7 tasks including sentence position (SP), binary ordering (BSO), and complex rhetorical relation classification (PDTB and RST).
- SciDTB-DE: A set of 4 tasks focused on discourse properties in scientific abstracts, such as identifying swapped units or detecting semantic relations between clauses.
Results and Discussion
The "Pred" variants demonstrated significant improvements over vanilla BERT and ALBERT models, particularly in tasks requiring deep semantic understanding of sentence connections.
As shown in Figure 3, PredALBERT-L outperformed the strong CONPONO baseline by an average of 1.34 points on tasks involving discourse relations (PDTB and RST). In some instances, the "Pred" models showed gains of up to 7.43 points over standard architectures. These results suggest that predicting future sentences in a high-dimensional latent space forces the model to capture abstract semantic relationships more effectively than raw text prediction.
However, the models showed relative weakness in simple positional tasks like Sentence Position (SP) and Binary Sentence Ordering (BSO). The authors hypothesize that because the objective is generative and focuses on "what comes next," it may neglect specific structural cues used for absolute positioning. Additionally, ablation studies confirmed that removing the top-down Predictive Coding connections severely degraded performance, highlighting the importance of the recursive flow in refining understanding across levels of abstraction.
Conclusion
By augmenting Transformers with brain-inspired Predictive Coding, this research demonstrates that top-down latent prediction significantly enhances discourse-level understanding. While the model excels at detecting complex rhetorical relations, future work may address positional weaknesses by refining how different layers specialize in surface versus semantic information. The approach maintains inference efficiency while providing a more sophisticated mechanism for understanding the functional relationships that bind language together.
Summary updated