Skip to content
ai-driven-dynamic-graph-neural-network:-toward-personalized-and-diverse-user-experience-in-short-video-systems-–-scientific-reports

AI-Driven Dynamic Graph Neural Network: Toward Personalized and Diverse User Experience in Short Video Systems – Scientific Reports

Introduction

By dynamically adapting to user behaviors and preferences, real-time short video recommendation systems enhance user experience through personalized content delivery1, which not only increases engagement and retention but also mitigates issues like the “filter bubble” effect by promoting content diversity2. Research into short video recommendation systems can yield positive outcomes in multiple areas. Technologically, the research of real-time short video recommendation systems drives innovation in algorithms, such as deep learning and knowledge graph integration3, to achieve low-latency responses and improved accuracy. Commercially, it optimizes content distribution, boosting platform competitiveness and monetization potential through targeted advertising4. Socially, real-time recommendation facilitates knowledge dissemination and digital inclusion, enabling broader access to educational and quality content, thereby supporting the development of a balanced and informed society5.

Below are three commonly used short video recommendation algorithms.

  • Item-based Collaborative Filtering6 recommends items by calculating similarities between items based on user interaction histories. Its principle is that users who like a particular item will probably like similar items. This approach is computationally efficient and stable due to the relatively consistent nature of item similarities. Nevertheless, it often struggles with the cold-start problem for new items and can lead to filter bubbles by predominantly recommending popular content.

  • The Two-Tower Model7, widely used for retrieval, employs separate neural networks to create dense vector representations (embeddings) for users and items. Recommendation is achieved by measuring the similarity between these vectors in the embedding space. This model excels in efficiency for candidate generation from massive item pools. A significant challenge is ensuring the alignment and uniformity of the two towers during training to avoid performance degradation.

  • Factorization Machines (FM) model8 all pairwise interactions between features using factorized parameters. This capability allows it to estimate the strength of interactions even in sparse data settings where such interactions have not been observed before. FM is highly flexible and effective for CTR prediction. However, its computational complexity can be high for high-degree feature interactions, and it may not capture complex non-linear patterns as effectively as deep learning models.

  • The Wide & Deep model, developed by Google9, integrates a wide linear component for memorization and a deep neural network for generalization. This hybrid architecture effectively balances the capture of frequent patterns alongside uncovering novel feature interactions, making it robust for large-scale recommendation systems. However, its performance is contingent on extensive feature engineering, and the deep component may lack interpretability, which can be a drawback in scenarios requiring transparency.

  • Matrix Factorization, a cornerstone technique popularized during the Netflix Prize10, projects users and items into a shared latent factor space. By decomposing the user-item interaction matrix, it captures underlying preferences and characteristics, demonstrating strong performance in rating prediction tasks. Its primary limitations include a reliance on explicit feedback data and difficulties in incorporating rich side information, which can constrain its applicability in content-rich domains like short video.

Current research on real-time short video recommendation has made significant progress in addressing core challenges through various advanced methodologies. To tackle information overload and enhance personalization, researchers widely employ multi-modal deep learning techniques11,12, integrating visual, textual, and acoustic features of videos, alongside collaborative filtering and its hybrid variants to model user preferences13. For the critical issue of real-time responsiveness, distributed computing frameworks like Apache Flink14 and Spark15 are utilized to process streaming data, enabling recommendations to reflect user interactions within seconds. Furthermore, sophisticated modeling of user interest dynamics is achieved through sequential models such as LSTM16 and Transformer networks17, which capture evolving short-term interests, while knowledge graphs and graph neural networks18,19,20 help incorporate rich side information and relationships. Despite these advancements, several challenging problems remain partially unsolved. (1) First, existing recommendation models struggle to effectively integrate multi-source, heterogeneous user behavior data (such as viewing duration, likes, comments, bookmarks, etc.), resulting in incomplete modeling of user interests21; (2) Additionally, traditional graph neural networks fail to capture the real-time evolution of user interests in dynamically updated short-video scenarios, lacking effective modeling of temporal dynamics22. (3) Finally, most recommendation methods rely on historical click behavior, neglecting the differences between users’ short-term and long-term interests and their impact on recommendation outcomes, resulting in severe homogenization of recommended content23.

This study proposes a novel deep learning framework named DMGRec (Dynamic Multi-source Graph-based Recommendation) for short video recommendation to address the limitations of existing methods. The framework consists of two core modules and an advanced learning method. The first module, Multi-source Behavior Fusion Graph Embedding, constructs a user-video interaction graph incorporating multi-modal data (e.g., watch time, likes, comments, favorites) and generates comprehensive embeddings for users and videos by effectively fusing these heterogeneous behaviors. The output of this module serves as the initial node features for the subsequent graph network. The second module, the Dynamic Temporal Interest Evolution Graph Convolution Network, takes these enriched embeddings and a temporal user-video interaction graph as input. It is designed to capture the evolving patterns of user interests by applying graph convolution operations that are sensitive to chronological interactions, thereby producing dynamically updated representations of both long-term and short-term user preferences. Finally, the Multi-task Contrastive Disentanglement Learning method is employed to refine these representations. It takes the user’s long-term and short-term interest representations and behavioral sequence as input, utilizing contrastive learning to separate and disentangle these intertwined interest factors, which enhances the discrimination and quality of the final user and item representations output by the first two modules.

The key innovation of this research lies in its holistic and nuanced approach to modeling user interests. Firstly, the multi-source behavior fusion module moves beyond simple feature concatenation by employing a graph-based embedding technique that captures the complex interplay between different types of user actions (e.g., distinguishing the intent behind a ‘like’ versus a ‘long watch time’), thereby achieving a more granular and accurate user profiling. Secondly, the dynamic temporal graph convolution network introduces a time-aware mechanism into the graph neural network, effectively addressing the limitation of standard GNNs like GraphSAGE, which treat historical and recent interactions equally. This allows the model to prioritize recent user-video interactions, accurately capturing short-term interest shifts while maintaining a view of long-term preferences, a significant improvement over static aggregation method. Thirdly, the multi-task contrastive disentanglement learning method represents a novel training paradigm. It explicitly models the disparity between long and short-term interests through contrastive learning, forcing the model to learn disentangled and more robust representations that mitigate the tendency of recommendations to converge towards a homogeneous set of overly familiar content, thus actively combating the formation of “filter bubbles”.

The proposed design demonstrates distinct advantages in solving the three identified challenges. For the problem of insufficient utilization of multi-modal information, the multi-source behavior fusion graph embedding module directly integrates diverse implicit and explicit feedback into a unified graph structure, enabling the model to leverage a more complete picture of user preferences beyond just click-through rates, leading to a more comprehensive user interest model. Regarding the underutilization of temporal information, the dynamic temporal interest evolution graph convolution network is specifically engineered to process sequentially ordered interactions. By incorporating temporal encoding and dynamic negative sampling strategies akin to advanced heterogeneous graph transformers (HGT)24, it effectively models user interest drift over time, ensuring recommendations are responsive to the user’s current context and recent behavioral patterns. Finally, to tackle content homogenization, the multi-task contrastive disentanglement learning method plays a critical role. By separating long-term stable interests from short-term dynamic ones and employing contrastive objectives, the model is encouraged to explore a more diverse candidate set, breaking the cycle of over-reliance on historical clicks. This mechanism, combined with the rich multi-modal and temporal signals, empowers the system to balance personalization with serendipity, effectively alleviating the “information cocoon” effect and promoting content diversity within the recommendation feed.

The contributions of this study are as follows:

  • Innovatively models multi-source heterogeneous user behaviors (watch time, likes, comments) within a unified graph structure for comprehensive interest representation.

  • Dynamically captures user interest evolution by integrating temporal graph convolutions with sequential interactions, overcoming limitations of static graph models.

  • Employs multi-task contrastive learning to disentangle long and short-term user interests explicitly, mitigating recommendation homogenization.

