arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.16052cs.AI
收藏

一种增强人与大语言模型对话连贯性的上下文对齐预处理模块

A Context Alignment Pre-processor for Enhancing the Coherence of Human-LLM Dialog

College of Architecture, Nanjing Tech University(南京工业大学建筑学院)

Ding Wei

AI总结:

本文提出C.A.P.预处理框架,通过语义扩展、时间加权上下文检索和对齐验证,解决长对话中的上下文错位问题,提升对话连贯性与协作性。

摘要:

大型语言模型(LLMs)在生成流畅文本方面取得了显著进展,但仍然面临长期和动态对话中的上下文错位挑战。当人类用户省略前提、简化参考或突变上下文时,模型可能无法捕捉其真实意图,导致机械或偏离主题的回应。为此,本文提出一种名为上下文对齐预处理(C.A.P.)的计算框架,作为用户输入与响应生成之间的预处理模块。该框架包含三个核心过程:(1)语义扩展,将用户指令扩展为更广泛的语义跨度,包括前提、字面意义和推论;(2)时间加权上下文检索,通过时间衰减函数近似人类对话焦点优先级;(3)对齐验证和决策分支,通过测量当前提示与加权历史上下文的语义相似性评估对话是否保持在正轨上。当检测到显著偏差时,C.A.P.会启动结构化澄清协议,帮助用户和系统重新校准对话。本文介绍了C.A.P.的架构和理论基础,结合认知科学和人机交互中的Common Ground理论。我们认为C.A.P.不仅是技术改进,也是将人机对话从单向命令执行模式转向双向、自我纠正、基于合作的协作模式的一步。最后,我们讨论了实现路径、评估方法以及对交互智能系统未来设计的影响。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