让AI更懂对话上下文,自动修复用户表达不清的问题。
A Context Alignment Pre-processor for Enhancing the Coherence of Human-LLM Dialog
- 用语义扩展和时间加权召回,重建对话上下文
- 检测对话偏离并触发澄清机制,提升连贯性
- 适合需要长期互动的智能客服与协作系统
大型语言模型在生成流畅文本方面取得显著进展,但在长时动态对话中仍面临上下文错位的关键挑战。当用户省略前提、简化指代或突然转换话题时,模型可能无法捕捉真实意图,导致机械或离题回复,削弱对话协作潜力。为此,本文提出一种名为上下文对齐预处理器(C.A.P.)的计算框架。该框架作为用户输入与生成之间的预处理模块,包含三个核心过程:(1) 语义扩展,将用户指令拓展至包含前提、字面意义及隐含含义的更广语义范围;(2) 时间加权上下文检索,通过时间衰减函数优先考虑近期对话历史,模拟人类对话注意力;(3) 对齐验证与决策分支,通过测量当前提示与加权历史上下文的语义相似度判断对话是否偏离。一旦检测到显著偏差,C.A.P. 将启动结构化澄清协议,帮助用户与系统重新校准对话。本文阐述了C.A.P.的架构与理论基础,结合认知科学与人机交互中的共同知识理论,认为C.A.P.不仅是技术优化,更是推动人机对话从单向指令执行转向双向自修正协作的重要一步。最后,讨论了其实现路径、评估方法及对未来交互式智能系统设计的意义。
原文摘要 · Abstract (English)
Large language models (LLMs) have made remarkable progress in generating fluent text, but they still face a critical challenge of contextual misalignment in long-term and dynamic dialogue. When human users omit premises, simplify references, or shift context abruptly during interactions with LLMs, the models may fail to capture their actual intentions, producing mechanical or off-topic responses that weaken the collaborative potential of dialogue. To address this problem, this paper proposes a computational framework called the Context Alignment Pre-processor (C.A.P.). Rather than operating during generation, C.A.P. functions as a pre-processing module between user input and response generation. The framework includes three core processes: (1) semantic expansion, which extends a user instruction to a broader semantic span including its premises, literal meaning, and implications; (2) time-weighted context retrieval, which prioritizes recent dialogue history through a temporal decay function approximating human conversational focus; and (3) alignment verification and decision branching, which evaluates whether the dialogue remains on track by measuring the semantic similarity between the current prompt and the weighted historical context. When a significant deviation is detected, C.A.P. initiates a structured clarification protocol to help users and the system recalibrate the conversation. This study presents the architecture and theoretical basis of C.A.P., drawing on cognitive science and Common Ground theory in human-computer interaction. We argue that C.A.P. is not only a technical refinement but also a step toward shifting human-computer dialogue from one-way command-execution patterns to two-way, self-correcting, partnership-based collaboration. Finally, we discuss implementation paths, evaluation methods, and implications for the future design of interactive intelligent systems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。