Abstract
Knowledge Graph-based Recommendation Systems (KGRS) leverage rich contextual data by linking items to real-world entities. However, these systems often face a "knowledge explosion," where massive, redundant graphs introduce noise and computational overhead. We introduce KGTrimmer, a novel framework designed to "slim down" knowledge graphs (KGs) for recommendation tasks. By evaluating node importance through both collective user behavior and holistic graph properties, KGTrimmer can prune up to 90% of a KG's triplets. This process significantly boosts training efficiency—up to 12.2x on large datasets—while maintaining or even enhancing recommendation accuracy.
Introduction: The Challenge of Knowledge Explosion
Modern KGRS integrate external knowledge to better model user preferences. While beneficial, much of the information in a general-purpose KG is "valueless" for specific recommendation tasks. A primary example is the "English Node" paradox: a node representing a common attribute like "Language: English" may be connected to nearly every item in a database. While factually accurate, such high-degree nodes lack discriminative power, failing to explain why a user might prefer one movie over another.
Existing KG thinning methods often rely on summarization (merging nodes), which obscures interpretability, or structural sparsification, which ignores the vital "collaborative signals" found in user-item interactions. KGTrimmer addresses this by pruning KGs specifically for the recommendation task, ensuring that the "signal" is preserved amidst the noise.
The KGTrimmer Framework
KGTrimmer operates through three integrated components designed to identify and retain only the most informative triplets.
1. Dual-View Importance Evaluator
The core of the pruning logic lies in evaluating entity importance from two distinct perspectives:
- Collective View: This view leverages "collective intelligence" by analyzing user-item interaction paths. Entities frequently linked to items that users interact with are deemed highly important. To maintain scalability, a Monte Carlo sampling strategy is employed on the user-entity matrix.
- Holistic View: This view utilizes a learnable global mask to identify nodes that are inherently generic or valueless across the entire system, independent of specific user paths.
2. Importance-Aware Graph Neural Network (GNN)
Unlike standard GNNs that treat all neighbors equally, KGTrimmer’s GNN weights information flow based on the importance scores derived from the dual-view evaluator. This allows the model to dynamically learn which graph components contribute most to the recommendation objective during the training phase.
3. Pruned KG Generation
Post-training, the model binarizes the importance scores using either a threshold or percentile-based selection. Low-value triplets are permanently removed, resulting in a lightweight, robust graph optimized for downstream recommendation tasks.
Experimental Evaluation
The researchers evaluated KGTrimmer on three diverse, real-world datasets: Amazon-book (2.5M triplets), Last-FM (464k triplets), and Alibaba-Fashion (279k triplets). All datasets followed a "10-core" preprocessing setting to ensure data quality.
Key Results
- Efficiency Gains: KGTrimmer achieved a 12.2x increase in training efficiency on the Amazon-book dataset by significantly reducing the graph size.
- Extreme Pruning: The framework successfully removed up to 90% of triplets in the Amazon KG with negligible performance loss. In the Alibaba-Fashion dataset, pruning actually improved performance by eliminating noisy connections.
- Performance Superiority: KGTrimmer consistently outperformed established baselines such as KGist, CAGED, and MoG across standard metrics (Recall@20 and NDCG@20).
- Robustness: The resulting pruned graphs proved to be more stable, demonstrating that the framework effectively isolates "essential" knowledge.
Discussion and Future Work
KGTrimmer demonstrates that massive redundancy exists in current recommendation KGs and that collaborative filtering signals are essential for effective pruning. However, several avenues for future research remain:
- Path-Based Pruning: While node-level pruning is effective, specific paths through the graph may hold unique importance not fully captured by individual node scores.
- Temporal Dynamics: User interests evolve. Future iterations could incorporate Temporal Knowledge Graph Pruning to adapt to shifting trends and the changing relevance of specific entities.
- Initial Overhead: Although the final graph is highly efficient, the initial importance-aware training phase is resource-intensive. Future work will focus on developing even faster "one-hour" pruning frameworks.
Summary updated