Manuscript Offprint
arXiv:2610.38450CoSTA: Co-Evolving Self-Play Timeline Agents for Complex Temporal Knowledge Graph Question Answering
Haikun Liu Shanxi University Taiyuan, China liuhaikun1@sxu.edu.cn
Zhichao Yan, Shaoru Guo Shanxi University Taiyuan, China {yanzhichao, gsr}@sxu.edu.cn
Jiawei Gu Singapore University of Technology and Design Singapore jiawei_gu@sutd.edu.sg
Victor Gutiérrez-Basulto Cardiff University Cardiff, UK GutierrezBasultoV@cardiff.ac.uk
Jiapu Wang* Nanjing University of Science and Technology Nanjing, China jiapu.wang@njust.edu.cn
Ru Li Shanxi University Taiyuan, China liru@sxu.edu.cn
Abstract
Complex Temporal Knowledge Graph Question Answering (TKGQA) involves more than retrieving facts: the timestamp or validity interval of one fact can constrain the search for another, while multiple intervals may jointly determine the answer. Existing single-agent TKGQA methods typically investigate these facts within a single reasoning context, where evidence from different event histories can become interleaved and distractors can misdirect subsequent retrieval. Distributing investigations across agents can separate event-specific evidence into distinct contexts, but effective collaboration must still be learned because question decomposition, subtask investigation, and evidence synthesis are interdependent. To address these limitations, we propose Co-Evolving Self-Play Timeline Agents (CoSTA), which organizes facts into navigable timelines, delegates investigations to workers, and uses a coordinator to synthesize their original timestamped observations. CoSTA initializes a shared policy through role-conditioned distillation and jointly optimizes both roles through co-evolving self-play with final-answer rewards. Across three benchmarks, CoSTA achieves state-of-the-art overall performance, with particularly strong gains on complex multi-fact questions, while its compact variants outperform the evaluated closed-source LLM agents¹.
CCS Concepts
• Computing methodologies → Temporal reasoning; Multi-agent systems.
1 Introduction
Factual knowledge on the Web evolves over time, with collaborative knowledge bases and news media continuously recording changes in entity relations and new events [5, 43]. However, conventional knowledge graphs typically treat facts as static, although many real-world relations are valid only within specific periods [15].

Figure 1: Motivating comparison of (a) Traditional TKGQA, (b) Single-agent TKGQA, and (c) Our proposed CoSTA, which coordinates separate timeline investigations and co-evolves the coordinator and workers through self-play.
Temporal Knowledge Graphs (TKGs) address this limitation by associating facts with timestamps or validity intervals, thereby capturing the temporal validity and evolution of such relations [41, 44, 45, 50]. Building on TKGs, Temporal Knowledge Graph Question Answering (TKGQA) is proposed, which aims to answer natural-language questions by reasoning over temporally qualified facts [5, 35].
However, complex temporal questions may involve dependencies among multiple facts: the time of one fact can constrain the retrieval of another [5], while the intervals of several facts may
*Corresponding author. ¹Code and data are available at: https://github.com/haikunhere/CoSTA jointly determine the answer [41]. For example, the question in Figure 1 first requires identifying the UK PM immediately preceding Attlee and then intersecting the tenure intervals of Stalin, Roosevelt, and the identified prime minister.
Such dependencies make complex TKGQA a coordination problem rather than merely a longer reasoning process. When evidence from multiple event histories is accumulated within a single reasoning context, observations, timestamps, and intermediate search steps can become interleaved. This entanglement obscures fact-time correspondences and increases the risk that distractor facts derail subsequent retrieval, as illustrated by the single-agent failure in Figure 1(b).
To separate these event histories without losing their temporal dependencies, we draw inspiration from transactive memory systems, in which human teams distribute knowledge across members while coordinating its retrieval [26, 52]. This analogy suggests distributing event-specific investigations while coordinating their evidence under global temporal constraints. Yet specialization alone does not ensure effective collaboration: a controlled study of human teams found that jointly trained teams outperformed those assembled from individually trained members, with the performance advantage mediated primarily by the development of transactive memory [27].
Existing TKGQA methods optimize individual-agent reasoning and tool use [12, 19, 22], but their single-agent objectives do not capture dependencies across collaborative roles. These roles are mutually dependent: the value of a worker's investigation depends on both the assigned subtask and how its evidence is synthesized, whereas the coordinator is constrained by what workers retrieve and report. Optimizing either role in isolation may therefore favor behavior that is locally effective but fails to improve final-answer quality. This calls for team-level learning from end-to-end collaborative outcomes, following the broader principle of co-evolving complementary roles through interaction [51].
To address these challenges, we propose Co-Evolving Self-Play Timeline Agents (CoSTA), a timeline-centric collaborative framework for complex TKGQA. CoSTA organizes TKG facts into chronologically ordered timelines, allowing agents to enter relevant timelines through semantic retrieval, inspect temporal neighborhoods through timeline reading, and traverse to related timelines via shared facts. A coordinator decomposes each question into interdependent subtasks, which workers investigate in separate contexts before returning their original timestamped tool observations together with concise reports relating the evidence to each subtask. The coordinator integrates this evidence under the temporal constraints of the full question, for example, by ordering facts or intersecting intervals, and launches follow-up investigations when necessary.
Beyond this inference architecture, CoSTA instantiated the coordinator and workers with a shared policy conditioned on role-specific prompts [32]. Role-conditioned distillation from successful collaborative demonstrations first initializes the policy with the reasoning and tool-use behaviors required by each role. Co-evolving self-play then optimizes the shared policy over complete collaborative trajectories, using cross-role credit assignment to propagate the final-answer reward to every participating role. Experiments on three TKGQA benchmarks show that CoSTA outperforms prior
methods, particularly on complex questions; further analyses validate the contributions of multi-agent collaboration and co-evolving self-play.
The main contributions of this paper are summarized as follows:
- Timeline-centric collaboration. To the best of our knowledge, we introduce the first jointly trained coordinator-worker framework for complex TKGQA, separating worker-side timeline investigation from coordinator-side synthesis of the original temporal evidence.
- Co-evolving self-play. We develop a shared-policy strategy that initializes both roles through role-conditioned distillation and jointly optimizes delegation, investigation, and synthesis through self-play with cross-role credit assignment from final-answer feedback.
- Empirical validation. We show on three benchmarks that CoSTA achieves the best overall performance, especially on multi-fact questions; ablations validate timeline navigation and evidence-preserving collaboration, while compact variants outperform evaluated closed-source LLM agents.
2 Related Work
Existing TKGQA methods can be roughly categorized into retrieval-based and agent-based methods. The two categories differ in whether the reasoning steps are fixed in advance or decided by an agent based on intermediate observations.
2.1 Retrieval-based TKGQA Methods
Early TKGQA methods are mainly embedding-based or semantic parsing-based [40]. CronKGQA [35] scores candidate entities and timestamps using TKG embeddings [47–49]. Based on CronKGQA, TempoQR [31] further grounds question representations in relevant entities and time scopes. To reason over multiple related facts, EXAQT [21], TwiRGCN [38], and LGQA [29] apply graph neural networks [46, 58] to question-relevant temporal subgraphs. Instead of implicit scoring, semantic parsing-based methods express temporal constraints explicitly. TEQUILA [20] decomposes a question into sub-questions and temporal constraints, while SF-TQA [7] and Prog-TQA [6] translate questions into query graphs and executable programs, respectively [59, 60]. However, these methods rely on task-specific representations or predefined constraint types and operators, making it difficult to cover the diverse temporal constraints in questions [40].
LLM-enhanced retrieval methods leverage the language understanding and reasoning abilities of LLMs to interpret these constraints directly over retrieved facts. GenTKGQA [9] incorporates graph representations of temporal subgraphs into an LLM. To handle implicit temporal constraints, TimeR4 [34] rewrites them into explicit ones before time-aware retrieval. PoK [57] further plans retrieval, temporal ranking, and reasoning as a sequence of sub-objectives. Meanwhile, RTQA [11] recursively solves decomposed sub-questions using their intermediate answers. To organize the evidence, TECQA [28] retains temporal neighbors around the temporal anchors of a question. Similarly, SCoP [14] compiles temporal constraints into executable evidence filters. Nevertheless, these methods follow predefined pipelines or plans generated in advance, rather than deciding each step based on intermediate observations.