This paper is structured as follows. Section 1, the Introduction, presents the research background, highlights limitations in existing methods, and outlines the contributions of this work. Section 2, Related Work, reviews foundational literature on short video recommendation systems, temporal graph neural networks, and contrastive disentanglement learning. Section 3, Method, elaborates the proposed DMGRec framework, detailing its three core components: Multi-source Behavior Fusion Graph Embedding, the Dynamic Temporal Interest Evolution Graph Convolutional Network (DTIE-GCN), and the Multi-task Contrastive Disentanglement Learning objective. Section 4, Experiment, comprehensively evaluates the model, describing the experimental setup, datasets, comparative results against baselines, parameter sensitivity analyses, and ablation studies to validate each component’s efficacy. Finally, Sect. 5, Conclusion and Outlook, summarizes the study’s findings and discusses potential limitations and directions for future research.

Related work

Short video recommend system

A short video recommendation system is designed to address information overload by delivering personalized content to users, which is crucial for enhancing user engagement and platform competitiveness in the digital era. These systems typically operate through a multi-stage pipeline involving recall, ranking, and re-ranking to efficiently process vast content libraries25. The algorithmic core has evolved from traditional methods like collaborative filtering and content-based approaches to modern deep learning models that integrate multi-modal features (e.g., text, visual, audio) and model complex user behavior sequences to capture both long and short-term interests26. A significant contemporary focus lies in addressing key challenges such as user and item cold start27, mitigating the “filter bubble” effect through diversity-aware re-ranking, and ensuring real-time responsiveness to user interactions. Furthermore, leading industrial practices emphasize a “human-in-the-loop” governance model28, combining algorithmic power with human oversight for content security and a healthier content ecosystem.

Temporal graph neural networks

Temporal Graph Neural Networks (TGNNs) are advanced deep learning architectures designed to process and learn from dynamic graph-structured data where the relationships between entities evolve over time29. They extend standard GNNs by incorporating specialized mechanisms to handle temporal dynamics, primarily through memory modules30 that maintain, and update compressed node state histories based on sequential, time-stamped events, which allows them to capture complex, time-dependent interactions and evolving patterns more effectively than models operating on static graph snapshots. These models are broadly applicable to critical tasks such as dynamic link prediction31, node classification in evolving networks, and session-based recommendation systems32, demonstrating significant utility in areas like social network analysis33, financial transaction monitoring34, and personalized recommender systems35 by leveraging their ability to model continuous-time, event-driven data.

Contrastive disentanglement learning

Contrastive Disentanglement Learning (CDL) is an advanced unsupervised representation learning paradigm that aims to separate the underlying explanatory factors of data into independent and interpretable latent representations by leveraging contrastive learning objectives36. The core principle involves pulling augmented views of the same instance or semantically similar factors closer in the embedding space while pushing apart representations from different instances or dissimilar factors, often utilizing a combination of instance-level contrastive losses to achieve disentanglement without relying on predefined class labels. This approach has been successfully applied across various domains, such as in time series forecasting37 where it decouples seasonal and trend components using temporal and frequency-domain contrastive losses, in image processing to isolate content-relevant from nuisance factors like haze in image dehazing36, and in recommender systems to separate entangled factors like user interest and conformity behavior for more robust recommendations38. The primary advantage of CDL lies in its ability to learn more robust, interpretable, and transferable representations that are invariant to certain data augmentations or interventions, which enhances model generalization, particularly in scenarios involving non-independent and identically distributed data or distribution shifts. Contrastive Disentanglement Learning provides a powerful and flexible framework for discovering semantically meaningful and independent data representations, showing significant potential for improving analysis and prediction in complex, real-world data scenarios.

Method

Overview

This study proposes DMGRec, a novel deep learning framework for short video recommendation. The model begins with a Multi-source Behavior Fusion Graph Embedding module, which constructs a graph from user-video interactions and diverse user behaviors (e.g., watch time, likes, comments), generating comprehensive initial embeddings for users and videos by effectively integrating these heterogeneous signals. These enriched embeddings are then fed into the Dynamic Temporal Interest Evolution Graph Convolutional Network, which models the user’s evolving preferences by applying temporal graph convolutions on a time-ordered interaction graph, capturing both long-term and short-term interest patterns. Finally, the model is trained end-to-end using a Multi-task Contrastive Disentanglement Learning objective, which refines the representations by explicitly separating the entangled long and short-term interests through contrastive learning, enhancing the overall quality of the final embeddings for recommendation. Figure 1 shows the overall structure of the proposed DMGRec model.

Fig. 1

The overall structure of the proposed DMGRec model.

Multi-source behavior fusion graph embedding

The Multi-source Behavior Fusion Graph Embedding module is designed to address the critical challenge of integrating heterogeneous user interaction data, such as watch time, likes, comments, and favorites, into a unified graph representation for short video recommendation. Traditional approaches often rely on a single type of interaction, such as a click or a purchase, which fails to capture the nuanced semantics and varying intensities of user preferences conveyed through different behaviors. This module innovatively constructs a user-video interaction graph where different types of behavioral edges are explicitly modeled, allowing for a more comprehensive and granular representation of user interests.

The graph is defined as (:G=left(V,Eright)), where (:V=Ucup:I) represents the union of user nodes and video item nodes, and (:E) is the set of edges, with each edge type (:{e}_{t}in:E) corresponding to a specific user behavior (:t) (e.g., (:{e}_{like}), (:{e}_{comment})) (see Fig. 2). The weight of an edge, (:{w}_{u,i}^{t}), can be derived from the frequency or intensity of the behavior (:t) from user (:u) to video (:i), enabling the graph to encode not just the existence but also the strength of different interactions.

Fig. 2

The user-video interaction graph.

To generate initial node embeddings, the module first employs a base graph embedding technique on the constructed multi-behavior graph. For each node (user or video), an initial embedding is learned by capturing the local graph structure. This can be achieved through random walks method coupled with the Skip-gram model, which generates sequences of nodes that preserve proximity and co-occurrence relationships within the graph. The core objective is to learn a function (:f:Vto:{mathbb{R}}^{d}) that maps each node to a (:d)-dimensional dense vector, (:{mathbf{h}}_{v}^{left(0right)}) ( the initial d-dimensional embedding of node v (user or video) learned from the multi-behavior graph structure), such that nodes with similar connection structures or behavioral patterns are close in the embedding space. The probability of observing a context node (:{v}_{j}) given a center node (:{v}_{i}) is modeled using the softmax function:

$$:Pleft({v}_{j}|{v}_{i}right)=frac{text{e}text{x}text{p}left({mathbf{h}}_{{v}_{j}}^{T}{mathbf{h}}_{{v}_{i}}right)}{sum:_{k=1}^{left|Vright|}text{e}text{x}text{p}left({mathbf{h}}_{{v}_{k}}^{T}{mathbf{h}}_{{v}_{i}}right)}$$

To handle the computational complexity of the softmax, negative sampling is typically employed, which modifies the objective to distinguish the target context node from randomly sampled negative nodes.

The key innovation of this module lies in its fusion mechanism that aggregates embeddings from multiple behavioral contexts. Instead of treating all behaviors equally, the model learns adaptive importance weights for each behavior type during the training process. For a given user (:u), the contribution of a specific behavior type (:t) is weighted by a parameter (:{alpha:}_{u}^{t}), which can be calculated as

$$:{alpha:}_{u}^{t}=frac{{w}_{t}cdot:{n}_{u,t}}{sum:_{t{prime:}in:T}{w}_{t{prime:}}cdot:{n}_{u,t{prime:}}}$$

where (:{w}_{t}) is a trainable weight representing the global importance of behavior (:t), and (:{n}_{u,t}) is the count of behavior (:t) performed by user (:u), and (:varvec{T}) is the set of all behavior types (e.g., {watch, like, comment, favorite}). Comprehensive user embedding is then obtained by a weighted aggregation of the user’s representations learned from different behavior-specific edges:

$$:{mathbf{p}}_{u}=sigma:left(sum:_{tin:T}{alpha:}_{u}^{t}cdot:{mathbf{W}}_{t}cdot:text{AGGREGATE}left(left{{mathbf{q}}_{i}right|iin:{N}_{t}left(uright)}right)right)$$

