Abstract
Data subsampling is a critical technique for accelerating the training of large-scale recommendation systems. Traditional subsampling methods are typically model-based, relying on a pre-trained "pilot model" to identify informative samples based on metrics like sample hardness. However, these methods are vulnerable to model misspecification—a common occurrence in production environments where pilot models may use stale data or different architectures than the target model. This paper introduces a model-agnostic approach that leverages the topological structure of user-item interaction graphs. By using graph conductance to estimate interaction importance and a propagation step to smooth these values, we identify "hard" negative samples without the need for a pilot model. Our experiments on the KuaiRec and MIND datasets demonstrate that this model-agnostic approach, especially when combined with model-based methods, significantly improves recommendation performance and robustness.
Introduction
In modern recommendation systems, the volume of data is immense, characterized by a severe imbalance between positive interactions (clicks) and negative interactions (non-clicks). For every single item a user interacts with, there are thousands of potential items they ignore. To train models efficiently, researchers employ Negative Sampling (NS) to select a representative and informative subset of these non-clicks.
The current industry standard involves model-based sampling, where a pilot model identifies "hard negatives"—samples that the current model finds difficult to predict correctly. While effective in theory, this approach suffers from the "misspecification trap." In real-world pipelines, the pilot model often differs from the target model in architecture, training data, or serving conditions. When the pilot model is misspecified, the resulting subsampling becomes biased, often performing worse than simple uniform random sampling.
Methodology: MA-EC
To address the limitations of model-based sampling, we propose MA-EC (Model-Agnostic Negative Hardness Estimation via Effective Conductance). This method identifies informative samples by exploring the underlying structure of the input data rather than relying on model predictions.
1. Graph Representation and Conductance
We represent user-item interactions as a bipartite graph. By treating this graph as an electrical circuit, we can calculate the effective conductance between users and items. In this analogy, a high conductance indicates multiple "paths" or indirect connections between a user and an item, suggesting a strong latent interest. If a user has high latent interest in an item but has not yet clicked it, that interaction is identified as a "hard negative"—a sample rich in information for the training process.
Crucially, we found that conductance is superior to effective resistance for this task. While resistance is often used for graph sparsification, conductance rewards the redundancy of paths, which more accurately correlates with latent user preferences in a recommendation context.
2. Edge Propagation
To mitigate noise and account for the local neighborhood of interactions, we implement an edge propagation step. We transform the bipartite graph into a "line graph" where the edges (interactions) themselves become nodes. We then smooth the hardness scores across neighboring interactions, ensuring that the importance estimation is robust and consistent across similar user-item pairs.
3. Hybrid Ensembling
Because model-agnostic and model-based methods capture different dimensions of sample hardness, they are fundamentally complementary. We propose a "Max" strategy that takes the maximum hardness score from both the pilot model and the MA-EC method. This ensemble approach ensures the target model learns from both structural data patterns and algorithmic weaknesses.
Experimental Results
We evaluated our approach using two major benchmarks: KuaiRec (a video-sharing dataset with a fully-observed submatrix) and MIND (Microsoft News Dataset, a large-scale news recommendation benchmark).
Performance and Robustness
Our results demonstrate that MA-EC consistently outperforms standard model-based approaches, particularly when the pilot model is misspecified. On the MIND dataset, standard "Optimal Sampling" struggled to beat a uniform sampling baseline, whereas MA-EC provided significant gains. The best overall performance across both datasets was achieved by the ensemble method (Comb (Max) + Prop), which yielded the highest Test AUC.
Efficiency
Despite the underlying graph mathematics, MA-EC is highly efficient and suitable for industrial deployment. In our tests, estimating sampling rates for millions of instances took only 80 to 150 seconds. This efficiency allows the method to be integrated into large-scale production pipelines without becoming a bottleneck.
Conclusion
MA-EC offers a robust, model-agnostic alternative to traditional negative sampling. By leveraging graph topology, it avoids the pitfalls of model misspecification and provides a stable signal for training complex recommendation models. Future work will explore incorporating contextual features (such as time and location) and explicit negative signals (such as "dislike" actions) into the conductance calculations to further refine the identification of hard negatives.
Summary updated