Large Language Models Can Learn Temporal Reasoning
Preprint
Abstract
Large language models (LLMs) learn temporal concepts from the co-occurrence of related tokens in a sequence. Compared with conventional text generation, temporal reasoning, which reaches a conclusion based on mathematical, logical and commonsense knowledge, is more challenging. In this paper, we propose TempGraph-LLM, a new paradigm towards text-based temporal reasoning. To be specific, we first teach LLMs to translate the context into a temporal graph. A synthetic dataset, which is fully controllable and requires minimal supervision, is constructed for pre-training on this task. We prove in experiments that LLMs benefit from the pre-training on other tasks. On top of that, we guide LLMs to perform symbolic reasoning with the strategies of Chain of Thoughts (CoTs) bootstrapping and special data augmentation. We observe that CoTs with symbolic reasoning bring more consistent and reliable results than those using free text.Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- ChatRule: Mining Logical Rules with Large Language Models for Knowledge Graph Reasoning2025
- Making Large Language Models Perform Better in Knowledge Graph Completion2024
- Back to the Future: Towards Explainable Temporal Reasoning with Large Language Models2024
- TEILP: Time Prediction over Knowledge Graphs via Logical ReasoningProceedings of the AAAI Conference on Artificial Intelligence, 2024
- TLogic: Temporal Logical Rules for Explainable Link Forecasting on Temporal Knowledge GraphsProceedings of the AAAI Conference on Artificial Intelligence, 2022
- Time Masking for Temporal Language Models2022
- TIMEDIAL: Temporal Commonsense Reasoning in Dialog2021
- Improving Event Duration Prediction via Time-aware Pre-training2020
- TORQUE: A Reading Comprehension Dataset of Temporal Ordering Questions2020
- Temporal Common Sense Acquisition with Minimal Supervision2020