Modeling Dual Period-Varying Preferences for Takeaway Recommendation

Yuting Zhang, Yiqing Wu, Ran Le, Yongchun Zhu, Fuzhen Zhuang, Ruidong Han, Xiang Li, Wei Lin, Zhulin An, Yongjun Xu · DOI

Abstract

Takeaway recommender systems aim to accurately provide stores that offer foods meeting users' interests, serving billions of users daily. Unlike traditional recommendation, takeaway recommendation faces two primary challenges: (1) Dual Interaction-Aware Preference Modeling, which requires considering users' dual preferences for both stores and foods, and (2) Period-Varying Preference Modeling, as users' preferences vary significantly across different times of the day (morning, noon, night, and late night). To address these, we propose Dual Period-Varying Preference (DPVP) modeling. DPVP utilizes a dual interaction-aware module to capture preferences based on store and food interactions, alongside a time-based decomposition module and a time-aware gating mechanism. Extensive experiments show that DPVP outperforms state-of-the-art methods. Online deployment on the Meituan Takeaway platform resulted in an average Gross Merchandise Value (GMV) improvement of 0.70%.

Introduction

Traditional recommendation systems, such as those used in e-commerce, typically model a binary relationship where a user interacts with an item. However, the takeaway domain is significantly more complex. When a user orders food, they are navigating a ternary relationship: User-Store-Food. A user's decision is influenced by store-level attributes (brand reputation, distance, delivery speed) and food-level attributes (specific cravings, price, taste).

Furthermore, these preferences are not static. Unlike traditional models that treat user history as a continuous stream or a single "blob" of data, takeaway preferences are highly sensitive to the time of day. A user's desire for porridge in the morning does not necessarily predict a desire for porridge at midnight, where they might prefer barbecue or snacks. Capturing these sharp temporal shifts—referred to as period-varying preferences—is critical for providing relevant recommendations.

The DPVP Framework

To bridge these gaps, the Dual Period-Varying Preference (DPVP) model introduces several specialized components designed to handle the unique architecture of food delivery data.

Dual Interaction-Aware Module

Rather than using a single global graph that might conflate store and food attributes, DPVP decomposes data into two distinct sub-graphs:

  1. Food-level graph: Focuses on the relationships between users and specific food items, as well as food-to-store associations.
  2. Store-level graph: Focuses on user-store interactions and store-to-food associations. This separation prevents the model from "confusing" distinct signals, such as a user's loyalty to a specific brand versus their preference for a specific type of cuisine.

Time-Based Decomposition and Gating

The day is partitioned into four distinct periods: Morning, Noon, Night, and Late Night. DPVP creates period-specific sub-graphs to capture temporal trends. To manage these, the model employs two gating mechanisms:

  • User-Aware Gating: This module creates a personalized representation of a store's menu. For instance, if a user frequently orders noodles, the store representation for that user will be weighted toward the store's noodle offerings.
  • Time-Aware Gating: This mechanism adaptively fuses a user’s period-specific preferences (what they want at the current moment) with their period-shared preferences (their general, time-agnostic tastes). This allows the model to maintain a consistent profile of the user while remaining highly responsive to the clock.

Experimental Evaluation

Datasets

The model was evaluated using two real-world datasets from Meituan, one of the world's largest takeaway platforms:

  • MT-small: ~56k users, 4k stores, and 180k interactions.
  • MT-large: ~385k users, 18k stores, and 1.49M interactions. Both datasets spanned eight days, using the first six for training, one for validation, and the final day for testing.

Offline and Online Results

In offline testing, DPVP significantly outperformed state-of-the-art baselines like LightGCN and SVD-GCN. On the MT-large dataset, the model achieved a 4.8% improvement in Mean Reciprocal Rank (MRR) and a 6.4% boost in NDCG@10 over the strongest baseline.

Following offline success, DPVP was deployed in a two-week A/B test on the Meituan platform. The results demonstrated substantial commercial impact:

  • GMV (Gross Merchandise Value): Increased by 0.70%.
  • CTCVR (Click-Through & Conversion Rate): Increased by 0.68%.

Discussion and Insights

One of the primary challenges in modeling specific time periods is the Sparsity Paradox. Data for specific windows, like "Late Night," is naturally scarcer than the full-day dataset. DPVP addresses this through its soft gating mechanism, which allows the model to "borrow" relevant information from other periods while filtering out temporal noise.

Furthermore, the research highlights the balance between Consistency and Change. While some categories (like noodles) remain stable throughout the day, others (like breakfast items versus late-night snacks) are highly volatile. DPVP’s ability to model both period-varying and period-agnostic preferences allows it to navigate this volatility effectively.

Conclusion and Future Work

DPVP represents a significant step forward in specialized recommendation for the food delivery industry. By accounting for the dual nature of store/food preferences and the rhythmic shifts of daily hunger, it provides a more nuanced and effective recommendation engine. Future research will look toward incorporating broader temporal factors, such as seasonal changes and holidays, and expanding the model's focus from store recommendation to direct food-level recommendation.

Summary updated

BibTeX
@inproceedings{zhang2023modeling,
  author = {Yuting Zhang and Yiqing Wu and Ran Le and Yongchun Zhu and Fuzhen Zhuang and Ruidong Han and Xiang Li and Wei Lin and Zhulin An and Yongjun Xu},
  title = {{Modeling Dual Period-Varying Preferences for Takeaway Recommendation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599866},
}
Figure