A content recommendation model training method based on multi-modal semantic cooperation, a digital content service recommendation method, and an electronic device

By employing a multimodal semantic collaborative content recommendation model, and utilizing a learnable global codebook and end-to-end optimization, dynamic fusion between modalities and extramodal components is achieved. This resolves semantic ID conflicts and popularity biases, thereby improving the accuracy and robustness of digital content service recommendations.

CN122903702BActive Publication Date: 2026-11-24HANGZHOU DIANZI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611384669.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-08
Publication Date
2026-11-24
Estimated Expiration
2046-09-08

AI Technical Summary

Technical Problem

In multimodal digital content service recommendation scenarios, existing technologies struggle to achieve adaptive modal dynamic fusion of tracks, resulting in semantic ID conflicts and popularity biases. This leads to the collapse of long-tail track representations and fails to effectively improve recommendation accuracy.

Method used

We adopt a content recommendation model based on multimodal semantic collaboration. Through a learnable global codebook and end-to-end joint optimization, we dynamically reweight intra-modal and inter-modal fusion, and combine collaborative ID embedding and hybrid scoring functions to achieve multimodal dynamic fusion and representation optimization at the content object level.

Benefits of technology

It effectively solves the semantic ID conflict problem, improves the recommendation accuracy for the entire set of tracks, especially the representation ability of long-tail tracks, reduces computation and storage overhead, and has good industrial-grade scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122903702B_ABST
    Figure CN122903702B_ABST
Patent Text Reader

Abstract

This application provides a method for training a content recommendation model based on multimodal semantic collaboration, a method for recommending digital content services, and an electronic device. The model training method includes: acquiring a training sample set; inputting the training samples into a content recommendation model to obtain predicted scores for candidate content objects; calculating the training loss based on the difference between the actual interactive content objects of each sample user and the predicted scores, and updating the trainable parameters of the model according to the training loss; during the initialization phase, the model performs residual quantization encoding on the multimodal content features of all content objects in the content object set, generates initial values ​​for the global codebook under each modality, and assigns hierarchical semantic indices to each content object under each modality; the global codebook, as the trainable parameters of the content recommendation model, is updated during training. This invention can effectively alleviate semantic ID conflicts and overcome popularity bias to achieve accurate representation of the entire catalog, especially long-tail tracks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer applications and information recommendation technology, specifically to a method for training a content recommendation model based on multimodal semantic collaboration, a method for recommending digital content services, and an electronic device. Background Technology

[0002] The scale of digital content services is growing rapidly. In a typical industrial-grade recommendation pipeline, the recall stage needs to efficiently filter a small set of relevant tracks from a massive pool of candidate tracks based on users' historical behavioral sequences, laying the foundation for the subsequent fine-tuning stage. This process requires the recall model to not only understand the rich semantic information of the music content itself, such as multiple modalities like audio, lyrics, and metadata, but also to capture the complex collaborative patterns of user preferences presented in massive interactive behaviors.

[0003] However, despite the rapid progress of multimodal recommendation in e-commerce and short video sectors, its direct application to digital content service recommendation scenarios (such as music) has yielded poor results. This is mainly due to two core challenges unique to the digital content service field, which existing mainstream solutions have failed to adequately address. Take music as an example:

[0004] Challenge 1: Heterogeneous modalities require dynamic fusion at the track level, but existing solutions either suffer from bias or are computationally too expensive. Different modalities of a musical work carry fundamentally different information: audio encodes melody, timbre, and rhythm; lyrics convey narrative and emotion; and metadata captures genre and artist context. These modalities have low mutual information and complementary roles, so a globally fixed fusion strategy cannot determine which modality is most critical for which specific track. Current technologies either mechanically concatenate multimodal features before vector quantization, ignoring compatibility differences between content and co-signals; or perform preliminary comparative fusion before quantization, which is not end-to-end training and thus unconsciously accumulates bias. Furthermore, the computational complexity and memory footprint of using a full cross-attention mechanism between modalities are impractical for industrial-grade recall.

[0005] Challenge Two: Fixed semantic ID codebooks (i.e., the aforementioned hierarchical semantic indexes, which are different expressions of the same concept) have structural limitations and inevitably lead to conflicts. Current mainstream generative retrieval methods generally quantize content embedding into a fixed, hierarchically shared codebook, reusing this codebook for each track by concatenating or summing codeword embeddings. Since this codebook is frozen once constructed and applied in a track-independent manner, two songs sharing the same (or highly similar) semantic ID sequences become algebraically indistinguishable in the semantic space, leading to the well-known semantic ID conflict problem. The underlying reason lies in the structural level: a fixed codebook with L layers and K codewords per layer can only accommodate a maximum of... The number of unique embeddings is far smaller than the size of a real-world music library, so the conflict is not accidental but inevitable.

[0006] In addition to the two core challenges mentioned above, the music library also exhibits a severe long-tail distribution: a few popular tracks account for the vast majority of interactions, while a large number of tracks have only extremely sparse interaction signals. Without explicit compensation, the gradient signal will concentrate on popular tracks, causing the representation of long-tail tracks to collapse, which is a well-proven popularity bias problem.

[0007] Therefore, in the context of multimodal digital content service recommendation, how to achieve adaptive modal dynamic fusion of tracks and effectively alleviate semantic ID conflicts, while overcoming popularity bias to achieve accurate representation of all tracks, especially long-tail tracks, has become a key technical challenge that urgently needs to be solved in this field. Summary of the Invention

[0008] In view of this, the present invention proposes a content recommendation model training method based on multimodal semantic collaboration, a digital content service recommendation method, and an electronic device. Specifically, the present invention is implemented through the following technical solutions:

