Probing Script Knowledge from Pre-Trained Models

Zijian Jin, Xingyu Zhang, Mo Yu, Lifu HuangarXiv 2022 · DOI

Introduction

Humans navigate the world using "scripts"—mental schemas of stereotyped event sequences, such as the steps involved in eating at a restaurant or doing laundry. This procedural knowledge is fundamental for reasoning, story generation, and daily interaction. While Pre-trained Language Models (PLMs) like BERT have revolutionized NLP, it remains unclear how much of this schematic knowledge they internalize during pre-training. This paper investigates whether models understand the internal structure of a script: specifically, what events belong to a task, where the task begins, and how the events flow chronologically.

Probing Methodology

To evaluate BERT-base-uncased, the authors designed three distinct probing tasks aimed at different facets of script knowledge:

  1. Inclusive Sub-event Selection: Tests if a model can identify if a sub-event (e.g., "Gather dirty clothes") belongs to a main event (e.g., "Clean laundry"). This uses a Masked Language Model (MLM) head to predict "include" or "except."
  2. Starting Sub-event Selection: Identifies the logical first step of a script using a sequence classification approach based on the [CLS] token representation.
  3. Sub-event Temporal Ordering: Determines the chronological order between two sub-events by predicting the tokens "before" or "after" via the MLM head.
Visual representation of the three probing tasks: inclusive knowledge, temporal knowledge, and starting sub-event selection.

The researchers compared four model configurations: the raw BERT Pre-trained model (zero-shot), BERT Fine-tuning (full-parameter updates), BERT P-tuning (tuning continuous prompt tokens), and BERT P-tuning-Freeze (tuning prompts while freezing model weights).

Datasets

The study utilizes a benchmark compiled from three script-related datasets: DeScript (crowdsourced sequences), OMICS (indoor robot knowledge), and Stories (narrative sequences). The final dataset includes 98 main events for training (comprising over 4,600 scripts) and 60 main events for evaluation. Negative samples for the inclusive selection task were generated by pulling sub-events from unrelated scripts.

Key Results and Analysis

The experimental results reveal a significant disparity in how BERT handles different types of script knowledge.

Performance metrics for inclusive selection, starting sub-event selection, and temporal ordering across different BERT configurations.

Temporal Logic is Inherent

One of the most striking findings is that BERT is natively proficient at temporal ordering. Even the pre-trained version achieved a 63.79 Rouge-L F1, a score that did not improve significantly with fine-tuning. This suggests that chronological logic is effectively captured during standard pre-training, likely as a byproduct of the Next Sentence Prediction (NSP) objective.

The Membership and Start-Point Challenges

Conversely, BERT struggles immensely with task boundaries. The pre-trained model had a near-zero F-score (1.17) for inclusive selection, indicating it cannot naturally distinguish between relevant and random sub-events. Fine-tuning or P-tuning was required to bring this score up to approximately 38-40, suggesting the model needs explicit instruction to understand the "scope" of a task.

Similarly, identifying the "start" of a script proved difficult for all configurations. The authors hypothesize that linguistic patterns like "Task X starts with Event Y" are rare in general web corpora compared to simple temporal links (e.g., "A then B"), creating a data bottleneck for learning script entry points.

Conclusion

While BERT is a master of chronological flow, it lacks an inherent understanding of task membership and initiation. The knowledge is often latent—as shown by the jump in end-to-end script induction F-scores from 4.81 (Pre-trained) to 32.52 (P-tuning)—but requires specific probing or tuning to extract. Future work may need to focus on pre-training objectives that specifically encourage the clustering of related procedural events.

Summary updated

BibTeX
@misc{jin2022probing,
  author = {Zijian Jin and Xingyu Zhang and Mo Yu and Lifu Huang},
  title = {{Probing Script Knowledge from Pre-Trained Models}},
  year = {2022},
  eprint = {2204.10176},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.10176},
}
Figure