Abstract
Learning utility functions from subset selection data is a fundamental challenge in recommender systems and anomaly detection. Traditional approaches like DiffMF rely on memory-intensive loop unrolling for backpropagation, limiting their scalability and stability. This paper introduces iDiffMF, a framework that leverages the Implicit Function Theorem to decouple forward and backward passes. By establishing formal convergence conditions using the Banach fixed-point theorem, iDiffMF achieves state-of-the-art performance with constant memory overhead, regardless of the number of iterations.
Introduction
Many real-world applications require selecting an optimal subset from a larger collection, such as recommending products or identifying anomalies. Learning the underlying "utility" function that drives these selections is difficult because only the final choices—not the utility values—are observed. While the DiffMF framework addressed this via variational inference and fixed-point iterations, it suffered from linear memory scaling during training and a lack of convergence guarantees.
Methodology: From Unrolling to Implicit Differentiation
The core innovation of iDiffMF (Implicit Differentiable Mean Field variation) lies in how it handles the gradients of the fixed-point solution.
Convergence Guarantees
The authors prove that iterations converge to a unique solution if the utility function's multilinear relaxation is bounded by $1/|V|$, where $|V|$ is the size of the ground set. This theoretical insight explains why previous models struggled with larger sets and provides a basis for the normalization techniques used in iDiffMF to ensure training stability.
Memory-Efficient Backpropagation
Instead of "unrolling" $K$ iterations—which requires storing intermediate states and leads to $O(K)$ memory complexity—iDiffMF finds the fixed point first. It then applies the Implicit Function Theorem (IFT) to compute gradients directly at the solution. This reduces memory complexity to $O(1)$, enabling deeper iterations and more complex utility functions.
Experimental Evaluation
The authors evaluated iDiffMF across three domains:
- Set Anomaly Detection (AD): Using synthetic (Gaussian, Moons) and image (CelebA) datasets.
- Product Recommendation (PR): Using 12 categories from the Amazon dataset.
- Compound Selection (CS): Using the BindingDB dataset for molecular binding prediction.
The implementation utilizes JAX and JAXopt to efficiently compute the Jacobian-vector products required for the implicit layers.
Key Results
The experimental results demonstrate that iDiffMF not only solves the memory bottleneck but also improves predictive accuracy.
- Predictive Performance: The
iDiffMF*variant consistently achieved the highest Jaccard Coefficient (JC) across most datasets, outperforming the original DiffMF and other competitive baselines. - Scalability: As shown in the memory analysis, iDiffMF maintains a flat memory profile, allowing it to differentiate through what is effectively an infinite number of iterations.
- Stability: The proposed $1/|V|$ bound and associated normalization heuristics successfully prevented the divergence issues common in previous energy-based models.
Discussion and Future Work
iDiffMF represents a significant step forward in learning set functions. By decoupling the solver from the gradient computation, it allows for the use of advanced root-finding algorithms like Anderson acceleration. However, challenges remain. Calculating the exact Lipschitz constant for deep networks is NP-hard, necessitating continued reliance on heuristics. Additionally, while memory is optimized, the time complexity of finding fixed points for massive ground sets remains an area for future research.
Summary updated