Compute Allocation in Bilinear Contrastive Representation Learning via Scaling Laws
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "Compute Allocation in Bilinear Contrastive Representation Learning via Scaling Laws".
Jane: Here's the gist of the paper. The gist Scaling laws study how model performance varies with model size, data size, learning steps and compute This paper develops a theoretical scaling-law model for contrastive learning in a sketched linear setting Model Setup and Objective The paper studies a sketched linear model for contrastive learning under a paired Gaussian latentvariable setup.
Tom: The learner observes only sketched views of two correlated variables and trains a bilinear contrastive score by full-batch empirical gradient descent.
Jane: The setup involves generating two matched views from a shared latent variable z, x = z + epsilonx, y = z + epsilony, where the marginal covariance is H:= E
xx⊤: = E
yy⊤: = Λz + Λepsilon and the cross-covariance is C:= E
xy⊤: = Λz.
Tom: The learner observes only the sketched pair (xe = Sx, ye = Sy), simulating limitations in observation.
Paper summary: Tom: So we’re wrapping up the discussion on "Compute Allocation in Bilinear Contrastive Representation Learning via Scaling Laws".
Jane: This paper is really about providing a systematic way to look at resource allocation in this area of AI.
Tom: It moves away from just guessing how much data or compute you need by giving us these provable scaling laws.
Jane: The implication is that instead of just tuning parameters and hoping for the best, you can actually predict performance based on the model size and data size and training steps.
Tom: So it’s not about magic; it’s about understanding the mechanics of how contrastive learning actually works under these specific conditions.
Jane: The authors, Ziyan Chen, Zhongzhu Zhou, and Dingxuan Zhou put this work out in Compute Allocation in Bilinear Contrastive Representation Learning via Scaling Laws.
Tom: It gives us a concrete set of rules for when to increase M or N based on the regime defined by q equal to two delta minus one.
Jane: That’s the main practical thing for anyone trying to deploy these models efficiently.
Tom: So this paper is about making the model size and data requirements predictable through scaling laws, which is what we have here.
Conclusion: Tom: So we're wrapping up on this paper about "Compute Allocation in Bilinear Contrastive Representation Learning via Scaling Laws".
Jane: It basically shows how you can predict how much compute, data, and training time you need to get good results in those complex contrastive models.
Tom: Yeah, the authors are Ziyan Chen, Zhongzhu Zhou, and Dingxuan Zhou. And they use this bilinear contrastive learning setup with paired Gaussian latent variables.
Lu: What's really interesting is how they break down the risk into different parts like irreducible risk and approximation error and GD bias and GD variance.
Meng: I mean, for someone trying to actually ship this, seeing that breakdown helps you figure out where your bottlenecks are before you even start training.
Lalam: The main result is a scaling law that shows how the population risk scales with the model size M, data size N, and optimization steps L.
Jane: So instead of just guessing what works, we have these concrete rules for balancing those three things.
Tom: Exactly. They derive compute allocation rules based on a compute proxy of C being proportional to L times M squared.
Lu: It points out that contrastive learning isn't like standard linear regression because the effective degrees of freedom are pairs of directions instead of just one direction.
Jane: That means the scaling law depends on how these pairs interact, which is a big detail for anyone building these systems.
Meng: For production, this means you can start setting limits on your sketch dimension M or your batch size N based on what the theory suggests will keep things stable.
Tom: It gives us a theoretical backbone for resource allocation in contrastive representation learning through provable scaling laws.
Jane: This paper really helps take the guesswork out of deploying these large representation models efficiently, and it sets up a whole new framework for thinking about training budgets.
Ziyan Chen, Zhongzhu Zhou, Dingxuan Zhou
University of Sydney · Together AI
cs.LG
Submitted: 2026-06-25
Updated: 2026-10-18
Comments: 50 pages, 5 figures. OpenReview: https://openreview.net/forum?id=VTTkooh2Mu
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 82/100
The gist: The gist Scaling laws study how model performance varies with model size, data size, learning steps and compute This paper develops a theoretical scaling-law model for contrastive learning in a
Key concepts
- Risk Decomposition
- This breaks down the total performance error of the learning model into several distinct parts: irreducible risk (unavoidable loss), approximation error (due to limited sketch size), GD bias (incomplete learning due to optimization steps), and GD variance (noise from finite samples).
- Sketched Linear Model
- The model learns a bilinear contrastive score by observing only sketched views of two correlated variables. This simulates real-world scenarios where the learner cannot see all possible data points, forcing the model to generalize from limited information.
- Compute Proxy ($\mathcal C \asymp LNM^2$)
- This is a mathematical shortcut used to estimate the computational cost of training. It relates compute $\mathcal C$ to the number of learning steps $L$, sketch dimension $M$, and sample size $N$. This proxy allows researchers to derive concrete rules for balancing model complexity against available computing power.
Terminology
Summary
The gist Scaling laws study how model performance varies with model size, data size, learning steps and compute This paper develops a theoretical scaling-law model for contrastive learning in a sketched linear setting
Model Setup and Objective
The paper studies a sketched linear model for contrastive learning under a paired Gaussian latentvariable setup. The learner observes only sketched views of two correlated variables and trains a bilinear contrastive score by full-batch empirical gradient descent. The setup involves generating two matched views from a shared latent variable z, x = z + epsilonx, y = z + epsilony, where the marginal covariance is H:= E[xx⊤] = E[yy⊤] = Λz + Λepsilon and the cross-covariance is C:= E[xy⊤] = Λz. The learner observes only the sketched pair (xe = Sx, ye = Sy), simulating limitations in observation.
Risk Decomposition
The paper decomposes the population risk into irreducible risk, approximation error, GD bias, GD variance, and a cross term. Proposition 1 states that the population risk has decomposition ED [RM(AL)] = R(W⋆) z Irreducible + RM(A⋆) − R(W⋆) z Approx + 1/2 ED h B⋆L 2Σ,Σ i z Bias + 1/2 ED h VL 2Σ,Σ i z Var − ED h Σ,Σ i z Cross. The cross term is bounded by the sum of the bias and variance terms for an upper bound analysis.
Scaling Law Derivation
The main result is Theorem 1, which provides an explicit scaling law for empirical gradient descent in sketched contrastive learning under aligned power-law spectra and a contrastive source condition. The theorem states that the population risk satisfies ED[RM(AL) Ecov(R)] = −Θ(1) z Irreducible + Θ M1−2δ z Approx + Θ R 1−2δ 2b z Bias + Θ D×(R, M) N z Var + O R 1−2δ 4b p D×(R, M)/N z Cross. The product effective dimension dprod(R, M) is defined as X i,j≤M min[1,(Rµiµj) 2] product effective dimension.
Interpretation and Compute Allocation
The scaling law gives a three-way tradeoff: increasing M reduces approximation error; increasing R lets GD learn more signal but activates more finite-sample noise; and increasing N suppresses this noise. Proposition 2 provides a compute allocation heuristic, suggesting rules for balancing optimization time L, sketch/model size M, and sample size N under a compute proxy C ≍ LNM2. The leading allocation rules depend on the regime defined by q:= 2δ − 1.
Key Scaling Components
The approximation term is bounded by Theorem 2 as Approx ≈ M1−2δ, which depends on the sketch dimension M and the power-law exponents a and b. The GD-bias term BiasL scales as Θ R 1−2δ 2b, where R = Leffγ. The GD-variance term VarL scales as Θ D×(R, M) N, where D×(R, M) is a piecewise scale in Theorem 1.
Experimental Validation
Synthetic experiments verify the theoretical predictions. The approximation experiment shows the empirical approximation error follows the predicted sketch-dimension rate of −2.01 compared to −2.00. The GD-bias experiment shows the measured bias decreases monotonically with optimization horizon L, with an empirical slope of approximately −0.86 compared to the theorem-guided slope of −0.91. The GD-variance experiment shows the variance grows as additional direction-pairs are learned from finite-sample fluctuations.
Conclusion
The paper provides a first provable scaling-law analysis for a contrastive learning objective under risk decomposition. The main takeaway is that the model must learn interactions between two views, which changes how optimization and finite-sample noise scale. The explicit scaling laws offer guidance for compute allocation. Several directions remain open, such as extending the model to heterogeneous views or analyzing mini-batch SGD.
How it works
-
Latent-variable contrastive setup involves generating two noisy matched views x and y from a shared latent variable z, x = z + epsilonx, y = z + epsilony.
-
The bilinear score is trained by empirical GD on paired sketched samples to minimize RbM(A).
-
The population risk is decomposed into irreducible risk, approximation error, GD bias, GD variance, and a cross term.
-
Theorem 1 gives the scaling law for empirical GD in sketched contrastive learning under aligned power-law spectra and a contrastive source condition.
-
Compute allocation rules are derived in Proposition 2 by balancing the leading excess-risk proxy, which depends on M, N, and R.
Key Scaling Terms
The irreducible risk is constant with respect to M, N, and R The approximation term is the price of using an Mdimensional full-row-rank sketch that satisfies the contrastive source condition The GD-bias term measures incomplete training, decreasing with more effective optimization time R = Leffγ The GD-variance term measures finite-sample noise, which grows with R and is suppressed by N
Interpretation of Terms
The irreducible risk is the best value achievable by the full, unsketched contrastive loss The approximation term decreases as M grows because a larger admissible sketch can represent more effective contrastive spectral directions The GD-bias term decreases with R because more steps make the learning process more complete The GD-variance term is suppressed by N through the factor 1/N, but optimization time R increases the amount of fitted empirical noise Finally, the cross term is controlled by Cauchy–Schwarz and does not affect upper bounds.
Compute Budget Allocation
The effective optimization horizon R = Leffγ is used to determine allocation rules. The leading allocation rules are derived in Proposition 2 based on the regime defined by q:= 2δ − 1. The allocation intuition suggests that increasing the optimization horizon requires at least a proportional increase in sample size.
Limitations
The setup uses a bilinear score and assumes matched dimensions, abstracting away nonlinear encoders like those in CLIP. It lacks explicit sampled negatives, representing them through the quadratic objective instead of explicit negative pairs. The analysis assumes Gaussian data with full-batch GD under a covariance-concentration regime, which is stronger than typical practical training conditions.
References
Arora, S.; Khandeparkar, H.; Khodak, M.; Plevrakis, O.; and Saunshi, N. 2019. A Theoretical Analysis of Contrastive Unsupervised Representation Learning. In Proceedings of the 36th International Conference on Machine Learning, 5628–5637
Atanasov, A.; Zavatone-Veth, J. A.; and Pehlevan, C. 2026. Scaling and Renormalization in High-Dimensional Regression. Journal of Statistical Mechanics: Theory and Experiment, 2026(4): 043404
Bahri, Y.; Dyer, E.; Kaplan, J.; Lee, J.; and Sharma, U. 2024. Explaining Neural Scaling Laws. Proceedings of the National Academy of Sciences, 121(27): e23118781
Bordelon, B.; Atanasov, A.; and Pehlevan, C. 2024. A Dynamical Model of Neural Scaling Laws. In Proceedings of the 41st International Conference on Machine Learning
Caponnetto, A.; and De Vito, E. 2007. Optimal Rates for the Regularized Least-Squares Algorithm. Foundations of Computational Mathematics, 7(3): 331–368
Chen, T.; Kornblith, S.; Norouzi, M.; and Hinton, G. 2020. A Simple Framework for Contrastive Learning of Visual Representations. In Proceedings of the 37th International Conference on Machine Learning, 1597–1607
Chen, Z.; and Zhou, D. 2026. From One-Pass SGD to Data Reuse: Mini-Batch Scaling Laws in Sketched Linear Regression. arXiv preprint arXiv:2605.24316
Cherti, M.
Improvements for AI systems
-
Model Training Compute Allocation: The system can dynamically adjust resource allocation by using Proposition 2 as a heuristic to balance optimization time L, model size M, and sample size N under a fixed compute budget C. This provides explicit rules for balancing these resources based on the regime of q := 2 delta minus one.
-
Approximation Error Reduction: The system can optimize sketch dimension M to minimize the approximation error by targeting the scaling law derived in Theorem 2, which shows that Approx is proportional to M raised to the power of one minus two times delta.
-
Gradient Descent Step Scheduling: The system can determine an optimal learning rate schedule by setting Leff equal to R over gamma star, where R is the target horizon from Proposition 2 and gamma star is a stable stepsize constant, ensuring the GD filters are contractions on the covariance event.
-
Compute Budget Allocation Heuristic: The system can select model size M and sample size N based on which of the three leading allocation rules in Proposition 2 applies (product-unsaturated, covariance-limited, or variance-balanced regime) to achieve the lowest leading excess risk proxy.
-
Variance Control via Product Dimension: To manage GD variance, the system can allocate resources such that the product effective dimension dprod(R, M) is kept small relative to N. This prevents the variance term from dominating by ensuring N scales appropriately with R and M as dictated by Theorem 4.
Sources
- From One-Pass SGD to Data Reuse: Mini-Batch Scaling Laws in Sketched Linear Regression
- Scaling Laws for Autoregressive Generative Modeling
- Deep Learning Scaling is Predictable, Empirically
- Learning Curve Theory
- Scaling Laws for Neural Language Models
- A Solvable Model of Neural Scaling Laws
- Representation Learning with Contrastive Predictive Coding
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks