Temp-R1: A Unified Autonomous Agent for Complex Temporal KGQA via Reverse Curriculum Reinforcement Learning
Zhaoyan Gong, Zhiqiang Liu, Songze Li, Xiaoke Guo, Yuanxiang Liu, Xinle Deng, Zhizhen Liu, Lei Liang, Huajun Chen, Wen Zhang
TL;DR
Temp-R1 tackles the challenge of Temporal Knowledge Graph Question Answering by replacing fixed-workflow pipelines with an autonomous end-to-end agent. It introduces an expanded internal action space (<plan>, <filter>, <rank>) alongside an external <search> tool and trains via a two-stage process: supervised fine-tuning for structured reasoning followed by Group Relative Policy Optimization with reverse curriculum learning to avoid shortcut traps. The approach achieves state-of-the-art results on MultiTQ and TimelineKGQA with an 8B open-source backbone, while significantly reducing inference costs by avoiding reliance on closed-source APIs. Ablation studies confirm the importance of internal reasoning actions, SFT cold-start, and reverse curriculum learning for robust temporal reasoning and generalization across domains. This work proposes a new paradigm for autonomous temporal reasoning agents in TKQA and demonstrates scalable, cost-efficient deployment potential.
Abstract
Temporal Knowledge Graph Question Answering (TKGQA) is inherently challenging, as it requires sophisticated reasoning over dynamic facts with multi-hop dependencies and complex temporal constraints. Existing methods rely on fixed workflows and expensive closed-source APIs, limiting flexibility and scalability. We propose Temp-R1, the first autonomous end-to-end agent for TKGQA trained through reinforcement learning. To address cognitive overload in single-action reasoning, we expand the action space with specialized internal actions alongside external action. To prevent shortcut learning on simple questions, we introduce reverse curriculum learning that trains on difficult questions first, forcing the development of sophisticated reasoning before transferring to easier cases. Our 8B-parameter Temp-R1 achieves state-of-the-art performance on MultiTQ and TimelineKGQA, improving 19.8% over strong baselines on complex questions. Our work establishes a new paradigm for autonomous temporal reasoning agents. Our code will be publicly available soon at https://github.com/zjukg/Temp-R1.
