Temporal Alignment of LLMs through Cycle Encoding for Long-Range Time Representations

Xue Han, Hu‐Jun Qian, Yitong Wang, Wenchun Gao, Lianlian Zhang, Qing Wang, Mei Liu, Chao Deng, Junlan Feng · DOI

Abstract

Large language models (LLMs) suffer from temporal misalignment issues, especially across long spans of time. This issue arises because temporal information in training data is sparse over long periods, such as thousands of years, resulting in insufficient learning or catastrophic forgetting. This paper proposes "Ticktack," a methodology for addressing long-time span misalignment in a yearly setting. Ticktack utilizes the sexagenary year expression instead of the Gregorian calendar to achieve a more uniform distribution in yearly granularity. We employ polar coordinates to model the sexagenary cycle of 60 terms and the year order within each term, using temporal encoding to ensure LLM comprehension. Finally, we present a temporal representational alignment approach for post-training LLMs that effectively distinguishes time points with relevant knowledge. Experimental results on a new long-span benchmark, TempLS, demonstrate significant performance improvements.

The Challenge of Temporal Misalignment

While LLMs are trained on massive datasets, the chronological distribution of this data is heavily skewed. Information from the "internet era" (1990s–present) is abundant, while data from ancient history or the early 20th century is relatively sparse. This creates a "long-tail" distribution where LLMs fail to learn facts from low-resource periods or experience "catastrophic forgetting," where newer data overwrites older historical knowledge.

Distribution of temporal data in English Wiki and Chinese Baike, showing the extreme data imbalance over long time spans.

The standard Gregorian calendar (e.g., "2024") exacerbates this. LLMs often treat these numbers as independent tokens, losing the inherent continuity and cyclical nature of time. This makes it difficult for a model to distinguish between similar events happening in different centuries or to link specific knowledge to a precise point in a multi-millennium timeline.

The Ticktack Methodology

To resolve these issues, the researchers developed Ticktack, a three-stage framework designed to create a more uniform and discriminable representation of time:

  1. Sexagenary Cycle Conversion: Instead of a linear Gregorian calendar, Ticktack adopts the sexagenary cycle (a traditional 60-year system). This maps thousands of years into a repeating 60-unit structure, effectively "normalizing" the distribution of temporal data.
  2. Polar Coordinate Modeling: The system represents these cycles using polar coordinates. The angle (θ) identifies which of the 60 terms in the cycle a year belongs to, while the radius (r) differentiates between different occurrences of the same term (e.g., 1900 vs. 1960). These are converted to Cartesian (x, y) coordinates and injected into the model using sine and cosine temporal encodings.
  3. Temporal Representational Alignment: The model undergoes post-training using Elastic Weight Consolidation (EWC). This technique allows the model to align its internal embeddings with this new temporal information while protecting its general language capabilities, preventing the forgetting of non-temporal knowledge.
The Ticktack framework: (a) Polar coordinate representation of the sexagenary cycle, (b) Temporal encoding via sine/cosine functions, and (c) Temporal alignment of weight spaces.

Experimental Evaluation and Results

The study evaluated Ticktack on existing benchmarks (TempLAMA, TempUN) and a new, more challenging dataset called TempLS (Long-Span). TempLS contains over 137,000 question-answer pairs covering a range from 75,000 BCE to 2025 AD.

Ticktack was tested across several popular LLMs, including Qwen2.5 and LLaMA2 (3B to 13B parameters). Key findings include:

  • Significant Accuracy Gains: On the TempLS benchmark, Ticktack improved the accuracy of LLaMA2-13B by 34.43% compared to the base model.
  • Zero-Shot Performance: Even without specific examples, Ticktack-enhanced models significantly outperformed vanilla post-trained models.
  • Resilience in Low-Resource Eras: The method showed the most dramatic improvements in "low-resource" years (like the BCE era), proving it successfully addresses the long-tail distribution problem.

Conclusion

By viewing time through a cyclical, 60-year lens rather than a linear one, Ticktack provides LLMs with a more structured and uniform understanding of history. This approach effectively "compresses" the representation space, making sparse ancient data as structurally recognizable as modern data. While currently limited to yearly granularity, Ticktack represents a major step toward truly universal temporal reasoning in large language models.

Summary updated

BibTeX
@misc{han2025temporal,
  author = {Xue Han and Hu‐Jun Qian and Yitong Wang and Wenchun Gao and Lianlian Zhang and Qing Wang and Mei Liu and Chao Deng and Junlan Feng},
  title = {{Temporal Alignment of LLMs through Cycle Encoding for Long-Range Time Representations}},
  year = {2025},
  eprint = {2503.04150},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.04150},
}
Figure