Forging Robust Cognition Resilience in Large Language Models: The Self-Correction Reflection Paradigm Against Input Perturbations
-
Published:2025-05-01
Issue:9
Volume:15
Page:5041
-
ISSN:2076-3417
-
Container-title:Applied Sciences
-
language:en
-
Short-container-title:Applied Sciences
Author:
Wu Hua1ORCID, Hong Haotian1, Mao Jiayu1, Yin Zhexun1, Wu Yanxiong2, Bai Xiaojing1, Sun Li1, Pu Mengyang1ORCID, Liu Juncheng1, Li Yihuan1
Affiliation:
1. School of Control and Computer Engineering, North China Electric Power University, Beijing 102206, China 2. Institute of Disaster Prevention, Xueyuan Street, Yanjiao High Tech Zone, Sanhe 065201, China
Abstract
Large language models (LLMs) have been widely used in real-world applications due to their ability to decipher and make sense of perturbed information. However, the performance of LLMs that suffered from input perturbations has not been fully analyzed. In this paper, we propose a self-correction reflection method inspired by human cognition to improve robustness and mitigate the impact of perturbations on LLM performance. Firstly, we analyze the vulnerabilities of tokenization in LLMs through empirical demonstrations, comparative analysis with human cognition, and theoretical investigation of perturbation susceptibility. Secondly, we imitate the correction of input information in the human brain, which is enhanced by the consistency principle, aiming to enable the model to correct the perturbation and reduce the impact on the final response. Finally, we conduct experiments to validate the method’s efficacy, demonstrating improved performance across multiple models and datasets. We introduce a new evaluation metric, Model-Specific Cosine Similarity (MSCS), to quantify how well a specific model understands perturbation text, providing a more comprehensive evaluation of different LLM architectures. Particularly for different types of perturbations, after applying self-correction reflection, the average MSCS improvement across all models reaches 10.88%, while the average ACC improvement is 10.22%. The study also underscores the need for more innovative tokenization techniques and architectural design to achieve human-like cognitive robustness. This study could pave the way for more reliable, adaptable, and intelligent language models capable of thriving in practical applications.
Funder
National Natural Science Foundation, China Fundamental Research Funds for the Central Universities Beijing Key Laboratory Program
Reference45 articles.
1. Sun, K., and Wang, R. (2024). Computational Sentence-level Metrics Predicting Human Sentence Comprehension. arXiv. 2. Salinas, A., and Morstatter, F. (2024, January 11–16). The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performance. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand. 3. AlKhamissi, B., Tuckute, G., Bosselut, A., and Schrimpf, M. (2024). Brain-like language processing via a shallow untrained multihead attention network. arXiv. 4. Goldstein, A., Ham, E., Nastase, S.A., Zada, Z., Grinstein-Dabus, A., Aubrey, B., Schain, M., Gazula, H., Feder, A., and Doyle, W. (2022). Correspondence between the layered structure of deep language models and temporal structure of natural language processing in the human brain. BioRxiv. 5. Computational neuroanatomy of speech production;Hickok;Nat. Rev. Neurosci.,2012
|
|