SABET-QA: Temporal Knowledge Graph Question Answering
Summary
SABET-QA introduces an iterative framework for temporal knowledge graph question answering that enhances multi-hop reasoning through bidirectional entity-temporal scoring and contextualization, showing consistent improvements over baselines on benchmarks like CronQuestions and TimeQuestions.
View Cached Full Text
Cached at: 08/21/26, 10:17 AM
# SABET-QA: Temporal Knowledge Graph Question Answering
Source: [https://arxiv.org/html/2608.20083](https://arxiv.org/html/2608.20083)
Brahim TouayouchAffiliation:ENS Paris\-Saclay, École Polytechnique, France\[0\.4em\]Contact:brahim\.touayouch\.2022@polytechnique\.orgDmitry Akulov\[0\.6em\] QuickSort ResearchParisFrance
###### Abstract
Question Answering over Temporal Knowledge Graphs \(TKGQA\) requires reasoning over time\-sensitive facts, yet existing embedding\-based methods struggle with multi\-step queries due to single\-pass reasoning pipelines\. We propose SABET\-QA, a framework that iteratively refines reasoning states across multiple hops via a bidirectional entity\-temporal scoring mechanism and a slot\-aware contextualization module that aligns question semantics with temporal KG embeddings\. A differentiable working memory enables progressive hypothesis refinement, while auxiliary temporal boundaries serve as coarse supervision when available\. Experiments on CronQuestions, Complex\-CronQuestions, MultiTQ, and TimeQuestions demonstrate consistent improvements over strong baselines, particularly on complex multi\-step temporal queries\.
††\*Work conducted at QuickSort Research, Paris, France \([https://www\.quicksort\.fr](https://www.quicksort.fr/)\)\. Correspondence to:mohamed@quicksort\.fror personal emails\.## 1Introduction
The proliferation of large\-scale Knowledge Graphs \(KGs\) such as Wikidata[Vrandečić and Krötzsch 2014](https://arxiv.org/html/2608.20083#bib.bib36), Freebase[Bollacker et al\. 2008](https://arxiv.org/html/2608.20083#bib.bib4)and YAGO[Suchanek et al\. 2007](https://arxiv.org/html/2608.20083#bib.bib32)has made Question Answering over KGs \(KGQA\) a crucial interface for accessing structured knowledge\. However, real\-world facts evolve over time, motivating Temporal Knowledge Graphs \(TKGs\) where a fact is represented as a quintuple\(s,r,o,\[ts,te\]\)\(s,r,o,\[t\_\{s\},t\_\{e\}\]\)\. Temporal KGQA \(TKGQA\), the task of answering questions over such dynamic graphs, is essential for reasoning about a changing world\.
Despite progress in static KGQA[Jiang et al\. 2023](https://arxiv.org/html/2608.20083#bib.bib18);[Saxena et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib30), TKGQA presents unique challenges\. Natural language questions contain explicit temporal constraints \(e\.g\., “Who was the president in 2008?”\) or implicit compositional ones \(e\.g\., “Who was the president after Obama?”\)\. Embedding\-based approaches like CronKGQA[Saxena et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib29)reduce simple queries to link prediction, but struggle with complex reasoning\. Later work such as TempoQR[Mavromatis et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib25)enriches question representations with contextualized time and entity information, yet these methods still process questions in a single forward pass, lacking iterative refinement and effective aggregation of distributed temporal evidence\.
We identify three specific gaps in existing TKGQA methods:
1. 1\.Single\-Shot Reasoning:Complex questions require sequential deduction \(e\.g\., finding an entity, locating its tenure, then identifying the successor\)\. Single\-pass models cannot revisit or correct intermediate errors\.
2. 2\.Ambiguous Directionality:Questions mention entities without specifying their grammatical role \(head or tail\) in the relation\. Existing models often assume a fixed direction, leading to incorrect scoring\.
3. 3\.Context\-Dependent Ambiguity:Entities like “Washington” may refer to a person, a city, or a state depending on context\. Lexical matching or fixed entity linking fails when the same mention carries different meanings\.
To address these gaps, we proposeSABET\-QA, a temporal KGQA framework combining slot\-aware contextualization, bidirectional entity–temporal scoring, and iterative multi\-hop reasoning\. When coarse temporal hints are available, SABET\-QA exploits them as additional supervision\. A full architectural description is provided in Section[3\.3](https://arxiv.org/html/2608.20083#S3.SS3)\.
Our contributions are summarized as follows:
- •We proposeSABET\-QA, an iterative temporal KGQA framework that progressively refines predictions through a working\-memory\-based multi\-hop reasoning process\.
- •We introduce bidirectional entity–temporal scoring to address head–tail ambiguity and improve reasoning over questions with implicit directional structure\.
- •We empirically demonstrate that SABET\-QA outperforms strong baselines on CronQuestions[Saxena et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib29), Complex\-CronQuestions[Chen et al\. 2022](https://arxiv.org/html/2608.20083#bib.bib11), MultiTQ[Chen et al\. 2023](https://arxiv.org/html/2608.20083#bib.bib10), and TimeQuestions[Jia et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib17), with particularly strong gains on complex questions\.
## 2Related Work
Our work relates to two areas: Temporal Knowledge Graph Representations and \(Temporal\) Knowledge Graph Question Answering\.
### 2\.1Temporal Knowledge Graph Representations
Embedding\-based TKGQA builds on Temporal Knowledge Graph Embedding \(TKGE\) methods\. Early approaches such as TTransE[Leblay and Chekol 2018](https://arxiv.org/html/2608.20083#bib.bib22)extended static translation\-based models[Bordes et al\. 2013](https://arxiv.org/html/2608.20083#bib.bib5)by adding temporal embeddings to the scoring function\. More recently, tensor decomposition methods have become prominent[Cai et al\. 2023](https://arxiv.org/html/2608.20083#bib.bib6)\. TComplEx[Lacroix et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib21)extends ComplEx[Trouillon et al\. 2016](https://arxiv.org/html/2608.20083#bib.bib34)to fourth\-order tensors and shows that regularized decomposition can capture temporal dynamics effectively\. These structured embedding spaces provide a compact latent representation of the TKG[Cai et al\. 2024](https://arxiv.org/html/2608.20083#bib.bib7), enabling downstream models to reason over relational and temporal dependencies in continuous vector form rather than through explicit graph traversal\.
### 2\.2Knowledge Graph Question Answering
Knowledge graph question answering \(KGQA\) has evolved along three main directions:*semantic parsing*,*neural representation learning*, and*LLM\-based*approaches[Su et al\. 2026](https://arxiv.org/html/2608.20083#bib.bib31)\.
Semantic parsing methods[Berant et al\. 2013](https://arxiv.org/html/2608.20083#bib.bib3);[Chen et al\. 2024a](https://arxiv.org/html/2608.20083#bib.bib8);[Yao and Van Durme 2014](https://arxiv.org/html/2608.20083#bib.bib37);[Bao et al\. 2016](https://arxiv.org/html/2608.20083#bib.bib2)translate natural\-language questions into formal logical forms or executable structured queries\. They offer explicit reasoning traces and high interpretability, but depend on handcrafted grammars, schema\-specific operators, or substantial annotated supervision, limiting scalability on complex question types\.
Neural representation learning approaches embed questions and graph elements into a shared latent space\. Early work such as KEQA[Huang et al\. 2019](https://arxiv.org/html/2608.20083#bib.bib14)and EmbedKGQA[Saxena et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib30)treats QA as ranking over KG embeddings, avoiding explicit query construction\. Later methods incorporate graph neural networks, attention mechanisms, and multi\-hop reasoning to model structural dependencies and compositional questions[Sun et al\. 2018](https://arxiv.org/html/2608.20083#bib.bib33);[Jia et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib17);[Liu et al\. 2023](https://arxiv.org/html/2608.20083#bib.bib24);[Jiao et al\. 2022](https://arxiv.org/html/2608.20083#bib.bib19)\. These models scale better than semantic parsers and tolerate noisy or incomplete graphs, but were developed for static KGs and do not model temporal validity\.
LLM\-based methods extend KGQA beyond fixed templates by generating executable queries, reasoning over retrieved evidence, or combining retrieval with generation[Qian et al\. 2024](https://arxiv.org/html/2608.20083#bib.bib27);[Jia et al\. 2024](https://arxiv.org/html/2608.20083#bib.bib16);[Gao et al\. 2024](https://arxiv.org/html/2608.20083#bib.bib13);[Chen et al\. 2024b](https://arxiv.org/html/2608.20083#bib.bib9)\. They reduce hand\-engineered logic and improve linguistic flexibility, yet remain sensitive to retrieval quality, grounding errors, and hallucination, and are still most mature in non\-temporal settings\.
These limitations are amplified in temporal KGQA, where answers depend on when facts hold\. The field has therefore moved from direct retrieval toward multi\-step reasoning over time\-sensitive constraints\. CronKGQA[Saxena et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib29)casts a question as a*virtual relation*in a temporal embedding space, enabling link\-prediction\-style answering\. This works for simple questions but struggles with sequential deduction or head–tail ambiguity\. TempoQR[Mavromatis et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib25)enriches question representations with contextualized temporal and entity information, yielding stronger performance on complex questions, but its reasoning remains largely single\-pass, limiting the ability to revise intermediate hypotheses\. SubGTR[Chen et al\. 2022](https://arxiv.org/html/2608.20083#bib.bib11)introduces subgraph\-based temporal reasoning with logical constraints and highlights pseudo\-temporal questions in CronQuestions\. While effective when subgraph extraction is reliable, it depends heavily on extracted structures and is less robust on incomplete or noisy graphs, or when transferring across datasets\.
In contrast, SABET\-QA follows the embedding\-based virtual\-relation paradigm but adds iterative multi\-hop reasoning with differentiable working memory\. At each hop, the model refines a latent reasoning state, builds hop\-specific relation representations, and computes intermediate scores for both entities and timestamps\. To address head–tail ambiguity, it uses bidirectional entity scoring, combining forward and backward signals through a learned gate\. Unlike approaches relying on explicit subgraph extraction or dataset\-specific post\-processing, SABET\-QA operates directly over pretrained temporal KG embeddings and natural\-language questions, making it broadly applicable across benchmarks while remaining simple in design\.
Recent work also explores LLM\-based autonomous agents for TKGQA, but these introduce substantial inference latency, computational overhead, and dependency on non\-deterministic external APIs\. SABET\-QA operates strictly within the dense embedding\-based paradigm, providing low\-latency, deterministic, and locally deployable inference\. We therefore compare against embedding\-based baselines as the appropriate reference class\.
## 3Temporal Knowledge Graph Question Answering Methods
### 3\.1Temporal KG Embeddings
We train the temporal knowledge graph embeddings used throughout our models withTComplEx[Lacroix et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib21)\. TComplEx represents entities, relations, and timestamps with complex\-valued embeddings and scores a temporal fact\(s,r,o,t\)\(s,r,o,t\)using a multilinear complex product:
ϕ\(s,r,o,t\)=ℜ\(⟨𝐮s,𝐯r,𝐮¯o,𝐰t⟩\),\\phi\(s,r,o,t\)=\\Re\\left\(\\langle\\mathbf\{u\}\_\{s\},\\mathbf\{v\}\_\{r\},\\overline\{\\mathbf\{u\}\}\_\{o\},\\mathbf\{w\}\_\{t\}\\rangle\\right\),where𝐮s\\mathbf\{u\}\_\{s\},𝐮o\\mathbf\{u\}\_\{o\},𝐯r\\mathbf\{v\}\_\{r\}, and𝐰t\\mathbf\{w\}\_\{t\}denote the subject, object, relation, and timestamp embeddings, respectively\.
The learned entity and time representationss are used to initialize the shared embedding tables across all QA models111The embeddings used for the datasets in this study are provided in the supplementary material\. To facilitate future work, we standardized the embedding structure across all datasets\. Some embeddings were trained from scratch, whereas others were initialized from prior work\.\. Additional implementation and training details are provided in Appendix[A](https://arxiv.org/html/2608.20083#A1)\.
### 3\.2Baseline Methods
This section summarizes the main comparison baselines used in our experiments\.
#### 3\.2\.1LM\_TKGQA: Language Model Baseline
LM\_TKGQA encodes the question with a pretrained language model such as BERT[Devlin et al\. 2019](https://arxiv.org/html/2608.20083#bib.bib12)or RoBERTa[Liu et al\. 2019](https://arxiv.org/html/2608.20083#bib.bib23)and projects it into the temporal knowledge graph embedding space\. Candidate entities and timestamps are then ranked with a lightweight prediction head, but temporal structure is not modeled explicitly\.
#### 3\.2\.2EmbedKGQA: Embedding\-Based KGQA
EmbedKGQA represents the question as a soft relation and retrieves answers by matching it against knowledge graph embeddings[Saxena et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib30)\. While effective for multi\-hop reasoning, it does not explicitly model temporal constraints\.
#### 3\.2\.3CRONKGQA: Temporal Inference Model
CRONKGQA extends embedding\-based KGQA by jointly predicting entities and timestamps using temporal knowledge graph embeddings[Saxena et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib29)\. This enables reasoning over temporal ordering and time\-sensitive facts\.
#### 3\.2\.4TempoQR: Contextualized Temporal Reasoning
TempoQR combines a pretrained language model, temporal knowledge graph embeddings, and a transformer\-based fusion module[Mavromatis et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib25)\. This improves contextual understanding while explicitly incorporating temporal information\.
#### 3\.2\.5SubGTR: Subgraph\-Based Temporal Reasoning
SubGTR[Chen et al\. 2022](https://arxiv.org/html/2608.20083#bib.bib11)performs reasoning over a task\-relevant subgraph extracted around the query and its temporal context\. Restricting inference to this neighborhood improves efficiency while exploiting local graph structure\.
##### On postprocessing and dataset dependence\.
Some baselines, such as SubGTR, rely on additional postprocessing \(e\.g\., subgraph extraction\) tailored to specific datasets\. In contrast, our model is designed to operate across datasets without task\-specific processing, making it easier to transfer between benchmarks\.
### 3\.3Proposed Method: SABET\-QA
Figure 1:Impact of the number of reasoning hops on Complex\-CronQuestions\. Left: Hits@1 for different question categories\. Right: overall test Hits@1 and Hits@10\.ModelEntity ContextualizationBidirectional Entity& Time ScoringHard SupervisionComplex\-CronQuestionsHits@1Hits@10SABET\-QA\-Hard✓✓✓0\.8070\.962✗✓✓0\.7070\.946✓✗✓0\.6590\.849✓✓✗0\.5240\.896Table 1:Ablation study of SABET\-QA\-Hard on the Complex\-CronQuestions test set\. Removing any component degrades performance, with the largest drop observed when bidirectional entity and time scoring is disabled\.ModelFrozen LMFrozen TKEComplex\-CronQuestionsCronQuestionsHits@1Hits@10Hits@1Hits@10SABET\-QA✓✓0\.5240\.8960\.8430\.969✓✗0\.4460\.8710\.7730\.950✗✓0\.5470\.8920\.8360\.968✗✗0\.4760\.8820\.7840\.946SABET\-QA\-Hard✓✓0\.8070\.9620\.9540\.989✓✗0\.7590\.9580\.9250\.983✗✓0\.8030\.9640\.9490\.988✗✗0\.7690\.9590\.9020\.974Table 2:Ablation study evaluating the impact of freezing the language model \(LM\) and temporal knowledge graph embedding \(TKE\) modules under both no supervision \(SABET\-QA\) and hard supervision \(SABET\-QA\-Hard\)\. The comparison isolates the contribution of each component and demonstrates the effect of unfreezing the parameters on overall reasoning performance\.SABET\-QA answers temporal questions throughiterative latent\-state refinementoverKKhops\. At each hop, the model produces bidirectional entity and time scores, then updates a differentiable working memory to progressively sharpen its hypothesis\. The architecture couples a frozen pretrained LM with a TComplEx temporal scorer, operating in four stages: \(i\) question encoding and slot contextualization, \(ii\) hop\-specific relation projection, \(iii\) bidirectional scoring with memory update, and \(iv\) adaptive hop aggregation\. Pseudocode and full dimensional details are in Appendix[B](https://arxiv.org/html/2608.20083#A2)\.
#### 3\.3\.1Slot\-Aware Question Encoding
Given tokenized question𝐱\\mathbf\{x\}, a pretrained LM yields hidden states𝐇∈ℝL×768\\mathbf\{H\}\\in\\mathbb\{R\}^\{L\\times 768\}, whereLLis the number of tokens and768768is the hidden representation dimension of the pretrained LM \(BERT or RoBERTa\)\. These representations are linearly projected to the TKG embedding dimension:
𝐓=ftext\(𝐇\)∈ℝL×D\.\\mathbf\{T\}=f\_\{\\text\{text\}\}\(\\mathbf\{H\}\)\\in\\mathbb\{R\}^\{L\\times D\}\.\(1\)whereDDdenotes the dimensionality of the TKG embedding space \(i\.e\., the entity and timestamp embedding dimension\)\.
The model first identifies the entity and temporal mentions in the question\. When gold annotations are available, these mentions are extracted directly; otherwise, they are obtained using a named entity recognition \(NER\) system\. The identified entity mentions are arbitrarily assigned to the head \(𝐡\\mathbf\{h\}\) and tail \(𝐭\\mathbf\{t\}\) query slots, while the temporal expression is assigned to the time slot \(𝝉\\boldsymbol\{\\tau\}\)\. The corresponding embeddings are retrieved from the TKBC embedding tables, with learned dummy embeddings used for any missing slots\. These query embeddings are then contextualized via multi\-head cross\-attention[Vaswani et al\. 2023](https://arxiv.org/html/2608.20083#bib.bib35)over the projected question token representations, followed by a residual gating mechanism:
\[𝐡′,𝐭′,𝝉′\]=Gate\(MHA\(\[𝐡,𝐭,𝝉\],𝐓,𝐓\)\)\.\[\\mathbf\{h\}^\{\\prime\},\\mathbf\{t\}^\{\\prime\},\\boldsymbol\{\\tau\}^\{\\prime\}\]=\\mathrm\{Gate\}\\\!\\left\(\\mathrm\{MHA\}\(\[\\mathbf\{h\},\\mathbf\{t\},\\boldsymbol\{\\tau\}\],\\mathbf\{T\},\\mathbf\{T\}\)\\right\)\.\(2\)
A global question representation𝐬\\mathbf\{s\}is constructed by concatenating the hidden representation of the special classification token \(\[CLS\]\), the mean\-pooled token representations, and the max\-pooled token representations of𝐓\\mathbf\{T\}\. The resulting vector is projected to obtain the base reasoning state:
𝐳\(0\)=frel\(\[𝐬;𝐡′;𝐭′;𝝉′\]\)\.\\mathbf\{z\}^\{\(0\)\}=f\_\{\\text\{rel\}\}\\big\(\[\\mathbf\{s\};\\mathbf\{h\}^\{\\prime\};\\mathbf\{t\}^\{\\prime\};\\boldsymbol\{\\tau\}^\{\\prime\}\]\\big\)\.\(3\)
#### 3\.3\.2Iterative Hop\-Wise Reasoning with Bidirectional Scoring
At hopkk, the current latent state𝐳\(k−1\)\\mathbf\{z\}^\{\(k\-1\)\}and summary𝐬\\mathbf\{s\}are fused into a hop\-specific relation vector𝐫\(k\)=fhop\(k\)\(\[𝐳\(k−1\);𝐬\]\)\\mathbf\{r\}^\{\(k\)\}=f^\{\(k\)\}\_\{\\text\{hop\}\}\(\[\\mathbf\{z\}^\{\(k\-1\)\};\\mathbf\{s\}\]\), then split into entity\-oriented and time\-oriented projections:𝐫ent\(k\)\\mathbf\{r\}^\{\(k\)\}\_\{\\text\{ent\}\}and𝐫time\(k\)\\mathbf\{r\}^\{\(k\)\}\_\{\\text\{time\}\}\.
##### Temporal hint injection \(optional\)\.
When auxiliary temporal boundaries\(t1,t2\)\(t\_\{1\},t\_\{2\}\)are available, we provide them as hard supervision \(denoted by thehardsuffix in the model name\)\. Following TempoQR[Mavromatis et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib25), these boundaries are derived from the earliest and latest timestamps of facts involving the question entities and are injected into the working memory through a learned gating mechanism:
𝐳\(k−1\)←𝐳\(k−1\)\+𝜸time\(k\)⊙\(𝐞t1\+𝐞t2\)\.\\mathbf\{z\}^\{\(k\-1\)\}\\leftarrow\\mathbf\{z\}^\{\(k\-1\)\}\+\\boldsymbol\{\\gamma\}^\{\(k\)\}\_\{\\text\{time\}\}\\odot\(\\mathbf\{e\}\_\{t\_\{1\}\}\+\\mathbf\{e\}\_\{t\_\{2\}\}\)\.\(4\)
##### Bidirectional scoring\.
To resolve head\-tail ambiguity, entity candidates are scored in both directions using the contextualized slots, then fused by a summary\-conditioned gateαent\(k\)=σ\(Went𝐬\)\\alpha^\{\(k\)\}\_\{\\text\{ent\}\}=\\sigma\(W\_\{\\text\{ent\}\}\\mathbf\{s\}\):
𝐬ent\(k\)=αent\(k\)⋅ScoreTComplEx\(𝐡′,𝐭′,𝐫ent\(k\),𝝉′\)\+\(1−α\(k\)ent\)⋅ScoreTComplEx\(𝐭′,𝐡′,𝐫\(k\)ent,𝝉′\)\\mathbf\{s\}^\{\(k\)\}\_\{\\text\{ent\}\}=\\alpha^\{\(k\)\}\_\{\\text\{ent\}\}\\cdot\\text\{Score\}\_\{\\text\{TComplEx\}\}\(\\mathbf\{h\}^\{\\prime\},\\mathbf\{t\}^\{\\prime\},\\mathbf\{r\}^\{\(k\)\}\_\{\\text\{ent\}\},\\boldsymbol\{\\tau\}^\{\\prime\}\)\\\\ \+\(1\-\\alpha^\{\(k\)\}\_\{\\text\{ent\}\}\)\\cdot\\text\{Score\}\_\{\\text\{TComplEx\}\}\(\\mathbf\{t\}^\{\\prime\},\\mathbf\{h\}^\{\\prime\},\\mathbf\{r\}^\{\(k\)\}\_\{\\text\{ent\}\},\\boldsymbol\{\\tau\}^\{\\prime\}\)\(5\)
Timestamp candidates are scored analogously \(without the time slot in the scorer\) and fused viaαtime\(k\)\\alpha^\{\(k\)\}\_\{\\text\{time\}\}\.
#### 3\.3\.3Working\-Memory Update and Aggregation
After scoring, soft distributions𝐩ent\(k\)=softmax\(𝐬ent\(k\)\)\\mathbf\{p\}^\{\(k\)\}\_\{\\text\{ent\}\}=\\text\{softmax\}\(\\mathbf\{s\}^\{\(k\)\}\_\{\\text\{ent\}\}\)and𝐩time\(k\)=softmax\(𝐬time\(k\)\)\\mathbf\{p\}^\{\(k\)\}\_\{\\text\{time\}\}=\\text\{softmax\}\(\\mathbf\{s\}^\{\(k\)\}\_\{\\text\{time\}\}\)yield expected embeddings:
𝐞¯ent\(k\)=𝐩ent\(k\)⊤𝐄ent,𝐞¯time\(k\)=𝐩time\(k\)⊤𝐄time\.\\bar\{\\mathbf\{e\}\}^\{\(k\)\}\_\{\\text\{ent\}\}=\\mathbf\{p\}^\{\(k\)\\top\}\_\{\\text\{ent\}\}\\mathbf\{E\}\_\{\\text\{ent\}\},\\quad\\bar\{\\mathbf\{e\}\}^\{\(k\)\}\_\{\\text\{time\}\}=\\mathbf\{p\}^\{\(k\)\\top\}\_\{\\text\{time\}\}\\mathbf\{E\}\_\{\\text\{time\}\}\.\(6\)
Their sum is projected to a memory vector𝐦\(k\)\\mathbf\{m\}^\{\(k\)\}that refines the latent state:
𝐳\(k\)=Gate\(Attn\(𝐳\(k−1\),𝐦\(k\)\)\)\.\\mathbf\{z\}^\{\(k\)\}=\\text\{Gate\}\\big\(\\text\{Attn\}\(\\mathbf\{z\}^\{\(k\-1\)\},\\mathbf\{m\}^\{\(k\)\}\)\\big\)\.\(7\)
This lets the model carry forward soft predictions from earlier hops, progressively refining its hypothesis\.
##### Adaptive aggregation\.
A hop selector𝜷=softmax\(Whop𝐬\)\\boldsymbol\{\\beta\}=\\text\{softmax\}\(W\_\{\\text\{hop\}\}\\mathbf\{s\}\)weights theKKhop\-specific score vectors:
𝐬ent=∑k=1Kβk𝐬ent\(k\),𝐬time=∑k=1Kβk𝐬time\(k\)\.\\mathbf\{s\}\_\{\\text\{ent\}\}=\\sum\_\{k=1\}^\{K\}\\beta\_\{k\}\\mathbf\{s\}^\{\(k\)\}\_\{\\text\{ent\}\},\\qquad\\mathbf\{s\}\_\{\\text\{time\}\}=\\sum\_\{k=1\}^\{K\}\\beta\_\{k\}\\mathbf\{s\}^\{\(k\)\}\_\{\\text\{time\}\}\.\(8\)
The concatenated output\[𝐬ent;𝐬time\]\[\\mathbf\{s\}\_\{\\text\{ent\}\};\\mathbf\{s\}\_\{\\text\{time\}\}\]is trained with cross\-entropy against the gold answer\. TKBC embeddings remain fixed during QA training unless the unfrozen ablation setting is enabled\.
## 4Experiments
### 4\.1Datasets
We evaluate SABET\-QA on four benchmark datasets for temporal question answering: CronQuestions[Saxena et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib29), Complex\-CronQuestions[Chen et al\. 2022](https://arxiv.org/html/2608.20083#bib.bib11), MultiTQ[Chen et al\. 2023](https://arxiv.org/html/2608.20083#bib.bib10), and TimeQuestions[Jia et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib17)\. Together, these benchmarks cover a broad spectrum of temporal reasoning settings, including temporal entity prediction, timestamp prediction, temporal comparison, and multi\-hop reasoning over temporal knowledge graphs\.
CronQuestions and Complex\-CronQuestions are synthetic benchmarks derived from temporal Wikidata facts and are designed to assess compositional temporal reasoning\. MultiTQ is a large\-scale automatically generated dataset containing questions that involve diverse temporal operators and more intricate reasoning patterns\. TimeQuestions comprises natural\-language temporal questions collected from real\-world sources, offering a complementary evaluation setting that more closely reflects realistic user queries\.
Detailed dataset statistics, temporal knowledge graph characteristics, and answer\-type distributions are provided in Appendix[C](https://arxiv.org/html/2608.20083#A3)\(Tables[6](https://arxiv.org/html/2608.20083#A3.T6),[7](https://arxiv.org/html/2608.20083#A3.T7), and[8](https://arxiv.org/html/2608.20083#A3.T8)\)\.
### 4\.2Method Evaluation
ModelHits@1Hits@10OverallComplexSimpleEntityTimeOverallComplexSimpleEntityTimeBERT0\.2570\.2530\.2620\.2920\.1910\.6420\.6170\.6760\.6500\.627CronKGQA0\.6460\.3910\.9870\.6980\.5500\.8860\.8060\.9930\.9010\.858EmbedKGQA0\.4330\.3700\.5160\.5760\.1660\.7870\.7350\.8570\.8920\.592TempoQR0\.7960\.6580\.9810\.8800\.6400\.9590\.9340\.9920\.9750\.930TempoQR\-Hard0\.9140\.8610\.9840\.9230\.8960\.9790\.9680\.9930\.9820\.973SubGTR\-Hard0\.9130\.8590\.9840\.9170\.9040\.9800\.9700\.9930\.9820\.975SABET\-QA0\.8430\.7330\.9890\.8820\.7700\.9690\.9530\.9940\.9790\.954SABET\-QA\-Hard0\.9540\.9260\.9940\.9410\.9800\.9890\.9830\.9960\.9860\.994Table 3:Comparison against other methods on the CronQuestions test set\. Metrics are reported for overall performance, question type \(complex/simple\), and answer type \(entity/time\)\.ModelHits@1Hits@10OverallEntityTimeOverallEntityTimeBERT0\.0870\.0970\.0680\.4210\.3510\.567CronKGQA0\.2880\.3650\.1290\.7360\.7580\.689EmbedKGQA0\.2600\.3610\.0500\.6180\.7420\.360TempoQR0\.4380\.5850\.1320\.8530\.9060\.743TempoQR\-Hard0\.6320\.7210\.4480\.9330\.9420\.914SubGTR\-Hard0\.6230\.7190\.4220\.9280\.9440\.895SABET\-QA0\.5240\.5900\.3840\.8960\.9250\.836SABET\-QA\-Hard0\.8070\.7470\.9310\.9620\.9550\.978Table 4:Comparison on the Complex\-CronQuestions test set\. Metrics are reported for overall performance and answer type \(entity/time\)\.ModelMultiTQTimeQuestionsHits@1Hits@10Hits@1Hits@10OverallEntityTimeOverallEntityTimeOverallEntityTimeOverallEntityTimeBERT0\.1030\.1170\.0690\.5160\.6320\.2340\.4500\.4090\.5560\.5690\.5200\.698CronKGQA0\.2780\.3870\.0110\.5270\.7240\.0460\.3260\.2960\.4050\.4540\.4090\.569EmbedKGQA0\.2430\.3420\.0020\.4890\.6850\.0120\.2880\.2660\.3440\.4680\.4260\.577TempoQR0\.3270\.4560\.0140\.5710\.7830\.0550\.4090\.4060\.4160\.5300\.5130\.574TempoQR\-Hard0\.3350\.4650\.0180\.5790\.7880\.0680\.4100\.4110\.4070\.5280\.5110\.572SubGTR\-Hard0\.3370\.4690\.0150\.5760\.7890\.0560\.4190\.4150\.4270\.5320\.5120\.583SABET\-QA0\.3730\.4800\.1110\.7000\.8040\.4440\.5020\.5000\.6090\.6190\.5680\.750SABET\-QA\-Hard0\.4030\.4790\.2190\.7150\.8100\.4850\.5040\.5130\.6040\.6150\.5650\.747
Table 5:Comparison on the MultiTQ and TimeQuestions test sets\.We evaluate SABET\-QA using the standard ranking\-based metrics commonly adopted in the temporal question answering literature, namelyHits@1andHits@10\. Hits@1 measures the proportion of queries for which the correct answer is ranked first, whereas Hits@10 measures the proportion of queries for which the correct answer appears within the top ten ranked candidates\. Following the evaluation protocols of the respective benchmark datasets, we report overall performance as well as disaggregated results by question complexity \(when available\) and answer type \(entity versus timestamp\)\.
Table[3](https://arxiv.org/html/2608.20083#S4.T3)reports results on CronQuestions\. SABET\-QA achieves0\.843Hits@1, improving over TempoQR by4\.7points, a gain concentrated almost entirely on the complex subset \(\+7\.5over TempoQR’s 0\.658\)\. This pattern, strong gains on compositional reasoning with maintained or improved performance on simple queries, recurs across all four benchmarks and validates our core hypothesis: iterative refinement with bidirectional scoring is particularly effective when questions require sequential temporal deduction\.
The*hard\-supervised*variant \(SABET\-QA\-Hard\) pushes performance to0\.954Hits@1 on CronQuestions and0\.807on Complex\-CronQuestions \(Table[4](https://arxiv.org/html/2608.20083#S4.T4)\)\. The margin over TempoQR\-Hard widens to17\.5points on Complex\-CronQuestions, suggesting that our architecture better exploits coarse temporal boundaries when reasoning chains are longer\. Notably, SABET\-QA\-Hard’s time\-answer accuracy on Complex\-CronQuestions \(0\.931Hits@1\) approaches its entity\-answer accuracy \(0\.747\), whereas TempoQR\-Hard exhibits a27\.3\-point gap between the two\. We attribute this to the working\-memory mechanism, which propagates intermediate temporal hypotheses across hops rather than scoring time and entity candidates independently\.
On MultiTQ \(Table[5](https://arxiv.org/html/2608.20083#S4.T5)\), absolute scores are lower across all methods, reflecting the dataset’s coarser temporal granularity and more diverse operator vocabulary\. SABET\-QA still leads all baselines, with the largest relative improvement on timestamp prediction \(0\.111vs\. Bert’s0\.069Hits@1\)\.
TimeQuestions \(Table[5](https://arxiv.org/html/2608.20083#S4.T5)\) presents naturalistic questions with noisy entity linking\. Here SABET\-QA outperforms TempoQR by9\.3Hits@1 points overall, with the non\-hard variant actually edging SABET\-QA\-Hard on time\-specific accuracy \(0\.609vs\.0\.604\)\.
##### Overall,
SABET\-QA establishes the best results on all four benchmarks\. The gains are largest on complex multi\-hop questions and timestamp prediction, confirming that iterative, structure\-aware temporal reasoning outperforms single\-pass embedding matching\.
### 4\.3Method Behaviour Analysis
##### Varying the number of hops\.
Figure[1](https://arxiv.org/html/2608.20083#S3.F1)\(left\) plots per\-category Hits@1 on Complex\-CronQuestions asKKincreases from 1 to 8\. Three distinct regimes emerge\.*Complex*queries rise sharply fromK=1K\{=\}1\(0\.439\) toK=4K\{=\}4\(0\.524\), then fluctuate in a narrow band \(0\.504\-0\.515\) throughK=8K\{=\}8; the peak atK=4K\{=\}4represents a19\.4% relative gain over single\-hop reasoning\.*Time*queries follow a similar trajectory, peaking atK=4K\{=\}4\(0\.384\) before degrading to0\.305atK=8K\{=\}8\.
*Entity*queries behave differently: they rise monotonically fromK=1K\{=\}1\(0\.576\) toK=8K\{=\}8\(0\.600\), with only marginal gains beyondK=4K\{=\}4\. This divergence is structurally informative: complex and time queries benefit from*moderate*iterative refinement enough to resolve intermediate ambiguities, but not so deep that compounding complexity dominates whereas entity queries, which require less compositional reasoning, tolerate and even profit from extended unrolling\.
The right panel confirms that overall Hits@1 mirrors the complex category, peaking atK=4K\{=\}4\(0\.524\)\. Hits@10 behaves differently: it rises steeply fromK=1K\{=\}1\(0\.840\) toK=2K\{=\}2\(0\.892\), then plateaus fromK=4K\{=\}4onward \(0\.895—0\.897\)\. This decoupling Hits@1 saturating earlier than Hits@10 indicates that additional hops primarily improve ranking quality within the top 10 rather than top\-1 precision\. We useK=4K\{=\}4in all reported results as the best compromise between accuracy and computational cost\.
##### Hop Attention Analysis and Iterative Refinement\.
To better understand how SABET\-QA exploits its multi\-hop reasoning mechanism, we analyze the aggregation weights \(βk\\beta\_\{k\}\) and top\-1 hop selections over30,00030,000validation queries from the CronQuestions dataset\. As shown in Figure[2](https://arxiv.org/html/2608.20083#S4.F2)\(a,b\), the model consistently favors deeper reasoning states: the mean aggregation weight increases monotonically from0\.1370\.137\(Hop 0\) to0\.4000\.400\(Hop 3\), while Hop 3 is selected as the dominant reasoning state in56\.5%56\.5\\%of the queries\.
Further stratification by question type \(Figure[2](https://arxiv.org/html/2608.20083#S4.F2)\(c\)\) reveals adaptive reasoning depth across different temporal reasoning tasks\. Whereas relatively simple query types distribute attention more evenly across hops, compositionally complex queries such asfirst\_last\(81\.6%81\.6\\%Hop 3 selection\) andbefore\_after\(54\.3%54\.3\\%Hop 3 selection\) place the majority of their attention on the final hop\. These results indicate that the differentiable working memory learns to postpone final predictions until sufficient multi\-step temporal evidence has been accumulated, demonstrating its ability to adapt computation depth according to reasoning complexity\.
\(a\)Mean aggregation weight \(βk\\beta\_\{k\}\)\.
\(b\)Top\-1 hop selection count\.
\(c\)Hop weight heatmap by query type\.
Figure 2:Behavioral dynamics of the differentiable working memory \(K=4K=4\) across30,00030,000CronQuestions validation instances\. The network dynamically routes computation depth, shifting attention mass to H3 for compositional temporal queries\.
##### Ablation of architectural components\.
Table[1](https://arxiv.org/html/2608.20083#S3.T1)isolates the contribution of each design choice in SABET\-QA\-Hard on Complex\-CronQuestions\. Removing entity contextualization \(EC\) drops Hits@1 by10\.0points \(0\.807→\\rightarrow0\.707\), showing that grounding slot representations in question text is essential when relations are lexically ambiguous\. Removing bidirectional entity–time scoring \(BETS\) causes the largest single\-component drop \(–14\.8points, to0\.659\), confirming that forward and backward scorers capture complementary directional biases; neither direction alone suffices for head–tail disambiguation\. Removing hard supervision \(HS\) degrades performance to the non\-hard variant level \(0\.524\), demonstrating that temporal hint injection provides orthogonal signal when interval boundaries are available\. Crucially, no partial configuration approaches the full model; the gain over the best ablated variant is18\.3Hits@1 points, establishing that slot contextualization, bidirectional scoring, and hard supervision are*jointly*necessary rather than redundant\.
##### Which pretrained modules should be fine\-tuned?
Table[2](https://arxiv.org/html/2608.20083#S3.T2)examines whether updating the pretrained language model \(LM\) and temporal knowledge embeddings \(TKE\) during QA training improves performance\.
Under*no hard supervision*\(SABET\-QA, top block\), the best Complex\-CronQuestions result \(0\.547Hits@1\) is obtained by*unfreezing the LM while keeping TKE frozen*outperforming the fully frozen baseline \(0\.524\) by2\.3points\. Unfreezing TKE alone \(0\.446\) or both modules \(0\.476\) underperforms the frozen baseline, suggesting that updating TKE without hard boundaries introduces noise into an already well\-structured embedding space\.
Under*hard supervision*\(SABET\-QA\-Hard, bottom block\), the fully frozen configuration already achieves0\.807Hits@1\. Unfreezing the LM alone yields0\.803\(–0\.4\), a difference that is likely not significant, while unfreezing TKE alone \(0\.759\) or both \(0\.769\) degrades performance\. The same ordering holds on CronQuestions: frozen⩾\\geqslantLM\-unfrozen\>\>both\-unfrozen\>\>TKE\-unfrozen\.
These results indicate that the pretrained TComplEx embeddings are already well\-optimized for temporal link prediction, and updating them during QA fine\-tuning hurts generalization\. The bottleneck is instead the*alignment*between the LM’s question encoding and the frozen TKG scoring space\. With hard supervision, this alignment is already strong enough that unfreezing the LM provides no benefit; under weak supervision, modest gains from an unfrozen LM are possible, but they are quickly overshadowed once hard temporal boundaries are available\.
## 5Conclusion
In this work, we presented SABET\-QA, an iterative multi\-hop framework for Temporal Knowledge Graph Question Answering\. By introducing bidirectional entity and time scoring, our model mitigates head\-tail directional ambiguity, a common failure mode in prior methods\. A differentiable working memory progressively refines the latent reasoning state across hops, moving beyond single\-pass inference, while slot\-aware contextualization keeps entity and temporal representations grounded in question semantics throughout\.
Experiments on CronQuestions, Complex\-CronQuestions, MultiTQ, and TimeQuestions show consistent improvements over strong baselines, with the largest gains on complex questions\. This validates our hypothesis that iterative refinement and bidirectional temporal scoring are critical for multi\-step temporal reasoning\.
## Limitations
Despite these results, SABET\-QA has several limitations\. First, the approach relies on pretrained temporal KG embeddings and frozen language\-model/KG components during QA training, which may constrain adaptability to new domains or evolving graph structures\. Third, the method assumes access to entity and timestamp grounding when available, so performance drops when such annotations are missing or unreliable\. When gold entity mentions are unavailable, SABET\-QA relies on downstream NER systems \(e\.g\., Flair[Akbik et al\. 2019](https://arxiv.org/html/2608.20083#bib.bib1)on MultiTQ\)\. Error propagation from noisy slot extractions inherently introduces a performance degradation compared to gold\-annotated mentions, highlighting a dependency on upstream entity linking accuracy in end\-to\-end setups\. Finally, the iterative multi\-hop design adds architectural complexity and may increase computational cost compared with simpler single\-pass models\. These points are consistent with the paper’s training setup and the way the model is grounded in pretrained TComplEx\-based representations\.
## Ethical Considerations
This work is based on structured benchmark data and is intended for research on temporal reasoning\. It is also important to note that the model may inherit biases, gaps, or factual errors from the underlying knowledge graphs and pretrained embeddings, and such issues can affect prediction quality\. In addition, because the model is evaluated on benchmark datasets rather than sensitive personal data, the main ethical concerns relate to reproducibility, disclosure, and responsible interpretation of results rather than privacy\.
## References
- Akbik et al\. \(2019\)Alan Akbik, Tanja Bergmann, Duncan Blythe, Kashif Rasul, Stefan Schweter, and Roland Vollgraf\. 2019\.FLAIR: An easy\-to\-use framework for state\-of\-the\-art NLP\.In*NAACL 2019, 2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics \(Demonstrations\)*, pages 54–59\.
- Bao et al\. \(2016\)Junwei Bao, Nan Duan, Zhao Yan, Ming Zhou, and Tiejun Zhao\. 2016\.[Constraint\-based question answering with knowledge graph](https://aclanthology.org/C16-1236/)\.In*Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers*, pages 2503–2514, Osaka, Japan\. The COLING 2016 Organizing Committee\.
- Berant et al\. \(2013\)Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang\. 2013\.[Semantic parsing on Freebase from question\-answer pairs](https://aclanthology.org/D13-1160/)\.In*Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing*, pages 1533–1544, Seattle, Washington, USA\. Association for Computational Linguistics\.
- Bollacker et al\. \(2008\)Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor\. 2008\.[Freebase: a collaboratively created graph database for structuring human knowledge](https://doi.org/10.1145/1376616.1376746)\.In*Proceedings of the 2008 ACM SIGMOD International Conference on Management of Data*, SIGMOD ’08, page 1247–1250, New York, NY, USA\. Association for Computing Machinery\.
- Bordes et al\. \(2013\)Antoine Bordes, Nicolas Usunier, Alberto Garcia\-Duran, Jason Weston, and Oksana Yakhnenko\. 2013\.[Translating embeddings for modeling multi\-relational data](https://proceedings.neurips.cc/paper_files/paper/2013/file/1cecc7a77928ca8133fa24680a88d2f9-Paper.pdf)\.In*Advances in Neural Information Processing Systems*, volume 26\. Curran Associates, Inc\.
- Cai et al\. \(2023\)Borui Cai, Yong Xiang, Longxiang Gao, He Zhang, Yunfeng Li, and Jianxin Li\. 2023\.[Temporal knowledge graph completion: A survey](https://doi.org/10.24963/ijcai.2023/734)\.In*Proceedings of the Thirty\-Second International Joint Conference on Artificial Intelligence*, IJCAI\-2023, page 6545–6553\. International Joint Conferences on Artificial Intelligence Organization\.
- Cai et al\. \(2024\)Li Cai, Xin Mao, Yuhao Zhou, Zhaoguang Long, Changxu Wu, and Man Lan\. 2024\.[A survey on temporal knowledge graph: Representation learning and applications](https://arxiv.org/abs/2403.04782)\.*Preprint*, arXiv:2403\.04782\.
- Chen et al\. \(2024a\)Zhuo Chen, Zhao Zhang, Zixuan Li, Fei Wang, Yutao Zeng, Xiaolong Jin, and Yongjun Xu\. 2024a\.[Self\-improvement programming for temporal knowledge graph question answering](https://arxiv.org/abs/2404.01720)\.*Preprint*, arXiv:2404\.01720\.
- Chen et al\. \(2024b\)Ziyang Chen, Dongfang Li, Xiang Zhao, Baotian Hu, and Min Zhang\. 2024b\.[Temporal knowledge question answering via abstract reasoning induction](https://doi.org/10.18653/v1/2024.acl-long.267)\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 4872–4889, Bangkok, Thailand\. Association for Computational Linguistics\.
- Chen et al\. \(2023\)Ziyang Chen, Jinzhi Liao, and Xiang Zhao\. 2023\.[Multi\-granularity temporal question answering over knowledge graphs](https://aclanthology.org/2023.acl-long.637)\.In*Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 11378–11392, Toronto, Canada\. Association for Computational Linguistics\.
- Chen et al\. \(2022\)Ziyang Chen, Xiang Zhao, Jinzhi Liao, Xinyi Li, and Evangelos Kanoulas\. 2022\.[Temporal knowledge graph question answering via subgraph reasoning](https://doi.org/10.1016/j.knosys.2022.109134)\.*Knowledge\-Based Systems*, 251:109134\.
- Devlin et al\. \(2019\)Jacob Devlin, Ming\-Wei Chang, Kenton Lee, and Kristina Toutanova\. 2019\.[Bert: Pre\-training of deep bidirectional transformers for language understanding](https://arxiv.org/abs/1810.04805)\.*Preprint*, arXiv:1810\.04805\.
- Gao et al\. \(2024\)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](https://arxiv.org/abs/2402.16568)\.*Preprint*, arXiv:2402\.16568\.
- Huang et al\. \(2019\)Xiao Huang, Jingyuan Zhang, Dingcheng Li, and Ping Li\. 2019\.[Knowledge graph embedding based question answering](https://doi.org/10.1145/3289600.3290956)\.In*Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining*, WSDM ’19, page 105–113, New York, NY, USA\. Association for Computing Machinery\.
- Jain et al\. \(2020\)Prachi Jain, Sushant Rathi, Mausam, and Soumen Chakrabarti\. 2020\.[Temporal Knowledge Base Completion: New Algorithms and Evaluation Protocols](https://doi.org/10.18653/v1/2020.emnlp-main.305)\.In*Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing \(EMNLP\)*, pages 3733–3747, Online\. Association for Computational Linguistics\.
- Jia et al\. \(2024\)Zhen Jia, Philipp Christmann, and Gerhard Weikum\. 2024\.[Faithful temporal question answering over heterogeneous sources](https://arxiv.org/abs/2402.15400)\.*Preprint*, arXiv:2402\.15400\.
- Jia et al\. \(2021\)Zhen Jia, Soumajit Pramanik, Rishiraj Saha Roy, and Gerhard Weikum\. 2021\.[Complex temporal question answering on knowledge graphs](https://doi.org/10.1145/3459637.3482416)\.In*Proceedings of the 30th ACM International Conference on Information & Knowledge Management*, CIKM ’21, page 792–802\. ACM\.
- Jiang et al\. \(2023\)Jinhao Jiang, Kun Zhou, Wayne Xin Zhao, and Ji\-Rong Wen\. 2023\.[Unikgqa: Unified retrieval and reasoning for solving multi\-hop question answering over knowledge graph](https://arxiv.org/abs/2212.00959)\.*Preprint*, arXiv:2212\.00959\.
- Jiao et al\. \(2022\)Songlin Jiao, Zhenfang Zhu, Wenqing Wu, Zicheng Zuo, Jiangtao Qi, Wenling Wang, Guangyuan Zhang, and Peiyu Liu\. 2022\.[An improving reasoning network for complex question answering over temporal knowledge graphs](https://doi.org/10.1007/s10489-022-03913-6)\.*Applied Intelligence*, 53\(7\):8195–8208\.
- Kingma and Ba \(2017\)Diederik P\. Kingma and Jimmy Ba\. 2017\.[Adam: A method for stochastic optimization](https://arxiv.org/abs/1412.6980)\.*Preprint*, arXiv:1412\.6980\.
- Lacroix et al\. \(2020\)Timothée Lacroix, Guillaume Obozinski, and Nicolas Usunier\. 2020\.[Tensor decompositions for temporal knowledge base completion](https://arxiv.org/abs/2004.04926)\.*Preprint*, arXiv:2004\.04926\.
- Leblay and Chekol \(2018\)Julien Leblay and Melisachew Wudage Chekol\. 2018\.[Deriving validity time in knowledge graph](https://api.semanticscholar.org/CorpusID:13846713)\.*Companion Proceedings of the The Web Conference 2018*\.
- Liu et al\. \(2019\)Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov\. 2019\.[Roberta: A robustly optimized bert pretraining approach](https://arxiv.org/abs/1907.11692)\.*Preprint*, arXiv:1907\.11692\.
- Liu et al\. \(2023\)Yonghao Liu, Di Liang, Mengyu Li, Fausto Giunchiglia, Ximing Li, Sirui Wang, Wei Wu, Lan Huang, Xiaoyue Feng, and Renchu Guan\. 2023\.[Local and global: Temporal question answering via information fusion](https://doi.org/10.24963/ijcai.2023/571)\.In*Proceedings of the Thirty\-Second International Joint Conference on Artificial Intelligence, IJCAI\-23*, pages 5141–5149\. International Joint Conferences on Artificial Intelligence Organization\.Main Track\.
- Mavromatis et al\. \(2021\)Costas Mavromatis, Prasanna Lakkur Subramanyam, Vassilis N\. Ioannidis, Soji Adeshina, Phillip R\. Howard, Tetiana Grinberg, Nagib Hakim, and George Karypis\. 2021\.[Tempoqr: Temporal question reasoning over knowledge graphs](https://arxiv.org/abs/2112.05785)\.*Preprint*, arXiv:2112\.05785\.
- Paszke et al\. \(2019\)Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, and 2 others\. 2019\.[Pytorch: An imperative style, high\-performance deep learning library](https://arxiv.org/abs/1912.01703)\.*Preprint*, arXiv:1912\.01703\.
- Qian et al\. \(2024\)Xinying Qian, Ying Zhang, Yu Zhao, Baohang Zhou, Xuhui Sui, Li Zhang, and Kehui Song\. 2024\.[TimeR4: Time\-aware retrieval\-augmented large language models for temporal knowledge graph question answering](https://doi.org/10.18653/v1/2024.emnlp-main.394)\.In*Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing*, pages 6942–6952, Miami, Florida, USA\. Association for Computational Linguistics\.
- Ruffinelli et al\. \(2020\)Daniel Ruffinelli, Samuel Broscheit, and Rainer Gemulla\. 2020\.[You can teach an old dog new tricks\! on training knowledge graph embeddings](https://openreview.net/forum?id=BkxSmlBFvr)\.In*International Conference on Learning Representations*\.
- Saxena et al\. \(2021\)Apoorv Saxena, Soumen Chakrabarti, and Partha Talukdar\. 2021\.[Question answering over temporal knowledge graphs](https://doi.org/10.18653/v1/2021.acl-long.520)\.In*Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing \(Volume 1: Long Papers\)*, pages 6663–6676, Online\. Association for Computational Linguistics\.
- Saxena et al\. \(2020\)Apoorv Saxena, Aditay Tripathi, and Partha Talukdar\. 2020\.[Improving multi\-hop question answering over knowledge graphs using knowledge base embeddings](https://doi.org/10.18653/v1/2020.acl-main.412)\.In*Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics*, pages 4498–4507, Online\. Association for Computational Linguistics\.
- Su et al\. \(2026\)Miao Su, Zixuan Li, Zhuo Chen, Long Bai, Xiaolong Jin, and Jiafeng Guo\. 2026\.[Temporal knowledge graph question answering: A survey](https://arxiv.org/abs/2406.14191)\.*Preprint*, arXiv:2406\.14191\.
- Suchanek et al\. \(2007\)Fabian M\. Suchanek, Gjergji Kasneci, and Gerhard Weikum\. 2007\.[Yago: a core of semantic knowledge](https://doi.org/10.1145/1242572.1242667)\.In*Proceedings of the 16th International Conference on World Wide Web*, WWW ’07, page 697–706, New York, NY, USA\. Association for Computing Machinery\.
- Sun et al\. \(2018\)Haitian Sun, Bhuwan Dhingra, Manzil Zaheer, Kathryn Mazaitis, Ruslan Salakhutdinov, and William Cohen\. 2018\.[Open domain question answering using early fusion of knowledge bases and text](https://doi.org/10.18653/v1/D18-1455)\.In*Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing*, pages 4231–4242, Brussels, Belgium\. Association for Computational Linguistics\.
- Trouillon et al\. \(2016\)Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard\. 2016\.[Complex embeddings for simple link prediction](https://arxiv.org/abs/1606.06357)\.*Preprint*, arXiv:1606\.06357\.
- Vaswani et al\. \(2023\)Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N\. Gomez, Lukasz Kaiser, and Illia Polosukhin\. 2023\.[Attention is all you need](https://arxiv.org/abs/1706.03762)\.*Preprint*, arXiv:1706\.03762\.
- Vrandečić and Krötzsch \(2014\)Denny Vrandečić and Markus Krötzsch\. 2014\.[Wikidata: a free collaborative knowledgebase](https://doi.org/10.1145/2629489)\.*Commun\. ACM*, 57\(10\):78–85\.
- Yao and Van Durme \(2014\)Xuchen Yao and Benjamin Van Durme\. 2014\.[Information extraction over structured data: Question answering with Freebase](https://doi.org/10.3115/v1/P14-1090)\.In*Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 956–966, Baltimore, Maryland\. Association for Computational Linguistics\.
## Appendix ATemporal KG Embedding Model
To train the temporal knowledge\-graph embeddings used in our QA models, we adoptTComplEx[Lacroix et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib21), following a broader family of complex\-valued embedding models for knowledge graphs\. In particular, ComplEx[Trouillon et al\. 2016](https://arxiv.org/html/2608.20083#bib.bib34)represents entities and relations as complex vectors and scores a fact via the real part of a multilinear product, while TComplEx extends this formulation by introducing a timestamp embedding for temporal facts\. Related temporal variants such as TNTComplEx and TimePlex further enrich this framework with additional time\-aware parameterizations of relations and temporal representations[Lacroix et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib21);[Jain et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib15)\.
We use TComplEx as the default KG embedding backend for all QA models in order to ensure a controlled comparison across methods, since our focus is on evaluating the QA architecture rather than the choice of temporal KGE model\. This design choice is therefore not essential to the proposed QA framework and can be replaced by another temporal embedding method without changing the core model\. Nevertheless, TComplEx is a natural and widely used choice in the literature, which makes it suitable for our experiments[Ruffinelli et al\. 2020](https://arxiv.org/html/2608.20083#bib.bib28)\.
Figure[3](https://arxiv.org/html/2608.20083#A1.F3)summarizes the TComplEx pipeline\. The model maps a temporal fact to entity, relation, and timestamp embeddings, combines them through complex\-valued interactions, and supports both entity prediction and timestamp prediction\.
For the MultiTQ dataset, temporal answers can be expressed at different granularities, including specific days, months, or years\. To accommodate this variability, we trained the temporal knowledge graph embeddings on an augmented version of the original TKG\. Specifically, for each temporal fact, we added additional facts corresponding to coarser temporal resolutions by converting timestamps into their associated month\- and year\-level representations\. For example, a fact associated with a specific day was duplicated with equivalent month\-level and year\-level timestamps\.
Temporal KG fact\(s,r,o,t\)\(s,r,o,t\)Entity embeddings𝐮s,𝐮o\\mathbf\{u\}\_\{s\},\\mathbf\{u\}\_\{o\}Relation embedding𝐯r\\mathbf\{v\}\_\{r\}Timestamp embedding𝐰t\\mathbf\{w\}\_\{t\}Complex\-valued scoringϕ\(s,r,o,t\)=ℜ\(⟨𝐮s,𝐯r,𝐮¯o,𝐰t⟩\)\\phi\(s,r,o,t\)=\\Re\\\!\\left\(\\langle\\mathbf\{u\}\_\{s\},\\mathbf\{v\}\_\{r\},\\overline\{\\mathbf\{u\}\}\_\{o\},\\mathbf\{w\}\_\{t\}\\rangle\\right\)Entity rankingϕ\(s,r,?,t\)\\phi\(s,r,?,t\)All entitiesTime rankingϕ\(s,r,o,?\)\\phi\(s,r,o,?\)All timestampsPretrained TComplEx embeddingsFigure 3:TComplEx pipeline used to initialize the temporal KG embeddings\. The model learns complex\-valued embeddings for entities, relations, and timestamps, and supports both entity ranking and timestamp ranking through the same compositional scoring function\.
## Appendix BSABET\-QA Details
Question tokens𝐱,𝐦\\mathbf\{x\},\\mathbf\{m\}Pretrained LMText projectionto TKG space \(DD\)Head/tail/timeslot embeddingsShared TKGembedding lookupCross\-attention slot contextualizationGated residual fusion𝐞^h\\hat\{\\mathbf\{e\}\}\_\{h\}𝐞^t\\hat\{\\mathbf\{e\}\}\_\{t\}𝐞^τ\\hat\{\\mathbf\{e\}\}\_\{\\tau\}
Figure 4:Question encoding and slot contextualization in SABER\-TQA\. Question tokens are encoded by a pretrained language model and projected into the temporal KG embedding space\. Head, tail, and temporal slot embeddings are retrieved from the shared TKG table and attend to the question representation, followed by gated residual fusion to produce contextualized role\-specific vectors\.Current latent state𝐳\(k−1\)\\mathbf\{z\}^\{\(k\-1\)\}Concatenate with summary\[𝐳\(k−1\);𝐬\]\[\\mathbf\{z\}^\{\(k\-1\)\};\\mathbf\{s\}\]Hop\-specific relation projectionfk\(⋅\)f\_\{k\}\(\\cdot\)Entity\-oriented relationand entity scoringTemporal\-oriented relationand time scoringWorking\-memory constructionsoft entity/time distributions→\\rightarrowmemory vectorLatent state updategated fusion with memory
Figure 5:Iterative hop\-wise reasoning in SABET\-QA\. At each hop, the current latent reasoning state is combined with the global question summary and transformed into a hop\-specific relation representation\. Dedicated entity\-oriented and temporal\-oriented projections generate entity and timestamp scores, whose soft distributions are converted into a working\-memory representation used to update the latent state for the next reasoning hop\.This appendix provides the complete mathematical specification and pseudocode for SABET\-QA, matching the implementation provided in the anonymized supplementary material\.
### B\.1Question Encoding and Slot Contextualization
Given tokenized question𝐱=\(x1,…,xL\)\\mathbf\{x\}=\(x\_\{1\},\\dots,x\_\{L\}\)and attention mask𝐦\\mathbf\{m\}, the pretrained LM produces hidden states𝐇=LM\(𝐱,𝐦\)∈ℝL×768\\mathbf\{H\}=\\mathrm\{LM\}\(\\mathbf\{x\},\\mathbf\{m\}\)\\in\\mathbb\{R\}^\{L\\times 768\}\. These are projected into the TKG space by a feed\-forward networkftextf\_\{\\text\{text\}\}\(linear→\\toLayerNorm→\\toGELU→\\todropout\):
𝐓=ftext\(𝐇\)∈ℝL×D\.\\mathbf\{T\}=f\_\{\\text\{text\}\}\(\\mathbf\{H\}\)\\in\\mathbb\{R\}^\{L\\times D\}\.\(9\)
Head, tail, and timestamp slot embeddings𝐞h,𝐞t,𝐞τ\\mathbf\{e\}\_\{h\},\\mathbf\{e\}\_\{t\},\\mathbf\{e\}\_\{\\tau\}are retrieved from the shared entity/time embedding table\. They are stacked as queries for multi\-head cross\-attention over the projected question tokens:
𝐂=Attn\(\[𝐞h;𝐞t;𝐞τ\],𝐓,𝐓\),\\mathbf\{C\}=\\mathrm\{Attn\}\\big\(\[\\mathbf\{e\}\_\{h\};\\mathbf\{e\}\_\{t\};\\mathbf\{e\}\_\{\\tau\}\],\\mathbf\{T\},\\mathbf\{T\}\\big\),\(10\)with key padding derived from𝐦\\mathbf\{m\}\. The outputs𝐜h,𝐜t,𝐜τ\\mathbf\{c\}\_\{h\},\\mathbf\{c\}\_\{t\},\\mathbf\{c\}\_\{\\tau\}are layer\-normalized and fused with gated residuals:
gh=σ\(Wg\[𝐞h;𝐜h\]\),𝐞^h=gh⊙𝐞h\+\(1−gh\)⊙𝐜h,g\_\{h\}=\\sigma\\big\(W\_\{g\}\[\\mathbf\{e\}\_\{h\};\\mathbf\{c\}\_\{h\}\]\\big\),\\qquad\\hat\{\\mathbf\{e\}\}\_\{h\}=g\_\{h\}\\odot\\mathbf\{e\}\_\{h\}\+\(1\-g\_\{h\}\)\\odot\\mathbf\{c\}\_\{h\},\(11\)and analogously for𝐞^t\\hat\{\\mathbf\{e\}\}\_\{t\}and𝐞^τ\\hat\{\\mathbf\{e\}\}\_\{\\tau\}\.
### B\.2Global Summary and Base Relation
A global summary vector is built from the projected token sequence using the concatenation of the \[CLS\] representation, masked mean pooling, and masked max pooling:
𝐬=fsum\(\[𝐓CLS;Mean\(𝐓\);Max\(𝐓\)\]\)∈ℝD,\\mathbf\{s\}=f\_\{\\text\{sum\}\}\\big\(\[\\mathbf\{T\}\_\{\\text\{CLS\}\};\\mathrm\{Mean\}\(\\mathbf\{T\}\);\\mathrm\{Max\}\(\\mathbf\{T\}\)\]\\big\)\\in\\mathbb\{R\}^\{D\},\(12\)wherefsumf\_\{\\text\{sum\}\}is a learned projection\. The base latent state is then constructed from the summary and the contextualized slots:
𝐳\(0\)=frel\(\[𝐬;𝐞^h;𝐞^t;𝐞^τ\]\)∈ℝD,\\mathbf\{z\}^\{\(0\)\}=f\_\{\\text\{rel\}\}\\big\(\[\\mathbf\{s\};\\hat\{\\mathbf\{e\}\}\_\{h\};\\hat\{\\mathbf\{e\}\}\_\{t\};\\hat\{\\mathbf\{e\}\}\_\{\\tau\}\]\\big\)\\in\\mathbb\{R\}^\{D\},\(13\)wherefrelf\_\{\\text\{rel\}\}is a two\-layer MLP \(4D→2D→D4D\\to 2D\\to D\) with GELU and dropout\.
### B\.3Hop\-Specific Relation Projection
At hopkk, the current state and the global summary are concatenated and projected by a hop\-specific MLPfkf\_\{k\}:
𝐫\(k\)=fk\(\[𝐳\(k−1\);𝐬\]\),\\mathbf\{r\}^\{\(k\)\}=f\_\{k\}\\big\(\[\\mathbf\{z\}^\{\(k\-1\)\};\\mathbf\{s\}\]\\big\),\(14\)wherefkf\_\{k\}maps2D→2D→D2D\\to 2D\\to Dwith LayerNorm, GELU, and dropout\.
This relation is then factorized into an entity\-oriented view and a time\-oriented view using dedicated projection heads:
𝐫ent\(k\)=gent\(𝐫\(k\)\),𝐫time\(k\)=gtime\(𝐫\(k\)\),\\mathbf\{r\}\_\{\\text\{ent\}\}^\{\(k\)\}=g\_\{\\text\{ent\}\}\(\\mathbf\{r\}^\{\(k\)\}\),\\qquad\\mathbf\{r\}\_\{\\text\{time\}\}^\{\(k\)\}=g\_\{\\text\{time\}\}\(\\mathbf\{r\}^\{\(k\)\}\),\(15\)with each head implemented as a small MLP overDD\-dimensional inputs\.
### B\.4Optional Temporal Hint Injection
When auxiliary temporal endpoints\(t1,t2\)\(t\_\{1\},t\_\{2\}\)are available, their TKG embeddings are used as a hard temporal hint\. Let𝐞t1\\mathbf\{e\}\_\{t\_\{1\}\}and𝐞t2\\mathbf\{e\}\_\{t\_\{2\}\}denote the corresponding timestamp embeddings\. A learned gate controls how much of this hint is injected into the current latent state:
𝝉\(k\)=σ\(Wτ\[𝐳\(k−1\);𝐞t1;𝐞t2\]\),\\boldsymbol\{\\tau\}^\{\(k\)\}=\\sigma\\big\(W\_\{\\tau\}\[\\mathbf\{z\}^\{\(k\-1\)\};\\mathbf\{e\}\_\{t\_\{1\}\};\\mathbf\{e\}\_\{t\_\{2\}\}\]\\big\),\(16\)and the state is updated as
𝐳\(k−1\)←𝐳\(k−1\)\+𝝉\(k\)⊙\(𝐞t1\+𝐞t2\)\.\\mathbf\{z\}^\{\(k\-1\)\}\\leftarrow\\mathbf\{z\}^\{\(k\-1\)\}\+\\boldsymbol\{\\tau\}^\{\(k\)\}\\odot\(\\mathbf\{e\}\_\{t\_\{1\}\}\+\\mathbf\{e\}\_\{t\_\{2\}\}\)\.\(17\)This hint is optional and only contributes when the corresponding timestamps are available\.
### B\.5Bidirectional Entity Scoring
Using the contextualized slots𝐞^h,𝐞^t,𝐞^τ\\hat\{\\mathbf\{e\}\}\_\{h\},\\hat\{\\mathbf\{e\}\}\_\{t\},\\hat\{\\mathbf\{e\}\}\_\{\\tau\}, the forward and backward TComplEx scores are:
𝐬ent→\(k\)\\displaystyle\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\\rightarrow\(k\)\}=ScoreTComplEx\(𝐞^h,𝐞^t,𝐫ent\(k\),𝐞^τ\),\\displaystyle=\\mathrm\{Score\}\_\{\\text\{TComplEx\}\}\(\\hat\{\\mathbf\{e\}\}\_\{h\},\\hat\{\\mathbf\{e\}\}\_\{t\},\\mathbf\{r\}\_\{\\text\{ent\}\}^\{\(k\)\},\\hat\{\\mathbf\{e\}\}\_\{\\tau\}\),\(18\)𝐬ent←\(k\)\\displaystyle\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\\leftarrow\(k\)\}=ScoreTComplEx\(𝐞^t,𝐞^h,𝐫ent\(k\),𝐞^τ\)\.\\displaystyle=\\mathrm\{Score\}\_\{\\text\{TComplEx\}\}\(\\hat\{\\mathbf\{e\}\}\_\{t\},\\hat\{\\mathbf\{e\}\}\_\{h\},\\mathbf\{r\}\_\{\\text\{ent\}\}^\{\(k\)\},\\hat\{\\mathbf\{e\}\}\_\{\\tau\}\)\.\(19\)
They are fused by a learned scalar gate conditioned on the global summary:
αent\(k\)=σ\(Went𝐬\),𝐬ent\(k\)=αent\(k\)𝐬ent→\(k\)\+\(1−αent\(k\)\)𝐬ent←\(k\)\.\\alpha\_\{\\text\{ent\}\}^\{\(k\)\}=\\sigma\(W\_\{\\text\{ent\}\}\\mathbf\{s\}\),\\qquad\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\(k\)\}=\\alpha\_\{\\text\{ent\}\}^\{\(k\)\}\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\\rightarrow\(k\)\}\+\\big\(1\-\\alpha\_\{\\text\{ent\}\}^\{\(k\)\}\\big\)\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\\leftarrow\(k\)\}\.\(20\)
### B\.6Bidirectional Time Scoring
Temporal candidates are scored analogously:
𝐬time→\(k\)\\displaystyle\\mathbf\{s\}\_\{\\text\{time\}\}^\{\\rightarrow\(k\)\}=Scoretime\(𝐞^h,𝐞^t,𝐫time\(k\)\),\\displaystyle=\\mathrm\{Score\}\_\{\\text\{time\}\}\(\\hat\{\\mathbf\{e\}\}\_\{h\},\\hat\{\\mathbf\{e\}\}\_\{t\},\\mathbf\{r\}\_\{\\text\{time\}\}^\{\(k\)\}\),\(21\)𝐬time←\(k\)\\displaystyle\\mathbf\{s\}\_\{\\text\{time\}\}^\{\\leftarrow\(k\)\}=Scoretime\(𝐞^t,𝐞^h,𝐫time\(k\)\)\.\\displaystyle=\\mathrm\{Score\}\_\{\\text\{time\}\}\(\\hat\{\\mathbf\{e\}\}\_\{t\},\\hat\{\\mathbf\{e\}\}\_\{h\},\\mathbf\{r\}\_\{\\text\{time\}\}^\{\(k\)\}\)\.\(22\)The two score vectors are fused by a gate conditioned on the global summary:
αtime\(k\)=σ\(Wtime𝐬\),𝐬time\(k\)=αtime\(k\)𝐬time→\(k\)\+\(1−αtime\(k\)\)𝐬time←\(k\)\.\\alpha\_\{\\text\{time\}\}^\{\(k\)\}=\\sigma\(W\_\{\\text\{time\}\}\\mathbf\{s\}\),\\qquad\\mathbf\{s\}\_\{\\text\{time\}\}^\{\(k\)\}=\\alpha\_\{\\text\{time\}\}^\{\(k\)\}\\mathbf\{s\}\_\{\\text\{time\}\}^\{\\rightarrow\(k\)\}\+\\big\(1\-\\alpha\_\{\\text\{time\}\}^\{\(k\)\}\\big\)\\mathbf\{s\}\_\{\\text\{time\}\}^\{\\leftarrow\(k\)\}\.\(23\)
### B\.7Working\-Memory Update
After scoring, the model converts the entity and time scores into soft distributions:
𝐩ent\(k\)=softmax\(𝐬ent\(k\)\),𝐩time\(k\)=softmax\(𝐬time\(k\)\)\.\\mathbf\{p\}\_\{\\text\{ent\}\}^\{\(k\)\}=\\mathrm\{softmax\}\(\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\(k\)\}\),\\qquad\\mathbf\{p\}\_\{\\text\{time\}\}^\{\(k\)\}=\\mathrm\{softmax\}\(\\mathbf\{s\}\_\{\\text\{time\}\}^\{\(k\)\}\)\.\(24\)
These are used to compute expected entity and time embeddings:
𝐞¯ent\(k\)=𝐩ent\(k\)𝐄ent,𝐞¯time\(k\)=𝐩time\(k\)𝐄time,\\bar\{\\mathbf\{e\}\}\_\{\\text\{ent\}\}^\{\(k\)\}=\\mathbf\{p\}\_\{\\text\{ent\}\}^\{\(k\)\}\\mathbf\{E\}\_\{\\text\{ent\}\},\\qquad\\bar\{\\mathbf\{e\}\}\_\{\\text\{time\}\}^\{\(k\)\}=\\mathbf\{p\}\_\{\\text\{time\}\}^\{\(k\)\}\\mathbf\{E\}\_\{\\text\{time\}\},\(25\)where𝐄ent\\mathbf\{E\}\_\{\\text\{ent\}\}and𝐄time\\mathbf\{E\}\_\{\\text\{time\}\}are the entity and timestamp embedding tables from the TKBC model\.
The two expected embeddings are summed, projected into a memory vector, and used to refine the latent state through an attention\-based gated update:
𝐦\(k\)=fmem\(𝐞¯ent\(k\)\+𝐞¯time\(k\)\),\\mathbf\{m\}^\{\(k\)\}=f\_\{\\text\{mem\}\}\\big\(\\bar\{\\mathbf\{e\}\}\_\{\\text\{ent\}\}^\{\(k\)\}\+\\bar\{\\mathbf\{e\}\}\_\{\\text\{time\}\}^\{\(k\)\}\\big\),\(26\)followed by
𝐮\(k\)=Attn\(𝐳\(k−1\)↑,𝐦\(k\)↑,𝐦\(k\)↑\)↓,\\mathbf\{u\}^\{\(k\)\}=\\mathrm\{Attn\}\\big\(\\mathbf\{z\}^\{\(k\-1\)\}\\uparrow,\\mathbf\{m\}^\{\(k\)\}\\uparrow,\\mathbf\{m\}^\{\(k\)\}\\uparrow\\big\)\\downarrow,\(27\)and a gated residual fusion:
γ\(k\)\\displaystyle\\gamma^\{\(k\)\}=σ\(Wγ\[𝐳\(k−1\);𝐮\(k\)\]\),\\displaystyle=\\sigma\\big\(W\_\{\\gamma\}\[\\mathbf\{z\}^\{\(k\-1\)\};\\mathbf\{u\}^\{\(k\)\}\]\\big\),\(28\)𝐳\(k\)\\displaystyle\\mathbf\{z\}^\{\(k\)\}=γ\(k\)⊙𝐳\(k−1\)\+\(1−γ\(k\)\)⊙𝐮\(k\)\.\\displaystyle=\\gamma^\{\(k\)\}\\odot\\mathbf\{z\}^\{\(k\-1\)\}\+\(1\-\\gamma^\{\(k\)\}\)\\odot\\mathbf\{u\}^\{\(k\)\}\.\(29\)
This mechanism lets the model carry forward predictions from earlier hops and progressively refine its hypothesis\.
### B\.8Hop Aggregation and Training Objective
AfterKKhops, a hop\-selection distribution is computed from the global summary:
𝜷=softmax\(Whop𝐬\)\.\\boldsymbol\{\\beta\}=\\mathrm\{softmax\}\(W\_\{\\text\{hop\}\}\\mathbf\{s\}\)\.\(30\)
The final predictions are weighted sums of the hop\-specific scores:
𝐬ent=∑k=1Kβk𝐬ent\(k\),𝐬time=∑k=1Kβk𝐬time\(k\)\.\\mathbf\{s\}\_\{\\text\{ent\}\}=\\sum\_\{k=1\}^\{K\}\\beta\_\{k\}\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\(k\)\},\\qquad\\mathbf\{s\}\_\{\\text\{time\}\}=\\sum\_\{k=1\}^\{K\}\\beta\_\{k\}\\mathbf\{s\}\_\{\\text\{time\}\}^\{\(k\)\}\.\(31\)
The final output is the concatenation\[𝐬ent;𝐬time\]\[\\mathbf\{s\}\_\{\\text\{ent\}\};\\mathbf\{s\}\_\{\\text\{time\}\}\], trained with cross\-entropy against the gold answer distribution\. The TKBC embeddings used for scoring can be kept fixed during QA training when the frozen setting is enabled\.
### B\.9Pseudocode
Algorithm[1](https://arxiv.org/html/2608.20083#alg1)gives a compact PyTorch\-style pseudocode matching the implementation\.
Algorithm 1SABET\-QA forward pass\.1:question tokens
𝐱\\mathbf\{x\}, mask
𝐦\\mathbf\{m\}, heads, tails, times, optional
\(t1,t2\)\(t\_\{1\},t\_\{2\}\)
2:concatenated entity/time scores
3:
𝐇←LM\(𝐱,𝐦\)\\mathbf\{H\}\\leftarrow\\mathrm\{LM\}\(\\mathbf\{x\},\\mathbf\{m\}\)
4:
𝐓←text\_proj\(𝐇\)\\mathbf\{T\}\\leftarrow\\text\{text\\\_proj\}\(\\mathbf\{H\}\)
5:
𝐞h,𝐞t,𝐞τ←lookup\(heads,tails,times\)\\mathbf\{e\}\_\{h\},\\mathbf\{e\}\_\{t\},\\mathbf\{e\}\_\{\\tau\}\\leftarrow\\text\{lookup\}\(\\text\{heads\},\\text\{tails\},\\text\{times\}\)
6:
𝐞^h,𝐞^t,𝐞^τ←slot\_context\(𝐓,𝐦,𝐞h,𝐞t,𝐞τ\)\\hat\{\\mathbf\{e\}\}\_\{h\},\\hat\{\\mathbf\{e\}\}\_\{t\},\\hat\{\\mathbf\{e\}\}\_\{\\tau\}\\leftarrow\\text\{slot\\\_context\}\(\\mathbf\{T\},\\mathbf\{m\},\\mathbf\{e\}\_\{h\},\\mathbf\{e\}\_\{t\},\\mathbf\{e\}\_\{\\tau\}\)
7:
𝐬←summary\(𝐓,𝐦\)\\mathbf\{s\}\\leftarrow\\text\{summary\}\(\\mathbf\{T\},\\mathbf\{m\}\)
8:
𝐳\(0\)←rel\_head\(\[𝐬;𝐞^h;𝐞^t;𝐞^τ\]\)\\mathbf\{z\}^\{\(0\)\}\\leftarrow\\text\{rel\\\_head\}\(\[\\mathbf\{s\};\\hat\{\\mathbf\{e\}\}\_\{h\};\\hat\{\\mathbf\{e\}\}\_\{t\};\\hat\{\\mathbf\{e\}\}\_\{\\tau\}\]\)
9:for
k=1k=1to
KKdo
10:if
t1,t2t\_\{1\},t\_\{2\}are availablethen
11:
𝐳\(k−1\)←inject\_temporal\_hint\(𝐳\(k−1\),t1,t2\)\\mathbf\{z\}^\{\(k\-1\)\}\\leftarrow\\text\{inject\\\_temporal\\\_hint\}\(\\mathbf\{z\}^\{\(k\-1\)\},t\_\{1\},t\_\{2\}\)
12:endif
13:
𝐫\(k\)←hop\_projk\(\[𝐳\(k−1\);𝐬\]\)\\mathbf\{r\}^\{\(k\)\}\\leftarrow\\text\{hop\\\_proj\}\_\{k\}\(\[\\mathbf\{z\}^\{\(k\-1\)\};\\mathbf\{s\}\]\)
14:
𝐫ent\(k\)←ent\_proj\(𝐫\(k\)\)\\mathbf\{r\}\_\{\\text\{ent\}\}^\{\(k\)\}\\leftarrow\\text\{ent\\\_proj\}\(\\mathbf\{r\}^\{\(k\)\}\)
15:
𝐫time\(k\)←time\_proj\(𝐫\(k\)\)\\mathbf\{r\}\_\{\\text\{time\}\}^\{\(k\)\}\\leftarrow\\text\{time\\\_proj\}\(\\mathbf\{r\}^\{\(k\)\}\)
16:
𝐬ent\(k\)←bidirectional\_entity\_score\(𝐞^h,𝐞^t,𝐞^τ,𝐫ent\(k\),𝐬\)\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\(k\)\}\\leftarrow\\text\{bidirectional\\\_entity\\\_score\}\(\\hat\{\\mathbf\{e\}\}\_\{h\},\\hat\{\\mathbf\{e\}\}\_\{t\},\\hat\{\\mathbf\{e\}\}\_\{\\tau\},\\mathbf\{r\}\_\{\\text\{ent\}\}^\{\(k\)\},\\mathbf\{s\}\)
17:
𝐬time\(k\)←bidirectional\_time\_score\(𝐞^h,𝐞^t,𝐫time\(k\),𝐬\)\\mathbf\{s\}\_\{\\text\{time\}\}^\{\(k\)\}\\leftarrow\\text\{bidirectional\\\_time\\\_score\}\(\\hat\{\\mathbf\{e\}\}\_\{h\},\\hat\{\\mathbf\{e\}\}\_\{t\},\\mathbf\{r\}\_\{\\text\{time\}\}^\{\(k\)\},\\mathbf\{s\}\)
18:if
k<Kk<Kthen
19:
𝐳\(k\)←memory\_update\(𝐳\(k−1\),𝐬ent\(k\),𝐬time\(k\)\)\\mathbf\{z\}^\{\(k\)\}\\leftarrow\\text\{memory\\\_update\}\(\\mathbf\{z\}^\{\(k\-1\)\},\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\(k\)\},\\mathbf\{s\}\_\{\\text\{time\}\}^\{\(k\)\}\)
20:endif
21:endfor
22:
𝜷←Softmax\(Whop𝐬\)\\boldsymbol\{\\beta\}\\leftarrow\\mathrm\{Softmax\}\(W\_\{\\text\{hop\}\}\\mathbf\{s\}\)
23:
𝐬ent←∑k=1Kβk𝐬ent\(k\)\\mathbf\{s\}\_\{\\text\{ent\}\}\\leftarrow\\sum\_\{k=1\}^\{K\}\\beta\_\{k\}\\,\\mathbf\{s\}\_\{\\text\{ent\}\}^\{\(k\)\}
24:
𝐬time←∑k=1Kβk𝐬time\(k\)\\mathbf\{s\}\_\{\\text\{time\}\}\\leftarrow\\sum\_\{k=1\}^\{K\}\\beta\_\{k\}\\,\\mathbf\{s\}\_\{\\text\{time\}\}^\{\(k\)\}
25:return
\[𝐬ent;𝐬time\]\[\\mathbf\{s\}\_\{\\text\{ent\}\};\\mathbf\{s\}\_\{\\text\{time\}\}\]
## Appendix CDataset Statistics
DatasetTrainValidTestTotalSplit Ratio \(Tr/Va/Te\)CronQuestions350,00030,00030,522410,52285\.3% / 7\.3% / 7\.4%Complex\-CronQuestions35,7955,0205,52846,34377\.2% / 10\.8% / 11\.9%MultiTQ386,78757,97954,584499,35077\.5% / 11\.6% / 10\.9%TimeQuestions6,9703,2363,23713,44351\.8% / 24\.1% / 24\.1%Table 6:Statistics of the temporal question answering datasets used in our experiments\.DatasetEntitiesRelationsTimestampsTrain FactsValid FactsTest FactsTotal FactsCronQuestions125,7264069621323,63550005000333,635Complex\-CronQuestions125,7264069621323,63550005000333,635MultiTQ10,4885024,017322,95869,22469,147461,329TimeQuestions118,0108841,636227,5644,9974,998240,597Table 7:Statistics of the temporal knowledge graphs associated with each benchmark\.CronQuestionsAnswer TypeTrainValidTestEntity225,67219,36219,524Time124,32810,63810,476Total350,00030,00030,000\(a\)Answer types in CronQuestions\.
Complex\-CronQuestionsAnswer TypeTrainValidTestEntity23,0293,3403,382Time12,7661,6801,624Total35,7955,0205,006\(b\)Answer types in Complex\-CronQuestions\.
MultiTQAnswer TypeTrainValidTestEntity267,15540,56538,700Time119,63217,41415,884Total386,78757,97954,584\(c\)Answer types in MultiTQ\.
TimeQuestionsAnswer TypeTrainValidTestEntity4,5892,2922,340Time2,381944897Total6,9703,2363,237\(d\)Answer types in TimeQuestions\.
Table 8:Answer type distributions across the benchmarks\.We evaluate SABET\-QA on four benchmark datasets for temporal question answering: CronQuestions[Saxena et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib29), Complex\-CronQuestions[Chen et al\. 2022](https://arxiv.org/html/2608.20083#bib.bib11), MultiTQ[Chen et al\. 2023](https://arxiv.org/html/2608.20083#bib.bib10), and TimeQuestions[Jia et al\. 2021](https://arxiv.org/html/2608.20083#bib.bib17)\.
CronQuestions and Complex\-CronQuestions are synthetic benchmarks derived from temporal Wikidata facts and focus on compositional temporal reasoning\. MultiTQ contains large\-scale automatically generated temporal questions involving diverse temporal operators and reasoning patterns\. TimeQuestions consists of natural\-language temporal questions collected from real\-world sources and provides a complementary evaluation setting with realistic temporal information needs\.
Table[6](https://arxiv.org/html/2608.20083#A3.T6)summarizes the statistics of the question\-answering datasets\. Table[7](https://arxiv.org/html/2608.20083#A3.T7)reports the characteristics of the associated temporal knowledge graphs\. The datasets vary considerably in scale, ranging from 13K questions in TimeQuestions to nearly 500K questions in MultiTQ\. Likewise, the underlying temporal knowledge graphs differ substantially in their numbers of entities, relations, timestamps, and temporal facts\.
Table[8](https://arxiv.org/html/2608.20083#A3.T8)further reports the distribution of answer types across the benchmarks\. All datasets contain both entity\-answer and timestamp\-answer questions, providing a comprehensive evaluation of temporal reasoning capabilities across heterogeneous settings\.
## Appendix DTraining Settings
SettingValueOptimizerAdam[Kingma and Ba 2017](https://arxiv.org/html/2608.20083#bib.bib20)Initial learning rate2×10−42\\times 10^\{\-4\}\(6×10−46\\times 10^\{\-4\}for Timequestions Dataset \)Maximum epochs20 \(50 for Timequestions Dataset\)Training batch size150Validation batch size150Validation frequencyEvery epochLearning\-rate scheduleLinear warm\-up \+ cosine annealingWarm\-up stepsmin\(200,0\.1×total steps\)\\min\(200,\\ 0\.1\\times\\text\{total steps\}\)Warm\-up start factor0\.1Cosine minimum LR0\.01×0\.01\\timesinitial LREvaluation metricsHits@1, Hits@10Checkpoint selectionBest validation Hits@1Pretrained KG embeddingsLoaded from dataset\-specific checkpointKG embedding updateFrozen during QA training \(Except for Ablation Studies\)Language model updateFrozen during QA training \(Except for Ablation Studies\)Table 9:Training settings used for all experiments unless otherwise noted\.Table[9](https://arxiv.org/html/2608.20083#A4.T9)summarizes the training configuration used in our experiments\. All models were implemented in PyTorch[Paszke et al\. 2019](https://arxiv.org/html/2608.20083#bib.bib26)\. The language model and pretrained KG embeddings were frozen during QA training\.Similar Articles
AdaTKG: Adaptive Memory for Temporal Knowledge Graph Reasoning
This paper proposes AdaTKG, a method for temporal knowledge graph reasoning that uses adaptive memory to refine entity representations dynamically as new interactions occur, improving performance over static baselines.
TRACE: State-Aware Query Processing over Temporal Evidence Graphs for Conversational Data
This paper presents TRACE, a query processing framework that models conversational data as temporal evidence graphs to enable state-aware reasoning over evolving user states, improving temporal and multi-hop reasoning for long-conversation QA.
AMATA: Adaptive Multi-Agent Trajectory Alignment for Knowledge-Intensive Question Answering
Proposes AMATA, a multi-agent trajectory alignment framework for knowledge-intensive question answering that introduces intra-trajectory preference learning and inter-agent dependency learning to improve factual grounding and interpretability, outperforming baselines on five benchmarks.
Towards Researcher Agents for Knowledge-Graph Question Answering
This paper presents a self-improving 'researcher agent' for Text-to-SPARQL question answering over knowledge graphs, which iteratively refines its own prompts and tools. Evaluated on DBpedia, it achieves 0.22 accuracy and identifies predicate selection as the main bottleneck.
Evolving from Lessons: Skill-Augmented Table Graph Reasoning for Operation-wise Table Question Answering
The paper introduces Operation-wise TableQA, a new task with fine-grained question taxonomy, and proposes SkillTGR, a skill-augmented table graph reasoning framework that uses graph traversal and a hierarchical SkillBank for self-evolving reasoning, achieving superior performance and efficiency.