Figure 2: The framework of CoSTA, which initializes a shared policy for the coordinator and workers from teacher demonstrations and optimizes it through self-play over timeline-centric collaboration (①–④), enabling the two roles to co-evolve. The reward curve is illustrative.
2.2 Agent-based TKGQA Methods
To decide each step based on intermediate observations, agent-based methods employ LLM agents that iteratively invoke tools on TKGs. TempAgent [17] equips a ReAct [55] agent with temporal retrieval tools at multiple granularities. Beyond a single trajectory, ARI [4] induces reusable reasoning guidance from historical trajectories. Similarly, MemoTime [42] reuses past reasoning through an experience memory and organizes sub-questions into a Tree of Time. To improve the reliability of reasoning, SAR [16] aligns retrieval with the TKG schema and reorders retrieved facts chronologically. Instead of refining retrieval, Regret-Now [18] detects abnormal reasoning steps and rolls back to earlier decisions. However, these agents rely on prompting and stored experience, without training the underlying LLMs with interaction feedback.
RL-based agents further train the underlying LLMs with interaction feedback. MRE [53] optimizes multi-hop decisions with feedback from tree-structured exploration. Temp-R1 [12] adds internal reasoning actions and trains the agent with a reverse curriculum. To supervise tool interactions, TempTool-R1 [19] introduces order-sensitive tool rewards, while TKG-Thinker [22] combines answer, format, and retrieval rewards. However, these agents investigate all required facts within a single reasoning context, where evidence
from different event histories can become interleaved and distractors can misdirect subsequent retrieval. They are also optimized as a single agent rather than as multiple interdependent roles.
Different from the aforementioned TKGQA methods, the proposed CoSTA is a timeline-centric collaborative framework that learns collaboration among agents for complex TKGQA. By distributing the investigations of different event histories across workers in separate contexts, CoSTA keeps their evidence from interleaving, while co-evolving self-play jointly optimizes the workers and their coordinator as interdependent roles from final-answer rewards.
3 Preliminary
Temporal Knowledge Graph (TKG). A TKG is represented as , where is a set of quadruplets over the entity set , the relation set , and the timestamp set . Each quadruplet denotes the fact that subject entity has relation with object entity at time , where is either a timestamp in or a time interval bounded by two timestamps [5, 41].
Timeline. To read each fact among its temporal neighbors, we organize the facts of into chronologically ordered timelines. For an entity , a relation , and marking subject or object, the timeline of collects the facts in which appears as under and orders them by time:
where sort orders facts by timestamp or interval start.
Temporal Knowledge Graph Question Answering (TKGQA). Given a TKG and a natural-language question , TKGQA aims to predict the answer set of from the facts in , where each answer is either an entity or a temporal value [5, 35, 41]. The facts required to derive are called the supporting facts of [41]. As the supporting facts are not given with , we formulate TKGQA with a retriever that selects a fact set and a reasoner that derives the answers from :
Since the number of fact sets grows exponentially with , Eq. (2) is approximated by its term for the fact set retrieved for . As is the same for every candidate answer, [33].
Multi-Agent Collaboration. Multi-agent collaboration solves complex tasks by organizing a coordinator and multiple workers [24, 32]. Specifically, the coordinator decomposes a question q into subtasks and delegates them to workers, each of which solves its subtask through multi-turn tool use within a separate context and returns a message. Based on the returned messages, the coordinator either delegates further subtasks or derives the answer a, which can be formulated as:
(3)
where is the output of the coordinator at turn , which is either a set of subtasks or the answer , and denotes the responses of the coordinator before turn together with the messages returned for their subtasks. The message returned for subtask is typically the answer of the worker to this subtask [24, 32]. The coordinator and worker policies and can be instantiated by different LLMs or by a shared LLM with role-specific system prompts [32].
4 Methodology
In this section, we present CoSTA, which consists of three components: Timeline-Centric Collaboration (Section 4.1) enables a coordinator and workers to collaboratively answer temporal questions; Shared Policy Initialization (Section 4.2) initializes their shared policy through demonstration-based training; and Co-Evolving Policy Optimization (Section 4.3) further improves the shared policy through self-play, enabling the coordinator and worker roles to co-evolve. Figure 2 provides an overview of the framework.
4.1 Timeline-Centric Collaboration
Timeline-centric collaboration answers temporal questions with a coordinator and multiple workers. It consists of three steps: Subtask Delegation, Timeline Investigation, and Evidence Synthesis.
Subtask Delegation. Subtask delegation decomposes a question into subtasks that target different candidate timelines and assigns them to separate workers. CoSTA uses a shared policy for both roles, distinguished by role-specific system prompts and . At
turn k, the coordinator generates a response conditioned on the question and collaboration history:
As defined in Eq. (3), the coordinator’s output is either a set of subtasks or the final answer . Each subtask , such as identifying the UK prime minister immediately preceding Attlee, is assigned to a worker with its own context. Workers investigate subtasks independently within each turn, while subsequent turns can build on returned messages to delegate additional subtasks.
Timeline Investigation. Timeline investigation explores the candidate timelines associated with each subtask and gathers temporal evidence through two tools: semantic retrieval and timeline reading. Following [32], the worker receives both the original question q and the assigned subtask , and generates a response at step u based on its earlier responses and tool observations :
Each response either invokes a tool or ends the investigation. Semantic retrieval returns the facts most similar to a query as entry points for timeline exploration. Timeline reading uses an observed fact as a temporal anchor and returns neighboring facts from its subject or object timeline, as defined in Eq. (1). By following facts shared across timelines, the worker can navigate between related timelines. Since each timeline is chronologically ordered, the worker can directly identify facts immediately before or after the anchor, such as the prime minister preceding Attlee. Finally, the worker returns a message , where contains all tool observations with their original timestamps, and is its report summarizing the investigation findings.
Evidence Synthesis. Evidence synthesis integrates observations and reports from different workers to resolve the temporal constraints of the original question. The worker messages from turn are added to the collaboration history , which informs the coordinator's next response in Eq. (4). With the original timestamps preserved, the coordinator can jointly reason over facts from different subtasks, such as determining their temporal order for a before constraint or intersecting their intervals for an overlap constraint. Thus, the workers act as the retriever and the coordinator acts as the reasoner in Eq. (2), where the retrieved fact set is . The coordinator outputs the final answer when sufficient evidence is available; otherwise, it delegates additional subtasks, for up to turns.
A complete collaboration produces a trajectory of coordinator and worker responses, whose probability factorizes across the two roles:
(6)
As tool observations are not generated by , they appear only as conditions in Eq. (6). This factorization shows that both coordinator decisions and worker investigations are governed by the same policy parameters , which are initialized and optimized in Sections 4.2 and 4.3.
Table 1: Hits@1 (%) on MultiTQ, TimelineKGQA-CronQuestion, and TimelineKGQA-ICEWS-Actor. Baselines are grouped into retrieval-based methods, prompting-based agents, and RL-based agents. Bold and underlined values denote the best and second-best scores, respectively.
| Method | MultiTQ | TimelineKGQA-CronQuestion | TimelineKGQA-ICEWS-Actor | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Overall | Single | Multiple | Overall | Simple | Medium | Complex | Overall | Simple | Medium | Complex | |
| TimeR⁴ (2024) [34] | 72.8 | 88.7 | 33.5 | 40.5 | 77.8 | 24.2 | 26.4 | 36.5 | 58.0 | 22.2 | 20.4 |
| PoK (2026) [57] | 77.9 | 92.9 | 40.9 | 65.1 | 73.7 | 53.9 | 68.3 | 60.2 | 74.4 | 45.6 | 57.8 |
| RTQA (2025) [11] | 76.5 | 90.2 | 42.4 | 29.8 | 60.8 | 21.8 | 13.5 | 20.1 | 22.9 | 19.7 | 15.6 |
| TECQA (2026) [28] | 81.1 | 88.9 | 61.6 | 34.0 | 46.2 | 27.0 | 30.9 | 38.0 | 55.4 | 24.9 | 27.6 |
| TempAgent (2025) [17] | 70.2 | 85.7 | 31.6 | 43.0 | 63.2 | 29.1 | 39.8 | 49.9 | 54.1 | 44.1 | 51.6 |
| ARI (2024) [4] | 38.0 | 68.0 | 21.0 | 37.1 | 79.9 | 17.3 | 22.0 | 51.7 | 76.1 | 35.3 | 33.8 |
| MemoTime (2026) [42] | 77.9 | 86.8 | 53.8 | 27.8 | 72.9 | 10.0 | 9.2 | 40.7 | 69.0 | 19.5 | 23.6 |
| Temp-R1 (2026) [12] | 78.0 | 88.8 | 55.0 | 70.5 | 96.0 | 48.6 | 67.2 | 64.2 | 86.6 | 38.8 | 59.5 |
| TempTool-R1 (2026) [19] | 85.1 | 95.2 | 75.3 | 51.7 | 80.9 | 42.6 | 49.5 | 47.5 | 76.1 | 40.2 | 45.3 |
| TKG-Thinker (2026) [22] | 85.5 | 91.0 | 72.1 | 46.0 | 56.7 | 29.4 | 52.3 | 50.8 | 55.6 | 40.9 | 58.3 |
| CoSTA (Qwen3-4B) | 86.8 | 91.3 | 75.9 | 71.8 | 82.3 | 56.8 | 76.9 | 72.6 | 80.3 | 62.4 | 75.1 |
| CoSTA (Llama-3.1-8B) | 89.9 | 91.7 | 85.5 | 69.2 | 82.9 | 55.1 | 71.0 | 70.5 | 79.6 | 59.6 | 71.4 |
4.2 Shared Policy Initialization
Shared policy initialization equips the shared policy with the ability to perform both roles and collaborate before self-play. It consists of two steps: Demonstration Generation and Role-Conditioned Distillation.
Demonstration Generation. Demonstration generation produces complete collaboration trajectories on the TKG to supervise the shared policy. A base LLM does not reliably perform subtask delegation, tool invocation, and message exchange within this collaboration framework. We therefore employ a teacher LLM that acts as both the coordinator and workers, using the same role-specific prompts and tools. Each demonstration thus records both how workers generate messages and how the coordinator uses them. Since the teacher may also produce incorrect answers, we retain only trajectories with correct final answers to construct the demonstration set .
Role-Conditioned Distillation. Role-conditioned distillation trains a single shared policy to perform both roles using the collected demonstrations. Each demonstration is divided into one coordinator sample and one sample per worker, each conditioned on its corresponding role prompt, yielding 2,000 training samples per dataset. Coordinator samples supervise subtask delegation and evidence synthesis, while worker samples supervise timeline investigation, tool invocation, and message generation. Both types of samples update the same policy parameters by maximizing the likelihood of the demonstrations:
where is the trajectory probability defined in Eq. (6). Tool observations and returned messages serve only as context and are excluded from the loss. The resulting policy, denoted , serves as both the initialization and reference policy for self-play in Section 4.3. Although the initialized policy can collaborate with itself, both roles have only learned from teacher-generated interactions rather than their own collaborative experience.
4.3 Co-Evolving Policy Optimization
Co-evolving policy optimization jointly improves subtask delegation, timeline investigation, and evidence synthesis through self-play, where the shared policy learns from the final outcomes of its own collaborations. It consists of three steps: Self-Play Rollout, Cross-Role Credit Assignment, and Leave-One-Out PPO.
Self-Play Rollout. Self-play rollout generates complete collaborations in which the current shared policy plays both the coordinator and worker roles [8]. Unlike teacher-generated demonstrations, the coordinator and workers now interact through subtasks and messages produced by the shared policy itself. For each training question , a snapshot of the shared policy independently samples trajectories according to Eq. (6). Without reference labels for intermediate decisions, each collaboration is evaluated by its final answer. The shared policy maximizes the expected final-answer reward:
where if the final answer of belongs to the answer set , and otherwise, including when no answer is returned.
Cross-Role Credit Assignment. Cross-role credit assignment propagates the outcome of each collaboration to the decisions made by both roles. By the likelihood-ratio identity, the gradient of Eq. (8) decomposes into contributions from the coordinator and workers:
where and sum over the coordinator and worker responses in Eq. (6), respectively. Thus, the final-answer reward provides a shared learning signal for both roles, without requiring separate supervision for their intermediate decisions. Each role is reinforced only when it succeeds together with its current partner. As this partner keeps improving through the same updates, the coordinator and workers co-evolve [51].
Leave-One-Out PPO. Leave-one-out PPO (LOOP) estimates trajectory-level advantages from final-answer rewards and uses them to optimize the shared policy. LOOP was developed for long-horizon interactive agents that receive only a task-completion reward [3], which matches our setting where each collaboration receives only a final-answer reward. Instead of training a separate value model, we estimate the advantage of each trajectory by comparing its reward with those of the other trajectories sampled for the same question [1, 25]:
Excluding from its own baseline preserves the unbiasedness of the on-policy policy-gradient estimator [25]. The resulting advantage is shared across all tokens generated by the coordinator and workers in . We optimize the shared policy using the clipped PPO objective [36], with dual clipping [56] and KL regularization toward the reference policy from Section 4.2:
where weights the KL term and is the dual-clipped PPO surrogate:
(12)
Here is the probability ratio of the -th generated token of under its role-specific context , controls PPO clipping, and controls dual clipping. The empirical expectation averages over tokens generated by both roles, excluding tool observations and returned messages. PPO clipping limits policy updates relative to , while dual clipping bounds the objective for negative advantages with large ratios. The KL term regularizes updates toward the collaboration behavior learned from demonstrations.
After each update, the improved shared policy generates new collaborations in both roles, allowing the coordinator and workers to adapt to each other's evolving behavior. At inference, the trained policy performs all roles in the collaboration described in Section 4.1, requiring only a single model.
5 Experiments
In this section, we evaluate CoSTA by answering the following research questions: RQ1. Can CoSTA outperform existing TKGQA methods and closed-source LLMs? RQ2. How do timeline reading and multi-agent collaboration contribute to CoSTA? RQ3. How do tool observations and reports in worker messages affect evidence synthesis? RQ4. How does co-evolving self-play improve the coordinator and workers? RQ5. Do the gains of CoSTA come from additional computation?
5.1 Experimental Settings
Datasets. We evaluate CoSTA on three TKGQA benchmarks: MultiTQ [5], TimelineKGQA-CronQuestion, and TimelineKGQA-ICEWS-Actor [41]. MultiTQ questions cover day, month, and year granularities and are categorized as Single or Multiple according to the number of temporal constraints. Both TimelineKGQA
benchmarks group questions into Simple, Medium, and Complex categories, requiring one, two, and three supporting facts, respectively. Further dataset descriptions and statistics are provided in Appendix A.
Baselines. We compare CoSTA with three groups of LLM-based TKGQA methods: (1) retrieval-based methods, including TimeR4 [34], PoK [57], RTQA [11], and TECQA [28]; (2) prompting-based agents, including TempAgent [17], ARI [4], and MemoTime [42]; and (3) RL-based agents, including Temp-R1 [12], TempTool-R1 [19], and TKG-Thinker [22]. We also compare CoSTA with two closed-source LLMs, GPT-5.6 Sol and GPT-6 Astra. Brief descriptions of the baselines are provided in Appendix B.
Implementation Details. Following prior work [12, 19, 22], we adopt Hits@1 as the evaluation metric. We fine-tune Qwen3-4B-Instruct [54] and Llama-3.1-8B-Instruct [13] as backbones, using the same E5 retriever as Jin et al. [23] to retrieve the top 15 facts per query. Role-conditioned distillation uses demonstrations generated by Qwen3-30B-A3B-Instruct [54]. For each backbone, we train one model on MultiTQ and a single model jointly on both TimelineKGQA benchmarks. Table 1 reports results on the full test sets. The other experiments use 1,000 questions sampled from the dev set of each benchmark. Detailed training settings are provided in Appendix C.
5.2 Main Results (RQ1)
Table 1 reports the performance of CoSTA and the baselines on the three benchmarks. CoSTA achieves the best overall Hits@1 on all three benchmarks. The Qwen variant outperforms all baselines on every benchmark, while the Llama variant achieves the highest accuracy of 89.9% on MultiTQ. Among the baselines, RL-based agents perform best, with TKG-Thinker leading on MultiTQ and Temp-R1 leading on both TimelineKGQA benchmarks. This is because RL trains the underlying LLMs with interaction feedback. Although these agents are also trained with RL, CoSTA still outperforms them by further learning subtask delegation, timeline investigation, and evidence synthesis through co-evolving self-play.
The advantage of CoSTA is most evident on questions with multiple supporting facts. Both variants outperform all baselines on MultiTQ Multiple and on the Medium and Complex categories of both TimelineKGQA benchmarks. For example, on TimelineKGQA-ICEWS-Actor Complex, the Qwen variant reaches 75.1%, compared with 59.5% for Temp-R1. This advantage is attributed to the timeline-centric collaboration of CoSTA. Workers investigate the timelines of different subtasks in separate contexts, while the coordinator synthesizes their observations with original timestamps for joint temporal reasoning. On Single and Simple questions, TempTool-R1 and Temp-R1 achieve higher accuracy, as these questions can be answered within a single investigation.
Table 2 further compares CoSTA with two closed-source LLMs, GPT-5.6 Sol and GPT-6 Astra, both equipped with the E5 retriever used in our implementation. Despite access to E5-retrieved facts, both the 4B and 8B variants of CoSTA outperform these models on all three benchmarks. For example, the Llama variant achieves 89.5% on MultiTQ, compared with 82.2% for GPT-6 Astra. These results highlight the effectiveness of timeline-centric collaboration and
Table 2: Hits@1 (%) of CoSTA and closed-source LLMs. Bold denotes the best score in each column.
| Method | MultiTQ | TimelineKGQA | |
|---|---|---|---|
| CronQuestion | ICEWS-Actor | ||
| GPT-5.6 Sol | 82.0 | 65.4 | 63.6 |
| GPT-6 Astra | 82.2 | 69.0 | 64.4 |
| CoSTA (Qwen3-4B) | 87.4 | 71.1 | 71.7 |
| CoSTA (Llama-3.1-8B) | 89.5 | 70.4 | 69.9 |
Table 3: Ablation of timeline reading and collaboration (Hits@1, %). TimelineKGQA reports the average over its two benchmarks. Bold denotes the best score in each column.
| Method | Qwen3-4B | Llama-3.1-8B | ||
|---|---|---|---|---|
| MultiTQ | TimelineKGQA | MultiTQ | TimelineKGQA | |
| CoSTA | 87.4 | 71.4 | 89.5 | 70.2 |
| w/o timeline reading | 69.7 | 71.2 | 64.8 | 69.0 |
| w/o collaboration | 82.9 | 67.1 | 89.1 | 65.4 |
| w/o both | 65.6 | 66.0 | 62.7 | 64.3 |

Figure 3: Hits@1 (%) on TimelineKGQA questions of different difficulty.
co-evolving self-play in enabling compact open-source backbones to surpass closed-source LLMs in TKGQA.
5.3 Ablation Experiments (RQ2)
Table 3 reports the ablation of two core designs of CoSTA, namely timeline reading and multi-agent collaboration. To isolate their contributions, all variants share the trained policy of CoSTA and differ only at inference. Without timeline reading, workers can only access facts through semantic retrieval. Without collaboration, a single agent investigates and answers each question within one context.
Timeline reading is essential on MultiTQ. Removing it reduces Hits@1 from 87.4% to 69.7% for Qwen and from 89.5% to 64.8% for Llama. This is because many MultiTQ questions ask for the first or last fact, or the fact before or after another fact, which requires reading neighboring facts on a timeline.
Collaboration mainly improves TimelineKGQA. Without collaboration, the TimelineKGQA accuracy drops from 71.4% to 67.1% for Qwen and from 70.2% to 65.4% for Llama. As shown in Figure 3, the drop concentrates on questions with multiple supporting facts. Removing collaboration lowers the accuracy on Medium and

Figure 4: Hits@1 (%) with different contents of worker messages. TimelineKGQA reports the average over its two benchmarks. Dashed lines mark CoSTA.
Complex questions by 6.1 to 7.1 points for both backbones, compared with less than one point on Simple questions. Medium and Complex questions require joint reasoning over the time intervals of two or three supporting facts. In CoSTA, workers investigate these facts in separate contexts, while the coordinator synthesizes their observations with original timestamps.
Overall, timeline reading mainly benefits MultiTQ, whereas collaboration mainly benefits TimelineKGQA. Removing both designs yields the lowest accuracy in all settings, showing that the two designs address complementary challenges.
5.4 Impact of Worker Messages (RQ3)
Figure 4 shows the effect of removing tool observations or reports from worker messages, as defined in Section 4.1. All variants use the same trained policy of CoSTA and differ only in what workers return at inference time. Without tool observations, workers return only reports; without reports, they return only tool observations.
Tool observations play a central role in evidence synthesis. Removing them reduces accuracy in all four settings, with the largest drop for Qwen on TimelineKGQA (from 71.4% to 61.5%). While reports summarize worker findings in natural language, tool observations retain the original timestamps needed to order facts and intersect their time intervals across subtasks.
Reports also contribute to performance. Removing them reduces accuracy in all four settings, with the largest drop for Qwen on MultiTQ (from 87.4% to 82.2%). On MultiTQ, timeline reading returns many neighboring facts for each subtask. Reports relate these observations to the subtask, helping the coordinator identify relevant evidence.
Together, tool observations provide the original timestamps, whereas reports help the coordinator identify relevant evidence. Retaining both yields the highest accuracy in all settings.
5.5 Analysis of Co-Evolution (RQ4)
Figure 5 analyzes co-evolving policy optimization with Llama, where all variants start from the same distilled policy. The variant w/o leave-one-out replaces the leave-one-out baseline in Eq. (10) with the mean reward of the training batch. The variant w/o dual clipping removes dual clipping from Eq. (12). Coordinator only and worker only train one role and freeze the other at the distilled policy. Independent training pairs the coordinator from coordinator only with the workers from worker only.

