Easy Dataset:一个统一且可扩展的框架,用于从非结构化文档合成LLM微调数据
Easy Dataset: A Unified and Extensible Framework for Synthesizing LLM Fine-Tuning Data from Unstructured Documents
AI总结:
本文提出Easy Dataset框架,通过GUI、文本分块和角色驱动提示从非结构化文档合成LLM微调数据,并在金融问答任务上验证其能提升领域性能且保持通用知识。
摘要:
大型语言模型(LLMs)在通用任务上表现优异,但由于高质量领域数据稀缺,将其适配到特定领域仍具挑战性。现有数据合成工具往往难以从异构文档中有效提取可靠的微调数据。为解决这一局限,我们提出Easy Dataset,一个统一框架,通过直观的图形用户界面(GUI)从非结构化文档合成微调数据。具体而言,Easy Dataset允许用户轻松配置文本提取模型和分块策略,将原始文档转换为连贯的文本块。随后,它利用基于角色驱动的提示方法,借助公开可用的LLMs生成多样化的问答对。在整个流程中,人在回路的可视化界面便于审查和优化中间输出,以确保数据质量。在金融问答任务上的实验表明,在合成数据集上微调LLMs可显著提升领域特定性能,同时保持通用知识。源代码和可安装包可在https://github.com/ConardLi/easy-dataset获取,并已获得超过9000个GitHub星标。
英文摘要:
Large language models (LLMs) have shown impressive performance on general-purpose tasks, yet adapting them to specific domains remains challenging due to the scarcity of high-quality domain data. Existing data synthesis tools often struggle to extract reliable fine-tuning data from heterogeneous documents effectively. To address this limitation, we propose Easy Dataset, a unified framework for synthesizing fine-tuning data from unstructured documents via an intuitive graphical user interface (GUI). Specifically, Easy Dataset allows users to easily configure text extraction models and chunking strategies to transform raw documents into coherent text chunks. It then leverages a persona-driven prompting approach to generate diverse question-answer pairs using public-available LLMs. Throughout the pipeline, a human-in-the-loop visual interface facilitates the review and refinement of intermediate outputs to ensure data quality. Experiments on a financial question-answering task show that fine-tuning LLMs on the synthesized dataset significantly improves domain-specific performance while preserving general knowledge. The source code and installable package are available at https://github.com/ConardLi/easy-dataset and have garnered over 9,000 GitHub stars.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。