arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.13358cs.CL
收藏

弥合大语言模型的编辑差距:FineEdit用于精确且有针对性的文本修改

Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modifications

University of Connecticut(康涅狄格大学);University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校);University of California, Riverside(加州大学河滨分校);University of Pittsburgh(匹兹堡大学);Carnegie Mellon University(卡内基梅隆大学);San Francisco State University(旧金山州立大学)

Yiming Zeng, Wanhao Yu, Zexin Li, Tao Ren, Yu Ma, Jinghan Cao, Xiyan Chen, Tingting Yu

AI总结:

FineEdit通过专门训练的编辑模型,实现了在多领域中的精确文本修改,显著提升了单轮和多轮编辑任务的性能。

摘要:

大型语言模型(LLMs)在自然语言处理领域显著进步,展示了在文本生成、摘要和推理等任务中的强大能力。最近,其在自动化精确文本编辑任务中的潜力,特别是在编程代码、LaTeX和结构化数据库语言等专业领域,引起了关注。然而,目前最先进的LLMs仍然难以执行精确的指令驱动编辑,尤其是在需要结构准确性和严格遵守领域惯例的情况下。为了解决这些挑战,我们引入了InstrEditBench,一个包含超过30,000个结构化编辑任务的自动化基准数据集,涵盖多样化的领域,包括维基百科文章、LaTeX文档、源代码和数据库语言。利用此基准,我们开发了FineEdit,一个专门用于准确、上下文感知文本修改的编辑模型。实验评估表明,FineEdit在单轮编辑任务上比最先进的模型提高约10%,在Llama-3.2-3B上提高达30%,并在直接编辑任务上超过Mistral-7B-OpenOrca性能超过40%。FineEdit还能够有效推广到现实的多轮编辑场景,突显了其实际应用价值。为了促进进一步研究和可重复性,我们发布了FineEdit在https://github.com/StuRinDQB/FineEdit和https://huggingface.co/datasets/YimingZeng/FineEdit_bench。

英文摘要:

Large Language Models (LLMs) have significantly advanced natural language processing, demonstrating strong capabilities in tasks such as text generation, summarization, and reasoning. Recently, their potential for automating precise text editing tasks across specialized domains, such as programming code, LaTeX, and structured database languages, has gained attention. However, current state-of-the-art LLMs still struggle with executing precise, instruction-driven edits, particularly when structural accuracy and strict adherence to domain conventions are required. To address these challenges, we introduce InstrEditBench, an automated benchmark dataset comprising over 30,000 structured editing tasks spanning diverse domains, including Wikipedia articles, LaTeX documents, source code, and database languages. Using this benchmark, we develop FineEdit, a specialized editing model explicitly trained for accurate, context-aware text modifications. Experimental evaluations demonstrate that FineEdit outperforms state-of-the-art models, achieving improvements of approximately 10\% over Gemini models on single-turn edits, up to 30\% over Llama-3.2-3B, and exceeding Mistral-7B-OpenOrca performance by over 40\% on direct editing tasks. FineEdit also effectively generalizes to realistic multi-turn editing scenarios, highlighting its practical applicability. To facilitate further research and reproducibility, we release FineEdit at https://github.com/StuRinDQB/FineEdit} and https://huggingface.co/datasets/YimingZeng/FineEdit_bench.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