[0009] According to a first aspect of the embodiments of this specification, a method for training a content recommendation model based on multimodal semantic collaboration is provided, the method being executed by a content recommendation platform, the content recommendation platform maintaining a set of content objects; the method includes:

[0010] Obtain a training sample set, which includes a historical behavior sequence of at least one sample user, the historical behavior sequence including at least one content object that the sample user has interacted with, and each content object carrying content features under each modality;

[0011] The training samples are input into the content recommendation model to be trained, and the predicted score of the candidate content object in the content object set is obtained based on the current position in the historical behavior sequence.

[0012] Based on the difference between the actual interactive content objects of each sample user at the current location and the predicted rating, the training loss is calculated, and the trainable parameters of the content recommendation model are updated according to the training loss.

[0013] The global codebook, as a trainable parameter of the content recommendation model, is updated during the training process.

[0014] During model training, the content recommendation model obtains codeword representations of each content object in each modality based on the global codebook for each modality, initializes collaborative ID embedding representations for each content object, and fuses the codeword representations in each modality based on the collaborative ID embedding representations to generate fused embedding representations for each content object; based on the fused embedding representations of each content object before the current position in the historical behavior sequence, it extracts the preference representation of the sample user at the current position, and generates a predicted rating for the candidate content object for the current position based on the preference representation; wherein, the global codebook is updated as a trainable parameter of the content recommendation model during the training process.

[0015] According to a second aspect of the embodiments of this specification, a digital content service recommendation method based on multimodal semantic collaboration is provided, the method being executed by a content recommendation platform, the content recommendation platform maintaining a set of content objects; the method includes:

[0016] Obtain the historical behavior sequence of the target user, the historical behavior sequence including at least one content object that the target user has interacted with;

[0017] The historical behavior sequence is input into the trained content recommendation model, and a predicted score for the candidate content object in the content object set is obtained based on the current position in the historical behavior sequence; the content recommendation model is trained based on the method described in the first aspect.

[0018] Based on the predicted scores of the candidate content objects, a list of content objects recommended to the target user is generated.

[0019] According to a third aspect of the embodiments of this specification, a training apparatus for a content recommendation model based on multimodal semantic collaboration is provided. The apparatus is executed by a content recommendation platform, which maintains a set of content objects. The apparatus includes:

[0020] The data preparation unit is used to acquire a training sample set, which includes a historical behavior sequence of at least one sample user. The historical behavior sequence includes at least one content object that the sample user has interacted with, and each content object carries content features under each modality.

[0021] The model training unit is used to input the training samples into the content recommendation model to be trained, and to obtain the predicted score of the candidate content object in the content object set based on the current position in the historical behavior sequence.

[0022] The parameter update unit is used to calculate the training loss based on the difference between the actual interactive content objects of each sample user at the current location and the predicted score, and update the trainable parameters of the content recommendation model according to the training loss.

[0023] During model training, the content recommendation model obtains codeword representations of each content object in each modality based on the global codebook for each modality, initializes collaborative ID embedding representations for each content object, and fuses the codeword representations in each modality based on the collaborative ID embedding representations to generate fused embedding representations for each content object; based on the fused embedding representations of each content object before the current position in the historical behavior sequence, it extracts the preference representation of the sample user at the current position, and generates a predicted rating for the candidate content object for the current position based on the preference representation; wherein, the global codebook is updated during training as a trainable parameter of the content recommendation model.

[0024] According to a fourth aspect of the embodiments of this specification, a digital content service recommendation device based on multimodal semantic collaboration is provided. The device is executed by a content recommendation platform, which maintains a set of content objects. The device includes:

[0025] The user data acquisition unit is used to acquire the historical behavior sequence of the target user, the historical behavior sequence including at least one content object that the target user has interacted with.

[0026] The scoring calculation unit is used to input the historical behavior sequence into the trained content recommendation model, and obtain the predicted score of the candidate content object in the content object set based on the current position in the historical behavior sequence; the content recommendation model is trained based on the method described in the first aspect;

[0027] The content recommendation unit is used to generate a list of content objects to be recommended to the target user based on the predicted rating of the candidate content objects.

[0028] According to a fifth aspect of the embodiments of this specification, an electronic device is provided, comprising: a processor; and a computer-readable storage medium storing computer program instructions therein, the computer program instructions causing the processor to perform the methods described in the first and second aspects when executed by the processor.

[0029] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium stores a computer program that is executed by a processor using the methods described in the first and second aspects.

[0030] The embodiments of the present invention have at least the following technical effects:

[0031] (1) The representation conflict problem of a fixed semantic codebook is solved by using a learnable global codebook and end-to-end joint optimization. In existing technologies, the semantic codebook is frozen once it is constructed by K-means clustering and applied to all content objects in a track-independent manner. This results in two content objects sharing the same semantic ID sequence being indistinguishable algebraically in the semantic space, making conflicts inevitable. This invention constructs the global codebook as a trainable parameter for the content recommendation model. During training, the gradient based on the training loss is jointly optimized and updated, allowing the codewords in the global codebook to continuously evolve according to user interaction behavior. Even if two content objects are initially assigned the exact same semantic index, as training progresses, the corresponding codewords in the global codebook will shift differently due to the gradient differences received by different content objects, making them distinguishable in the semantic space and thus eliminating the semantic index conflict problem.

