A dynamic hybrid attention-based autoencoder model with adaptive contextual attention for grammatical error correction
摘要
Grammatical Error Correction (GEC) constitutes a critical component for enhancing text quality across a diverse range of Natural Language Processing (NLP) applications. While pre-trained transformer models have achieved notable advancements in GEC, they frequently encounter challenges with complex grammatical structures and long-range dependencies within sentences. This paper presents AdaMHCG-AE, a novel autoencoder architecture incorporating Adaptive Multi-Head Attention with Contextual Gating (AMH-CG). This mechanism is designed to dynamically modulate attention weights based on contextual information, thereby facilitating the effective capture of both local and global dependencies within sentential contexts. Through rigorous experimentation on established benchmark datasets, including JFLEG, Lang-8, CoNLL-2014, FCE, and Write&Improve, AdaMHCG-AE demonstrates superior performance compared to state-of-the-art models such as T5, BART, and PEGASUS. This performance advantage is consistently observed across key evaluation metrics, encompassing accuracy, precision, recall,