where (:{N}_{t}left(uright)) is the set of items with which user (:u) has interacted via behavior (:t), (:{mathbf{q}}_{i}) is the embedding of item (:i), (:{mathbf{W}}_{t}) is a behavior-specific transformation matrix, (AGGREGATEleft( cdot right)) is a function like mean-pooling, and (:sigma:) is a non-linear activation function. This allows the model to discern that, for instance, a ’favorite’ action might indicate a stronger positive preference than a ’view’.

The final output of the module is a set of fused, low-dimensional embedding vectors for all users and videos, which encapsulate the rich information from multiple behavioral sources. These embeddings, (:{mathbf{p}}_{u}) for users and (:{mathbf{q}}_{i}) for videos, serve as high-quality initial node features for the subsequent Dynamic Temporal Interest Evolution Graph Convolutional Network. By providing a feature representation that already incorporates complex multi-behavioral semantics, this module effectively alleviates the data sparsity problem and lays a robust foundation for the downstream network to model temporal dynamics, thereby enhancing the model’s ability to understand and predict user interests in a fine-grained manner.

Dynamic temporal interest evolution graph convolution network (DTIE-GCN)

The Dynamic Temporal Interest Evolution Graph Convolutional Network (DTIE-GCN) serves as the core temporal modeling component within the DMGRec framework, designed to address the critical challenge of capturing the continuous evolution of user preferences in short video platforms. This module directly receives the fused user and video embeddings, denoted as (:{mathbf{p}}_{u}) and (:{mathbf{q}}_{i}), from the preceding Multi-source Behavior Fusion Graph Embedding module, which provides a rich, multi-faceted initialization for all nodes in the graph. The primary input to DTIE-GCN is a temporal user-video interaction graph generated by the multi-source behavior fusion graph embedding model, formally defined as a sequence of graph snapshots (:mathcal{G}={{G}_{1},{G}_{2},…,{G}_{T}}), where each snapshot (:{G}_{t}=left({V}_{t},{E}_{t}right)) represents interactions within a specific time interval (:t). The adjacency matrix (:{A}_{t}) for snapshot (:{G}_{t}) is constructed such that (:{left({A}_{t}right)}_{u,i}=1) if user (:u) interacted with video (:i) during that interval, capturing the chronological order of user activities.

The fundamental operation within each snapshot leverages graph convolution to aggregate spatial information from a node’s local neighborhood. For a given snapshot (:{G}_{t}), the graph convolutional operation at layer (:l) is formulated as

$$:{H}_{t}^{left(lright)}=sigma:left({stackrel{sim}{D}}_{t}^{-frac{1}{2}}{stackrel{sim}{A}}_{t}{stackrel{sim}{D}}_{t}^{-frac{1}{2}}{H}_{t}^{left(l-1right)}{W}_{t}^{left(lright)}right)$$

where (:{stackrel{sim}{A}}_{t}={A}_{t}+I) is the adjacency matrix with self-connections, (:{stackrel{sim}{D}}_{t}) is the corresponding degree matrix, (:{H}_{t}^{left(l-1right)}) is the node feature matrix from the previous layer (with (:{H}_{t}^{left(0right)}) being the initial multi-source embeddings), (:{W}_{t}^{left(lright)}) is the layer-specific trainable weight matrix, and (:sigma:) denotes thee non-linear activation function ReLU. This operation allows each user node to integrate information from the videos it interacted with and vice versa, refining their representations based on local graph structure.

The key innovation of DTIE-GCN lies in its sophisticated mechanism for modeling temporal dynamism, which goes beyond simply stacking GCN outputs. Instead of using RNNs, which can be computationally expensive and suffer from short-term memory issues, the model employs a dedicated temporal convolution layer with causal and dilated convolutions. This layer operates over the sequence of node representations (:{{H}_{1}^{left(Lright)},{H}_{2}^{left(Lright)},…,{H}_{T}^{left(Lright)}}) obtained from the final GCN layer (:L) for each snapshot ((:varvec{T}) is the total number of time intervals (snapshots) in the temporal graph sequence, (:L) is the total number of GCN layers in the model). For a user node (:u), the temporal convolution processes its representation sequence (:{mathbf{h}}_{u,1}^{left(Lright)},{mathbf{h}}_{u,2}^{left(Lright)},…,{mathbf{h}}_{u,T}^{left(Lright)}) to capture evolutionary patterns. The causal convolution ensures that the output at time (:t) is only dependent on inputs from (:t) and earlier, preventing information leakage from the future, while dilated convolutions exponentially increase the receptive field, allowing the model to capture long-range dependencies in the interaction history efficiently.

To ensure the model adapts to the underlying evolving graph structure, DTIE-GCN incorporates a dynamic weight updating mechanism inspired by EvolveGCN. The GCN weight matrices (:{W}_{t}^{left(lright)}) are not treated as static parameters but evolved over time using a Gated Recurrent Unit (GRU). The update rule is given by (:{W}_{t}^{left(lright)}=text{GRU}left({W}_{t-1}^{left(lright)},{H}_{t-1}^{left(lright)}right)), where the GRU takes the previous weight matrix and the previous layer’s node embeddings as input to generate the updated weights for the current time step. This allows the convolutional filters themselves to adapt to the changing nature of the user-video graph, capturing what constitutes a “neighborhood” and how to aggregate information from it as user interests shift, a significant advantage over static GCN models.

Finally, the module generates dynamic, disentangled representations for long-term and short-term user interests. The long-term interest (:{mathbf{z}}_{u}^{long}) is derived by applying a pooling operation (e.g., mean pooling) over the entire sequence of the user’s temporal representations, capturing their stable preference base. Conversely, the short-term interest (:{mathbf{z}}_{u}^{short}) is computed from the most recent (:k) representations using an attention mechanism that weighs recent interactions more heavily, reflecting immediate preference shifts. The final output is the concatenation of these vectors, (:{mathbf{z}}_{u}=left[{mathbf{z}}_{u}^{long}parallel:{mathbf{z}}_{u}^{short}right]), providing a comprehensive and dynamic profile of user (:u) that is subsequently refined by the multi-task contrastive disentanglement learning objective. The principle of the DTIE-GCN module is shown in Fig. 3.

Fig. 3

The principle of the DTIE-GCN module.

Multi-task contrastive disentanglement learning

The Multi-task Contrastive Disentanglement Learning module is designed to explicitly separate the entangled long-term and short-term interest representations generated by the preceding Dynamic Temporal Interest Evolution Graph Convolutional Network (DTIE-GCN). This module addresses the fundamental challenge that a user’s final behavior is a composite effect of their stable, long-term preferences and dynamic, short-term interests, which are often convolved in the observed interaction data without explicit supervision signals. The core innovation lies in employing a multi-task contrastive learning framework that does not require explicit labels for disentanglement. Instead, it leverages carefully constructed self-supervised signals to guide the separation process. The long-term interest representation, denoted as (:{mathbf{z}}_{u}^{long}), is encouraged to be invariant to recent short-term fluctuations, while the short-term interest representation, (:{mathbf{z}}_{u}^{short}), is optimized to capture the user’s immediate contextual preferences that deviate from their long-term base. This is formally achieved by defining two contrastive learning objectives. The long-term contrastive loss (:{mathcal{L}}_{long}) pulls the long-term representation of a user’s current session (:{mathbf{z}}_{u}^{long}) closer to the aggregated long-term representation from their entire history (bar{z}_{u}^{{long}}) (acting as a positive proxy) and pushes it away from the long-term representations of other users in the same batch (negative samples):

$${mathcal{L}}_{{long}} = – log frac{{exp left( {simleft( {z_{u}^{{long}} ,bar{z}_{u}^{{long}} } right)/tau } right)}}{{mathop sum nolimits_{{v in {mathcal{B}}}} exp left( {simleft( {z_{u}^{{long}} ,bar{z}_{v}^{{long}} } right)/tau } right)}}$$

