Temporal Alignment of LLMs through Cycle Encoding for Long-Range Time Representations
Xue Han, Qian Hu, Yitong Wang, Wenchun Gao, Lianlian Zhang, Qing Wang, Lijun Mei, Chao Deng, Junlan Feng
TL;DR
This work tackles temporal misalignment in LLMs across long spans caused by sparse historical data. It introduces Ticktack, which reexpresses years via a 60-term sexagenary cycle, models the cycle with polar coordinates, and injects temporal signals through sine-cosine encodings, followed by a post-training temporal alignment using Elastic Weight Consolidation to bind knowledge to time. The approach yields substantial gains on long-span temporal QA benchmarks (e.g., TempLS) and shows clear clustering of temporal representations in latent space, validating improved long-range temporal reasoning. The results suggest a practical pathway for more durable temporal grounding in LLMs and highlight the need for broader, long-span benchmarks.
Abstract
Large language models (LLMs) suffer from temporal misalignment issues especially across long span of time. The issue arises from knowing that LLMs are trained on large amounts of data where temporal information is rather sparse over long times, such as thousands of years, resulting in insufficient learning or catastrophic forgetting by the LLMs. This paper proposes a methodology named "Ticktack" for addressing the LLM's long-time span misalignment in a yearly setting. Specifically, we first propose to utilize the sexagenary year expression instead of the Gregorian year expression employed by LLMs, achieving a more uniform distribution in yearly granularity. Then, we employ polar coordinates to model the sexagenary cycle of 60 terms and the year order within each term, with additional temporal encoding to ensure LLMs understand them. Finally, we present a temporal representational alignment approach for post-training LLMs that effectively distinguishes time points with relevant knowledge, hence improving performance on time-related tasks, particularly over a long period. We also create a long time span benchmark for evaluation. Experimental results prove the effectiveness of our proposal.