[0032] (2) This invention performs residual quantization encoding on the modal content features of each content object, performs clustering on the residual vectors layer by layer, and assigns a semantic index to each content object at each layer. This hierarchical discretization method can represent massive content objects with exponential capacity, reducing the storage and computational overhead of content representation. At the same time, since the codebooks of each modality are independent of each other, when a new modality needs to be added, it is only necessary to build a codebook independently for that modality and participate in the subsequent dynamic fusion, without retraining the codebook of the existing modality, which has good industrial-grade scalability.

[0033] (3) Existing technologies typically employ static splicing or fixed weighting strategies to fuse multimodal features, which cannot adapt to the differences in information content across different modalities for different content objects. This invention dynamically reweights different levels of the global codebook within a modality, guided by collaborative ID embedding; and adaptively learns the importance weights of different modalities based on collaborative ID embedding conditions between modalities. This dual dynamic fusion mechanism enables the model to adaptively emphasize or suppress information of specific modalities and levels according to the characteristics of each content object, achieving multimodal dynamic fusion at the content object level and improving the expressive power and discriminative power of content representation. Attached Figure Description

[0034] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Some specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings in an exemplary and non-limiting manner. The same reference numerals in the drawings indicate the same or similar parts or components. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the drawings:

[0035] Figure 1This is a flowchart illustrating an exemplary embodiment of the present invention of a content recommendation model training method based on multimodal semantic collaboration;

[0036] Figure 2 This is a schematic diagram illustrating the framework of a content recommendation model according to an exemplary embodiment of the present invention;

[0037] Figure 3 This is a schematic diagram illustrating a hierarchical intramodal semantic fusion process according to an exemplary embodiment of the present invention;

[0038] Figure 4 This is a flowchart illustrating an exemplary embodiment of the present invention of a digital content service recommendation method based on multimodal semantic collaboration;

[0039] Figure 5 This is a block diagram illustrating an electronic device according to an exemplary embodiment of the present invention;

[0040] Figure 6 This is a block diagram illustrating a content recommendation model training device based on multimodal semantic collaboration, as shown in an exemplary embodiment of the present invention.

[0041] Figure 7 This is a block diagram illustrating an exemplary embodiment of the present invention of a digital content service recommendation device based on multimodal semantic collaboration. Detailed Implementation

[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0043] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The singular forms “a,” “the,” and “the” used in this invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0044] To address the three core challenges of digital content service recommendation—the need for track-level dynamic fusion of heterogeneous modalities, inherent semantic conflicts in fixed semantic ID codebooks, and severe long-tail distribution—this invention constructs an end-to-end content recommendation model. This model achieves comprehensive dynamic alignment and fusion from intra-modal to inter-modal and from content to collaboration through a hierarchical intra-modal semantic fusion mechanism guided by collaborative IDs, cross-modal dynamic fusion, semantic-collaborative joint modeling, and a hybrid scoring function. Ultimately, this improves the recommendation accuracy and robustness for content objects with varying popularity.

[0045] The following detailed explanation of each step is provided in conjunction with the accompanying drawings.

[0046] Figure 1 This is a flowchart illustrating an exemplary embodiment of the present invention of a content recommendation model training method based on multimodal semantic collaboration, as shown below. Figure 1 As shown, the content recommendation model training method includes the following steps:

[0047] Step S110: Obtain a training sample set, which includes a historical behavior sequence of at least one sample user. The historical behavior sequence includes at least one content object that the sample user has interacted with, and each content object carries content features under each modality.

[0048] The content objects include, but are not limited to, digital content such as music and short videos. The content features under each modality include at least one of the following: text modal features, audio modal features, and visual modal features; the text modal features include the lyrics text features or descriptive text features of the content object, the audio modal features include the audio signal features of the content object, and the visual modal features include the cover image features of the content object.

[0049] Step S120: Input the training samples into the content recommendation model to be trained, and obtain the predicted score of the candidate content objects in the content object set for the current position in the historical behavior sequence.

[0050] Step S130: Based on the difference between the actual interactive content objects of each sample user at the current location and the predicted rating, calculate the training loss, and update the trainable parameters of the content recommendation model according to the training loss.

[0051] In the initialization phase, the content recommendation model performs residual quantization encoding on the multimodal content features of all content objects in the content object set to generate initial values ​​for the global codebook under each modality, and assigns hierarchical semantic indexes for each content object under each modality based on the initial values ​​of the global codebook.

[0052] In some embodiments, the global codebook includes an L-layer codebook table for each modality, where L is a preset positive integer value greater than 1. In practical applications, it can be set according to the number of tracks in the track set I, the semantic granularity of the multimodal content, etc. For example, L≥3 can be set.

[0053] Accordingly, the initial values ​​of the global codebook for each modality can be generated through the following steps:

[0054] Residual quantization encoding is performed on the multimodal content features of all content objects in the content object set to generate initial values ​​for the global codebook under each modality, including:

[0055] For any modality, the content features of all content objects in that modality are used as the first layer of residual vector set;

[0056] Starting from the first layer, perform the following operations on the residual vector set of the current layer, layer by layer:

[0057] In the current layer, K-means clustering is performed on the residual vector set to obtain a preset number of cluster centers in the current layer. The preset number of cluster centers are used as the codebook table of the current layer, with each cluster center being a codeword.

[0058] For each vector in the residual vector set, the nearest cluster center is found as its quantized representation through nearest neighbor retrieval.

[0059] The difference between each vector and its quantized representation is used as the set of residual vectors for the next layer;

[0060] The above operations are performed iteratively until the preset number of layers is reached, resulting in the codebook table for each layer.

[0061] The following steps can be used to assign hierarchical semantic indexes for each content object under each modality:

[0062] Calculate the distance between the content features of each content object and each codeword in the codebook table of each layer, and determine the index of the codeword closest to the content object in the codebook table of each layer as the semantic index of the content object in the current layer.