Figure 5: Training dynamics of CoSTA with Llama-3.1-8B. Reward and KL loss are trailing means with standard-error bands; accuracy is Hits@1 (%). TimelineKGQA reports the average over its two benchmarks.
| (a) Qwen3-4B | |||
|---|---|---|---|
| Self-play | 70.0 | 70.8 | 71.4 CoSTA |
| Distilled | 63.8 | 64.0 | 64.0 |
| Base | 36.8 | 36.5 | 38.2 |
| Delegation & investigation by | |||
| (b) Llama-3.1-8B | |||
|---|---|---|---|
| Base | 65.3 | 67.0 | 70.2 CoSTA |
| Distilled | 58.2 | 60.3 | 63.8 |
| Base | 32.8 | 37.3 | 41.5 |
Figure 6: Hits@1 (%) on TimelineKGQA when the subtasks and worker messages of each training stage (columns) are synthesized by the coordinator of each stage (rows).
Leave-one-out PPO stabilizes self-play. Without the leave-one-out baseline, the reward declines and the KL loss increases rapidly after step 20. The TimelineKGQA accuracy drops from 62.7% at step 10 to 42.9% at step 30, compared with 70.2% for CoSTA. Removing dual clipping also lowers the MultiTQ accuracy from 87.9% to 82.5%. This is because a batch-mean baseline mixes questions of different difficulty, so the advantage of a trajectory mainly reflects the difficulty of its question. The leave-one-out baseline compares trajectories sampled for the same question, which provides a stable learning signal for both roles.
Training both roles together yields the highest accuracy. On TimelineKGQA, CoSTA reaches 70.2%, compared with 65.8% for coordinator only and 62.4% for worker only. Independent training reaches 67.2%, which remains 3.0 points below CoSTA. This is because the coordinator synthesizes evidence from worker messages, whereas workers investigate the subtasks delegated by the coordinator. When only one role is trained, it adapts to a fixed partner, which limits its improvement after step 20. When the two roles are trained independently, each adapts to a partner different from the one it collaborates with at inference. With cross-role credit assignment, each role is reinforced only when it succeeds together with its current partner, so both roles improve together.
Both roles improve through co-evolving policy optimization. Figure 6 pairs the subtasks and worker messages produced at each

