Skip to main content
QUICK REVIEW

[Paper Review] Pre-training Transformer Models with Sentence-Level Objectives for Answer Sentence Selection

Luca Di Liello, Siddhant Garg|arXiv (Cornell University)|May 20, 2022
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes three novel sentence-level pre-training objectives for transformers to improve answer sentence selection (AS2) by incorporating paragraph- and document-level semantics. The model learns to predict sentence-to-paragraph and paragraph-to-document relationships, achieving 3–4% absolute F1 improvements over RoBERTa and ELECTRA on public and industrial AS2 datasets without additional labeled data.

ABSTRACT

An important task for designing QA systems is answer sentence selection (AS2): selecting the sentence containing (or constituting) the answer to a question from a set of retrieved relevant documents. In this paper, we propose three novel sentence-level transformer pre-training objectives that incorporate paragraph-level semantics within and across documents, to improve the performance of transformers for AS2, and mitigate the requirement of large labeled datasets. Specifically, the model is tasked to predict whether: (i) two sentences are extracted from the same paragraph, (ii) a given sentence is extracted from a given paragraph, and (iii) two paragraphs are extracted from the same document. Our experiments on three public and one industrial AS2 datasets demonstrate the empirical superiority of our pre-trained transformers over baseline models such as RoBERTa and ELECTRA for AS2.

Motivation & Objective

  • To improve answer sentence selection (AS2) performance in low-resource settings by reducing reliance on large labeled datasets.
  • To enhance sentence-pair representations with paragraph- and document-level semantics, which are underexplored in existing pre-training approaches.
  • To design sentence-level pre-training objectives that capture cross-document and cross-paragraph relationships, mimicking the complexity of real-world QA scenarios.
  • To demonstrate that pre-training with these objectives improves downstream AS2 performance without requiring additional labeled data.
  • To release code and pre-trained models to enable efficient fine-tuning on AS2 datasets.

Proposed method

  • Proposes three new sentence-level pre-training objectives: (i) sentence-same-paragraph prediction, (ii) sentence-from-paragraph prediction, and (iii) paragraph-same-document prediction.
  • Designs the objectives to operate over sentence pairs, enabling the model to learn hierarchical semantic relationships across paragraphs and documents.
  • Pre-trains RoBERTa-Base and ELECTRA-Base models using a combination of masked language modeling (MLM) and the proposed objectives on large-scale Wikipedia data.
  • Uses a data sampling strategy that constructs negative and positive pairs for each objective, ensuring diverse and challenging training examples.
  • Employs contrastive learning principles implicitly through the design of the objectives, encouraging the model to distinguish between semantically related and unrelated sentence/paragraph pairs.
  • Releases code and pre-trained model checkpoints to facilitate fine-tuning on downstream AS2 datasets.

Experimental results

Research questions

  • RQ1Can sentence-level pre-training objectives that model paragraph and document-level semantics improve AS2 performance?
  • RQ2Do the proposed objectives lead to better generalization than standard MLM and NSP/SOP objectives?
  • RQ3To what extent do the pre-trained models reduce the need for large labeled AS2 datasets?
  • RQ4How do the proposed objectives compare in difficulty to existing pre-training tasks like NSP and SOP?
  • RQ5Can the pre-trained models be effectively fine-tuned on diverse AS2 benchmarks without additional data?

Key findings

  • The proposed pre-training objectives improve F1 scores by 3–4 percentage points over RoBERTa and ELECTRA baselines on three public and one industrial AS2 dataset.
  • Models pre-trained with only MLM perform worse than those with the proposed objectives, indicating that the gains come from the new objectives, not data sampling.
  • The pre-training tasks are significantly more challenging than NSP and SOP, as evidenced by lower validation accuracy (e.g., ~80% for SSP vs. ~94% for NSP), suggesting richer semantic learning.
  • The model's ability to rank relevant answers higher is improved, likely due to learning to reason across multiple paragraphs and documents during pre-training.
  • Ablation studies confirm that the performance gains are not due to hyperparameter tuning or data sampling, but stem from the novel pre-training objectives.
  • The pre-trained models achieve state-of-the-art results on AS2 benchmarks, demonstrating the effectiveness of incorporating document-level semantics in sentence-level pre-training.

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.