Controlling Large Language Models in Writing Education: A Computational Framework for Style Transfer, Dependency Detection, and Adversarial Intervention
Abstract
This paper proposes a unified computational framework, which ensures the output quality of large language models in writing education through three major modules: style transformation, dependency detection, and adversarial intervention. The style conversion module adopts the Transformer model with a dual-encoder architecture to transcribe students' texts into academic or news styles while retaining the original meaning. The dependency detection module reconstructs sentence-level grammatical relations and text-level argumentation structures based on the two-layer graph attention network (GAT). The adversarial intervention module simulates typical student errors through controlled perturbations such as synonym replacement and clause recombination to evaluate the robustness of the model. Experiments show that the academic accuracy rate of the style conversion module reaches 91.8%, the news accuracy rate reaches 89.5%, and the average score of UEBL is 28.6. In the case of adversarial perturbation, the style accuracy rate decreased by only 3.2 percentage points. The syntactic annotation accuracy (LAS) of the GAT parser on the original data was 87.5%, the text F1 value reached 78.3%, and the losses under adversarial interference were controlled at 4.8% (LAS) and 5.3% (F1) respectively. These findings confirm that adversarial training can significantly increase the model's resistance to writing errors. This framework provides educators with practical tools to ensure writing style standardization, structural consistency, and the ability to resist error feedback, laying the foundation for building a reliable AI-assisted writing teaching system.
References
- Han, J., Yoo, H., Myung, J., Kim, M., Lim, H., Kim, Y., Lee, T. Y., Hong, H., Kim, J., Ahn, S.-Y., & Oh, A. (2023). LLM-as-a-tutor in EFL writing education: Focusing on evaluation of student-LLM interaction. arXiv preprint arXiv: 2310.05191. arxiv.org
- Yan, L., Sha, L., Zhao, L., Li, Y., Martinez-Maldonado, R., Chen, G., Li, X., Jin, Y., & Gašević, D. (2023). Practical and ethical challenges of large language models in education: A systematic scoping review. arXiv preprint arXiv: 2303.13379. arxiv.org
- Kohnke, L., Moorhouse, B. L., & Zou, D. (2023). ChatGPT for language teaching and learning. RELC Journal, 54(2), 537–550. link.springer.com
- Shahzad, T., Khan, Z., Li, M., & Zhang, Y. (2025). A comprehensive review of large language models: Issues and solutions in learning environments. Discover Sustainability, 6(1), 27. link.springer.com
- Lai, H., Toral, A., & Nissim, M. (2023). Multidimensional evaluation for text style transfer using ChatGPT. arXiv preprint arXiv: 2304.13462. arxiv.org
- Liu, D., & Demberg, V. (2023). ChatGPT vs human-authored text: Insights into controllable text summarization and sentence style transfer. arXiv preprint arXiv: 2306.07799. arxiv.org
- Luo, G., Han, Y. T., Mou, L., & Firdaus, M. (2023). Prompt-based editing for text style transfer. arXiv preprint arXiv: 2301.11997. arxiv.org
- Khan, F., Horvitz, E., & Mireshghallah, F. (2024). Efficient few-shot text style transfer with authorship embeddings. Findings of EMNLP 2024, 781–796. aclanthology.org
- Hu, Z., & Chen, D. (2021). Improving the performance of graph-based dependency parsing with graph attention networks. Neurocomputing, 457, 214–224. sciencedirect.com
- Muhammad, H., & Zhang, S. (2023). Adversarial intervention techniques in text style transfer: A survey. Proceedings of the ACL Workshop on Adversarial NLP, 112–123. bera-journals.onlinelibrary.wiley.com