Figure 7: Hits@1 (%) and generated tokens per question on TimelineKGQA. All variants use the same trained policy; arrows start from the single agent.
training stage with the coordinator at each stage for evidence synthesis. With the coordinator of the self-play policy, replacing the delegation and investigation of the base policy with those of the self-play policy improves the accuracy from 70.0% to 71.4% for Qwen and from 65.3% to 70.2% for Llama. With the delegation and investigation of the self-play policy, replacing the distilled coordinator with the self-play coordinator improves the accuracy by 7.4 and 6.4 points, respectively. Using the self-play policy for both roles, which is CoSTA itself, yields the highest accuracy for both backbones. This is because cross-role credit assignment propagates the final outcome to the decisions of both roles, so self-play improves subtask delegation and timeline investigation in addition to evidence synthesis.
Overall, leave-one-out PPO provides a stable learning signal for self-play, whereas cross-role credit assignment enables the coordinator and workers to co-evolve.
5.6 Efficiency Analysis (RQ5)
Figure 7 compares CoSTA on TimelineKGQA with the single agent in Section 5.3 and with voting, which runs the single agent three times independently and takes the majority answer. The gains of CoSTA cannot be explained solely by generating more tokens. Voting generates more tokens than CoSTA for both backbones, yet its accuracy is 5.3 and 3.4 points lower. This is because voting spends additional tokens on repeated attempts at the whole question, whereas CoSTA spends them on different subtasks investigated in separate contexts.
6 Conclusion
In this paper, we propose Co-Evolving Self-Play Timeline Agents (CoSTA), a timeline-centric collaborative framework that learns collaboration among agents for complex TKGQA. Specifically, CoSTA organizes TKG facts into chronologically ordered timelines and delegates the investigations of different event histories to workers in separate contexts. A coordinator then synthesizes their original timestamped observations for joint temporal reasoning. To learn this collaboration, CoSTA initializes a policy shared by both roles via role-conditioned distillation and jointly optimizes the coordinator and workers through co-evolving self-play with final-answer rewards. Experimental results on three TKGQA benchmarks demonstrate that CoSTA achieves state-of-the-art overall performance, with particularly strong gains on questions involving multiple supporting facts. Further analyses show that separate investigations by workers and joint optimization of both roles each contribute to these gains.
Limitations. CoSTA relies on binary final-answer rewards for policy optimization. Although this enables end-to-end learning without intermediate supervision, it provides no role- or step-specific feedback, which may limit sample efficiency and scalability to longer collaborations.
References
[1] Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün, and Sara Hooker. 2024. Back to basics: Revisiting REINFORCE-style optimization for learning from human feedback in LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics. 12248–12267.
[2] Elizabeth Boschee, Jennifer Lautenschlager, Sean O'Brien, Steve Shellman, James Starz, and Michael Ward. 2015. ICEWS coded event data. Harvard Dataverse.
[3] Kevin Chen, Marco Cusumano-Towner, Brody Huval, Aleksei Petrenko, Jackson Hamburger, Vladlen Koltun, and Philipp Krähenbühl. 2025. Reinforcement learning for long-horizon interactive LLM agents. arXiv preprint arXiv:2502.01600 (2025).
[4] Ziyang Chen, Dongfang Li, Xiang Zhao, Baotian Hu, and Min Zhang. 2024. Temporal knowledge question answering via abstract reasoning induction. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics. 4872–4889.
[5] Ziyang Chen, Jinzhi Liao, and Xiang Zhao. 2023. Multi-granularity temporal question answering over knowledge graphs. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics. 11378–11392.
[6] Zhuo Chen, Zhao Zhang, Zixuan Li, Fei Wang, Yutao Zeng, Xiaolong Jin, and Yongjun Xu. 2024. Self-improvement programming for temporal knowledge graph question answering. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation. 14579–14594.
[7] Wentao Ding, Hao Chen, Huayu Li, and Yuzhong Qu. 2022. Semantic framework based query generation for temporal question answering over knowledge graphs. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing. 1867–1877.
[8] Jacob Eisenstein, Reza Aghajani, Adam Fisch, Dheeru Dua, Fantine Huot, Mirella Lapata, Vicky Zayats, and Jonathan Berant. 2025. Don't lie to your friends: Learning what you know from collaborative self-play. In Proceedings of the 2nd Conference on Language Modeling.
[9] Yifu Gao, Linbo Qiao, Zhigang Kan, Zhihua Wen, Yongquan He, and Dongsheng Li. 2024. Two-stage generative question answering on temporal knowledge graph using large language models. In Findings of the Association for Computational Linguistics: ACL 2024, 6719–6734.
[10] Alberto García-Durán, Sebastian Dumančić, and Mathias Niepert. 2018. Learning sequence encoders for temporal knowledge graph completion. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. 4816–4821.
[11] Zhaoyan Gong, Juan Li, Zhiqiang Liu, Lei Liang, Huajun Chen, and Wen Zhang. 2025. RTQA: Recursive thinking for complex temporal knowledge graph question answering with large language models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. 9853–9870.
[12] Zhaoyan Gong, Zhiqiang Liu, Songze Li, Xiaoke Guo, Yuanxiang Liu, Xinle Deng, Zhizhen Liu, Lei Liang, Huajun Chen, and Wen Zhang. 2026. Temp-R1: A unified autonomous agent for complex temporal KGQA via reverse curriculum reinforcement learning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics. 25826–25845.
[13] Aaron Grattaflori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, et al. 2024. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783 (2024).
[14] Xiaokun Guo, Zhen Xu, Dongdong Huo, Yanqiu Zhang, Dongjin Yu, and Yu Wang. 2026. ScOp: Structured constraint parsing for evidence-space control in temporal knowledge graph question answering. arXiv preprint arXiv:2609.22213 (2026).
[15] Aidan Hogan, Eva Blomqvist, Michael Cochez, Claudia d'Amato, Gerard de Melo, Claudio Gutiérrez, Sabrina Kirrane, José Emilio Labra Gayo, Roberto Navigli, Sebastian Neumaier, Axel-Cyrille Ngonga Ngomo, Axel Polleres, Sabir M. Rashid, Anisa Rula, Lukas Schmelzeisen, Juan Sequeda, Steffen Staab, and Antoine Zimmermann. 2021. Knowledge graphs. ACM Computing Surveys 54 (2021), 1–37.
[16] Qianyi Hu, Jiaxue Liu, Xinhui Tu, and Shoujin Wang. 2026. SAR: A structure-aligned reasoning framework for temporal knowledge graph question answering. In Proceedings of the 40th AAAI Conference on Artificial Intelligence. 31086–31094.
[17] Qianyi Hu, Xinhui Tu, Cong Guo, and Shunping Zhang. 2025. Time-aware ReAct agent for temporal knowledge graph question answering. In Findings of the Association for Computational Linguistics: NAACL 2025, 6028–6039.
[18] Danyu Huang, Yao Zhang, Jun Wang, and Zhenglu Yang. 2026. Regret-Now: A physics-inspired regret framework for temporal knowledge graph question answering with LLMs. In Findings of the Association for Computational Linguistics: ACL 2026. 24133–24157.
[19] Zicheng Huang, Yajuan Tong, Xinhui Tu, and Tingting He. 2026. TempTool-R1: Tool-augmented reinforcement learning for temporal knowledge graph question answering. In Findings of the Association for Computational Linguistics: ACL 2026. 16224–16241.
[20] Zhen Jia, Abdalghani Abujabal, Rishiraj Saha Roy, Jannik Strögen, and Gerhard Weikum. 2018. TEQUILA: Temporal question answering over knowledge bases. In Proceedings of the 27th ACM International Conference on Information and Knowledge Management. 1807–1810.
[21] Zhen Jia, Soumajit Pramanik, Rishiraj Saha Roy, and Gerhard Weikum. 2021. Complex temporal question answering on knowledge graphs. In Proceedings of the 30th ACM International Conference on Information and Knowledge Management. 792–802.
[22] Zihao Jiang, Miao Peng, Zhenyan Shan, Wenjie Xu, Ben Liu, Gong Chen, Ziqi Gao, and Min Peng. 2026. TKG-Thinker: Towards dynamic reasoning over temporal knowledge graphs via agentic reinforcement learning. arXiv preprint arXiv:2602.05818 (2026).
[23] Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan Ö. Arik, Dong Wang, Hamed Zamani, and Jiawei Han. 2025. Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. In Proceedings of the 2nd Conference on Language Modeling.
[24] Zixuan Ke, Yifei Ming, Austin Xu, Ryan Chin, Xuan-Phi Nguyen, Prathyusha Jwalapuram, Jiayu Wang, Semih Yavuz, Caiming Xiong, and Shafiq Joty. 2026. MAS-Orchestra: Understanding and improving multi-agent reasoning through holistic orchestration and controlled benchmarks. In Proceedings of the 43rd International Conference on Machine Learning. 56527–56570.
[25] Wouter Kool, Herke van Hoof, and Max Welling. 2019. Buy 4 REINFORCE samples, get a baseline for free!. In ICLR 2019 Workshop on Deep Reinforcement Learning Meets Structured Prediction.
[26] Kyle Lewis. 2003. Measuring transactive memory systems in the field: Scale development and validation. Journal of Applied Psychology 88 (2003), 587–604.
[27] Diane Wei Liang, Richard Moreland, and Linda Argote. 1995. Group versus individual training and group performance: The mediating role of transactive memory. Personality and Social Psychology Bulletin 21 (1995), 384–393.
[28] Shihao Liu, Xiaofei Zhou, Bo Wang, and Geyuan Zhang. 2026. Temporal evidence chain for temporal knowledge graph question answering with large language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics. 29515–29529.
[29] Yonghao Liu, Di Liang, Mengyu Li, Fausto Giunchiglia, Ximing Li, Sirui Wang, Wei Wu, Lan Huang, Xiaoyue Feng, and Renuch Guan. 2023. Local and global: Temporal question answering via information fusion. In Proceedings of the 32nd International Joint Conference on Artificial Intelligence. 5141–5149.
[30] Ilya Loschilov and Frank Hutter. 2019. Decoupled weight decay regularization. In Proceedings of the 7th International Conference on Learning Representations.
[31] Costas Mavromatis, Prasanna Lakkur Subramanyam, Vassilis N. Ioannidis, Adesoji Adeshina, Phillip R. Howard, Tetiana Grinberg, Nagib Hakim, and George Karypis. 2022. TempoQR: Temporal question reasoning over knowledge graphs. In Proceedings of the 36th AAAI Conference on Artificial Intelligence. 5825–5833.
[32] Zhanfeng Mo, Xingxuan Li, Yuntao Chen, and Lidong Bing. 2026. Multi-agent tool-integrated policy optimization. In AAAI 2026 Workshop on Trustworthy Agentic AI.
[33] Boci Peng, Yun Zhu, Yongchao Liu, Xiaobo Bo, Haizhou Shi, Chuntao Hong, Yan Zhang, and Siliang Tang. 2025. Graph retrieval-augmented generation: A survey. ACM Transactions on Information Systems 44 (2025), 1–52.
[34] Xinying Qian, Ying Zhang, Yu Zhao, Baohang Zhou, Xuhui Sui, Li Zhang, and Kehui Song. 2024. Timer : Time-aware retrieval-augmented large language models for temporal knowledge graph question answering. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. 6942–6952.
[35] Apoorv Saxena, Soumen Chakrabarti, and Partha Talukdar. 2021. Question answering over temporal knowledge graphs. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing. 6663–6676.
[36] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347 (2017).
[37] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300 (2024).
[38] Aditya Sharma, Apoorv Saxena, Chitrank Gupta, Mehran Kazemi, Partha Talukdar, and Soumen Chakrabarti. 2023. TwiRGCN: Temporally weighted graph convolution for question answering over temporal knowledge graphs. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics. 2049–2060.
[39] Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. 2025. HybridFlow: A flexible and efficient RLHF framework. In Proceedings of the 20th European Conference on Computer Systems. 1279–1297.
[40] Miao Su, Zixuan Li, Zhongni Hou, Zhuo Chen, Long Bai, Xiaolong Jin, and Jiafeng Guo. 2024. Temporal knowledge graph question answering: A survey. arXiv preprint arXiv:2406.14191 (2024).
[41] Qiang Sun, Sirui Li, Du Huynh, Mark Reynolds, and Wei Liu. 2025. TimelineKGQA: A comprehensive question-answer pair generator for temporal knowledge graphs. In Companion Proceedings of the ACM Web Conference 2025. 797–800.
[42] Xingyu Tan, Xiaoyang Wang, Qing Liu, Xiwei Xu, Xin Yuan, Liming Zhu, and Wenjie Zhang. 2026. MemoTime: Memory-augmented temporal knowledge graph enhanced large language model reasoning. In Proceedings of the ACM Web Conference 2026. 4220–4231.
[43] Denny Vrandečić and Markus Krötzsch. 2014. Wikidata: A free collaborative knowledgebase. Communications of the ACM 57 (2014), 78–85.
[44] Jiapu Wang, Zheng Cui, Boyue Wang, Shirui Pan, Junbin Gao, Baoacai Yin, and Wen Gao. 2024. IME: Integrating Multi-curvature Shared and Specific Embedding for Temporal Knowledge Graph Completion. Proceedings of the ACM Web Conference 2024 (2024), 1954–1962.
[45] Jiapu Wang, Kai Sun, Linhao Luo, Wei Wei, Yongli Hu, Alan Wee-Chung Liew, Shirui Pan, and Baoacai Yin. 2024. Large language models-guided dynamic adaptation for temporal knowledge graph reasoning. Advances in Neural Information Processing Systems 37 (2024), 8384–8410.
[46] Jinlu Wang, Yanfeng Sun, Jiapu Wang, Junbin Gao, Shaofan Wang, Baoacai Yin, and Jipeng Guo. 2026. ComGRL: Comprehensive graph representation learning from local to global bridged by mixup. IEEE Transactions on Computational Social Systems (2026).
[47] Jiapu Wang, Boyue Wang, Junbin Gao, Simin Hu, Yongli Hu, and Baoacai Yin. 2023. Multi-level interaction based knowledge graph completion. IEEE/ACM Transactions on Audio, Speech, and Language Processing 32 (2023), 386–396.
[48] Jiapu Wang, Boyue Wang, Junbin Gao, Yongli Hu, and Baoacai Yin. 2023. Multi-Concept Representation Learning for Knowledge Graph Completion. ACM Transactions on Knowledge Discovery from Data 17 (2023), 1–19.
[49] Jiapu Wang, Boyue Wang, Junbin Gao, Xiaoyan Li, Yongli Hu, and Baoacai Yin. 2023. TDN: Triplet Distributor Network for Knowledge Graph Completion. IEEE Transactions on Knowledge and Data Engineering 35 (2023), 13002–13014.
[50] Jiapu Wang, Boyue Wang, Junbin Gao, Xiaoyan Li, Yongli Hu, and Baoacai Yin. 2024. QDN: A quadruplet distributor network for temporal knowledge graph completion. IEEE Transactions on Neural Networks and Learning Systems 35 (2024), 14018–14030.
[51] Yinjie Wang, Ling Yang, Ye Tian, Ke Shen, and Mengdi Wang. 2025. Co-evolving LLM coder and unit tester via reinforcement learning. Advances in Neural Information Processing Systems 38 (2025).
[52] Daniel M. Wegner. 1995. A computer network model of human transactive memory. Social Cognition 13 (1995), 319–339.
[53] Wuzhenghong Wen, Chao Xue, Su Pan, Yuwei Sun, and Minlong Peng. 2026. Reinforcement learning enhanced multi-hop reasoning for temporal knowledge question answering. In Proceedings of the 40th AAAI Conference on Artificial Intelligence. 33881–33889.
[54] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, et al. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388 (2025).
[55] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing reasoning and acting in language models. In Proceedings of the 11th International Conference on Learning Representations.
[56] Deheng Ye, Zhao Liu, Mingfei Sun, Bei Shi, Peilin Zhao, Hao Wu, Hongsheng Yu, Shaojie Yang, Xipeng Wu, Qingwei Guo, Qiaobo Chen, Yinyuting Yin, Hao Zhang, Tengfei Shi, Liang Wang, Qiang Fu, Wei Yang, and Lanxiao Huang. 2020. Mastering complex control in MOBA games with deep reinforcement learning. In Proceedings of the 34th AAAI Conference on Artificial Intelligence. 6672–6679.
[57] Ying Zhang, Xinying Qian, Yu Zhao, Baohang Zhou, Xuhui Sui, and Xiaojie Yuan. 2026. Plan of Knowledge: Retrieval-augmented large language models for temporal knowledge graph question answering. IEEE Transactions on Knowledge and Data Engineering 38 (2026), 6912–6925.
[58] Tianxiang Zhao, Youqing Wang, Jinlu Wang, Jiapu Wang, Mingliang Cui, Junbin Gao, and Jipeng Guo. 2026. Hybrid-collaborative augmentation and contrastive sample adaptive-differential awareness for robust attributed graph clustering. Advances in Neural Information Processing Systems 38 (2026), 115969–115994.
[59] Xingrui Zhuo, Shirui Pan, Jiapu Wang, Gongqing Wu, Zan Zhang, Rui Li, Zizhong Wei, and Xindong Wu. 2025. Progressive Prefix-Memory Tuning for Complex
Logical Query Answering on Knowledge Graphs. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. 3716–3724.
[60] Xingrui Zhuo, Jiapu Wang, Gongqing Wu, Shirui Pan, and Xindong Wu. 2025. Effective instruction parsing plugin for complex logical query answering on knowledge graphs. In Proceedings of the ACM on Web Conference 2025. 4780–4792.
Appendix
A Dataset Details
MultiTQ distinguishes questions by the number of temporal constraints, whereas TimelineKGQA organizes them by the number of supporting facts and associated temporal operations. Tables 4 and 5 report question counts by category and split for MultiTQ and the two TimelineKGQA benchmarks, respectively.
MultiTQ [5] is generated from ICEWS05-15 [10], where events are recorded at day-level granularity. Its questions involve temporal constraints at day, month, and year granularities. The benchmark excludes questions that can be answered without using their temporal constraints.
Single questions involve one temporal constraint and fall into three categories: Equal, Before/After, and First/Last. Multiple questions involve combinations of temporal constraints and fall into three categories: Equal Multi, After First, and Before Last. For example, “Who last visited South Korea in 2014?” combines an Equal constraint with First/Last selection. Each question is paired with a set of entity or time answers.
TimelineKGQA [41] generates two benchmarks using the CronQuestions [35] and ICEWS Actor [2] knowledge graphs. We refer to these benchmarks as TimelineKGQA-CronQuestion and TimelineKGQA-ICEWS-Actor, respectively.
Questions are grouped into Simple, Medium, and Complex categories, requiring one, two, and three supporting facts, respectively. Simple questions query entities, start and end times, or durations associated with a single fact. Medium questions involve two facts and require reasoning about Allen interval relations, computing interval unions or intersections, or calculating and comparing durations. The Complex category extends these operations to three facts and includes temporal ranking questions. Answers include entities, relations, temporal values (timestamps, intervals, and durations), yes/no responses, and rankings.
Table 4: Question counts by category and split in MultiTQ, as reported by Chen et al. [5].
| Group | Question type | Train | Validation | Test |
|---|---|---|---|---|
| Single | Equal | 135,890 | 18,983 | 17,311 |
| Before/After | 75,340 | 11,655 | 11,073 | |
| First/Last | 72,252 | 11,097 | 10,480 | |
| Multiple | Equal Multi | 16,893 | 3,213 | 3,207 |
| After First | 43,305 | 6,499 | 6,266 | |
| Before Last | 43,107 | 6,532 | 6,247 | |
| Total | 386,787 | 57,979 | 54,584 |
Table 5: Question counts by difficulty and split for the two TimelineKGQA benchmarks, as reported by Sun et al. [41].
| Dataset | Difficulty | Train | Validation | Test |
|---|---|---|---|---|
| TimelineKGQA-CronQuestion | Simple | 7,200 | 2,400 | 2,400 |
| Medium | 8,252 | 2,751 | 2,751 | |
| Complex | 9,580 | 3,193 | 3,193 | |
| Total | 25,032 | 8,344 | 8,344 | |
| TimelineKGQA-ICEWS-Actor | Simple | 17,982 | 5,994 | 5,994 |
| Medium | 15,990 | 5,330 | 5,330 | |
| Complex | 19,652 | 6,550 | 6,550 | |
| Total | 53,624 | 17,874 | 17,874 |
B Baseline Methods
ARI [4] guides an LLM agent with reasoning strategies induced from previous question-answering trajectories. It groups similar questions and summarizes successful and unsuccessful trajectories into guidance for subsequent temporal tool use.
TimeR⁴ [34] uses retrieved facts to rewrite implicit temporal constraints as explicit timestamps, then retrieves and reranks evidence by semantic and temporal relevance. Both the temporal retriever and the answering LLM are fine-tuned.
TempAgent [17] follows a ReAct [55] loop that alternates reasoning with semantic and temporally constrained search. Its retrieval tools support on, before and after conditions at day, month and year granularities. The agent uses retrieved observations to guide subsequent actions without task-specific LLM fine-tuning.
RTQA [11] recursively decomposes temporal questions into sub-questions organized as a tree. At each node, an LLM selects an answer using both retrieved facts and answers from child subquestions. The framework uses prompting without task-specific LLM fine-tuning.
PoK [57] generates a plan of retrieval, temporal ranking, and reasoning steps, using intermediate answers to resolve subsequent temporal constraints. It uses a fine-tuned temporal retriever to obtain relevant facts and a fine-tuned LLM to generate answers from those facts.
MemoTime [42] decomposes temporal questions into a Tree of Time, using past reasoning experiences to guide decomposition and tool selection. It combines graph traversal with dense retrieval and checks whether the evidence is sufficient to answer each subquestion. Verified reasoning traces are stored in an external memory for reuse.
TECQA [28] retrieves a subgraph using entity and relation constraints extracted from the question. It selects events near the question's temporal anchors and orders them by temporal proximity to form an evidence chain. A frozen LLM generates the answer from this chain.
Temp-R1 [12] combines external search with internal actions for planning, fact filtering, and temporal ranking. It is trained with supervised fine-tuning followed by Group Relative Policy Optimization (GRPO) [37], using final-answer correctness as the reward. Its reverse curriculum starts with complex questions and later adds simpler questions.
TempTool-R1 [19] interleaves reasoning with temporal tools for retrieving event times and entities under time constraints. After supervised fine-tuning on tool-use trajectories, GRPO rewards output format and agreement with reference tool calls, including tool names, arguments and call order.
TKG-Thinker [22] plans and performs temporal searches over multiple turns, using retrieved observations to guide subsequent queries. Supervised fine-tuning on reasoning trajectories is followed by online reinforcement learning. Rewards account for final-answer correctness, interaction format and retrieval of facts containing the reference answer.
C Implementation Details
Role-Conditioned Distillation. We fine-tune Qwen3-4B-Instruct and Llama-3.1-8B-Instruct using demonstrations generated by Qwen3-30B-A3B-Instruct for questions in the training set. Full-parameter fine-tuning runs for one epoch using AdamW [30] with a batch size of 32, a learning rate of , cosine decay, and a warmup ratio of 0.03. The loss is computed only on model-generated tokens, with input prompts, tool observations, and returned messages masked out. Training runs on four NVIDIA A800 GPUs (80GB) with FSDP and BF16 mixed precision.
Reinforcement Learning. Following distillation, we train the shared policy with leave-one-out PPO [3] in VeRL [39]. Each rollout batch contains 64 questions with trajectories per question for MultiTQ, or 24 questions with for TimelineKGQA. Each batch is split by question into two mini-batches, giving two optimizer updates in one pass over the batch, with all trajectories of a question kept in the same mini-batch. The rollout temperature is set to 1.0. We set the clipping range , the dual-clip parameter , and the KL coefficient . The distilled policy is frozen as the reference policy . We use AdamW with a learning rate of , weight decay 0.01, and gradient clipping at 1.0.

