Advancing Student Writing Through Automated Syntax Feedback

Kamyar Zeinalipour, Mehak Mehak, Fatemeh Parsamotamed, Marco Maggini, Marco GoriarXiv 2025

Abstract

This study underscores the pivotal role of syntax feedback in augmenting the syntactic proficiency of students. Recognizing the challenges faced by learners in mastering syntactic nuances, we introduce a specialized dataset named Essay-Syntax-Instruct designed to enhance the understanding and application of English syntax among these students. Leveraging the capabilities of Large Language Models (LLMs) such as GPT3.5-Turbo, Llama-2-7b-chat-hf, Llama-2-13b-chat-hf, and Mistral-7B-Instruct-v0.2, this work embarks on a comprehensive fine-tuning process tailored to the syntax improvement task. Through meticulous evaluation, we demonstrate that the fine-tuned LLMs exhibit a marked improvement in addressing syntax-related challenges, thereby serving as a potent tool for students to identify and rectify their syntactic errors. The findings not only highlight the effectiveness of the proposed dataset in elevating the performance of LLMs for syntax enhancement but also illuminate a promising path for utilizing advanced language models to support language acquisition efforts. This research contributes to the broader field of language learning technology by showcasing the potential of LLMs in facilitating the linguistic development of Students.

Introduction

Automated Essay Scoring (AES) has traditionally focused on providing summative numerical grades. While useful for assessment, these scores offer little pedagogical value to students seeking to improve their writing. Mastering English syntax—the complex rules governing sentence structure—remains a significant challenge for both native and non-native learners. This research introduces Essay-Syntax-Instruct, a specialized dataset designed to provide actionable, qualitative syntax feedback. By fine-tuning Large Language Models (LLMs), we demonstrate that automated systems can move beyond simple scoring to become effective tools for linguistic development.

Methodology

The researchers developed a multi-stage pipeline to transform raw student essays into a high-quality training resource for syntax feedback. This process, illustrated in Figure 1, involves data cleaning, prompt engineering, and model fine-tuning.

The multi-stage pipeline for developing the Essay-Syntax-Instruct dataset and training specialized LLMs.

Data Preprocessing and Placeholder Replacement

A significant hurdle in using existing datasets like the ASAP (Automated Student Assessment Prize) collection is anonymization. These datasets often use placeholders (e.g., "@LOCATION1") which can confuse LLMs, leading them to misidentify these tags as syntactic errors. To resolve this, the team used GPT-3.5-Turbo to replace placeholders with contextually appropriate names, dates, and locations, ensuring the models could process the natural flow of the text.

Synthetic Feedback Generation

The core of the methodology involves generating structured feedback. Using GPT-3.5-Turbo as a "teacher," the system analyzed essays across seven specific syntax categories: misspelled words, conjunctions/linking phrases, modifiers, prepositions, modal verbs, punctuation, and articles. The prompt used for this analysis (see Figure 2) directed the model to identify errors, provide corrections, and explain the findings.

The detailed prompt used to guide the LLM in performing structured syntax analysis across seven specific categories.

Model Fine-Tuning

The validated dataset was used to fine-tune three open-source models: Llama-2-7b-chat, Llama-2-13b-chat, and Mistral-7B-Instruct-v0.2. The team employed Low-Rank Adaptation (LoRA), a technique that allows for efficient fine-tuning of large models without requiring massive computational resources.

The Essay-Syntax-Instruct Dataset

The primary contribution of this work is the Essay-Syntax-Instruct dataset. It comprises 8,320 examples of student essays (Grades 7–10) paired with detailed, category-specific syntax feedback. This dataset facilitates a "distillation" effect, where the knowledge from a large proprietary model (GPT-3.5) is transferred to smaller, more efficient open-source models.

Results and Discussion

Fine-tuning led to substantial performance gains across all models. Mistral-7B-Instruct-v0.2 emerged as the most effective, with its ROUGE-1 score increasing from 0.366 to 0.514.

Qualitative improvements were even more pronounced. Human evaluations using a five-tier rating system (A to E) showed that the Llama-2-13B model's "Rating B" (indicating robust, high-quality feedback) increased from 11% to 60% after fine-tuning. Conversely, the frequency of deficient or inconsistent ratings (D and E) dropped significantly, suggesting that the specialized models became more reliable and less prone to "hallucinations" or overlooking errors.

