[Paper Review] A Study of BERT for Non-Factoid Question-Answering under Passage Length Constraints
This paper investigates BERT fine-tuning for non-factoid question-answering under passage length constraints, comparing point-wise and pair-wise learning-to-rank methods. It finds that BERT with 256-token sequences achieves optimal performance, and passage segmentation via attention enables handling longer passages with only moderate accuracy loss.
We study the use of BERT for non-factoid question-answering, focusing on the passage re-ranking task under varying passage lengths. To this end, we explore the fine-tuning of BERT in different learning-to-rank setups, comprising both point-wise and pair-wise methods, resulting in substantial improvements over the state-of-the-art. We then analyze the effectiveness of BERT for different passage lengths and suggest how to cope with large passages.
Motivation & Objective
- To evaluate BERT's effectiveness in passage re-ranking for non-factoid question-answering under strict input length constraints.
- To compare point-wise and pair-wise learning-to-rank strategies using BERT for passage re-ranking.
- To analyze the impact of passage length on BERT representation quality and identify optimal sequence lengths.
- To develop and evaluate methods for handling passages exceeding BERT’s 512-token limit through segmentation and representation aggregation.
- To provide practical guidelines for deploying BERT in real-world QA systems with length-constrained inputs.
Proposed method
- Fine-tuned BERT using a pre-trained base model on query-passage pairs with cross-entropy loss for point-wise ranking (BERT[PW]) and triplet loss for pair-wise ranking (BERTlets).
- Used the [CLS] token representation from BERT as the final sentence pair embedding for scoring.
- Explored passage segmentation into chunks of 128 tokens, applying multi-head attention to aggregate chunk-level representations into a passage-level representation.
- Evaluated alternative aggregation methods, including max-pooling, which yielded similar results to attention-based fusion.
- Trained models using Adam optimizer with a 2e-5 initial learning rate over three epochs on a Tesla K40m GPU.
- Evaluated performance using standard IR metrics: P@1, MAP, and MRR on three benchmark datasets: nfL6, WebAP, and WikiPassageQA.
Experimental results
Research questions
- RQ1How does BERT perform in non-factoid passage re-ranking when constrained by input length limits?
- RQ2What is the optimal sequence length (SeqLen) for BERT in passage re-ranking, and how does it vary with passage length?
- RQ3Can passage segmentation into smaller chunks combined with attention-based aggregation effectively handle passages longer than BERT’s 512-token limit?
- RQ4How do point-wise and pair-wise learning-to-rank strategies compare in performance when fine-tuned with BERT for passage re-ranking?
- RQ5What is the trade-off between handling long passages via segmentation and maintaining re-ranking accuracy?
Key findings
- BERT with a sequence length of 256 tokens achieved the best performance across all datasets, outperforming both BM25 and prior deep learning baselines by up to 120% on P@1 in the nfL6 dataset.
- Performance degraded with shorter (64, 128) and longer (384) sequence lengths, particularly on WikiPassageQA, which has longer average passage lengths.
- Passage segmentation into two or three 128-token chunks with attention-based aggregation enabled handling of passages beyond 512 tokens, though with a moderate performance drop compared to full-length processing.
- The BERTlets pair-wise method outperformed BERT[PW] on WikiPassageQA (MAP=0.74 vs. 0.71), while BERT[PW] slightly outperformed BERTlets on WebAP (P@1=0.55 vs. 0.53).
- Max-pooling of chunk representations yielded similar results to attention-based aggregation, indicating that simple pooling is a viable alternative for fusion.
- The study confirms that both point-wise and pair-wise fine-tuning strategies yield comparable performance, with BERTlets showing slight edge in some settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.