Cardinality-Decomposed Loss: Matching Training Objectives to Relation Structure in Heterogeneous Recommendation Graphs

๐Ÿ“… 2026-07-22
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Traditional recommender systems employing a unified loss functionโ€”such as Bayesian Personalized Ranking (BPR)โ€”on heterogeneous bipartite graphs often suffer from attribute embedding collapse and user representation contamination. This work proposes Cardinality-Decoupled Loss (CDL), which, for the first time, disentangles cross-entropy and BPR losses according to relational cardinalities (e.g., one-to-many preferences versus one-to-one attributes) to mitigate optimization conflicts within shared encoders. By introducing a tunable parameter ฮป to jointly optimize distinct objectives, CDL significantly enhances the discriminability of attribute embeddings across five benchmark datasets. Moreover, when attributes carry implicit preference signals, CDL concurrently improves NDCG scores, revealing that the trade-off between semantic alignment and topological leakage is a critical factor governing recommendation performance.
๐Ÿ“ Abstract
Graph Neural Networks trained on heterogenous bipartite graphs form a common basis in recommendation systems. These graphs often express relations that vary in cardinality, for example, user-item preferences are one-to-many and user-attribute features are one-to-one. Traditionally, a unique loss function is applied for all of the network components which is often Bayesian Personalized Ranking (BPR). While BPR works well for the recommendation task, we find that it causes attribute embeddings to collapse to near-random geometry -- a silent failure that leaves standard ranking metrics largely unaffected and therefore invisible to conventional evaluation. This in turn pollutes user node embeddings, which are shaped by both edge types simultaneously, hurting downstream tasks like personalization, segmentation, etc. Here we propose a Cardinality-Decomposed Loss (CDL) that combines both Cross Entropy (CE) and BPR to enable the model to collectively optimize for relations across cardinalities. We confirm this CE-BPR conflict by showing the two losses compete in the shared encoder's parameter space. We evaluate CDL on five datasets spanning two structural configurations -- one-to-one attributes on user nodes (MovieLens-1M, Last.fm-360K, PayPal Audience Factory, BookCrossing) and on item nodes (Yelp) -- and find that CDL consistently improves discriminability in attribute embeddings. We also show that ranking (NDCG) improves when attributes carry meaningful preference signal, but conflicts with it when the correlation is weak. We use a lambda parameter to navigate this trade-off, and a lambda-sweep reveals that dataset behavior is governed by two graph properties -- semantic alignment and topology leakage. Semantic alignment measures whether the attribute predicts preferences, while topology leakage measures whether the graph's connectivity already encodes it.
Problem

Research questions and friction points this paper is trying to address.

heterogeneous recommendation graphs
embedding collapse
cardinality mismatch
attribute embeddings
training objective
Innovation

Methods, ideas, or system contributions that make the work stand out.

Cardinality-Decomposed Loss
Heterogeneous Recommendation Graphs
Graph Neural Networks
Embedding Collapse
Semantic Alignment
๐Ÿ”Ž Similar Papers
No similar papers found.
P
Parul Maheshwari
PayPal AI, PayPal Inc., USA
A
Amulya Paruchuri
PayPal AI, PayPal Inc., USA
Y
Yiqing Zou
PayPal AI, PayPal Inc., USA
Alireza Sahami Shirazi
Alireza Sahami Shirazi
Apple Inc.
Human Computer InteractionMachine LearningData Analytics
F
Farhad Farahani
PayPal AI, PayPal Inc., USA
P
Prakhar Mehrotra
PayPal AI, PayPal Inc., USA