Skip to content
nonconvexcard

Derive the compute-optimal allocation

ProofIntermediate⏱ 30 minLLMsscaling lawschinchillalagrangeallocation

Problem

Given L(N,D)=E+AN−α+BD−β\mathcal L(N,D) = E + AN^{-\alpha}+BD^{-\beta} and C=6NDC = 6ND, derive N⋆(C)N^\star(C) and D⋆(C)D^\star(C), and evaluate the tokens-per-parameter ratio for α=β\alpha=\beta.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
LoRA parameter accountingLLMsNumericalBeginner15 min
The 6ND FLOP estimateLLMsNumericalBeginner15 min
Mixture-of-experts sparsity accountingLLMsNumericalIntermediate30 min
The irreducible loss is the conditional entropyLLMsProofIntermediate30 min
Derive the optimal weight update abyssQuantizationProofAdvanced1 hour