Cognitive Analysis Graph-Guided Multi-Turn Safety Enhancement for Large Language Models

Lanxue Zhang, Yuqiang Xie, Fang Fang, Yubing Ren, Xuebin Wang, Yanan Cao


Abstract
Large Language Models exhibit advanced reasoning capabilities that enable them to address complex tasks, but these capabilities also increase the risk of generating harmful content, particularly in multi-turn dialogues. Existing inference-phase safety alignment methods face three major challenges. First, they lack the relationship consideration between question and response, making the model easy to provide harmful content toward complex scenarios. Second, they are difficult to adapt to defense instruction. Third, these methods fail to effectively leverage historical information for safe response generation. To address these challenges, we propose CogGSE, an inference-time safety alignment framework that explicitly models the cognitive process of problem solving through a structured cognitive analysis graph. We retrieve a question-specific graph to ensure the safety information is tailored to the query. To fully exploit historical information in multi-turn settings, we retrieve relevant graphs from previous turns and selectively retain safety-related nodes, which are jointly used with the current-turn graph to guide safe response generation. This design enables transparent, controllable reasoning while maintaining strong safety guarantees. Extensive experiments demonstrate the effectiveness of our approach in multiple safety scenarios.
Anthology ID:
2026.findings-acl.1558
Volume:
Findings of the Association for Computational Linguistics: ACL 2026
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
31143–31160
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1558/
DOI:
Bibkey:
Cite (ACL):
Lanxue Zhang, Yuqiang Xie, Fang Fang, Yubing Ren, Xuebin Wang, and Yanan Cao. 2026. Cognitive Analysis Graph-Guided Multi-Turn Safety Enhancement for Large Language Models. In Findings of the Association for Computational Linguistics: ACL 2026, pages 31143–31160, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Cognitive Analysis Graph-Guided Multi-Turn Safety Enhancement for Large Language Models (Zhang et al., Findings 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1558.pdf
Checklist:
 2026.findings-acl.1558.checklist.pdf