[0063] The hierarchical semantic index of a content object is obtained based on the semantic index of each content object at each layer.

[0064] During model training, the content recommendation model is configured as follows:

[0065] Based on the hierarchical semantic index under each modality, the corresponding codewords are queried from the global codebook of the corresponding modality to obtain the codeword representation of each content object under each modality; the global codebook is updated as a trainable parameter of the content recommendation model during the training process;

[0066] Initialize a collaborative ID embedding representation for each content object, and fuse the codeword representations under each modality based on the collaborative ID embedding representation to generate a fused embedding representation for each content object;

[0067] Based on the fused embedding representation of each content object before the current position in the historical behavior sequence, the preference representation of the sample user at the current position is extracted, and a predicted score for the candidate content object for the current position is generated based on the preference representation.

[0068] The present invention provides a content recommendation model training method based on multimodal semantic collaboration. By constructing a global codebook as the trainable parameters of the model and jointly optimizing and updating it during end-to-end training, the global codebook can dynamically evolve according to user interaction behavior, thus solving the representation conflict problem that a fixed semantic codebook cannot distinguish content objects sharing the same semantic ID sequence in an algebraic sense. By dynamically fusing multimodal codeword representations guided by collaborative ID embedding, the model can adaptively emphasize or suppress information of specific modalities according to the characteristics of each content object, achieving dual fine-grained alignment of content semantics and collaborative signals. This method unifies semantic quantization encoding, dynamic fusion, and sequence prediction in an end-to-end framework for joint training, ensuring that the optimization goal of content representation is consistent with the recommendation task goal, avoiding the accumulation of biases in non-end-to-end solutions. Thus, in the inference stage, only codewords need to be retrieved from the codebook based on the semantic index, completing the computationally intensive multimodal content encoding offline, significantly reducing online inference latency.

[0069] The training process of the content recommendation model will be explained in detail below.

[0070] In this embodiment, music is used as an example for explanation. The music recommendation platform is configured with the following features: Figure 2 The content recommendation model shown has a music recommendation platform that maintains a user set U and a track set I. User set U includes multiple registered users of the music recommendation platform, and track set I includes tracks interacted with by each user in user set U over a past period. For each track... By randomly initializing a learnable dimensional vector as its cooperative ID embedding representation Simultaneously extract the music tracks. Content features across various modalities are extracted, such as text (lyrics), audio (melody, rhythm), and visual (cover image) features, to obtain multimodal content features. For users... Collect their positive interaction records to build user profiles. Historical Behavioral Sequence ,in .

[0071] The recommendation objective of the content recommendation model of this invention is to predict user preferences from the set of tracks I. With the target track The probability of a positive interaction occurring .

[0072] To construct tracks For hierarchical semantic indexing, this embodiment employs the Residual Quantization K-means (RQ-Kmeans) algorithm. For any modality... Content features in this modality ,make Iterative execution layer by layer:

[0073] =K-means( ), (1)

[0074] Among them, K-means ( ) represents the set of residual vectors for the j-th layer. Perform K-means clustering, forming k clusters, and return a set of the k cluster centers. , That is, the k codeword prototypes of the codebook table at this level, where k is the size of the codeword table at each level; This represents the nearest neighbor codeword retrieval operation, i.e., the operation on the residual vector set. Each vector in the first... Layer Code Table In the process, retrieve the cluster center with the closest Euclidean distance and output the vector of that center; Represents text modality, Indicates audio modality, Indicates visual modality; any instance of a superscript indicates a visual modality. The parameters all indicate that the same operation is performed for each mode.

[0075] After obtaining the initial values ​​of each layer of the codebook table, for each track... Allocate semantic indexes for each layer In this way, the music can be obtained. Hierarchical semantic indexes in various modalities The learnable codebook table corresponding to each layer We will jointly optimize it in subsequent training.

[0076] After constructing the hierarchical semantic index for each track, the learnable codebook table for each layer is used as a basis. The corresponding codeword is retrieved from the matrix and then projected through the matrix. Mapping to a unified dimension , obtain the music Codeword representation in each modality .

[0077] For each modality, based on the collaborative ID embedding representation and the codeword representation of each content object, the intramodal semantic embedding representation of each content object in each modality is obtained; the modality weight of each modality is generated based on the collaborative ID embedding representation of each content object, and the intramodal semantic embedding representation of each modality is weighted and concatenated according to the modality weight, and then a multimodal content representation is obtained through linear projection; the interaction frequency of each content object is obtained, and the fused embedding representation is obtained based on the interaction frequency, the multimodal content representation, and the collaborative ID embedding representation.

[0078] First, using the Hierarchical Intra-modal Semantic Fusion (HISF) mechanism, guided by the collaborative ID embedding of tracks, different levels of the global codebook are dynamically reweighted within each modality to generate track-specific intra-modal semantic embedding representations, thereby alleviating semantic ID conflicts.

[0079] In this embodiment, the collaborative ID embedding representation of each content object is input into a multilayer perceptron. After activation function and Softmax normalization, the attention weight values ​​of each layer are obtained. The codeword representations of the corresponding layers are weighted and summed according to the attention weight values ​​of each layer to obtain the intramodal semantic embedding representation of each content object in each modality.

[0080] like Figure 3 As shown, for the track and various modes , by music Collaborative ID Embedding Representation As input, the signal is processed through a two-layer perceptron (MLP) to generate attention weights for each layer:

[0081] (2)

[0082] in, , For learnable matrices, It is the ReLU activation function. For hidden layer dimensions, This represents the attention weight value of the j-th layer.

