Abstract
Predicting human activities is important for improving recommender systems or analyzing social relationships among users. Those human activities are usually represented as multi-object relationships (e.g. user's tagging activities for items or user's tweeting activities at some locations). Since multi-object relationships are naturally represented as a tensor, tensor factorization is becoming more important for predicting users' possible activities. However, its prediction accuracy is weak for ambiguous and/or sparsely observed objects. Our solution, Semantic data Representation for Tensor Factorization (SRTF), tackles these problems by incorporating semantics into tensor factorization based on the following ideas: (1) It first links objects to vocabularies/taxonomies and resolves the ambiguity caused by objects that can be used for multiple purposes. (2) It then links objects to composite classes that merge classes in different kinds of vocabularies/taxonomies (e.g. classes in vocabularies for movie genres and those for directors) to avoid low prediction accuracy caused by rough-grained semantics. (3) It finally lifts sparsely observed objects into their classes to solve the sparsity problem for rarely observed objects. To the best of our knowledge, this is the first study that leverages semantics to inject expert knowledge into tensor factorization. Experiments show that SRTF achieves up to 10% higher accuracy (lower RMSE value) than state-of-the-art methods.
Introduction
Modern recommendation engines often deal with multi-dimensional relationships, such as (User, Item, Tag), which are naturally represented as tensors. While Tensor Factorization (TF) is a powerful tool for predicting user activities, it faces two significant hurdles: ambiguity and sparsity.
Ambiguity arises when a single term (e.g., "Rock") refers to multiple distinct entities, such as a music genre, a movie title, or an actor. Standard TF models treat these as the same entity, which muddles the latent features. Sparsity occurs in the "long tail" of datasets, where most items or tags have very few interactions. Without sufficient data points, TF cannot accurately learn the latent features of these sparse objects. Standard TF is often "blind" to the underlying meaning of these objects; SRTF aims to bridge this gap by integrating semantic web technologies with statistical machine learning.
The SRTF Framework
To address these challenges, we introduce Semantic data Representation for Tensor Factorization (SRTF). This method enhances the Bayesian Probabilistic Tensor Factorization (BPTF) framework by injecting external "expert knowledge" from Linked Open Data (LOD) into the tensor models.
The SRTF process involves two primary stages as shown in the figure above:
- Ambiguity Resolution and Semantic Granularity Refinement: Objects are linked to external vocabularies and taxonomies to resolve ambiguity and define precise semantic contexts.
- Sparsity Resolution via Tensor Decomposition: The augmented tensor, enriched with semantic priors, is factorized using Markov Chain Monte Carlo (MCMC) sampling to predict future user actions.
Semantic Strategies
SRTF employs three key strategies to refine the data representation before factorization:
- Entity Linking & Disambiguation: SRTF maps items and tags to specific instances in external knowledge bases like Freebase, DBPedia, and WordNet. It uses metadata similarity (e.g., comparing a movie's description to a DBPedia entry) to ensure entities are correctly identified.
- Composite Class Construction: To avoid "coarse" semantics where categories are too broad, SRTF creates fine-grained composite classes. For example, it might intersect "Genre: Action" with "Director: Michael Bay" to create a more precise semantic neighborhood.
- Semantic "Lifting" for Sparsity: This is the core innovation. For objects with few observations, SRTF "lifts" them to their parent class. During the factorization process, these sparse objects inherit a "semantic bias" from their class, allowing the model to make educated guesses based on the behavior of similar items.
Experimental Evaluation
The researchers evaluated SRTF on three diverse real-world datasets: MovieLens (linked to Freebase and WordNet), Yelp (using DBPedia to extract food-related phrases), and Last.fm (linked to music taxonomies).
Key Results
- Accuracy Boost: SRTF consistently outperformed BPTF and GCTF across all datasets. On MovieLens, it achieved a 10% lower Root Mean Square Error (RMSE) than the BPTF baseline.
- Robustness to Sparsity: Qualitative analysis showed that SRTF could accurately predict ratings for obscure movies by leveraging the fact that the user liked other high-quality movies in the same semantic category.
- Efficiency: Due to the initialization with semantic priors, the MCMC process converged faster than standard random initialization, while keeping computational complexity nearly identical to standard BPTF.
Conclusion and Future Work
SRTF demonstrates that injecting expert knowledge into tensor factorization significantly improves prediction accuracy, especially for ambiguous and sparse data. While the current model assumes a Gaussian distribution—ideal for star ratings—future work will explore Poisson-based models for consumption frequency data. Additionally, the use of Linked Open Data opens possibilities for cross-domain recommendations, such as suggesting music based on movie preferences.
Summary updated