Figure 8: Hits@1 (%) of the base, distilled, and self-play policies. Values in parentheses are the gains of co-evolving policy optimization.
D Theoretical Analysis
We analyze the role-specific gradients in Eq. (9) and the leave-one-out advantage in Eq. (10).
Cross-Role Credit Assignment. Let denote Eq. (8) after assigning separate parameters to coordinator and worker factors in Eq. (6).
PROPOSITION D.1. At , for ,
PROOF. Conditioned on tool calls and the fixed TKG, tool observations have parameter-independent distributions. Thus . The reward depends only on the completed trajectory, so the likelihood-ratio identity proves the claim; the chain rule recovers Eq. (9).
Thus the final-answer reward supplies an on-policy gradient signal to each role under the current partner policy. In the single-role and independent-training ablations, each optimized role instead interacts with a partner fixed at . This decomposition describes the expected objective gradient; practical updates use the clipped PPO surrogate.
Leave-One-Out Advantage. For a question , let . Its sampled rewards are conditionally independent Bernoulli variables. Let at .
PROPOSITION D.2. At ,
For a batch of questions and trajectories each, let denote the reward and . Define , , , , and . Then
PROOF. The leave-one-out baseline excludes and is conditionally independent of its score. Since , the first identity follows [25]. The advantage has zero conditional mean, and independence gives its variance as . For binary rewards, . Conditional on the questions, and . Substituting proves the last identity.
Averaging the leave-one-out second moment gives , smaller than the batch-mean counterpart when . The between-question term reflects differences in question difficulty and is absent under within-question centering. If all trajectories for a question receive the same reward, its leave-one-out advantages vanish. This comparison concerns advantage second moments and does not guarantee lower variance for clipped PPO gradients.
E Additional Experiments
E.1 Contribution of Training Stages
Figure 8 reports the accuracy of CoSTA after each training stage. The base policy is the instruction-tuned backbone without training, which performs both roles with the same prompts and tools. The distilled policy is obtained by role-conditioned distillation, and the self-play policy is CoSTA itself.
Role-conditioned distillation provides the larger gain in five of the six settings. It improves Hits@1 by 10.3 to 35.9 points over the base policy, with the largest gain for Llama on MultiTQ (from 39.3% to 75.2%). This is because the base policy does not reliably perform subtask delegation, tool invocation, and message exchange, as discussed in Section 4.2. Distillation teaches both roles these behaviors from complete collaborations.
Co-evolving policy optimization further improves all benchmarks. It adds 5.0 to 14.3 points over the distilled policy, reaching 87.4% for Qwen and 89.5% for Llama on MultiTQ. This is because the distilled policy only imitates teacher-generated collaborations, whereas self-play trains both roles on the final outcomes of their own collaborations.
Overall, role-conditioned distillation enables the shared policy to collaborate, whereas co-evolving policy optimization improves how the coordinator and workers collaborate.

