Skip to main content
QUICK REVIEW

[Paper Review] Studying Strategically: Learning to Mask for Closed-book QA

Qinyuan Ye, Belinda Z. Li|arXiv (Cornell University)|Dec 31, 2020
Topic ModelingComputer Science28 references11 citations
TL;DR

This paper proposes a learned masking policy that identifies task-relevant spans in pre-training text for improved closed-book question answering. By training a policy to predict likely answer spans using downstream QA supervision, and applying it during intermediate pre-training, the method packs more relevant knowledge into BART models, achieving 24.71% exact match on TriviaQA—surpassing heuristic salient span masking (23.62%) and random masking (22.93%).

ABSTRACT

Closed-book question-answering (QA) is a challenging task that requires a model to directly answer questions without access to external knowledge. It has been shown that directly fine-tuning pre-trained language models with (question, answer) examples yields surprisingly competitive performance, which is further improved upon through adding an intermediate pre-training stage between general pre-training and fine-tuning. Prior work used a heuristic during this intermediate stage, whereby named entities and dates are masked, and the model is trained to recover these tokens. In this paper, we aim to learn the optimal masking strategy for the intermediate pre-training stage. We first train our masking policy to extract spans that are likely to be tested, using supervision from the downstream task itself, then deploy the learned policy during intermediate pre-training. Thus, our policy packs task-relevant knowledge into the parameters of a language model. Our approach is particularly effective on TriviaQA, outperforming strong heuristics when used to pre-train BART.

Motivation & Objective

  • To improve closed-book question answering by strategically selecting which spans to mask during intermediate pre-training.
  • To learn a masking policy that identifies spans likely to be tested, based on supervision from downstream QA tasks.
  • To move beyond heuristic masking (e.g., named entities and dates) toward data-driven, task-aware masking strategies.
  • To evaluate whether a policy learned on one QA dataset can transfer to improve performance on other QA datasets.
  • To investigate how meta-knowledge about testable content can be encoded into language model parameters via intelligent masking.

Proposed method

  • Train a masking policy using (context, question, answer) triples from a QA dataset, where the model predicts start and end positions of answer spans.
  • The policy is trained to maximize the likelihood of recovering the correct answer span, using cross-entropy loss.
  • The policy is applied during intermediate pre-training on a general corpus (e.g., Wikipedia), where it dynamically masks task-relevant spans.
  • The masked language model (BART) is fine-tuned on downstream closed-book QA tasks after this task-aware pre-training stage.
  • The masking policy is trained end-to-end with the language model, using supervision from the downstream QA task to guide span selection.
  • The approach treats masking as a gap selection task, analogous to question generation, where the model learns which content is likely to be tested.

Experimental results

Research questions

  • RQ1Can a learned masking policy that identifies likely answer spans improve closed-book QA performance compared to heuristic masking?
  • RQ2Does pre-training with a policy trained on one QA dataset transfer to improve performance on other QA datasets?
  • RQ3How does the performance of a learned masking policy compare to random or heuristic masking strategies in intermediate pre-training?
  • RQ4What kind of meta-knowledge does the learned masking policy capture, and how does it relate to student test-preparation behavior?
  • RQ5Can the masking policy be used to effectively 'pack' task-relevant knowledge into language model parameters?

Key findings

  • The learned masking policy achieves 24.71% exact match on TriviaQA dev set, outperforming salient span masking (23.62%) and random masking (22.93%).
  • The performance gain is consistent when deploying the best policy on BART-large, indicating scalability beyond base models.
  • The policy shows positive transferability: a model trained on TriviaQA improves performance on other QA datasets, suggesting shared meta-knowledge in span selection.
  • The policy effectively masks important factual spans in context passages, such as institutions and dates, aligning with human expectations of testable content.
  • Limitations exist due to independent start/end position prediction, leading to incorrect span boundaries (e.g., combining two distinct entities into one span).
  • The results suggest that strategic masking during intermediate pre-training can be more impactful than model scaling, as salient span masking improved performance more than scaling T5 from 3B to 11B parameters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.