Skip to main content
QUICK REVIEW

[Paper Review] BERTSel: Answer Selection with Pre-trained Models

Dongfang Li, Yifei Yu|arXiv (Cornell University)|May 18, 2019
Topic ModelingComputer Science13 references12 citations
TL;DR

This paper introduces BERTSel, a fine-tuned BERT-based model for answer selection that treats the task as a pairwise ranking problem. By leveraging BERT's contextual representations and a hybrid loss combining cross-entropy and hinge loss, BERTSel achieves state-of-the-art performance across five benchmark datasets, outperforming prior methods significantly in MRR and MAP scores.

ABSTRACT

Recently, pre-trained models have been the dominant paradigm in natural language processing. They achieved remarkable state-of-the-art performance across a wide range of related tasks, such as textual entailment, natural language inference, question answering, etc. BERT, proposed by Devlin et.al., has achieved a better marked result in GLUE leaderboard with a deep transformer architecture. Despite its soaring popularity, however, BERT has not yet been applied to answer selection. This task is different from others with a few nuances: first, modeling the relevance and correctness of candidates matters compared to semantic relatedness and syntactic structure; second, the length of an answer may be different from other candidates and questions. In this paper. we are the first to explore the performance of fine-tuning BERT for answer selection. We achieved STOA results across five popular datasets, demonstrating the success of pre-trained models in this task.

Motivation & Objective

  • To investigate the effectiveness of pre-trained BERT models for answer selection, a task previously dominated by models using shallow word embeddings.
  • To address the limited generalization capability of existing answer selection models through transfer learning with deep contextual representations.
  • To demonstrate that BERT fine-tuning can outperform task-specific architectures and feature-engineered models on answer selection benchmarks.
  • To analyze the impact of different BERT variants (base and large) and training epochs on answer selection performance.

Proposed method

  • The model uses a pairwise training approach, where each training instance consists of a question paired with one positive and one negative answer.
  • Input sequences are constructed as [CLS] question [SEP] answer [SEP], and BERT encodes each pair to produce [CLS] token embeddings.
  • A fully connected layer followed by a sigmoid activation produces a final relevance score for each pair.
  • The loss function combines negative log-likelihood of positive and negative predictions with a margin-based hinge loss to enforce ranking constraints.
  • The combined loss is defined as: λ₁(logŷθ(q,p) + log(1−ŷθ(q,n))) + λ₂max{0, m − ŷθ(q,p) + ŷθ(q,n)}, with λ₁=λ₂=0.5.
  • Models are fine-tuned end-to-end on labeled answer selection datasets using Adam optimization and early stopping.

Experimental results

Research questions

  • RQ1Can BERT, pre-trained on large-scale text, generalize effectively to the answer selection task without task-specific architecture design?
  • RQ2How does BERT-based fine-tuning compare to previous SOTA models that rely on handcrafted features or shallow embeddings?
  • RQ3What is the impact of model size (base vs. large) and training duration (epochs) on answer selection performance?
  • RQ4Does a hybrid loss combining cross-entropy and hinge loss improve ranking performance in answer selection?

Key findings

  • BERTSel achieved state-of-the-art results on five standard answer selection benchmarks: TrecQA, WikiQA, YahooQA, SemEvalcQA-16, and SemEvalcQA-17.
  • On TrecQA, BERT base achieved MRR=0.927 and MAP=0.877 after 3 epochs, surpassing the prior SOTA of MRR=0.865 and MAP=0.904.
  • On WikiQA, BERT base achieved MRR=0.770 and MAP=0.753, outperforming the prior SOTA of MRR=0.758 and MAP=0.746.
  • On YahooQA, BERT base achieved MRR=0.942 and MAP=0.942, exceeding the prior SOTA of MRR=0.801 and MAP=0.801.
  • On SemEvalcQA-16, BERT base achieved MRR=0.872 and MAP=0.810, outperforming the prior SOTA of MRR=0.872 and MAP=0.801.
  • On SemEvalcQA-17, BERT base achieved MRR=0.951 and MAP=0.909, surpassing the prior SOTA of MRR=0.926 and MAP=0.887.

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.