Disentangled HAN: GNN Recommender for HIN
- The paper introduces a novel graph neural recommendation method that explicitly disentangles node representations into semantically independent aspect subspaces.
- It employs an EM-style propagation layer and attention mechanisms to aggregate intra- and inter-relation signals, isolating diverse collaborative factors like popularity and social influence.
- Empirical results on datasets such as Yelp, Amazon-Electronics, and MovieLens-HetRec demonstrate significant improvements in precision, recall, and interpretability over conventional methods.
Disentangled HAN (DisenHAN) is a graph neural recommendation architecture for heterogeneous information networks (HINs) that explicitly disentangles node representations into semantically independent aspect subspaces, learning aspect-wise propagation weights for each meta-relation. Compared to conventional heterogeneous graph neural networks, DisenHAN enables both higher accuracy and greater interpretability by identifying the main aspect to which each meta-relation contributes in the user/item embedding, thus isolating collaborative signals specific to popularity, category-preference, brand-loyalty, social influence, and related latent factors (Wang et al., 2021).
1. Problem Formulation and Notation
DisenHAN operates on an HIN represented as , where is a set of nodes and is a set of edges. Each node is assigned a type via ( is the set of node types, e.g., User, Item, Brand, Category), and each edge is assigned a meta-relation via ( is the set of edge types, e.g., interacts, belongs_to, friend_of).
The main entities of interest are sets of users and items 0; the observed user-item implicit feedback is denoted 1. The central goal is to learn a scoring function
2
that ranks items 3 for each user 4 using disentangled (aspect-wise) representations.
2. Disentangled Embedding Representation
Each node 5 embeds into 6 latent “channels” (aspects), separating sources of collaborative signal into independent subspaces. Given node features 7, the projection for channel 8 at layer 9 is
0
where 1 is type- and channel-specific, and 2 is an activation (e.g., ReLU). This normalization confines each channel’s embedding to a unit hypersphere, supporting intra- and inter-node compatibility learning.
Disentangling these embeddings is critical for robustness and for interpretability, as it isolates how much each meta-relation contributes to particular aspects (e.g., distinguishing social and category influences).
3. Meta-Relation Decomposition
DisenHAN leverages meta-relations at the edge level, not extended meta-paths. Each edge 3 is labeled as 4. For target node 5, the set 6 contains all 7 such that 8 is of meta-relation 9.
Rather than building an explicit adjacency tensor 0, DisenHAN handles edges grouped by relation type. This design supports multi-layer composition of meta-relational evidence, enabling automatic construction of higher-order semantic signals through propagation, avoiding hand-crafted meta-path enumeration.
4. Disentangled Embedding Propagation Layer
Each layer propagates aspect-specific signals in two phases: intra-relation (within one meta-relation) and inter-relation (across meta-relations), using learnable attention and an EM-style clustering approach for aspect assignment.
Intra-Relation Aggregation
Attention weights are computed for channel 1 from 2 to neighbor 3, per meta-relation 4: 5 where 6 is a relation-specific vector, and 7 denotes concatenation.
A prior aspect weight 8 modulates the aggregation: 9 Softmax normalization yields attention 0, and neighbor feature aggregation per channel is
1
Inter-Relation Aggregation
Relation-channel scores are computed per channel 2: 3 Aspect-assignments are normalized: 4 The updated channel embedding (with self-loop) is
5
This EM-style process aligns each meta-relation with a dominant aspect assignment, promoting stable, semantically meaningful clustering of relational signal into the disentangled channels.
5. Multi-Layer Architecture and Aspect-wise Collaborative Filtering
By stacking 6 such disentangled propagation layers, each node’s channels 7 can integrate 8-hop information with increasing semantic abstraction (often decreasing channel count by layer: 9).
The final user-item (aspect-wise) matching is
0
Each aspect channel thereby contributes additively to the total affinity score, enforcing explicit aspect attribution in the recommendation.
6. Training Objective
For top-1 recommendation, DisenHAN uses binary cross-entropy loss with negative sampling. Probabilities are computed as 2. The training loss is
3
where 4 is the set of observed positives, 5 are sampled negatives, and 6 regularizes all parameters 7. Mini-batch Adam is used for optimization.
7. Empirical Results and Interpretability
DisenHAN was benchmarked on Yelp, Amazon-Electronics, and MovieLens-HetRec datasets, compared to classical CF (BPR-MF, NeuMF), HIN models with fixed meta-paths (FMG8, MCRec, NeuACF), and GNNs without disentanglement (GC-MC, NGCF) or with fixed meta-paths (HAN) (Wang et al., 2021). DisenHAN achieved the highest Prec@10, Recall@10, and NDCG@10 on all datasets, exceeding the best prior methods by 9–0 in relative improvement.
Its advantage is most pronounced in sparse regimes (cold-start conditions with 1–2 observed interactions), validating that aspect-wise disentanglement of propagation delivers more robust collaborative signals. Ablation studies reveal that failing to disentangle (3) significantly degrades performance, and an aspect count 4 is optimal; excessive channels lead to overfitting. Only a small number (5) of EM iterations per layer are necessary, with two propagation layers (6) typically optimal.
Aspect assignment weights 7 provide direct interpretability: for example, in Amazon-Electronics, user-item relations cluster under one aspect