arXiv:2608.16224cs.CLcs.AI2026-08

让时间问答更准确可解释,用规则+语言模型分工解决时间推理难题

STAIR: Semantic-Temporal Automaton for Interpretable Reasoning in Temporal Question Answering

论文配图:STAIR: Semantic-Temporal Automaton for Interpretable Reasoning in Temporal Question Answering
图 1 · 摘自论文原文
  • 分两步走:先用语言模型理解问题,再用确定性规则系统精确推理时间
  • 在多个数据集上比现有方法平均提升16.57%(用Qwen2.5-7B)
  • 适合需要可解释、高精度时间推理的场景,如医疗、金融时序分析

通过大规模预训练,大语言模型(LLM)无需任务特定训练即可理解多样的时间表达和问题形式。然而,现有基于提示的神经符号系统仍依赖LLM完成语义解析与精确时间推断,导致区间、时间锚点和状态顺序等离散决策易受概率误差影响且难以验证。我们提出STAIR——一种用于可解释时间推理的语义-时间自动机。该模型将语义解析与精确时间推断分离:一个无答案的LLM适配器将复杂问题映射为标准化的时间意图,而具有有限状态控制和带条件转移的确定性时间自动机在规范化证据上执行相应策略。遵循规则优先设计,STAIR在标准问题上无需调用LLM,仅在规则路径失败时才启用语义适应。此方法减少自由形式推理,使时间决策可验证、可解释。具体而言,带条件执行支持精确点时间包含与前后关系选择,语义适应则处理非精确区间和时间锚定查询。在TimeQA-Easy、TimeQA-Hard、TempReason-L2和TempReason-L3数据集上,使用匹配模型设置的TQA任务中,STAIR持续优于强基线,分别在Qwen2.5-7B和GPT-4o-mini下实现平均F1提升16.57%和3.10%。消融与诊断分析表明,STAIR在边界敏感和顺序敏感查询上表现优异,其带条件执行与语义适应分别确保了点时间推理的精确性和不精确区间的合理处理。

原文摘要 · Abstract (English)

By leveraging large-scale pretraining, LLMs can interpret diverse temporal expressions and question formulations without task-specific training. However, existing prompt-based neuro-symbolic systems continue to rely on LLMs for both semantic interpretation and exact temporal inference. Consequently, discrete decisions regarding intervals, time anchors, and ordered states remain vulnerable to probabilistic errors and difficult to verify. We present STAIR, a \textbf{S}emantic-\textbf{T}emporal \textbf{A}utomaton for \textbf{I}nterpretable \textbf{R}easoning. STAIR separates semantic interpretation from precise temporal inference: an answer-free LLM adapter maps complex question formulations to normalized temporal intents, while a deterministic temporal automaton with finite control and guarded transitions executes the corresponding policies over canonicalized evidence. Following a rule-first design, STAIR resolves standard questions without invoking an LLM and applies semantic adaptation only when the rule path fails to produce an executable intent. This approach reduces free-form reasoning, making temporal decisions verifiable and interpretable. Specifically, guarded execution supports precise point-time containment and before/after selection, while semantic adaptation handles non-exact intervals and time-anchored queries. Across the TimeQA-Easy, TimeQA-Hard, TempReason-L2, and TempReason-L3 datasets, STAIR consistently outperforms strong baselines in the TQA task using matched model settings, achieving average F1 improvements of 16.57\% and 3.10\% when utilizing the Qwen2.5-7B and GPT-4o-mini models, respectively. Furthermore, ablations and diagnostic analyses demonstrate that STAIR excels at handling both boundary-sensitive and order-sensitive queries, while its guarded execution and semantic adaptation ensure precise point-time reasoning and inexact intervals, respectively.

时间推理可解释性规则系统大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。