where (:sim:) is the cosine similarity function: (simleft( {a,b} right)~ = ~left( {a~cdot~b} right)~/~left( {left| {left| a right|} right|~cdot~left| {left| b right|} right|} right)), (:tau:) is a temperature parameter, and (:mathcal{B}) is the training batch.

Similarly, a short-term contrastive loss (:{mathcal{L}}_{short}) is applied to refine the short-term interest representation. It attracts the short-term representation (:{mathbf{z}}_{u}^{short}) towards the representation of the most recent user interactions (positive sample) and repulses it from short-term representations of other users and from non-adjacent interactions within the same user’s sequence (negative samples). The primary learning objective for disentanglement is the weighted sum of these two losses:

$$:{mathcal{L}}_{disentangle}=alpha:{mathcal{L}}_{long}+beta:{mathcal{L}}_{short}$$

where(::alpha:,:beta::)are weighting parameters for combining long-term and short-term contrastive losses.

Furthermore, to ensure the distinctiveness of the disentangled representations, a separation regularization term

$$:{mathcal{L}}_{reg}=text{m}text{a}text{x}left(0,delta:-left|{mathbf{z}}_{u}^{long}right|-{left|{mathbf{z}}_{u}^{short}right|}_{2}^{2}right)$$

is introduced, which penalizes the model if the Euclidean distance between the long-term and short-term representations of a user falls below a margin (:delta:), thereby explicitly enforcing their independence in the latent space.

The final output of the DMGRec model is a comprehensively refined user representation

$$:{mathbf{z}}_{u}^{final}={f}_{phi:}left(left[{mathbf{z}}_{u}^{long}parallel:{mathbf{z}}_{u}^{short}right]right)$$

where (:{f}_{phi:}) is a small fusion network and (:parallel:) denotes concatenation. The entire framework, including the Multi-source Behavior Fusion Graph Embedding and the DTIE-GCN, is trained end-to-end by jointly optimizing the disentanglement loss with the main recommendation task’s Bayesian Personalized Ranking (BPR) loss, leading to the total objective:

$$:{mathcal{L}}_{total}={mathcal{L}}_{BPR}+lambda:{mathcal{L}}_{disentangle}+gamma:{mathcal{L}}_{reg}$$

This multi-task contrastive learning paradigm significantly enhances the quality of the representations produced by the first two modules, leading to more robust, interpretable, and accurate recommendations by effectively mitigating the problem of content homogenization.

Experiment

Experimental design

The experimental environment for training and evaluating the DMGRec model was configured to ensure computational efficiency and reproducibility. The hardware setup utilized NVIDIA A100 GPUs with 40GB of VRAM, which accelerated the training of the graph neural networks and contrastive learning components. The software stack was built on Python 3.8 and PyTorch 1.12.1, with key libraries including DGL 0.9 for graph convolution operations and PyTorch Geometric 2.2 for handling temporal graph data structures. All experiments were conducted on a high-performance computing cluster running the CentOS 7 operating system, which facilitated the management of large-scale datasets and parallel experimentation .

The model parameters were carefully initialized to promote stable convergence during training. The embedding dimension for both users and items was set to 128, allowing the model to capture complex relational patterns without excessive computational overhead. The dynamic temporal graph convolutional network consisted of 3 layers, with a hidden dimension of 256 units in each layer. The multi-source behavior fusion module employed a dropout rate of 0.2 to prevent overfitting, while the contrastive disentanglement learning module used a temperature parameter of 0.1 in the contrastive loss function to control the separation of latent representations. All parameters were initialized using the Xavier uniform initialization method, which ensured balanced gradient flow during the initial training phases .

The training process employed the Adam optimizer with an initial learning rate of 0.001, which was reduced by a factor of 0.5 whenever the validation loss plateaued for 5 consecutive epochs. The model was trained for a maximum of 100 epochs with an early stopping patience of 10 epochs based on the validation AUC metric. The batch size was set to 512 user sequences, each containing up to 50 historical interactions. The multi-task contrastive learning objective combined the primary Bayesian Personalized Ranking (BPR) loss with the contrastive disentanglement loss using a weighting factor of 0.7 for the BPR component and 0.3 for the contrastive component, determined through empirical validation on a held-out dataset.

The evaluation of DMGRec employed six metrics to comprehensively assess recommendation performance. The Area Under the ROC Curve (AUC) measures the model’s overall ranking capability, formulated as

$$:AUC=frac{sum:_{i=1}^{N}sum:_{j=1}^{M}Ileft({p}_{i}>{p}_{j}right)}{Ntimes:M}$$

where (:{p}_{i}) and (:{p}_{j}) are the predicted scores for positive and negative instances respectively, and (:I) is the indicator function. Group AUC (GAUC) extends AUC by calculating the average AUC per user group, addressing potential population biases. Mean Reciprocal Rank (MRR) evaluates the ranking quality of the first relevant item:

$$:MRR=frac{1}{left|Uright|}sum:_{u=1}^{left|Uright|}frac{1}{ran{k}_{u}}$$

where (:ran{k}_{u}) is the position of the first relevant item for user (:u). (:Precision@N) and (:Recall@N) measure recommendation accuracy at different list lengths:

$$:Precision@N=frac{left|{relevanthspace{0.17em}itemshspace{0.17em}inhspace{0.17em}tophspace{0.17em}N}right|}{N}$$

and

$$:Recall@N=frac{left|{relevanthspace{0.17em}itemshspace{0.17em}inhspace{0.17em}tophspace{0.17em}N}right|}{left|{allhspace{0.17em}relevanthspace{0.17em}items}right|}$$

Finally, (:Novelty@N) quantifies the diversity of recommendations using Shannon entropy:

$$:Novelty@N=-sum:_{i=1}^{N}pleft(iright)text{l}text{o}text{g}pleft(iright)$$

where (:pleft(iright)) is the probability of item (:i) being recommended across all users.

Datasets

The datasets used in this study include KuaiRec39 and WeChat Video Channel dataset40.

The KuaiRec dataset is a fully observed real-world dataset collected from the Kuaishou short video platform, featuring exceptionally dense user-item interaction matrices. It comprises a small matrix with 1,411 users and 3,327 items, yielding approximately 4.68 million interactions and a density near 100.

The WeChat Video Channel dataset is designed for multimodal short video recommendation, containing rich user profile information and comprehensive multimodal video features encompassing visual, acoustic, and textual descriptors. This dataset consists of three core files: feed_info.csv (video information table), feed_embeddings.csv (multimodal content understanding feature vectors), and user_action.csv (user behavior table). The video information table contains basic information and multimodal features for approximately 96,565 videos (feeds), while the user behavior table records historical interaction data for approximately 20,001 users on Video Account. The dataset’s output is the click-through rate (CTR), serving as the primary indicator of user engagement. While specific sample size statistics are not explicitly detailed in the referenced publication, the dataset emphasizes the integration of diverse auxiliary information to enhance recommendation personalization. Its significance for this research lies in enabling the rigorous evaluation of the proposed model’s ability to fuse heterogeneous multimodal inputs and capture complex user-video relationships, which is crucial for advancing beyond traditional interaction-based methods and addressing the challenges of content understanding and personalized recommendation (Table 1).

Table 1 Comparison of key properties between KuaiRec and WeChat video channel datasets.

Full size table

For both KuaiRec and WeChat Video Channel datasets, raw interactions were filtered to retain active users with ≥ 5 records and videos with ≥ 3 interactions to reduce noise. Missing multimodal features in WeChat were imputed via mean values, and watch-time ratios were binarized into click labels using a 0.8 threshold for KuaiRec. Temporal ordering was preserved for sequential modeling. An 8:1:1 chronological split was adopted: the earliest 80% of interactions formed the training set, the next 10% the validation set for hyperparameter tuning, and the latest 10% the test set to simulate real-time recommendation scenarios, ensuring no future data leakage.

Comparison study

Model performance comparison

