Compound scaling is a method that uses a single coefficient ϕ to grow depth, width, and resolution together at fixed ratios. The upper right of the figure at the top of the article contrasts it with other ways of scaling.
Problem formulation
A CNN is viewed as a collection of stages, each repeating the same layer. In stage i, layer F^i is repeated L^i times, and the input shape is ⟨H^i,W^i,C^i⟩. When scaling the model, the layer architecture F^i stays fixed, while depth (number of repetitions) is multiplied by d, width (number of channels) by w, and resolution by r. The goal is to find the d,w,r that maximize accuracy under memory and computation constraints (Eq. 2 in the paper).
d,w,rmax Accuracy(N(d,w,r)),N(d,w,r)=i=1…s⨀F^id⋅L^i(X⟨r⋅H^i, r⋅W^i, w⋅C^i⟩)
Tying all three to one coefficient
Compound scaling sets depth, width, and resolution as follows (Eq. 3 in the paper).
d=αϕ,w=βϕ,r=γϕ,α⋅β2⋅γ2≈2,α≥1, β≥1, γ≥1
The cost of a convolution is proportional to depth and to the square of width and resolution. Doubling depth doubles the computation, but doubling width or resolution quadruples it. Total computation therefore grows by about (α⋅β2⋅γ2)ϕ, and with α⋅β2⋅γ2≈2, each increase of ϕ by 1 roughly doubles the computation. ϕ expresses "how much more compute is available," and α,β,γ express "how to distribute that extra compute among depth, width, and resolution."
How EfficientNet sets them
- Fix ϕ=1 and search the ratios: Assuming twice the compute is available, a small grid search on EfficientNet-B0 yields α=1.2, β=1.1, γ=1.15.
- Fix the ratios and vary ϕ: Keeping α,β,γ fixed, increasing ϕ produces EfficientNet-B1–B7.
Searching α,β,γ directly on a large model might do even better, but the search cost becomes prohibitive. The key idea is to search once on a small model and reuse those ratios at every size.
When enlarging a photo, stretching only its height or only its width distorts the shape, while stretching both by the same ratio preserves it. Compound scaling likewise grows a model while keeping depth, width, and resolution in balance.
There is a reason to scale all three together. A larger input image needs a larger receptive field to capture the objects in it, which calls for more layers (more depth). Capturing the fine patterns in a larger image also calls for more channels (more width).