Abstract
Session-based Recommendation (SBR) is frequently challenged by data sparsity, as models must predict user intent from short, anonymous interaction sequences. While item attributes offer a potential solution to this sparsity, existing methods often struggle with the semantic gap between attribute characteristics and collaborative behavior, or they are restricted to specific model architectures. This paper introduces AttrGAU (Attributed Graph Networks with Alignment and Uniformity Constraints), a model-agnostic framework designed to integrate item attributes into existing SBR models. By utilizing a bipartite graph structure and applying contrastive alignment and uniformity constraints, AttrGAU bridges the gap between attribute-level information and user behavior, significantly enhancing recommendation performance and robustness.
Introduction
In the realm of e-commerce and digital services, Session-based Recommendation (SBR) is critical for providing personalized experiences without requiring long-term user profiles. However, the inherent brevity of sessions leads to a significant data sparsity problem. Modeling of Item Attributes (MIA) has emerged as a strategy to mitigate this, yet many current MIA approaches are tightly coupled with specific neural architectures, limiting their generalizability. Furthermore, there is often a "semantic gap"—a discrepancy between the distribution of item attributes (e.g., brand, category) and the actual collaborative patterns observed in user sessions.
To address these challenges, the AttrGAU framework provides a "plug-and-play" solution that can be integrated with various state-of-the-art SBR backbones. It focuses on refining item representations through attribute-aware graph modeling and synchronizing these representations with behavioral data using specialized contrastive learning constraints.
Methodology
The AttrGAU framework is structured into three primary components designed to enhance item and session representations.
1. Attribute-aware Graph Modeling
The framework organizes item-attribute relationships into a Bipartite Attributed Graph (BAG). In this structure, items and specific "leaf" attributes (e.g., a specific brand name) serve as nodes, while "parent" attributes (e.g., the category "Brand") define the edges. To process this graph, the authors employ a custom graph convolution (AttrGC) to refine item embeddings. To prevent the common issue of "over-smoothing" in deep graph networks—where node representations become indistinguishable—a cross-layer contrast regularization is applied, ensuring that the unique features of items are preserved across layers.
2. Session Representation Learning
To maintain model-agnosticism, AttrGAU decouples existing SBR models into two distinct phases: a Graph Neural Network (GNN) for updating node embeddings and an attention-based readout for generating session summaries. The framework utilizes dual embeddings, processing raw interaction data and attribute-enriched data in parallel to capture both behavioral and semantic nuances.
3. Alignment and Uniformity Constraints
The core innovation of AttrGAU lies in its use of Alignment and Uniformity constraints to bridge the semantic gap:
- Alignment: This constraint forces the model to ensure that representations of the same session are similar, whether they are derived from behavioral sequences or item attributes.
- Uniformity: This ensures that representations of different sessions are distributed evenly across the feature space. This prevents "representation collapse," where the model might otherwise assign similar embeddings to unrelated sessions.
Experimental Evaluation
The framework was evaluated using three benchmark e-commerce datasets: Dressipi (RecSys Challenge 2022), Diginetica (CIKM Cup 2016), and Retailrocket. AttrGAU was tested as an enhancement for three popular SBR backbones: SR-GNN, GC-SAN, and TAGNN.
Key Performance Metrics
AttrGAU-enhanced models consistently outperformed their vanilla counterparts. On average, the framework provided:
- 5.35% improvement in HR@5 (Hit Rate)
- 7.54% improvement in MRR@5 (Mean Reciprocal Rank)
Robustness to Data Sparsity and Noise
One of the most significant findings was AttrGAU's performance in data-constrained environments. In a stress test using only 25% of the training data on the Dressipi dataset, the AttrGAU-enhanced SR-GNN showed a 46.3% improvement in MRR@5 over the standard version. Additionally, the model demonstrated superior resistance to noise; when random items were injected into sessions, the attribute-aware embeddings maintained higher stability compared to traditional models.
Discussion and Insights
The success of AttrGAU stems from its ability to treat the semantic gap as a distribution discrepancy problem. By forcing alignment between attribute-based and behavior-based representations, the model effectively uses attribute knowledge to "fill in the blanks" when user behavior data is sparse. Preliminary experiments confirmed that users frequently interact with items sharing similar attributes within a single session, validating the framework's foundational assumption.
Conclusion
AttrGAU represents a significant step forward in making attribute-aware recommendation more accessible and effective. By providing a model-agnostic framework that leverages bipartite graph modeling and contrastive constraints, it successfully mitigates the data sparsity and semantic gap issues prevalent in session-based recommendation. Future work may involve automating the tuning of hyperparameters and extending the BAG structure to accommodate more complex, hierarchical attribute systems.
Summary updated