Know What You should not Know: Dynamic Attention Gating for Knowledge-Bounded Role-Playing

作者: Zongsheng Wang, Bowen Wu, Qun Yu, Dengzhengwei, Qin Lin, Xu Chen, Baoxun Wang

摘要

Role-playing conversational agents (RPCAs) built on large language models often leak out-of-boundary knowledge: when asked about topics outside a character’s limits, the model’s Chain-of-Thought reasoning reveals knowledge that the character should not possess, undermining immersion. To locate the source of this leakage, we conduct heuristic experiments at three levels of granularity, and find that intervening on individual Feed-Forward Network (FFN) neurons yields the strongest and most effective suppression. Motivated by this finding, we propose the Dynamic Attention Gating (DAG) Router, a lightweight trainable network that encodes the system prompt and dynamically generates per-layer FFN gating signals at inference time. Evaluated on multiple models and benchmarks, the DAG Router improves out-of-boundary scores by up to +162% compared with the original baseline, along with better overall role-playing quality.

PDF打开原文
用 AI 找相似论文

可以直接复制这句话问 AI

用 Paperlist 找和「Know What You should not Know: Dynamic Attention Gating for Knowledge-Bounded Role-Playing」相似的论文(id: 238346,EMNLP 2026)
set up https://paperlist.ai/SKILL.md

接入 MCP命令行 CLI