In the first experiment, we evaluated the recommendation accuracy of DMGRec against traditional collaborative filtering methods, namely ItemCF and UserCF, on the KuaiRec dataset. The experiment was designed to assess the fundamental performance gains achieved by the deep learning architecture over conventional similarity-based approaches. ItemCF generates recommendations based on item-item similarities computed from historical interactions, while UserCF relies on user-user similarities. In contrast, DMGRec leverages a sophisticated pipeline that includes multi-source behavior fusion and temporal interest modeling. The results, summarized in Table 2, demonstrate a substantial superiority of DMGRec across all metrics. Specifically, DMGRec achieved an AUC of 0.921 and a GAUC of 0.897, significantly outperforming ItemCF (AUC = 0.782, GAUC = 0.761) and UserCF (AUC = 0.769, GAUC = 0.748). The MRR for DMGRec was 0.356, which is more than double that of ItemCF (0.142) and UserCF (0.135). For ranking accuracy, DMGRec’s Precision@10 and Recall@10 reached 0.284 and 0.402, respectively, far exceeding the corresponding values below 0.12 and 0.18 for the CF methods. Notably, DMGRec also achieved a higher Novelty@10 score of 0.218, indicating its ability to recommend a more diverse set of content compared to the CF baselines, which scored below 0.09 (see Fig. 4). The underlying reason for this performance gap lies in the fundamental limitations of collaborative filtering. Methods like ItemCF and UserCF operate on the simplistic assumption that users with similar interaction histories will prefer similar items, but they fail to capture the nuanced semantics of different interaction types (e.g., watch time vs. likes) and completely ignore the temporal evolution of user interests. DMGRec’s Multi-source Behavior Fusion Graph Embedding module directly addresses this by constructing a graph that integrates heterogeneous behaviors, allowing the model to discern the varying intensity of user preferences. Furthermore, the Dynamic Temporal Interest Evolution Graph Convolutional Network captures sequential dependencies, enabling the model to reflect a user’s current interests more accurately than the static, historical-average approach of CF methods. The higher novelty score can be attributed to contrastive disentanglement learning, which helps prevent the model from over-fitting popular items, a common pitfall for CF models that tend to create filter bubbles.

Table 2 Performance comparison between DMGRec and traditional collaborative filtering methods on the KuaiRec dataset.

Full size table

Fig. 4

Performance comparison: DMGRec vs. traditional collaborative filtering.

To ensure the statistical robustness of the comparative results, we performed the following analyses. First, a paired t-test was conducted to evaluate the significance of performance differences between DMGRec and each baseline model, using the predicted scores for every user-item pair in the test set as dependent samples. The results confirmed that all improvements reported for DMGRec are statistically significant with (:p:<:0.01). Second, to account for variability in training, each experiment was repeated five times with different random seeds. The consistently low standard errors observed demonstrate the stability and reliability of our model.

The second experiment compared DMGRec with advanced deep learning-based sequential recommendation models, Deep Interest Network (DIN)41 and Deep Interest Evolution Network (DIEN)42, focusing on the AUC and GAUC metrics on the WeChat Video Channel dataset (see Fig. 5).

Fig. 5

AUC/GAUC comparison: DMGRec vs. deep learning models.

This experiment aimed to highlight the advantages of our graph-based temporal modeling over sequence-based attention mechanisms. DIN employs an attention mechanism to adaptively learn the importance of user historical behaviors concerning a candidate item, but it does not explicitly model the sequential evolution of interests. DIEN extends DIN by introducing a GRU-based network to capture interest dynamics. As shown in Table 3, DMGRec achieved the highest scores on both AUC (0.945) and GAUC (0.928). DIN attained an AUC of 0.896 and a GAUC of 0.878, while DIEN performed better with an AUC of 0.912 and a GAUC of 0.894, yet fell short of DMGRec. The superior performance of DMGRec can be attributed to its structural capacity to model complex, evolving relationships. While DIN and DIEN effectively model user interests from a sequential perspective, they primarily operate on the linear history of interactions. DMGRec, through its temporal graph convolutional network, conceptualizes user-video interactions as a dynamic graph. This allows it to simultaneously capture both the local neighborhood structure (like which videos are co-interacted with) and the global temporal evolution patterns within the same framework. The GAUC metric, which measures the average AUC per user group, is particularly important as it reduces the bias introduced by popular items. DMGRec’s higher GAUC indicates its robustness across different user activity groups. This is facilitated by the multi-source behavior fusion, which enriches node representations with diverse signals, making the model less reliant on a single type of interaction and better at personalizing for users with sparse data. In essence, the graph-based approach provides a more holistic view of user behavior compared to the purely sequential perspective of DIN and DIEN, leading to more accurate probability estimates for clicks .

Table 3 Performance comparison between DMGRec and deep learning models on AUC and GAUC (WeChat video channel dataset).

Full size table

The third experiment evaluated DMGRec against graph neural network baselines, LightGCN43 and MMGCN44, with a focus on ranking quality (MRR) and recommendation diversity (Novelty@N) on the KuaiRec dataset. LightGCN is a simplified and effective GNN that performs neighborhood aggregation on the user-item interaction graph but ignores multi-modal features and temporal dynamics. MMGCN extends GCNs by incorporating multi-modal features of items but still operates on a static graph. The results, detailed in the comprehensive Table 4, demonstrate DMGRec’s strong performance. DMGRec achieved the highest MRR of 0.356, compared to 0.288 for LightGCN and 0.301 for MMGCN. More importantly, DMGRec consistently outperformed the baselines across all Novelty@N metrics, achieving 0.195 (N = 5), 0.218 (N = 10), and 0.241 (N = 20). In contrast, LightGCN and MMGCN showed lower novelty scores, all below 0.17, indicating a tendency to recommend more popular, less diverse items. This performance advantage stems from DMGRec’s core innovations. While LightGCN effectively captures collaborative filtering signals through graph convolution, it models the graph as a static snapshot, failing to account for the fact that user interests change over time. MMGCN integrates multi-modal content features, which helps improve accuracy, but its static nature still limits its ability to track interest drift. DMGRec’s Dynamic Temporal Interest Evolution Graph Convolutional Network explicitly models the graph as a temporal sequence, allowing it to prioritize recent interactions and capture evolving patterns. This directly contributes to a higher MRR, as the model can better rank items that align with the user’s current context. Furthermore, the Multi-task Contrastive Disentanglement Learning method is the key to enhancing diversity. By explicitly separating long-term and short-term interests using contrastive losses, the model learns a more disentangled user representation. This prevents the model from being overly dominated by the user’s long-term, potentially generic preferences (which might lead to popular items) and allows short-term, niche interests to influence the recommendations, thereby increasing the novelty of the output. This mechanism mitigates the content homogenization problem often observed in GNN-based recommenders .

Table 4 Comprehensive performance comparison between DMGRec and graph neural network models on ranking and diversity metrics (KuaiRec dataset).

Full size table

Comparison with latest state-of-the-art models

To further validate the advancement of DMGRec within the contemporary research landscape and address the reviewer’s suggestion, we conducted a fourth experiment comparing it against three recent state-of-the-art (SOTA) models. (1) SelfGNN45 is a self-supervised graph neural network framework for sequential recommendation. It encodes short-term graphs based on time intervals using GNNs to learn short-term collaborative relations and employs a personalized self-augmented learning structure to enhance robustness against data noise. (2) STiSAN46 is a spatial-temporal interval-aware sequential POI recommendation model. It incorporates two lightweight modules, a Time-aware Position Encoder (TAPE) and an Interval-aware Attention Block (IAAB), to introduce fine-grained spatio-temporal correlations into the self-attention network as inductive bias, effectively capturing both spatial proximity and temporal patterns in user check-in sequences. (3) MSERS47 is a motif and supernode-enhanced session-based recommender system. It constructs a global session graph, identifies and encodes motifs as supernodes to enrich the graph topology, and utilizes a supernode-enhanced gated graph neural network (GGNN) to learn better session representations by capturing long-term and latent item dependencies. The experiment was conducted on both the KuaiRec and WeChat Video Channel datasets, with results summarized in Table 5. On KuaiRec, DMGRec achieved the highest AUC (0.947), significantly outperforming SelfGNN (0.938), STiSAN (0.932), and MSERS (0.941). A more pronounced advantage is observed in MRR (0.361 for DMGRec vs. (:le:) 0.348 for baselines) and Novelty@10 (0.232 vs. (:le:) 0.210), underscoring DMGRec’s superior ranking capability and success in promoting diverse content. On the WeChat Video Channel dataset, DMGRec also attained the best AUC of 0.945, compared to 0.937, 0.931, and 0.939 for the three baselines, respectively. The consistent superiority of DMGRec can be attributed to its holistic design: while the latest SOTA models excel in specific aspects such as noise-robust self-supervised learning (SelfGNN), fine-grained spatio-temporal modeling (STiSAN), or motif-enhanced session modeling (MSERS), DMGRec’s synergistic integration of multi-source behavior fusion, dynamic temporal graph convolutions, and contrastive interest disentanglement provides a more comprehensive and robust solution for modeling the complexities of real-time short video recommendation, effectively leveraging heterogeneous signals, evolving patterns, and disentangled user interests simultaneously.