[0083] For the tracks In each mode The codeword representations below are weighted and summed to obtain the track. In each mode The following intramodal semantic embedding representation:

[0084] (3)

[0085] The core of this invention lies in the fact that the attention weight values ​​at each level are dynamically generated by the collaborative ID embedding representation, rather than being fixed. Therefore, even if two songs have the exact same semantic ID sequence, as long as their collaborative ID embeddings are different, the generated attention weight values ​​will be different, resulting in different intramodal semantic embedding representations, thereby resolving semantic ID conflicts and enhancing the discriminative ability of the song representations.

[0086] Then, based on the Cross-modal Dynamic Fusion (CMDF) mechanism, the tracks... Collaborative ID Embedding Representation As a condition, importance weights for different modalities are adaptively learned through an attention mechanism, and multimodal content representations for each content object are generated accordingly. .

[0087] This embodiment describes each track. Collaborative ID Embedding Representation First, normalized modal weights are generated through linear transformation and softmax operation:

[0088] (4)

[0089] in, The weight matrix is ​​the linear transformation matrix. In this embodiment, the modal number is... ; Representing modes The corresponding modal weights.

[0090] In this embodiment, the modal weights depend only on This avoids deviations caused by splicing modal embedding.

[0091] It is a learnable bias vector in the linear transformation of modal weights, with dimension . .

[0092] Learnable bias vector With weight matrix Together, they form a complete affine transformation structure, whose core function is to introduce learnable prior bias constraints for different modalities, allowing the weight distribution of each modality to be flexibly initialized in the early stages of model training, thereby improving the adaptive capability of multimodal fusion.

[0093] Weighting of intramodal semantic embedding representations:

[0094] (5)

[0095] in, This represents the weighted embedding representation of each modality.

[0096] The weighted embedding vectors are concatenated along the feature dimension and integrated into a multimodal content representation through linear projection. :

[0097] (6)

[0098] in For the projection matrix, "‖" indicates the splicing operation. Weighted embedding representations for text modalities Weighted embedding representation of audio modalities Weighted embedding representation for visual modalities; Learnable bias vectors for representing multimodal content projection layers, and projection matrix When used in conjunction with other technologies, the core function is to uniformly map the concatenated multimodal weighted embedding representation to a dimension of [dimensional value missing]. A standardized representation space is used to achieve multimodal feature dimension alignment.

[0099] This invention achieves dynamic modal fusion at the track level, which can adaptively emphasize or suppress specific modalities according to the characteristics of the track.

[0100] Next, Semantic-Collaborative Joint Modeling (SCJM) is used to dynamically generate a fusion embedding representation of collaborative ID embedding representation and content representation based on the interaction frequency of each track.

[0101] This embodiment counts the interaction frequency of each track in the training sample set. Calculate its normalized logarithmic frequency. :

[0102] (7)

[0103] Normalized logarithmic frequency reflects the popularity of a track.

[0104] It is worth noting that the base of the log function in the embodiments of the present invention is uniformly 2.

[0105] Through a small embedded network The frequency embedding is converted and then input into a two-layer MLP gated network. In the middle, combined with temperature coefficient The softmax function outputs a two-dimensional weight vector:

[0106] (8)

[0107] in, The gating coefficient, and Represent the fusion weights of the collaborative ID embedding representation and the content representation, respectively, satisfying... .

[0108] It is the temperature coefficient, a positive scalar hyperparameter used to control the smoothness / sharpening of the softmax output: The larger the weight, the smoother the transition. The smaller the value, the closer it is to one-hot encoding, which makes the allocation of collaboration / content weights adjustable and more stable.

[0109] For long-tail tracks with sparse interactions, the model will automatically increase the content weight. This reduces the impact of undertrained collaborative ID embedding representations, thereby mitigating popularity bias.

[0110] The collaborative ID embedding representation is weighted according to the collaborative weight, and the multimodal content representation is weighted according to the content weight. The weighted collaborative ID embedding representation and the weighted multimodal content representation are concatenated, and a linear projection is performed on the concatenated vector to generate a fused embedding representation for each content object. :

[0111] (9)

[0112] in, It is a learnable projection matrix.

[0113] The fusion embedding representation in this embodiment The use of learnable matrices instead of simple addition is to enable the model to capture richer interactions between co-signals and content semantics.

[0114] For sample users Historical Behavioral Sequence The fusion of various tracks is embedded in the representation. As a track representation, it is input into a sequence model composed of multiple stacked Transformer networks. The model employs a causal masking mechanism to ensure that the p-th step can only access the previous p tracks, predicting the next track in an autoregressive manner.

[0115] Let the preference representation at step p be... (Usually, the output of the corresponding position in the last layer is taken). For any candidate track in track set I. In this embodiment, a frequency-weighted hybrid scoring function is used to calculate candidate tracks. Predicted score:

[0116] (10)

[0117] in, To balance hyperparameters, For learnable collaborative weights; the second term in the formula is obtained by explicitly adding the dot product of the collaborative ID embedding representation and multiplying it by the collaborative weights. This strengthens the role of collaborative signals in the final ranking, especially assigning higher collaborative confidence to popular tracks.

[0118] During the training phase, an in-batch negative sampling strategy is adopted:

[0119] For each positive sample Treat all other tracks in this batch as negative samples and calculate the cross-entropy loss. :

[0120] (11)

[0121] Where S is the set of all positive sample pairs (current position and its actual interactive track), For each time step p, the actual interactive track is represented, and N is the total number of interactions. This is a set of indices for all candidate tracks in the current batch.

[0122] This embodiment minimizes... The model learns to align user preferences with representations of real-world interactive tracks.

