Long-Term Interest Clock: Fine-Grained Time Perception in Streaming Recommendation System

Yongchun Zhu, Guanyu Jiang, Jingwu Chen, Feng Zhang, Xiao Yang, Zuotao LiuarXiv 2025

TL;DR

Researchers at ByteDance have developed the Long-term Interest Clock (LIC), a novel framework that helps streaming recommendation systems understand how user preferences shift throughout the day. By leveraging a year’s worth of fine-grained, item-level behavior and a time-gap-aware attention mechanism, LIC improves recommendation quality in real-time environments where traditional time-modeling methods often fail.

What Problem Does This Paper Address?

User interests are rarely static; someone might crave upbeat pop music during a morning workout but prefer lo-fi ambient tracks before bed. Capturing these "circadian" rhythms is vital for recommendation systems.

Traditionally, industrial systems used hour embeddings (assigning a vector to each hour of the day). However, this approach has two major flaws in modern streaming recommendation systems:

  1. Instability: In a streaming setup, models are updated continuously. At any given moment, all incoming training samples share the same hour feature, causing the model to over-fit to the current time and "forget" patterns from other hours.
  2. Coarseness: Previous attempts, like the "Interest Clock," only looked at short-term data (last 30 days) and coarse categories (e.g., genre or language), failing to capture specific item-level nuances.

The authors aim to bridge this gap by creating a fine-grained, stable method for perceiving time that works within the high-velocity constraints of streaming data.

Methods

The proposed Long-term Interest Clock (LIC) architecture consists of two primary modules designed to extract relevant user history based on both the candidate item and the current time of day.

Figure 1: Overall architecture of the Long-term Interest Clock.
  1. Clock-based General Search Unit (Clock-GSU): This module performs a fast search over a user's massive history (up to tens of thousands of behaviors). It calculates a relevance score for each historical behavior based on two factors:

  2. Item Similarity: How similar is the past item to the current candidate?

  3. Time Similarity: How close was the time of the past behavior to the current time of day? Crucially, LIC uses a relative time gap (e.g., comparing 8:00 AM today to 8:00 AM six months ago) rather than absolute time.
  4. Clock-based Exact Search Unit (Clock-ESU): Once the top-K relevant behaviors are retrieved, Clock-ESU uses a multi-head time-gap-aware attention mechanism. It aggregates these behaviors into a single vector ($v_{cur}$) representing the user's current fine-grained interest. This vector is then fed into the final ranking layers of the recommendation model.

To maintain the low latency required for real-time systems, the authors utilize online parameter servers (PS) to pre-compute and store embeddings, allowing for rapid retrieval during inference.

Datasets

The authors evaluated LIC using a massive, proprietary industrial dataset:

  • DouyinMusic-20B: This dataset contains over 20 billion samples collected from the Douyin Music App, spanning 8 weeks of training data and 1 week of testing. It includes over a hundred features, including user/item IDs and meta-features like genre and mood.

The authors note that no public datasets currently exist that provide the necessary scale of long-term behavior (spanning a year) required to properly benchmark time-perception models in streaming contexts.

Key Insights and Ideas

  • Relative Time is Key: Unlike standard sequence models that look at how long ago an action happened (absolute time), LIC looks at when in the day it happened. This allows the model to recognize that a user's behavior at 8:00 AM today is highly relevant to their behavior at 8:00 AM last month.
  • Fine-Grained > Coarse-Grained: By moving from category-level preferences (e.g., "likes Pop in the morning") to item-level interactions, the model can capture much more subtle shifts in user intent.
  • Solving the Streaming "Forgetting" Problem: By retrieving relevant historical samples from the same time-of-day across a long history, the model maintains a stable "memory" of daily patterns, even when the current training stream is dominated by a single hour's data.

Key Results

The LIC framework was tested both offline and in a live production environment on the Douyin Music App.

  • Online A/B Testing: LIC achieved a +0.122% improvement in "Active Days" (a core user retention metric). In the world of large-scale industrial recommendations, where typical production gains are around 0.05%, this is considered a significant leap.
  • Offline Performance: As shown in the table below, LIC outperformed all baselines, including standard hour embeddings and the previous Gaussian-based Interest Clock.
Table 2: Offline results (AUC, UAUC and RelaImpr) on the industrial datasets DouyinMusic-20B.

Specifically, LIC showed a +1.16% relative improvement in AUC and a +1.49% improvement in UAUC over the base model, demonstrating its ability to better rank items for individual users.

Limitations and Future Work

  • Data Requirements: LIC requires a substantial amount of long-term user history (up to a year) to be effective. This might make it difficult to implement for newer platforms or apps with lower user retention.
  • Public Benchmarking: Due to the lack of suitable public datasets, the results are currently limited to internal ByteDance data. The authors suggest that creating or finding public datasets with long-term timestamps is a necessary step for the broader research community.
  • Cross-Domain Application: While highly effective for music, future work could explore how these "interest clocks" function in other domains like short-video or e-commerce, where daily cycles might be less pronounced or follow different patterns.

Summary updated

BibTeX
@misc{zhu2025long,
  author = {Yongchun Zhu and Guanyu Jiang and Jingwu Chen and Feng Zhang and Xiao Yang and Zuotao Liu},
  title = {{Long-Term Interest Clock: Fine-Grained Time Perception in Streaming Recommendation System}},
  year = {2025},
  eprint = {2501.15817},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.15817},
}
Figure