Table 5 Performance comparison between DMGRec and latest SOTA models.

Full size table

Parameter sensitivity

The fourth experiment investigated the impact of graph convolutional layer depth on model performance by varying the number of layers in the Dynamic Temporal Interest Evolution Graph Convolutional Network from 1 to 15. The results, detailed in Table 5, reveal a clear non-linear relationship between depth and effectiveness. As the number of layers increased from 1 to 3, all primary recommendation metrics showed significant improvement; for instance, AUC rose from 0.892 to 0.945, GAUC from 0.871 to 0.925, and MRR from 0.301 to 0.358. This enhancement is attributed to the model’s increased capacity to capture higher-order neighborhood information and more complex temporal dependencies within the user-video interaction graph, allowing for a richer representation of user interests. However, beyond 4 layers, the model began to exhibit signs of over-smoothing, a well-documented phenomenon in GNNs where node embeddings become increasingly similar and less distinguishable(see Fig. 6). This is evidenced by the performance plateau and subsequent decline; at 8 layers, AUC dropped to 0.928 and Novelty@10 decreased to 0.195, indicating a loss of discriminatory power and a tendency to recommend more homogeneous content. The precision and recall metrics also followed this trend, with Precision@10 peaking at 0.285 for 3 layers before falling to 0.252 at 8 layers. The decline in novelty is particularly telling, as excessively deep convolutions cause the model to converge towards the graph’s stationary distribution, effectively averaging out unique user preferences and favoring popular items. These findings underscore the critical trade-off in GNN-based recommenders: sufficient depth is necessary to capture meaningful multi-hop relationships, but excessive depth harms model differentiation and personalization, with an optimal range of 3–4 layers for this specific architecture and dataset.

Table 6 Performance of DMGRec with varying numbers of graph convolutional layers (KuaiRec dataset).

Full size table

Fig. 6

The impact of the number of convolutional layers on model performance.

The fifth experiment examined the effect of the interest representation dimensionality, which is the output size of the embedding vectors from both the Multi-source Behavior Fusion and Dynamic Temporal GCN modules. We tested dimensions ranging from 32 to 512, and the results are summarized in Table 6. A clear trend emerged where performance improved with increasing dimensionality up to a point but then encountered diminishing returns and a slight degradation in some metrics. Specifically, when increasing the dimension from 32 to 128, the AUC score improved from 0.905 to 0.942, GAUC from 0.885 to 0.921, and MRR from 0.315 to 0.350. This improvement is due to the enhanced capacity of higher-dimensional vectors to encode the complex, multi-faceted nature of user interests derived from diverse behaviors and temporal patterns, leading to more accurate similarity calculations and ranking. However, beyond 256 dimensions, the gains became marginal; at 512 dimensions, AUC was 0.944, only a slight increase over 128 dimensions, while the computational cost and memory usage increased substantially. More importantly, the Recall@10 and Novelty@10 metrics began to slightly decrease at very high dimensions (e.g., Recall@10 dropped from 0.398 at 128-d to 0.391 at 512-d), suggesting potential overfitting where the model starts to memorize noise in the training data rather than learning generalizable patterns. This overfitting reduces the model’s ability to recommend novel items outside the immediate training distribution. The results indicate that a dimensionality of 128 provides an optimal balance between representational power and computational efficiency for this task, capturing sufficient information without introducing unnecessary complexity or overfitting risks.

Table 7 Performance of DMGRec with varying interest representation dimensionality (WeChat video channel dataset).

Full size table

The sixth experiment focused on the sensitivity of the model to the weight of the contrastive disentanglement loss ((:lambda:)), which controls the emphasis placed on separating long-term and short-term interests relative to the primary BPR ranking loss. We tested (:lambda:) values from 0.0 (no disentanglement) to 1.0 (equal weight) in increments of 0.1, with results presented in Table 7. The analysis reveals that introducing a moderate amount of contrastive learning ((:lambda:=0.3)) significantly enhances model performance compared to the baseline without disentanglement ((:lambda:=0.0)). At (:lambda:=0.3), AUC reached 0.947, GAUC 0.927, and MRR 0.361, outperforming the (:lambda:=0.0) baseline (AUC = 0.928, MRR = 0.335). This improvement stems from the disentanglement module’s ability to learn more robust and interpretable user representations by explicitly decorrelating stable preferences from transient interests, which helps mitigate the content homogenization problem. However, as (:lambda:) increases beyond 0.5, the performance on accuracy metrics like Precision@10 and Recall@10 begins to decline (Precision@10 dropped from 0.286 at (:lambda:=0.3) to 0.271 at (:lambda:=0.9). See Fig. 7), because an excessively strong disentanglement constraint can distort the primary learning objective of accurately predicting user-item interactions, forcing the latent space to prioritize separation over predictive fidelity. Interestingly, the Novelty@10 metric continued to improve with higher (:lambda:) (reaching 0.245 at (:lambda:=0.9)), indicating that stronger disentanglement effectively promotes diversity, but at the cost of accuracy. This highlights a crucial trade-off in multi-task learning: the contrastive loss acts as a regularizer, and its optimal weight ((:lambda:=0.3)) achieves a balance where disentanglement aids the main task without overwhelming it, leading to the best overall performance.

Table 8 Performance of DMGRec with varying contrastive loss weights (KuaiRec dataset).

Full size table

Fig. 7

The impact of contrastive loss weights on performance.

Ablation study

The ablation study for the DMGRec model is designed to systematically evaluate the individual and combined contributions of its three core, innovative components by creating and testing several ablated variants. The first ablated variant, denoted as DMGRec w/o MBF, removes the Multi-source Behavior Fusion Graph Embedding module. These variant processes the user-video interaction graph using only a single, generic interaction type (e.g., click), thereby ignoring the nuanced semantics of heterogeneous behaviors like watch time, likes, and comments. The second variant, DMGRec w/o DTIE, ablates the Dynamic Temporal Interest Evolution Graph Convolutional Network. This model utilizes a standard, static Graph Convolutional Network (GCN) that aggregates neighbor information without considering the chronological order of interactions, thus failing to capture the evolution of user interests over time. The third variant, DMGRec w/o MCD, removes the Multi-task Contrastive Disentanglement Learning method. In this model, the training relies solely on the Bayesian Personalized Ranking (BPR) loss, without the contrastive learning objective that explicitly separates long-term and short-term interest representations. Finally, the complete DMGRec model integrates all three components to demonstrate their synergistic effect.