Figure 9: Hits@1 (%) of Llama on MultiTQ during self-play with and without the process reward on worker reports.
Table 6: Case study on TimelineKGQA-ICEWS-Actor with Qwen3-4B.
| Q: From when to when, Network of East West Women Poland Affiliation To Human Rights IGOs (Non-Governmental Organizations), at the same time, Stipe Suvar Affiliation To Government (Serbia), at the same time, István Tarlós Affiliation To Fidesz?Gold: 1988-06-30 to 1989-05-17 | |
|---|---|
| CoSTA | |
| Worker 1 | (-∞, +∞) |
| Worker 2 | [1988-06-30, 1989-05-17] |
| Worker 3 | (-∞, +∞), read from Tarlós's timeline |
| Coordinator | Intersection: 1988-06-30 to 1989-05-17 ✓ |
| Single agent | |
| Tarlós-Fidesz | [2006-01-01, +∞), the first search result |
| Answer | No Answer ✗ |
E.2 Analysis of Process Reward
Co-evolving policy optimization rewards each collaboration only by its final answer. To examine whether workers benefit from additional supervision, we add a process reward on worker reports. DeepSeek-V4-Flash serves as the judge and scores each report without access to the gold answer. The score is added to the advantages of worker tokens with a weight of 0.2. We train Llama on MultiTQ under the same settings as CoSTA.
The final-answer reward is sufficient for co-evolving policy optimization. As shown in Figure 9, the process reward lowers the accuracy at four of the six steps, and the final accuracy differs by only 0.4 points (89.9% vs. 89.5%). This is because cross-role credit assignment already propagates the final outcome to worker decisions, as shown in Appendix D, whereas the judge evaluates each report without the subsequent evidence synthesis. In addition, the process reward requires an LLM call for every worker report during training.
F Case Study
Table 6 shows a question that requires intersecting three time intervals. CoSTA assigns each fact to a separate worker. By reading the timeline of István Tarlós, the third worker obtains the complete interval of his Fidesz affiliation. The single agent investigates all three facts in one context and adopts the interval starting in 2006 from its first search result, which leads to an empty intersection.