Hong Kong University of Science and Technology
Better questions for better answers : generating high-quality QA pairs
Abstract
dc:description<p>Legal contracts, with their characteristic verbosity and complex jargon, pose substantial challenges to laypersons. While the use of chatbots for FAQ generation has gained traction, the need for high-quality, contextual question-answer pairs specific to legal contracts remains largely unfulfilled. Existing automated systems, while effective, fall short in their ability to construct comprehensive, well-grounded QA pairs that mimic the interpretive prowess of human legal expertise. This research introduces a pioneering effort to address this need by converting legal contracts into high-quality, generative question-answer pairs using the popular ChatGPT framework.</p> <p>To further enhance the quality of the generated QA pairs, we refined state-of-the-art models such as T5, T0 and Alpaca-LoRA specifically for the legal domain. We propose a cost-efficient and highly effective method to train these custom models, offering a level of performance on par with ChatGPT, without the confidentiality issues often associated with it. We incorporated an unprecedented level of diversity in question generation, surpassing existing legal datasets, and thereby expanding the possibilities for legal contract interpretation.</p> <p>A novel aspect of our work is the introduction of generative question answering, a mechanism where not only is the question answered, but a reference number is also provided for effective source citation. This contributes towards the development of a more trustworthy and reliable language model.</p> <p>The effectiveness of our approach was thoroughly validated using a variety of automatic evaluation techniques, including BLEU, GoogleBLEU, ROUGE, METEOR, and BERTScore, as well as qualitative assessments performed by domain experts, evaluating answerability, grounding, readability, coherence, and informativeness.</p> <p>This study provides the first-of-its-kind dataset in the legal domain framed for generative or abstractive question answering, where the flexibility of language usage supersedes mere text span extraction. Practical implications include the creation of a robust chatbot capable of generating informative FAQs from contracts, thereby expediting user understanding of contractual content and minimizing the effort required to formulate queries. We believe our work marks a substantial advancement in AI-powered contract interpretation, and opens up exciting avenues for future research and applications.</p>
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Lau, Yik Lun
- Contributors dc:contributor
-
- Song, Yangqiu
Rights
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://repository.hkust.edu.hk/ir/Record/1783.1-150197