• Home
  • Search
  • Enhancing legal question answering with data generation and knowledge distillation from large language models
  • Cite Icon3
  • https://doi.org/10.1007/s10506-025-09463-9Copy DOI Icon

Enhancing legal question answering with data generation and knowledge distillation from large language models

Show More
  • Abstract
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Abstract Legal question answering (LQA) relies on supervised methods to automatically handle law-related queries. These solutions require a substantial amount of carefully annotated data for training, which makes the process very costly. Although large language models (LLMs) show promise in zero-shot QA, their computational demands limit their practical use, making specialized small language models (SLMs) more favorable. Furthermore, the growing interest in synthetic data generation has recently surged, spurred by the impressive generation capabilities of LLMs. This paper presents Ace-Attorney, an LLM distillation approach devised to develop LQA data and supervised models without human annotation. Given a textual prompt, a frozen LLM generates artificial examples that are used as knowledge to train a student SLM with an order of magnitude fewer parameters. Taking into account a realistic retrieval-based scenario to fetch the correct document for answer generation, we propose Selective Generative Paradigm, a novel approach designed to improve retrieval efficacy. Extensive experiments demonstrate the effectiveness and efficiency of distilled models on Syn-LeQA, our human-free synthetic dataset, and a public expert-annotated corpus. Notably, by using only a few dozen training samples, our best SLM achieves LLM-comparable performance with $$\approx $$ ≈ 1200% less CO $$_2$$ 2 emissions. The data and the code to fully reproduce our results are available at https://github.com/disi-unibo-nlp/ace-attorney.

Loading PDF

Similar Papers
  • Research Article

Evaluating gpt-4 for zero-shot classification of bleeding and clotting events: Can large language models serve as second reviewers?

  • Nov 03, 2025
  • Blood
  • Samantha Rizzo +5
  • Supplementary Content

Large language and vision-language models for robot: safety challenges, mitigation strategies and future directions

  • Jul 29, 2025
  • Industrial Robot: the international journal of robotics research and application
  • Xiangyu Hu +1
  • Research Article
  • Citations9

Using Synthetic Health Care Data to Leverage Large Language Models for Named Entity Recognition: Development and Validation Study.

  • Mar 18, 2025
  • Journal of medical Internet research
  • Hendrik Šuvalov +6
  • Research Article

Unlocking the Potential of Large Language Models in Education: Factors Influencing Adoption by Instructional Designers and Academics

  • Jan 01, 2026
  • Journal of Information Technology Education: Research
  • Katherine L Fourie +2
  • Research Article

Research and selection of Large Learning Models for automation of ABAP-code migration

  • Sep 24, 2025
  • Management of Development of Complex Systems
  • Oleg Pozdnyakov +1
  • Research Article
  • Citations1

Optimization of traditional methods for determining the similarity of project names and purchases using large language models

  • Apr 01, 2024
  • Litera
  • Aleksei Aleksandrovich Golikov +2
  • Conference Article
  • Citations6

PromptKD: Distilling Student-Friendly Knowledge for Generative Language Models via Prompt Tuning

  • Jan 01, 2024
  • Gyeongman Kim +2
  • Research Article
  • Citations4

Extracting epilepsy-related information from unstructured clinic letters using large language models.

  • Jul 10, 2025
  • Epilepsia
  • Shichao Fang +7
  • Conference Article
  • Citations18

Medical Adaptation of Large Language and Vision-Language Models: Are We Making Progress?

  • Jan 01, 2024
  • Daniel P Jeong +3
  • Research Article
  • Citations42

Improving accuracy of GPT-3/4 results on biomedical data using a retrieval-augmented language model.

  • Aug 21, 2024
  • PLOS digital health
  • David Soong +10
  • Research Article
  • Citations178

The ethics of disclosing the use of artificial intelligence tools in writing scholarly manuscripts

  • Jun 15, 2023
  • Research Ethics
  • Mohammad Hosseini +2
  • Research Article

Utilize the Flow Before Stepping into the Same River Twice: Certainty Represented Knowledge Flow for Refusal-Aware Instruction Tuning

  • Apr 11, 2025
  • Proceedings of the AAAI Conference on Artificial Intelligence
  • Runchuan Zhu +6
  • Research Article

Readability & quality of large language model responses in CAR-T patient education

  • Nov 03, 2025
  • Blood
  • Sridhar Balasubramanian +3
  • Research Article

Advances, Evaluation, and Explainability of Large Language Models in Healthcare: A Systematic Review

  • Dec 23, 2025
  • ACM Transactions on Multimedia Computing, Communications, and Applications
  • Syed Umar Amin +2
  • Preprint Article

Modelling Implicit Bias in Gender–Career Associations: A systematic comparison of language models

  • May 22, 2025
  • Alexander Porshnev +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.