Reformulating Domain Adaptation of Large Language Models as Adapt-Retrieve-Revise: A Case Study on Chinese Legal Domain
Not on the map. Why?
Abstract (arXiv)
While large language models (LLMs) like GPT-4 have recently demonstrated astonishing zero-shot capabilities in general domain tasks, they often generate content with hallucinations in specific domains such as Chinese law, hindering their application in these areas. This is typically due to the absence of training data that encompasses such a specific domain, preventing GPT-4 from acquiring in-domain knowledge. A pressing challenge is that it's not plausible to continue training LLMs of such scale on in-domain data. This paper introduces a simple and effective domain adaptation framework for GPT-4 by reformulating generation as an adapt-retrieve-revise process. The initial step is to adapt an affordable 7B LLM to the target domain by continuing learning on in-domain data. When solving a task, we leverage the adapted LLM to generate a draft answer given a task query. Then, the draft answer will be used to retrieve supporting evidence candidates from an external in-domain knowledge base. Finally, the draft answer and retrieved evidence are concatenated into a whole prompt to let GPT-4 assess the evidence and revise the draft answer to generate the final answer. Our proposal combines the advantages of the efficiency of adapting a smaller 7B model with the evidence-assessing capability of GPT-4 and effectively prevents GPT-4 from generating hallucinatory content. In the zero-shot setting of four Chinese legal tasks, our method improves accuracy by 33.3% compared to the direct generation by GPT-4. When compared to two stronger retrieval-based baselines, our method outperforms them by 15.4% and 23.9%. Our code will be released
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 22 of its 35 references that are in the map. First posted on arXiv 5 Oct 2023.
Builds on
22 of 35 references.
References · 22
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
10 more
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 691
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
- 2023Efficient and Effective Text Encoding for Chinese LLaMA and Alpacacited by 302
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
- 2018CAIL2018: A Large-Scale Legal Dataset for Judgment Predictioncited by 168
- 2023DISC-LawLLM: Fine-tuning Large Language Models for Intelligent Legal Servicescited by 117
- 2019JEC-QA: A Legal-Domain Question Answering Datasetcited by 115
Built on by
Citing papers per year: 2023: 1; 2024: 9; 2025: 2.
12 papers.
- 2024Continual Learning for Large Language Models: A Surveycited by 144
- 2024Recent Advances of Foundation Language Models-based Continual Learning: A Surveycited by 46
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2024Do LLMs Really Adapt to Domains? An Ontology Learning Perspectivecited by 10
- 2025When Continue Learning Meets Multimodal Large Language Model: A Surveycited by 8
- 2024Exploring the Nexus of Large Language Models and Legal Systems: A Short Surveycited by 6
- 2024Beyond Guilt: Legal Judgment Prediction with Trichotomous Reasoningcited by 5
- 2023Automating Governing Knowledge Commons and Contextual Integrity (GKC-CI) Privacy Policy Annotations with Large Language Modelscited by 3
- 2024DoPAMine: Domain-specific Pre-training Adaptation from seed-guided data Miningcited by 3
- 2024VLLaVO: Mitigating Visual Gap through LLMscited by 2
- 2024From Random to Informed Data Selection: A Diversity-Based Approach to Optimize Human Annotation and Few-Shot Learningcited by 1
- 2025Knowledge Acquisition on Mass-shooting Events via LLMs for AI-Driven Justicecited by 1
- 2025Knowledge Acquisition on Mass-shooting Events via LLMs for AI-Driven Justice17 Apr 2025
- 2025When Continue Learning Meets Multimodal Large Language Model: A Survey27 Feb 2025
- 2024Beyond Guilt: Legal Judgment Prediction with Trichotomous Reasoning19 Dec 2024
- 2024DoPAMine: Domain-specific Pre-training Adaptation from seed-guided data Mining30 Sep 2024
- 2024Do LLMs Really Adapt to Domains? An Ontology Learning Perspective29 Jul 2024
- 2024Recent Advances of Foundation Language Models-based Continual Learning: A Survey28 May 2024
- 2024Exploring the Nexus of Large Language Models and Legal Systems: A Short Survey1 Apr 2024
- 2024Continual Learning for Large Language Models: A Survey2 Feb 2024
- 2024Large Language Models in Cybersecurity: State-of-the-Art30 Jan 2024
- 2024From Random to Informed Data Selection: A Diversity-Based Approach to Optimize Human Annotation and Few-Shot Learning24 Jan 2024
- 2024VLLaVO: Mitigating Visual Gap through LLMs6 Jan 2024
- 2023Automating Governing Knowledge Commons and Contextual Integrity (GKC-CI) Privacy Policy Annotations with Large Language Models3 Nov 2023