[0123] This application also provides a method for recommending digital content services based on multimodal semantic collaboration.

[0124] Figure 4 This is a flowchart illustrating an exemplary embodiment of the present invention of a digital content service recommendation method based on multimodal semantic collaboration, as shown below. Figure 4 As shown, the digital content service recommendation method is executed by a content recommendation platform, which maintains a set of content objects; the digital content service recommendation method includes the following steps:

[0125] Step S410: Obtain the target user's historical behavior sequence, which includes at least one content object that the target user has interacted with.

[0126] Step S420: Input the historical behavior sequence into the trained content recommendation model, and obtain the predicted score of the candidate content object in the content object set for the current position in the historical behavior sequence.

[0127] The content recommendation model described above can be obtained through the relevant embodiments described above, and will not be repeated here.

[0128] Step S430: Generate a list of content objects recommended to the target user based on the predicted scores of the candidate content objects.

[0129] The present invention also conducted the following experiments:

[0130] To verify the effectiveness of the content recommendation model of this invention, a comprehensive offline evaluation was conducted on three publicly available multimodal datasets: Music4all-onion, 30Music, and Pixel1M. All experiments employed a full-ranking evaluation protocol, with Recall@K and NDCG@K (K=5, 10) as the evaluation metrics. The experiments followed a rigorous comparison procedure, with all benchmark models having a batch size of 128, a learning rate of 0.001, and a codebook layer number L of 3.

[0131] First, comparative experiments with existing technologies.

[0132] The content recommendation model of this invention was compared with representative baselines and related multimodal recommendation models such as SASRec, STAMP, Mamba4Rec, LRURec, GRID, PEIA, LEMON, M3Rec, and HM4SR. The experimental results are shown in Table 1. A brief description of the above baseline models and related multimodal recommendation models is as follows:

[0133] SASRec (Self-Attentive Sequential Recommendation): This model uses a self-attention mechanism to capture long-term interest patterns from the user's historical interaction ID sequence, but it only relies on discrete item IDs and cannot utilize rich multimodal content such as lyrics and audio.

[0134] STAMP (Short-Term Attention / Memory Priority): Designed for conversational recommendation, it focuses on characterizing users' short-term interests through a memory-priority mechanism, but it is prone to interest drift in long-sequence music scenarios.

[0135] Mamba4Rec (Mamba for Recommendation): It pioneered the introduction of a selective state-space model into recommendation tasks, efficiently modeling long sequences with linear complexity.

[0136] LRURec (Linear Recurrent Unit for Recommendation): This model balances the expressive power of the Transformer with the inference efficiency of the recurrent neural network by utilizing linear recurrent units.

[0137] GRID (Generative Recommendation with Semantic IDs): A generative recommendation framework that standardizes the use of semantic IDs. In the experiment, its official open-source implementation was used as the underlying framework, and the TIGER model was instantiated on it to ensure fair and reproducible comparison with the present invention which uses the same semantic ID generation process.

[0138] PEIA (Personality and Emotion Integrated Attentive Model): This model uses hierarchical attention to weight the feature interactions between user traits and music attributes, thus modeling user personality and emotions to achieve music recommendation.

[0139] LEMON (LLM-based Emotion-aware music recommendation): It extracts emotional semantics from lyrics using a large language model and models users' short-term emotions and long-term preferences through a dual temporal encoder to achieve emotion-aware music recommendation.

[0140] M3Rec (Mamba Multi-Modal Recommendation): Combines Mamba with modality hybrid expert heads to process multimodal data; while it uses independent experts for different modalities, this invention can more closely capture cross-modal and cross-signal correlations, achieving consistent alignment between collaborative signals and content information.

[0141] HM4SR (Hierarchical Multimodal Mixture-of-Experts for Sequential Recommendation): A hierarchical time-aware hybrid expert framework for temporal interest transfer; it excels at temporal modeling, while this invention generates richer item representations through end-to-end joint optimization, exhibiting stronger generalization ability on items with different popularity levels.

[0142] Table 1 - Performance comparison of the present invention and existing mainstream methods on multimodal datasets.

[0143]

[0144] Results Analysis: This invention consistently outperforms all baseline models across all three datasets. On the most representative NDCG@10 metric, compared to the strongest baseline model, the content recommendation model of this invention achieves significant improvements of 10.37%, 9.21%, and 6.39% on Music4all-onion, 30Music, and Pixel1M, respectively, demonstrating the effectiveness of end-to-end dynamic alignment of multimodal semantics and collaborative signals.

[0145] Second, ablation experiments on key modules.

[0146] To verify the contributions of the three core components, HISF, CMDF, and SCJM, ablation experiments were conducted, and the results are shown in Table 2.

[0147] Table 2 - Ablation Experiment Results of Key Modules

[0148]

[0149] Results Analysis: Removing any core component led to a performance decrease, confirming the crucial role of each component. In particular, removing the HISF component resulted in a significant drop in all metrics, validating the importance of ID-guided dynamic reweighting at the codebook level for resolving semantic ID conflicts and improving semantic distinguishability.

[0150] Third, long-tail and cold start analysis.

[0151] To verify the effectiveness of SCJM, this experiment divided the tracks in the Music4all-onion dataset into three buckets: Head, Mid, and Tail, based on the number of training interactions, and reported the evaluation results within each bucket, as shown in Table 3.

[0152] Table 3 - Long-tail / Cold Start Performance Analysis on Music4all-onion

[0153]

