Enhancing language models with boosting and targeted fine-tuning for real-word error detection

Natural Language Processing Journal Pub Date : 2026-03-01 Epub Date: 2026-02-11 DOI:10.1016/j.nlp.2026.100202
Corina Masanti , Hans-Friedrich Witschel , Kaspar Riesen
{"title":"Enhancing language models with boosting and targeted fine-tuning for real-word error detection","authors":"Corina Masanti ,&nbsp;Hans-Friedrich Witschel ,&nbsp;Kaspar Riesen","doi":"10.1016/j.nlp.2026.100202","DOIUrl":null,"url":null,"abstract":"<div><div>Over the past years, extensive research has led to significant advancements in tools for the automatic detection and correction of errors in documents. Despite this progress, several challenges remain unresolved. In particular, the identification of real-word errors – errors involving words that are grammatically valid but contextually inappropriate within a given sentence – continues to pose a considerable difficulty. Addressing such errors requires models with a sophisticated understanding of linguistic context. Transformer-based language models are particularly well-suited for this task due to their contextual modeling capabilities. To further enhance their performance, we propose a boosting-based training approach in conjunction with a synthetically generated data set created via pattern-based noise injection. We evaluate this method across three transformer-based architectures, viz. mBERT, LLaMA 3, and Mistral 7B. Our experimental results show that the boosting-based strategy consistently improves real-word error detection across all models. A subsequent in-depth error analysis reveals limitations in the synthetic training data, prompting the development of a targeted fine-tuning procedure designed to address these shortcomings and further optimize model performance. A comparison with prompt-based inference using a large language model demonstrates that specialized, fine-tuned models yield more reliable performance for this task. Finally, an evaluation under realistic class imbalance highlights practical trade-offs between ranking quality and threshold-based detection, particularly for rare error types.</div></div>","PeriodicalId":100944,"journal":{"name":"Natural Language Processing Journal","volume":"14 ","pages":"Article 100202"},"PeriodicalIF":0.0000,"publicationDate":"2026-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Natural Language Processing Journal","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2949719126000063","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/2/11 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Over the past years, extensive research has led to significant advancements in tools for the automatic detection and correction of errors in documents. Despite this progress, several challenges remain unresolved. In particular, the identification of real-word errors – errors involving words that are grammatically valid but contextually inappropriate within a given sentence – continues to pose a considerable difficulty. Addressing such errors requires models with a sophisticated understanding of linguistic context. Transformer-based language models are particularly well-suited for this task due to their contextual modeling capabilities. To further enhance their performance, we propose a boosting-based training approach in conjunction with a synthetically generated data set created via pattern-based noise injection. We evaluate this method across three transformer-based architectures, viz. mBERT, LLaMA 3, and Mistral 7B. Our experimental results show that the boosting-based strategy consistently improves real-word error detection across all models. A subsequent in-depth error analysis reveals limitations in the synthetic training data, prompting the development of a targeted fine-tuning procedure designed to address these shortcomings and further optimize model performance. A comparison with prompt-based inference using a large language model demonstrates that specialized, fine-tuned models yield more reliable performance for this task. Finally, an evaluation under realistic class imbalance highlights practical trade-offs between ranking quality and threshold-based detection, particularly for rare error types.
通过增强和有针对性的微调来增强语言模型,用于真实单词的错误检测
在过去的几年里,广泛的研究导致了文件错误自动检测和纠正工具的重大进步。尽管取得了这些进展,但仍有一些挑战尚未解决。特别是,识别真实单词错误——在给定的句子中涉及语法有效但上下文不合适的单词的错误——仍然构成相当大的困难。解决这类错误需要对语言语境有复杂理解的模型。基于转换器的语言模型特别适合此任务,因为它们具有上下文建模功能。为了进一步提高它们的性能,我们提出了一种基于增强的训练方法,并结合基于模式的噪声注入创建的合成生成数据集。我们在三个基于变压器的架构中评估了这种方法,即mBERT、LLaMA 3和Mistral 7B。我们的实验结果表明,基于增强的策略在所有模型中都一致地提高了实时错误检测。随后的深入误差分析揭示了合成训练数据的局限性,促使有针对性的微调程序的发展,旨在解决这些缺点,并进一步优化模型性能。与使用大型语言模型的基于提示的推理进行比较表明,专门的、经过微调的模型为该任务提供了更可靠的性能。最后,在现实类不平衡下的评估突出了排名质量和基于阈值的检测之间的实际权衡,特别是对于罕见的错误类型。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书