Abstract
In social image platforms like Instagram and Pinterest, recommendation engines must navigate sparse user-item interaction matrices and complex social dynamics. This paper introduces HASC (Hierarchical Attentive Social Contextual recommendation), a framework that mimics human decision-making by dynamically weighing three key influences: a user's upload history, social circle influence, and admiration for specific image creators. By integrating visual content, artistic style, and social graphs through a two-layered hierarchical attention mechanism, HASC significantly outperforms traditional models, particularly in cold-start scenarios.
Introduction
Standard recommendation algorithms often rely on Collaborative Filtering (CF), which suffers from extreme data sparsity in large-scale social image platforms. While incorporating "side information" like social networks or image pixels can mitigate this, most existing models use fixed weights to combine these signals. This "one-size-fits-all" approach fails to capture individual nuances—for instance, distinguishing between a user who prioritizes visual style and one who follows social trends. The HASC model addresses this by learning personalized priorities automatically through an attentive framework.
The HASC Framework
The HASC model treats recommendation as a hierarchical decision process, identifying three primary "aspects" that drive user preference: upload history (visual consistency), social influence (peer preferences), and owner admiration (creator loyalty).
Hierarchical Attention Mechanism
Instead of simple feature concatenation, HASC employs two levels of attention:
- Element-level Attention: Operates within an aspect (e.g., social influence) to determine which specific neighbor or past upload is most relevant to the current target image.
- Aspect-level Attention: Operates at the top layer to determine which of the three aspects (Upload, Social, or Owner) should dominate the decision for a specific user-item pair.
Heterogeneous Data Embeddings
To represent the complex data involved, the authors utilize specialized embedding techniques for visual and social features.
- Visual Content: Extracted from the final fully connected layer of a pre-trained VGG19 network.
- Visual Style: Captured using Gram matrices derived from VGG19 feature maps. This represents the "texture" and aesthetic of an image, allowing the model to distinguish between subject matter (e.g., a cat) and artistic style (e.g., vintage filter).
- Social Structure: Encoded into latent vectors using DeepWalk, a graph embedding technique that captures the topology of the social network.
Experimental Evaluation
The model was evaluated on two Flickr datasets: F_S (Small/Dense: 4,418 users) and F_L (Large/Sparse: 8,358 users). These datasets are unique in providing the "triad" of social data: following relationships, upload history, and like/rating behavior.
Key Results
- Performance Gains: HASC consistently outperformed baselines such as BPR (Bayesian Personalized Ranking) and VBPR (Visual BPR), showing an average 20% improvement over standard BPR.
- Cold-Start Robustness: The model excels when data is scarce. For users with fewer than four ratings, HASC improved recommendation accuracy by over 35% compared to traditional models.
- Interpretability: By analyzing the hierarchical attention weights, the model provides an "explanation" for its recommendations—for example, indicating that a specific image was suggested because it aligns with the user's established artistic style in their upload history.
Conclusion
HASC demonstrates that modeling the hierarchical nature of social influence and visual preference leads to more accurate and explainable recommendations. While the current model is computationally more intensive than simple matrix factorization, its ability to handle sparse data and provide interpretable outputs marks a significant step forward for social image platforms. Future work will focus on incorporating temporal dynamics to account for evolving user tastes.
Summary updated