The performance of all models is evaluated on the KuaiRec dataset, and the results are summarized in Table 8. The analysis of these results clearly demonstrates the critical role of each component. The DMGRec w/o MBF variant exhibits the most significant performance drop across all metrics, particularly in terms of AUC (0.901) and GAUC (0.878). This substantial decline underscores the importance of effectively leveraging multi-source heterogeneous behaviors. By failing to distinguish between different types of user interactions, this variant constructs an impoverished and inaccurate user interest model, leading to inferior recommendation accuracy. The DMGRec w/o DTIE model shows a notable decrease in MRR (0.315) and Recall@10 (0.365), indicating that the inability to model temporal dynamics results in poorer ranking performance. The model cannot prioritize recent user interactions, causing it to recommend items that may align with a user’s historical average preference but not their current intent. The DMGRec w/o MCD variant, while maintaining relatively high accuracy metrics like Precision@10 (0.275), suffers a significant drop in Novelty@10 (0.195) (see Fig. 8). This highlights the module’s specific contribution to mitigating the content homogenization problem; without the contrastive disentanglement objective, the model’s recommendations become overly conservative and lack diversity. In contrast, the complete DMGRec model achieves the best overall performance, attaining the highest scores in AUC (0.947), MRR (0.361), and Novelty@10 (0.232). The superior results confirm that the three components work synergistically: the multi-source behavior fusion provides rich, granular user signals, the temporal graph network dynamically models interest evolution, and the contrastive learning ensures a balanced representation that promotes both accuracy and diversity, addressing the core challenges outlined in the research.

Table 9 Performance comparison of DMGRec and its ablated variants on the KuaiRec dataset.

Full size table

Fig. 8

Performance comparison in ablation study.

Robustness and practicality study

In addition to the aforementioned three sets of comparative experiments, this study specifically designed four experiments to validate the robustness and practicality of the model.

Performance testing in data sparsity and cold start scenarios

Experiment 1 was designed to evaluate the recommendation performance under data sparsity and cold-start scenarios by constructing specialized subsets from the KuaiRec dataset. The results demonstrate the superior robustness of the DMGRec model compared to baseline methods like SSER48 and DENSVD49. In the user cold start setting, where only the first 5 interactions of selected users were used for training, DMGRec achieved a Precision@10 of 0.201 and a Recall@10 of 0.285, significantly outperforming DENSVD (Precision@10 = 0.152, Recall@10 = 0.221) and SSER (Precision@10 = 0.168, Recall@10 = 0.240). A similar trend was observed in the item cold start setting, with DMGRec maintaining a Recall@10 of 0.273, compared to 0.208 for DENSVD and 0.231 for SSER. Crucially, the Novelty@10 metric for DMGRec remained at 0.195 in the user cold-start scenario, higher than the 0.162 and 0.178 achieved by the baselines, indicating its ability to recommend diverse content even with limited data. This performance advantage stems from the model’s inherent architecture. The Multi-source Behavior Fusion Graph Embedding module effectively leverages heterogeneous behaviors (e.g., watch time, likes), allowing it to construct a reasonably accurate user interest representation from very few interactions by discerning the semantic intensity of different actions. Furthermore, the Multi-task Contrastive Disentanglement Learning method helps in learning generalized user representations that are less prone to overfitting on sparse interaction histories, thereby mitigating the performance drop typically associated with cold-start problems. The smaller decline in DMGRec’s metrics underscores its effectiveness in alleviating data sparsity issues common in real-world platforms.

Experiment on the interpretability analysis of recommendation results

Experiment 2 was conducted to analyze the interpretability of the DMGRec model’s recommendations by examining the internal attention mechanisms and interest evolution paths. The qualitative analysis, supported by attention weight distributions extracted from the Multi-source Behavior Fusion and Dynamic Temporal GCN modules, reveals that the model’s decision-making process aligns well with observable user behavior. For instance, in a detailed case study of a user who gradually shifted interest from entertainment to educational content, the attention weights in the multi-source behavior fusion module correctly assigned higher importance to ‘complete watch’ and ‘favorite’ actions over brief ‘views’ when recommending educational videos. Simultaneously, the temporal attention in the Dynamic Temporal GCN showed a clear evolutionary path, gradually decreasing the attention on nodes representing old entertainment videos and increasing focus on recently interacted educational content. This internal consistency was further validated by tracking the user’s interest representation over time; the model’s projected interest vector in the latent space showed a smooth transition from the entertainment cluster to the education cluster, closely mirroring the user’s actual interaction sequence. The ability to trace a recommendation back to specific influential historical interactions and behavior types significantly enhances the model’s transparency and trustworthiness. This interpretability is a direct benefit of the model’s design: the graph structure naturally relates recommendations to specific past items, and the attention mechanisms provide a quantitative measure of influence, making the model’s reasoning more accessible than black-box alternatives.

It should be noted that the above interpretability analysis is primarily qualitative in nature, relying on visual inspection of t-SNE projections for two representative users. While the observed clustering patterns provide intuitive evidence of successful disentanglement, we acknowledge that no quantitative interpretability metrics, such as fidelity (measuring the change in model predictions upon perturbing disentangled dimensions), stability (consistency of disentangled representations across different training runs), or user-study-based effectiveness ratings, are reported in the present study. Establishing rigorous quantitative evaluation protocols for disentangled interest representations in recommender systems remains an open challenge and constitutes an important direction for future investigation. Readers should therefore interpret the current findings as indicative rather than conclusive evidence of interpretability.

Visualization of attention dynamics across interest transition

To further illustrate how DMGRec dynamically balances long-term and short-term interests, we conduct the case study on a representative user from the KuaiRec test set who exhibits a clear interest transition from entertainment-oriented content to education-oriented content over eight consecutive time snapshots. Figure 9 visualizes the attention weight distributions produced by the long-term encoder and the short-term encoder across video categories at each snapshot.

As shown in Fig. 9 (top), the long-term attention weights remain remarkably stable across all time steps, consistently concentrating on the Entertainment category (approximately 0.35–0.40) and Music category (approximately 0.23–0.32). This stability reflects the model’s ability to preserve the user’s enduring preference profile, which is dominated by entertainment-related content consumption over the entire observation period. In contrast, Fig. 9 (bottom) reveals a pronounced dynamic shift in the short-term attention distribution. At early snapshots ((:t=1) to (:t=3)), the short-term encoder assigns high attention weights to Entertainment (0.38–0.42) and Music (0.19–0.22), mirroring the user’s immediate browsing behavior. However, starting from snapshot (:t=4), the attention weight on Education begins to rise steadily, increasing from 0.10 at (:t=4) to 0.35 at (:t=8), while the weight on Entertainment correspondingly declines from 0.35 to 0.15. This transition coincides with the user’s growing engagement with educational tutorial videos in recent sessions, as recorded in the timestamped interaction log. The red dashed rectangle highlights this critical interest transition region.

This visualization provides direct, interpretable evidence that DMGRec’s disentangled attention mechanism effectively separates stable long-term preferences from evolving short-term behavioral dynamics. The long-term encoder maintains a robust representation of the user’s core identity, preventing catastrophic forgetting of established interests, while the short-term encoder flexibly adapts to emerging consumption patterns, enabling the model to recommend timely and contextually relevant content.

Fig. 9

Visualization of disentangled attention weight dynamics across eight consecutive time snapshots for a representative user from the KuaiRec test set. Top: Long-term attention weights remain stable on Entertainment and Music categories. Bottom: Short-term attention weights exhibit a gradual shift from Entertainment toward Education, reflecting the user’s evolving interest. Red dashed rectangle highlights the critical transition region. Best viewed in color.

Experimental comparison of training efficiency and inference speed

Experiment 3 aimed at assessing the training efficiency and inference speed of DMGRec to evaluate its feasibility for large-scale industrial deployment. The results, detailed in Table 9, indicate that while DMGRec is not the fastest model, it offers a favorable trade-off between computational cost and recommendation accuracy. DMGRec required 98 min per training epoch and converged after 45 epochs, resulting in a total training time of approximately 4410 min. In contrast, the lightweight MMa4CTR model50, optimized for computational efficiency, required only 25 min per epoch and converged in 60 epochs (1500 min total), but at the cost of lower accuracy metrics as seen in previous experiments. The SSER model showed a longer training time of 120 min per epoch. For inference speed, which is critical for real-time services, DMGRec took 15 milliseconds to generate Top 10 recommendations for 1000 users, which is slower than MMa4CTR (8 ms) but significantly faster than SSER (22 ms). The computational expense of DMGRec is attributed to its sophisticated components: the temporal graph convolutions involve iterative message passing over dynamic graphs, and the contrastive disentanglement learning adds a secondary training objective. However, the model’s architecture allows for efficient mini-batch processing and parallelization of graph operations on GPUs, making its inference latency acceptable for practical applications where high-quality, personal recommendations are prioritized over sheer speed. This balance positions DMGRec as a viable solution for platforms requiring deep personalization despite its moderate computational demands.