[0154] Results analysis: From Head to Tail, the performance gain of this invention relative to the strongest baseline shows a monotonically increasing trend (Recall@10 increased from 6.06% to 12.73%), which is consistent with the theoretical expectation of SCJM: the mechanism redistributes the gradient signal to the long tail tracks, thereby generating a huge super-proportional gain on the long tail tracks, proving the effectiveness of this invention in alleviating popularity bias and improving cold start characterization ability.

[0155] Figure 5 This is a block diagram illustrating an electronic device according to an exemplary embodiment of the present invention. Please refer to... Figure 5At the hardware level, the device includes a processor 510, an internal bus 520, a network interface 530, memory 540, a hardware acceleration device 550, and non-volatile memory 560, and may also include other hardware required for its functions. One or more embodiments of the present invention can be implemented in software, for example, the processor 510 reads the corresponding computer program from the non-volatile memory 560 into the memory 540 and then runs it. Of course, in addition to software implementation, one or more embodiments of the present invention do not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution subject of the above processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0156] Figure 6 This is a block diagram illustrating an exemplary embodiment of the present invention of a content recommendation model training device based on multimodal semantic collaboration. The content recommendation model training device can be applied to, for example... Figure 5 The present invention is implemented in the electronic device shown. The content recommendation model training device is executed by a content recommendation platform, which maintains a set of content objects.

[0157] like Figure 6 As shown, the content recommendation model training device in this embodiment includes: a data preparation unit 610, a model training unit 620, and a parameter update unit 630, wherein:

[0158] The data preparation unit 610 is used to acquire a training sample set, which includes a historical behavior sequence of at least one sample user. The historical behavior sequence includes at least one content object that the sample user has interacted with, and each content object carries content features under each modality.

[0159] The model training unit 620 is used to input the training samples into the content recommendation model to be trained, and to obtain the predicted score of the candidate content object in the content object set based on the current position in the historical behavior sequence.

[0160] The parameter update unit 630 is used to calculate the training loss based on the difference between the actual interactive content object of each sample user at the current location and the predicted score, and update the trainable parameters of the content recommendation model according to the training loss.

[0161] In the initialization phase, the content recommendation model performs residual quantization encoding on the multimodal content features of all content objects in the content object set to generate initial values ​​of the global codebook under each modality, and assigns hierarchical semantic indexes to each content object under each modality based on the initial values ​​of the global codebook.

[0162] During model training, the content recommendation model is configured as follows:

[0163] Based on the hierarchical semantic index under each modality, the corresponding codewords are queried from the global codebook of the corresponding modality to obtain the codeword representation of each content object under each modality; the global codebook is updated as a trainable parameter of the content recommendation model during the training process;

[0164] Initialize a collaborative ID embedding representation for each content object, and fuse the codeword representations under each modality based on the collaborative ID embedding representation to generate a fused embedding representation for each content object;

[0165] Based on the fused embedding representation of each content object before the current position in the historical behavior sequence, the preference representation of the sample user at the current position is extracted, and a predicted score for the candidate content object for the current position is generated based on the preference representation.

[0166] Figure 7 This is a block diagram illustrating an exemplary embodiment of the present invention of a digital content service recommendation device based on multimodal semantic collaboration. The digital content service recommendation device can be applied to, for example... Figure 5 The electronic device shown implements the technical solution of the present invention. The digital content service recommendation device is executed by a content recommendation platform, which maintains a set of content objects.

[0167] like Figure 7 As shown, the digital content service recommendation device in this embodiment includes: a user data acquisition unit 710, a rating calculation unit 720, and a content recommendation unit 730, wherein:

[0168] User data acquisition unit 710 is used to acquire the historical behavior sequence of a target user, the historical behavior sequence including at least one content object that the target user has interacted with.

[0169] The scoring calculation unit 720 is used to input the historical behavior sequence into the trained content recommendation model, and obtain the predicted score of the candidate content object in the content object set based on the current position in the historical behavior sequence; the content recommendation model is trained based on the method described in the first aspect.

[0170] The content recommendation unit 730 is used to generate a list of content objects to be recommended to the target user based on the predicted rating of the candidate content objects.

[0171] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the present invention according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0172] Accordingly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any of the above embodiments.

[0173] Accordingly, embodiments of the present invention also provide a computer program product configured to perform the methods described in any of the above embodiments.

[0174] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.

[0175] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0176] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0177] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0178] While this specification contains numerous specific implementation details, these should not be construed as limiting the scope of any invention or the scope of the claims, but rather are primarily intended to describe features of specific embodiments of a particular invention. Certain features described in the various embodiments herein may also be implemented in combination in a single embodiment. Conversely, various features described in a single embodiment may also be implemented separately in various embodiments or in any suitable sub-combination. Furthermore, while features may function in certain combinations as described above and even initially claimed in this way, one or more features from a claimed combination may be removed from that combination in some cases, and a claimed combination may refer to a sub-combination or a variation thereof.

[0179] Similarly, although the operations are depicted in a specific order in the accompanying drawings, this should not be construed as requiring these operations to be performed in the specific order shown or sequentially, or requiring all illustrated operations to be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the above embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0180] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired result. Furthermore, the processes depicted in the drawings are not necessarily shown in a specific order or sequence to achieve the desired result. In some implementations, multitasking and parallel processing may be advantageous.

