[Paper Review] Temporal Knowledge Graph Forecasting Without Knowledge Using In-Context Learning
The paper shows that large language models with in-context learning can forecast未来 Temporal Knowledge Graph (TKG) facts without fine-tuning, achieving competitive performance to supervised methods across multiple benchmarks, even when semantic information is removed.
Temporal knowledge graph (TKG) forecasting benchmarks challenge models to predict future facts using knowledge of past facts. In this paper, we apply large language models (LLMs) to these benchmarks using in-context learning (ICL). We investigate whether and to what extent LLMs can be used for TKG forecasting, especially without any fine-tuning or explicit modules for capturing structural and temporal information. For our experiments, we present a framework that converts relevant historical facts into prompts and generates ranked predictions using token probabilities. Surprisingly, we observe that LLMs, out-of-the-box, perform on par with state-of-the-art TKG models carefully designed and trained for TKG forecasting. Our extensive evaluation presents performances across several models and datasets with different characteristics, compares alternative heuristics for preparing contextual information, and contrasts to prominent TKG methods and simple frequency and recency baselines. We also discover that using numerical indices instead of entity/relation names, i.e., hiding semantic information, does not significantly affect the performance ($\pm$0.4\% Hit@1). This shows that prior semantic knowledge is unnecessary; instead, LLMs can leverage the existing patterns in the context to achieve such performance. Our analysis also reveals that ICL enables LLMs to learn irregular patterns from the historical context, going beyond simple predictions based on common or recent information.
Motivation & Objective
- Motivate forecasting future TKG facts using only past observations without additional training.
- Explore how to select historical context, prompt design, and decoding affect ICL performance.
- Assess whether semantic knowledge is necessary for LLM-based TKG forecasting.
- Compare LLM-based ICL against supervised, architecture-based TKG methods on standard benchmarks.
Proposed method
- Frame TKG forecasting as an in-context learning problem using LLMs.
- Three-stage pipeline: (1) history modeling to select relevant past facts, (2) prompt construction with lexical or index representations, (3) decoding LLM outputs into probability distributions over entities.
- Experiment with entity vs. pair history, unidirectional vs. bidirectional history, and lexical vs. index prompts.
- Utilize numeric label mapping as indirect logits to derive entity probabilities.
- Evaluate across standard TKG benchmarks (WIKI, YAGO, ICEWS14/18, ACLED-CD22) under single-step and multi-step settings.
- Compare against supervised baselines and heuristic rules, analyzing scaling with history length and model size.
Experimental results
Research questions
- RQ1Can LLMs perform TKG forecasting in zero-shot ICL without any fine-tuning?
- RQ2How does history selection (entity vs. pair, unidirectional vs. bidirectional) impact forecast quality?
- RQ3Do semantic priors matter for LLMs when predicting future TKG facts (e.g., lexical vs. numeric prompts)?
- RQ4How do prompt design choices and history length affect Hits@k performance across datasets?
- RQ5Do instruction-tuned models (e.g., GPT-3.5-turbo) benefit from semantic priors in prompts?
Key findings
- LLMs with ICL achieve competitive Hits@1, Hits@3, and Hits@10 compared to supervised SOTA TKG methods without training (within -3.6%, +1.5% of median).
- Performance remains high when entities/relations are mapped to arbitrary numbers, suggesting semantic knowledge is not critical for forecasting.
- LLMs outperform best heuristic rule-based baselines on all datasets (gaining +10% to +28% Hits@1).
- History length and model scale positively correlate with Hits@1, indicating a scaling law in ICL performance for TKG forecasting.
- Instruction-tuned models show some gains for lexical prompts, indicating semantic priors can aid ICL under certain prompts.
- Prompt variations reveal that ICL relies on learned patterns rather than simple frequency/recency biases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.