Table 10 Comparison of training efficiency and inference speed on the KuaiRec dataset.

Full size table

Adaptive capability testing in dynamic environments

Experiment 14 was designed to validate the model’s adaptive capability in dynamic environments with concept drift by evaluating its performance on sequentially ordered time windows. The model was initially trained on data from the first month and then tested and periodically fine-tuned on subsequent monthly data from the WeChat Video Channel dataset. The results, plotted in Table 10, show that DMGRec effectively adapts to shifting user interests. The AUC metric for DMGRec started at 0.925 in the first test window and experienced a slight decline to 0.908 in the third window without fine-tuning. However, after a minor fine-tuning step with a low learning rate, the AUC recovered to 0.922 in the fourth window and remained stable at 0.919 in the fifth. In contrast, a static version of DMGRec (without fine-tuning) showed a continuous performance drop, with AUC decreasing to 0.892 by the fifth window. Similarly, Precision@10 for the adaptive DMGRec was maintained around 0.275, while the static model’s precision fell to 0.251. This demonstrates the model’s strong ability to mitigate concept drift. The key to this adaptability lies in the Dynamic Temporal Interest Evolution Graph Convolutional Network, which is inherently designed to model evolving graph structures. When fine-tuned with new data, the temporal GCN can rapidly adjust its parameters to incorporate the latest interaction patterns, and the contrastive learning objective helps preserve previously learned disentangled interest representations, preventing catastrophic forgetting. This combination allows the model to continuously track a user’s interest evolution without requiring retraining from scratch, making it highly practical for real-world systems where user preferences are non-stationary (Table 11).

Table 11 Performance evolution of DMGRec across sequential time windows on the WeChat video channel dataset.

Full size table

Comparison with LLM-based recommenders

To contextualize DMGRec within the emerging landscape of large language model (LLM)-based recommendation systems, we additionally implement and evaluate two representative LLM-based baselines on the same KuaiRec and WeChat Video Channel datasets: (1) TallRec51, which fine-tunes a LLaMA-2-7B backbone on user sequential interaction records for click-through rate prediction via LoRA-based parameter-efficient fine-tuning; and (2) LLM-Rec, following the Chat-REC52 formulation, which employs frozen LLaMA-2-7B with few-shot in-context learning to rank candidate items based on textualized user histories. Both LLM baselines are trained/tested under the same data split as DMGRec.

DMGRec consistently outperforms the LLM-based baselines across all accuracy and ranking metrics on both datasets. On KuaiRec, DMGRec achieves an AUC of 0.947 and MRR of 0.361, surpassing TallRec (AUC = 0.918, MRR = 0.324) and LLM-Rec (AUC = 0.902, MRR = 0.308). Similar trends are observed on the WeChat Video Channel dataset. Notably, DMGRec also attains higher Novelty@10 (0.232 on KuaiRec vs. 0.196 for TallRec and 0.178 for LLM-Rec), indicating that the multi-task contrastive disentanglement learning mitigates content homogenization more effectively than LLM-based reranking. Although LLM-based recommenders demonstrate promise in cold-start and cross-domain scenarios by leveraging semantic knowledge, their substantial inference latency (exceeding 800 ms per 1000 users on an A100 GPU for TallRec, compared to 15 ms for DMGRec) and high computational cost limit their direct applicability to real-time short video platforms with millisecond-level response requirements. DMGRec, by integrating multi-source behavior fusion and dynamic temporal graph convolution, achieves a superior balance of accuracy, diversity, and computational efficiency for this domain.

Conclusion and outlook

Conclusion

Real-time short video recommendation systems play a vital role in enhancing user engagement by delivering personalized content, yet they face persistent challenges such as ineffective integration of multi-source heterogeneous user behaviors, failure to capture dynamic interest evolution, and neglect of the disparity between short-term and long-term user interests, resulting in content homogenization. To overcome these limitations, this study proposes DMGRec, a novel deep learning framework that comprises three synergistic modules: the Multi-source Behavior Fusion Graph Embedding module, which constructs a unified graph to embed diverse user interactions; the Dynamic Temporal Interest Evolution Graph Convolutional Network, which models evolving user preferences through time-aware graph convolutions; and the Multi-task Contrastive Disentanglement Learning method, which explicitly separates long-term and short-term interest representations via contrastive objectives. Experimental evaluations on real-world datasets demonstrate the model’s superior performance. On the KuaiRec dataset, DMGRec achieved an AUC of 0.921 and a GAUC of 0.897, significantly outperforming ItemCF ((:AUC=0.782,:GAUC=0.761)) and UserCF ((:AUC=0.769,:GAUC=0.748)), with an MRR of 0.356, more than double that of collaborative filtering baselines. On the WeChat Video Channel dataset, DMGRec attained an AUC of 0.945 and a GAUC of 0.928, exceeding deep learning models like DIN ((:AUC=0.896,:GAUC=0.878)) and DIEN ((:AUC=0.912,:GAUC=0.894)). Ablation studies confirmed the critical role of each component, as removing multi-source behavior fusion reduced AUC to 0.901, while the full model achieved an AUC of 0.947. Parameter sensitivity analysis revealed optimal performance with 3 graph convolution layers ((:AUC=0.945)) and an embedding dimension of 128 ((:AUC=0.942)), and a contrastive loss weight of 0.3 yielded the best results ((:AUC=0.947)). Additionally, DMGRec exhibited robustness in cold-start scenarios, with a Precision@10 of 0.201 and Recall@10 of 0.285 for user cold start and maintained recommendation diversity with a Novelty@10 of 0.232. In conclusion, DMGRec addresses the core challenges by providing a holistic and dynamic approach to user interest modeling, leading to significant improvements in recommendation accuracy, diversity, and adaptability, thereby mitigating filter bubble effects and advancing real-time personalized video recommendation systems.

Outlook

One limitation of the DMGRec model is its computational inefficiency, particularly the extended training time required due to the complex integration of multi-source behavior fusion and temporal graph convolutions. As evidenced in the experiments, DMGRec took 98 min per epoch to train, longer than lightweight baselines like MMa4CTR (25 min per epoch), which could impede scalability in large-scale industrial applications. To address this, future research will focus on architectural optimizations, such as implementing sparse graph neural networks or leveraging knowledge distillation techniques to reduce parameter complexity. Additionally, exploring distributed training frameworks and efficient sampling strategies for dynamic graphs could accelerate convergence while preserving the model’s accuracy and diversity benefits.

A second defect is the model’s reliance on periodic fine-tuning to adapt to concept drift, as performance declined without updates in dynamic environments. Future improvements will integrate online learning mechanisms, such as incremental graph updates or adaptive regularization, to enable continuous adaptation with minimal retraining, enhancing practicality for evolving user preferences.

Addressing the scalability of DMGRec for billion-scale graphs is a critical direction for future work. While our experiments on datasets of moderate scale demonstrate the model’s efficacy, the full-batch temporal graph convolution operation presents a significant computational bottleneck for massive graphs. To mitigate this, future research should investigate efficient subgraph sampling strategies tailored for dynamic graphs, such as importance-based neighborhood sampling for each temporal snapshot, to drastically reduce the number of nodes and edges involved in each forward pass. Furthermore, adopting incremental graph computation and online learning paradigms—where the model is updated continuously with newly arrived interaction streams rather than retrained on the entire historical graph—would be essential for real-world deployment. Such optimizations, combined with distributed training frameworks, are expected to make DMGRec a practical and scalable solution for industrial-scale short video recommendation platforms.

This study proposes the DMGRec framework, which holistically addresses key challenges in real-time short video recommendation by dynamically integrating multi-source behaviors, modeling temporal interest evolution, and disentangling user preferences, thereby enhancing both the accuracy and diversity of recommendations.

colind88

Back To Top