[0181] It should be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0182] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for training a content recommendation model based on multimodal semantic collaboration, characterized in that, The method is executed by a content recommendation platform, which maintains a collection of content objects; the method includes: Obtain a training sample set, which includes a historical behavior sequence of at least one sample user, the historical behavior sequence including at least one content object that the sample user has interacted with, and each content object carrying content features under each modality; The training samples are input into the content recommendation model to be trained, and the predicted score of the candidate content object in the content object set is obtained based on the current position in the historical behavior sequence. Based on the difference between the actual interactive content objects of each sample user at the current location and the predicted rating, the training loss is calculated, and the trainable parameters of the content recommendation model are updated according to the training loss. During model training, the content recommendation model obtains hierarchical semantic indices for each content object in each modality based on the global codebook for each modality. It then queries the corresponding codewords from the global codebook for the corresponding modality based on these hierarchical semantic indices, maps them to a unified dimension using a projection matrix, and obtains the codeword representations for each content object in each modality. It also initializes learnable vectors for each content object as its collaborative ID embedding representation, and fuses these codeword representations from each modality based on the collaborative ID embedding representation to generate a fused embedding representation for each content object. The fused embedding representations of each content object before the current position in the historical behavior sequence are input into a sequence model composed of multi-layered stacked Transformer networks. The output of the last layer of the sequence model at the current position is determined as the preference representation of the sample user at the current position, and a predicted rating for candidate content objects at the current position is generated based on this preference representation. The global codebook, as a trainable parameter of the content recommendation model, is updated during training.

2. The method according to claim 1, characterized in that, In the initialization phase, the content recommendation model performs residual quantization encoding on the multimodal content features of all content objects in the content object set to generate initial values ​​for the global codebook under each modality, and assigns hierarchical semantic indexes for each content object under each modality based on the initial values ​​of the global codebook.

3. The method according to claim 2, characterized in that, The global codebook contains an L-layer codebook table for each modality, where L is a preset positive integer value greater than 1; The step of performing residual quantization encoding on the multimodal content features of all content objects in the content object set to generate initial values ​​for the global codebook under each modality includes: For any modality, the content features of all content objects in that modality are used as the first layer of residual vector set; Starting from the first layer, perform the following operations on the residual vector set of the current layer, layer by layer: In the current layer, K-means clustering is performed on the residual vector set to obtain a preset number of cluster centers in the current layer. The preset number of cluster centers are used as the codebook table of the current layer, with each cluster center being a codeword. For each vector in the residual vector set, the nearest cluster center is found as its quantized representation through nearest neighbor retrieval. The difference between each vector and its quantized representation is used as the set of residual vectors for the next layer; The above operations are performed iteratively until the preset number of layers is reached, resulting in the codebook table for each layer.

4. The method according to claim 3, characterized in that, The initial value based on the global codebook is the hierarchical semantic index assigned to each content object under each modality, including: Calculate the distance between the content features of each content object and each codeword in the codebook table of each layer, and determine the index of the codeword closest to the content object in the codebook table of each layer as the semantic index of the content object in the current layer. The hierarchical semantic index of a content object is obtained based on the semantic index of each content object at each layer.

5. The method according to claim 1, characterized in that, The process of fusing the codeword representations under each modality based on the collaborative ID embedding representation to generate a fused embedding representation for each content object includes: For each modality, based on the collaborative ID embedding representation and the codeword representation of each content object, the intramodal semantic embedding representation of each content object in each modality is obtained; Based on the collaborative ID embedding representation of each content object, modal weights for each modality are generated. Then, the intramodal semantic embedding representations under each modality are weighted and concatenated according to the modal weights, and multimodal content representations are obtained through linear projection. The interaction frequency of each content object is obtained, and the fusion embedding representation is obtained based on the interaction frequency, the multimodal content representation, and the collaborative ID embedding representation.

6. The method according to claim 5, characterized in that, The step of obtaining the intra-modal semantic embedding representation of each content object in each modality based on the collaborative ID embedding representation and the codeword representation of each content object includes: The collaborative ID embedding representation of each content object is input into the multilayer perceptron, and after activation function and Softmax normalization, the attention weight values ​​of each layer are obtained. The codeword representations of each level are weighted and summed according to the attention weight values ​​of each level to obtain the intramodal semantic embedding representation of each content object in each modality.

7. The method according to claim 5, characterized in that, The mode weights of each mode are generated through the following steps: The modal weights of each modality are obtained by linear transformation and Softmax normalization of the collaborative ID embedding representation of each content object.

8. The method according to claim 5, characterized in that, The step of obtaining the fused embedding representation based on the interaction frequency, the multimodal content representation, and the collaborative ID embedding representation includes: The interaction frequency is mapped through an embedded network and a multilayer perceptron, and then outputs collaborative weights and content weights via a Softmax algorithm with a temperature coefficient. The collaborative ID embedding representation is weighted according to the collaborative weight, and the multimodal content representation is weighted according to the content weight. The weighted collaborative ID embedding representation and the weighted multimodal content representation are concatenated, and the concatenated vector is linearly projected to generate the fused embedding representation of each content object.

9. The method according to any one of claims 1 to 8, characterized in that, The content features under each modality include at least one of the following: text modality features, audio modality features, and visual modality features.

10. A digital content service recommendation method based on multimodal semantic collaboration, characterized in that, The method is executed by a content recommendation platform, which maintains a collection of content objects; the method includes: Obtain the historical behavior sequence of the target user, the historical behavior sequence including at least one content object that the target user has interacted with; The historical behavior sequence is input into the trained content recommendation model, and a predicted score for the candidate content object in the content object set is obtained based on the current position in the historical behavior sequence; the content recommendation model is trained based on the method of any one of claims 1 to 9. Based on the predicted scores of the candidate content objects, a list of content objects recommended to the target user is generated.

11. An electronic device, characterized in that, include: processor; as well as A computer-readable storage medium storing computer program instructions that, when executed by the processor, cause the processor to perform the method as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Media content recommendation model training method and device

    CN117217325A

  • Semantic quantification model training method and semantic identifier generation method and system

    CN122471087A