Pre-training, Fine-tuning and Re-ranking: A Three-Stage Framework for Legal Question Answering
Not on the map. Why?
Abstract (arXiv)
Legal question answering (QA) has attracted increasing attention from people seeking legal advice, which aims to retrieve the most applicable answers from a large-scale database of question-answer pairs. Previous methods mainly use a dual-encoder architecture to learn dense representations of both questions and answers. However, these methods could suffer from lacking domain knowledge and sufficient labeled training data. In this paper, we propose a three-stage (underlinepre-training, underlinefine-tuning and underlinere-ranking) framework for underlinelegal underlineQA (called PFR-LQA), which promotes the fine-grained text representation learning and boosts the performance of dense retrieval with the dual-encoder architecture. Concretely, we first conduct domain-specific pre-training on legal questions and answers through a self-supervised training objective, allowing the pre-trained model to be adapted to the legal domain. Then, we perform task-specific fine-tuning of the dual-encoder on legal question-answer pairs by using the supervised learning objective, leading to a high-quality dual-encoder for the specific downstream QA task. Finally, we employ a contextual re-ranking objective to further refine the output representations of questions produced by the document encoder, which uses contextual similarity to increase the discrepancy between the anchor and hard negative samples for better question re-ranking. We conduct extensive experiments on a manually annotated legal QA dataset. Experimental results show that our PFR-LQA method achieves better performance than the strong competitors for legal question answering.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 12 of its 24 references that are in the map. First posted on arXiv 27 Dec 2024.
Builds on
12 of 24 references.
References · 12
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2020Circle Loss: A Unified Perspective of Pair Similarity Optimizationcited by 402
- 2021Lawformer: A Pre-trained Language Model for Chinese Legal Long Documentscited by 115
- 2021Few-Shot Question Answering by Pretraining Span Selectioncited by 62
- 2019Span Selection Pre-training for Question Answeringcited by 36
- 2021The Stem Cell Hypothesis: Dilemma behind Multi-Task Learning with Transformer Encoderscited by 31
- 2015Applying Deep Learning to Answer Selection: A Study and An Open Taskcited by 24
- 2021Question Answering Infused Pre-training of General-Purpose Contextualized Representationscited by 19
Built on by
Citing papers per year: 2026: 1.
1 paper.