Conclusion

This research demonstrates that specialized, smaller LLMs can rival larger systems in providing nuanced pedagogical feedback when trained on high-quality, domain-specific data. By moving from automated scoring to automated instruction, this work paves the way for scalable, personalized writing support in educational settings. Future work will focus on expanding the system to other languages and conducting classroom-based studies to measure long-term student improvement.

Summary updated

Abstract

This study underscores the pivotal role of syntax feedback in augmenting the syntactic proficiency of students. Recognizing the challenges faced by learners in mastering syntactic nuances, we introduce a specialized dataset named Essay-Syntax-Instruct designed to enhance the understanding and application of English syntax among these students. Leveraging the capabilities of Large Language Models (LLMs) such as GPT3.5-Turbo, Llama-2-7b-chat-hf, Llama-2-13b-chat-hf, and Mistral-7B-Instruct-v0.2, this work embarks on a comprehensive fine-tuning process tailored to the syntax improvement task. Through meticulous evaluation, we demonstrate that the fine-tuned LLMs exhibit a marked improvement in addressing syntax-related challenges, thereby serving as a potent tool for students to identify and rectify their syntactic errors. The findings not only highlight the effectiveness of the proposed dataset in elevating the performance of LLMs for syntax enhancement but also illuminate a promising path for utilizing advanced language models to support language acquisition efforts. This research contributes to the broader field of language learning technology by showcasing the potential of LLMs in facilitating the linguistic development of Students.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Syntax-feedback generation (GPT-3.5-Turbo reference)Mistral-instruct (7B), fine-tuned on Essay-Syntax-InstructROUGE-10.514+0.15 vs baselineSyntax Feedback Generation · fine-tuned · params=7B · backbone=Mistral-instruct
Source quote
L112: Finetuned LLMs │ Mistral-instruct │ 7B │ 0.514 │ 0.375 │ 0.369
Syntax-feedback generation (GPT-3.5-Turbo reference)Mistral-instruct (7B), fine-tuned on Essay-Syntax-InstructROUGE-20.375+0.01 vs baselineSyntax Feedback Generation · fine-tuned · params=7B · backbone=Mistral-instruct
Source quote
L112: Finetuned LLMs │ Mistral-instruct │ 7B │ 0.514 │ 0.375 │ 0.369
Syntax-feedback generation (GPT-3.5-Turbo reference)Mistral-instruct (7B), fine-tuned on Essay-Syntax-InstructROUGE-L0.369Syntax Feedback Generation · fine-tuned · params=7B · backbone=Mistral-instruct
Source quote
L112: Finetuned LLMs │ Mistral-instruct │ 7B │ 0.514 │ 0.375 │ 0.369
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
Syntax-feedback generation (GPT-3.5-Turbo reference)Mistral-instruct (7B), base LLM baselineROUGE-10.366Syntax Feedback Generation · fine-tuned · params=7B · backbone=Mistral-instruct
Source quote
L107: Base LLMs │ Mistral-instruct │ 7B │ 0.366 │ 0.144 │ 0.205
Syntax-feedback generation (GPT-3.5-Turbo reference)Mistral-instruct (7B), base LLM baselineROUGE-20.144Syntax Feedback Generation · fine-tuned · params=7B · backbone=Mistral-instruct
Source quote
L107: Base LLMs │ Mistral-instruct │ 7B │ 0.366 │ 0.144 │ 0.205
Syntax-feedback generation (GPT-3.5-Turbo reference)Mistral-instruct (7B), base LLM baselineROUGE-L0.205Syntax Feedback Generation · fine-tuned · params=7B · backbone=Mistral-instruct
Source quote
L107: Base LLMs │ Mistral-instruct │ 7B │ 0.366 │ 0.144 │ 0.205
BibTeX
@misc{zeinalipour2025advancing,
  author = {Kamyar Zeinalipour and Mehak Mehak and Fatemeh Parsamotamed and Marco Maggini and Marco Gori},
  title = {{Advancing Student Writing Through Automated Syntax Feedback}},
  year = {2025},
  eprint = {2501.07740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.07740},
}
Figure