CausalSmith · seminar slides
Balancing Smooth Pairwise Effects in Randomized Experiments
One fair assignment rule improves treatment-effect precision by balancing smooth outcome predictors, without knowing their smoothness.
slides for Minimax Excess Variance with Smooth Pairwise Interactions in Randomized Experiments
Motivation
We observe covariates for n experimental units and want to estimate the average treatment effect precisely.
Let Oi(0),Oi(1) be unit i’s potential outcomes. Assignment signs Zi=1 and Zi=−1 select treatment and control.
Each unit receives treatment with probability one half, conditional on all covariates. The Horvitz–Thompson estimator is
TP=n2i=1∑nZiOi((Zi+1)/2),
Here P is the population law. The estimator weights observed outcomes by their inverse assignment probabilities and targets ϑ(P)=EP[O(1)−O(0)].
Correlating assignments can reduce variance by balancing predictors of outcomes. Which predictors should we balance?
Research Question
The standard approach balances a selected list of covariate features.
Harshaw et al. (2024) use the Gram–Schmidt walk, a randomized rounding method that creates fair assignments with feature-balance guarantees.
The closest econometric comparison is Cytrynbaum (2026):
- Excess variance equals scaled expected squared imbalance in the conditional potential-outcome midpoint mean.
- For smooth main and pair effects, a structured design has an upper bound of order (d2logn/n)s∧1.
- For a single bivariate component, the lower exponent is n−s.
Here d is covariate dimension and s measures smoothness.
Coordinate averages miss interactions; a finite feature list leaves finer variation uncontrolled.
Can one fair rule control all smooth pairwise predictors, and is the logarithmic loss necessary?
Key Idea
Order features from low to high frequency, giving earlier features stronger balance.
Under independent uniform covariates, centered main and pair effects share one total smoothness budget.
B=(2d),as(n,d)=min{1,(B/n)s},n,d≥2,0<s≤1.
Here B counts coordinate pairs. The scale as(n,d) describes the smallest possible worst-case excess variance after multiplying variance by n.
- When B<n, the scale is (B/n)s.
- When B≥n, it stays bounded away from zero.
- One fair, outcome-independent rule attains this scale for every s.
A shared random shift separates frequency losses. Ordered rounding protects low frequencies longer.
Example
Take two independent uniform covariates and the centered pair predictor m(x)=C02cos(πx1)cos(πx2), where C0=48+32π2.
It averages to zero in either coordinate: coordinate averages cannot capture it.
Let the conditional treatment effect be τ(x)=0.2+0.12sin(2πx1), and generate outcomes by
Yi(0)=m(Xi)−2τ(Xi)+ϵi(0),Yi(1)=m(Xi)+2τ(Xi)+ϵi(1).
The errors are independent standard Gaussians, independent of covariates. The mean treatment effect is 0.2; treatment-effect variation and outcome noise give benchmark V∗=4.01.
For the Horvitz–Thompson estimate θ, nVar(θ)−V∗=n4E[(∑i=1nZim(Xi))2].
Thus balancing this pair predictor directly improves actual treatment-effect precision.
Model
Units are sampled independently. Each covariate vector Xi has d independent uniform coordinates on [0,1].
The prognostic function m is the conditional mean of the potential-outcome midpoint, with population mean zero.
m(x)=j=1∑dgj(m)(xj)+j<ℓ∑gjℓ(m)(xj,xℓ)
Here gj(m) is coordinate j’s main effect; gjℓ(m) is the interaction between coordinates j and ℓ.
Main effects average to zero. Pair effects average to zero in either coordinate. Main and pair effects account for prognosis exactly.
In our example, both main effects vanish and g12(m)=m.
Assignment uses all original covariates and independent randomness, with Eπ[Zi∣X]=0 for every unit. It uses neither outcomes nor the unknown outcome model.
Smoothness Budget
All components share one budget:
j=1∑dN1,s(gj(m))2+j<ℓ∑N2,s(gjℓ(m))2≤1,
The quantities N1,s and N2,s are nonperiodic Sobolev restriction norms for one- and two-dimensional functions.
They measure magnitude and roughness through the smallest Sobolev norm of an extension off the component’s cube. Larger s penalizes rapid oscillation more strongly.
Pooling fixes total component strength while allowing it to move across coordinates and pairs.
Write Hd,s for the centered main-and-pair functions satisfying this budget.
In our example, the budget is N2,s(m)2≤1. The normalization C0 ensures membership for every 0<s≤1.
Worst-case Precision
Let Dn,d,s be the fair, outcome-independent assignment rules using all original covariates.
Our objective is
Rs(n,d)=π∈Dn,d,sinfm∈Hd,ssupn4EX,Z(i=1∑nZim(Xi))2.
The signed sum is prognostic imbalance between treatment and control. Its scaled expected square is the loss Ln,d,s(π,m).
The order matters:
- Choose one assignment rule π.
- Evaluate its worst population predictor m.
- Average over covariate sampling and assignment inside the loss.
The adverse function is fixed across samples; it cannot be selected after observing the covariates.
Main Result
informal · Theorem T-3 For n,d≥2 and 0<s≤1, under independent uniform sampling and the centered pooled main-and-pair budget, one fair, outcome-independent rule attains minimax scaled excess within uniform constant factors of as(n,d).
c1as(n,d)≤csas(n,d)≤Rs(n,d)≤m∈Hd,ssupLn,d,s(πn,d⋆,m)≤3072as(n,d).
Here πn,d⋆ is our assignment rule. The positive lower constants satisfy 0<c1≤cs, uniformly over 0<s≤1.
The same rule works for every smoothness, including s=1. The matched characterization has no logarithmic factor.
In our example, B=1: scaled excess is at most 3072n−s. The matching lower bound concerns the worst legal predictor.
How can finitely many balancing inputs control an entire smoothness class?
Reflection
Reflect the cube to express smoothness as a frequency budget.
Let F(y)=m(bd(y)), where bd folds each coordinate of [0,2) onto [0,1]. Addition on this enlarged domain wraps around modulo two.
An integer vector k specifies a Fourier frequency. Its coefficient is F(k); supp(k) contains its nonzero coordinates.
The complexity t(k)=∥k∥22/∣supp(k)∣ measures average squared frequency across those coordinates.
k∈Zd1≤∣supp(k)∣≤2∑(1+π2t(k))s∣F(k)∣2≤1.
This bounds weighted squared Fourier coefficients by the original smoothness budget. Centering removes the constant frequency; main-and-pair structure leaves only one- and two-coordinate frequencies.
Our example has four frequencies k=(±1,±1), all with t(k)=1.
Common Random Shift
Independently lift each observed coordinate to either Xij or 2−Xij, then add one shared uniform shift T:
Wi=lift(Xi,reflection coins)+T,
The transformed covariates Wi supply features for original unit i. Addition wraps around modulo two, and F(Wi−T)=m(Xi).
Uniform sampling makes the entire transformed sample W independent of T. Generate assignments using W.
Let ek(w)=exp(iπk⋅w) combine the cosine and sine at frequency k. Then
Ei=1∑nZim(Xi)2=k∈Zd∑∣F(k)∣2Ei=1∑nZiek(Wi)2.
Averaging the shared random phase removes cross-frequency terms. Prognostic imbalance becomes a sum of separate frequency losses, even though assignment depends on the sample.
Ordered Balancing
When B<n, order one- and two-coordinate frequencies by increasing t(k).
For each frequency, use the cosine and sine rows
2cos(πkTWi),2sin(πkTWi).
These are the real components of frequency imbalance for unit i. Let ah collect the h-th feature across units.
Our example uses cosine and sine of the sum and difference of its two transformed coordinates.
Supply the first K=⌊n/4⌋ rows to rounding:
- Start fractional assignments at u=0.
- With r coordinates still between −1 and 1, protect the first ⌊r/4⌋ rows.
- Move orthogonally to those rows until a coordinate reaches a boundary.
- Refresh the protected prefix when the active count has halved.
As units become fixed, fewer constraints can be protected. Earlier frequencies retain protection longer.
Fair Boundary Moves
A permitted direction vb changes only active coordinates and preserves protected row sums.
Let δb+ and δb− be distances to the first boundary in its positive and negative directions.
u←⎩⎨⎧u+δb+vb,u−δb−vb,with probability δb++δb−δb−,with probability δb++δb−δb+.
These probabilities make the expected increment zero. Starting at zero therefore preserves mean-zero assignments.
Directions form an orthonormal basis. Selecting them with probabilities proportional to 1/(δb+δb−) equalizes their conditional variance contributions.
Each move fixes a coordinate. The last few coordinates are rounded while preserving their means.
Every original unit receives a fair sign and retains its estimator weight 2/n.
Balance at Every Scale
If every entry of ordered row ah has magnitude at most Λ, rounding guarantees
E[Zi]=0(1≤i≤n),E[(ahTZ)2]≤32Λ2min{h,n}(h≥1).
Here h is the row’s position, and ahTZ is its final signed imbalance. For cosine and sine rows, Λ=2.
Why does earlier position buy stronger balance?
- Row h is protected while at least 4h coordinates remain active.
- After protection ends, row variance is bounded by the remaining coordinate variance budget.
- Fewer than 4h coordinates remain, so that budget is proportional to h.
The remaining budget is counted once across all subsequent phases. Charging it separately in each phase would lose this control.
The guarantee includes rows beyond the finite supplied prefix.
From Balance to Variance
At most 12Bt(k) real rows occur through complexity t(k). Thus row position grows with interaction count and frequency complexity.
Combining ordered balance with the common-shift identity gives
Ln,d,s(πn,d⋆,m)≤3072k∈Zd1≤∣supp(k)∣≤2∑∣F(k)∣2min{1,(B/n)t(k)}.
Each squared coefficient pays for its frequency’s remaining imbalance.
For 0<s≤1, this charge is at most as(n,d)(1+π2t(k))s. The weighted coefficient budget therefore bounds the sum by as(n,d).
In our example, only t(k)=1 contributes. With B=1, its coefficient energy receives a 1/n charge.
Smoothness enters this bound; the assignment rule does not use s.
When B≥n, independent fair signs give loss at most 4, attaining the saturated scale.
A Hard Function Family
To show necessity, spread one smoothness budget across many pair features.
Choose a frequency cutoff L of order max{1,n/B}, with enough slack that M=BL2≥4096n.
Before sampling covariates, draw independent coefficient signs ξα. For α=(j,h,k,ℓ), with j<h and 1≤k,ℓ≤L, define
Vα(x)=2cos(πkxj)cos(πℓxh),mξ(x)=C0LsM1α∑ξαVα(x).
The vector V(x) collects all M features. The denominator shares the budget across them; C0=48+32π2.
Every coefficient-sign realization is centered and belongs to Hd,s.
E[V(X1)V(X1)T]=IM,
The identity matrix IM means each feature has unit second moment and distinct features are orthogonal, including features sharing a coordinate.
Energy and Cancellation
Write vi=V(Xi), let v=(v1,…,vn), and use r0=M for the feature dimension in this calculation.
For any candidate assignment signs z,
i=1∑nzivi22=Drow(v)+Orow(v,z).
Here Drow(v)=∑i∥vi∥22 is total feature energy.
The cross-unit term is Orow(v,z)=∑i=i′zizi′⟨vi,vi′⟩. Only this term changes when signs change.
Define Moff(v)=maxz∣Orow(v,z)∣: the largest possible magnitude of cancellation.
The identity second-moment matrix gives expected total energy nr0=nM. Even the best signing leaves at least total energy minus Moff.
How large can cancellation become when signs adapt to all observed vectors?
Absolute Projections
For a group of nloc units, let vloc collect its feature vectors.
Let Krow be the largest signed-sum norm, and let Bdir be the Euclidean unit ball of directions.
Krow(vloc)=udir∈Bdirsupi=1∑nloc∣⟨udir,viloc⟩∣.
For any direction udir, signs can align all projections. Maximizing over unit directions gives the largest norm.
Bartlett and Mendelson (2002) supply the contraction inequality: after centering and introducing independent fair signs, it controls this supremum of absolute projections by the corresponding linear-projection supremum.
The identity second-moment matrix gives E∣⟨udir,v⟩∣≤∥udir∥2. Independent fair signs give signed-sum second moment nlocr0.
Consequently,
EKrow(vloc)≤nloc+4nlocr0.
The first term bounds population absolute projections; the square-root term bounds how much choosing directions after sampling can add.
Independent Groups
Split units randomly into a left group and a right group, independently of their feature vectors. Their sizes are nleft and nright.
Let Hcross maximize, over all signed sums udir of right-group vectors, the quantity ∑i=1nleft∣⟨udir,vileft⟩∣.
This controls every signed cross-group inner product: left-group signs cannot gain more than aligning these projections.
Conditional on the right group, its signed sums form a finite direction set. The same contraction inequality controls the absolute-projection supremum over that set.
Independence and the preceding signed-norm bound yield
EHcross(vleft,vright)≤nleftnright+4nleftnrightr0+4nrightnleftr0.
This bounds cancellation across independent groups using their sizes and feature dimension.
Every ordered pair of distinct units falls from left to right with probability 1/4. Averaging over random splits therefore controls the full cross-unit term with a factor of four.
Unavoidable Feature Imbalance
The independent-group argument bounds the maximum cross-unit cancellation by
EMoff(v)≤4EvEηMcross(v,η)≤n2+16nnr0.
Here η denotes the random split, and Mcross is the largest absolute signed inner product between its groups.
Compare this with total expected energy nr0=nM.
When r0=M≥4096n, the two cancellation terms satisfy n2≤nr0/4096 and 16nnr0≤nr0/4. Together they remove at most half the expected energy.
Thus
EXz∈{−1,1}nmini∑ziV(Xi)22≥2nM.
Even signs optimized after seeing every covariate cannot cancel enough of the many orthogonal feature directions. Every randomized assignment rule pays at least this much total imbalance.
From Imbalance to Necessity
Averaging independent coefficient signs removes cross-feature terms:
EξLn,d,s(π,mξ)=nC02L2sM4EX,Zi∑ZiV(Xi)22.
The left side averages loss over legal predictors chosen before sampling. The right side is normalized total feature imbalance under design π.
Unavoidable feature imbalance leaves loss at least 2/(C02L2s). The cutoff makes this comparable to as(n,d)=min{1,(B/n)s}.
informal · Theorem T-1 For n,d≥2 and 0<s≤1, every fair, outcome-independent design has prior-average loss at least csbs(n,d) on legal pair-cosine functions with independent coefficient signs drawn before sampling.
Here bs(n,d)=as(n,d).
Worst-case loss dominates this average over fixed legal functions. Taking the infimum over designs preserves the lower bound.
Causal Interpretation
The variance interpretation covers arbitrary square-integrable potential outcomes.
Let Qd,s contain population laws P with uniform covariates U, finite potential-outcome second moments, and conditional midpoint mean mP∈Hd,s.
Their benchmark is
V(P)=VarP(EP[O(1)−O(0)∣U])+2EPVarP(O(1)∣U)+2EPVarP(O(0)∣U),
It combines conditional treatment-effect variation with conditional outcome noise.
Cytrynbaum (2026) supplies the identity nVarP,π(TP)−V(P)=Ln,d,s(π,mP).
Because the Gaussian construction realizes every permitted midpoint function,
π∈Dn,d,sinfP∈Qd,ssupVn(π,P)=Rs(n,d),
Here Vn(π,P) is scaled variance above V(P).
Our imbalance characterization is exactly a minimax characterization of actual causal-estimation excess variance.
Dimension Frontier
Fix smoothness s∈(0,1], and let dn≥2 be any integer dimension sequence.
Rs(n,dn)⟶0⟺n(2dn)⟶0⟺dn=o(n).
The final condition means dimension divided by n tends to zero.
Ordered balancing supplies sufficiency. The independent coefficient prior supplies necessity.
The relevant sample-size comparison is with the number of coordinate pairs under one fixed total smoothness budget.
For the Gaussian outcome family, this is exactly the condition for worst-case nVar(θ)−4.01 to vanish.
Open Questions
- Attaining the same scale under nonuniform covariate densities.
- Controlling higher-order interactions, approximation error in pairwise structure, and unknown prognostic intercepts.
- Certifying fairness and imbalance under finite-precision arithmetic, with quantified computational cost.
Takeaways
- Under independent uniform covariates and the centered pooled main-and-pair budget, minimax scaled excess variance is comparable to min{1,(B/n)s}.
- A common shift separates frequencies. Ordered rounding protects low frequencies longer and counts the remaining variance budget once, giving one fair rule for every 0<s≤1.
- Many orthogonal pair features retain substantial energy under every signing. An independent coefficient prior turns that fact into necessity: vanishing worst-case scaled excess requires and permits d=o(n) at fixed smoothness.
Appendix: Log-free Capacity and Dimension Frontier
Uniform finite-sample bounds, simultaneous attainment, causal interpretation, and the exact dimension condition.
For every pair of integers n,d≥2, write B=(2d). There is a single fair, outcome-independent Borel original-sample assignment kernel πn,d⋆, independent of the smoothness parameter, belonging to the design class of Definition P-2. It assigns independent fair signs when n≤B. When B<n, it is the law of the signs produced by spectral rounding with independent reflection coins, an independent common Haar shift, and independent uniform rounding seeds. More precisely, the reflected and shifted sample is Wi=lift(Xi,reflection coins)+T, where T is the common Haar shift on the period-two torus. The input rows are the first ⌊n/4⌋ prescribed real features evaluated at Wi. For every choice of reflection coins and common shift, and every rounding-seed array whose entries belong to [0,1], the fractional coordinate after n rounding iterations equals the corresponding output sign, for every original sample and every unit. For every real s with 0<s≤1, let as(n,d)=bs(n,d)=min{1,(B/n)s},cs=(48+32π2)16384s2,c1=(48+32π2)163842. Thus as(n,d)=1 when n<B, and as(n,d)=(B/n)s when B≤n. The constants satisfy 0<c1≤cs<3072. With Hd,s as in Definition P-1, and Rs(n,d) the minimax criterion of Definition P-3, define the scaled signing loss by Ln,d,s(π,m)=n4Eπ(i=1∑nZim(Xi))2. The same kernel satisfies, simultaneously for all 0<s≤1, c1as(n,d)≤csas(n,d)≤Rs(n,d)≤m∈Hd,ssupLn,d,s(πn,d⋆,m)≤3072as(n,d). For each such s, the finite coefficient prior νn,d,s⋆, with normalization C0=48+32π2, has every coefficient-sign realization mξ centered and in Hd,s: ∫[0,1]dmξ(x)dx=0,mξ∈Hd,s. Drawn independently of the covariate sample, it certifies, for every admissible design π, csas(n,d)≤Em∼νn,d,s⋆Ln,d,s(π,m). Let Qd,s be the frozen uniform-covariate, zero-intercept, correctly specified outcome-law class with finite second moments and centered prognostic function in Hd,s. For a single-unit law P, its prognostic function, actual HT estimator, law-specific benchmark, and scaled excess are mP(u)=EP[(O(1)+O(0))/2∣U=u],TP=n2i=1∑nZiOi((Zi+1)/2), V(P)=VarP(EP[O(1)−O(0)∣U])+2EPVarP(O(1)∣U)+2EPVarP(O(0)∣U), Vn(π,P)=nVarP,π(TP)−V(P). Here the experiment uses independent original-unit copies, and conditional means are interpreted modulo covariate null sets. Then π∈Dn,d,sinfP∈Qd,ssupVn(π,P)=Rs(n,d), P∈Qd,ssupVn(πn,d⋆,P)=m∈Hd,ssupLn,d,s(πn,d⋆,m). The Gaussian completions of functions in Hd,s form a proper subclass of Qd,s. Restricting the law supremum to these Gaussian completions gives the same minimax capacity Rs(n,d) and the same worst-case loss for πn,d⋆. For every pair of real density bounds satisfying 0<lower≤1≤upper, let Ad,s be the bounded-density class defined in Lemma L-6: its laws have finite potential-outcome second moments, satisfy ∫mP(u)2dPU(u)≤1, and have mP equal almost everywhere to a permitted intercept plus a centered function in Hd,s, with covariate density between the displayed bounds. Its minimax excess satisfies Rs(n,d)≤π∈Dn,d,sinfP∈Ad,ssupVn(π,P). For every admissible π and every m∈Hd,s, the actual HT estimator θ under the Gaussian completion of m, with benchmark V∗=4.01, satisfies nVar(θ)−4.01=Ln,d,s(π,m)<∞. Consequently, for every ε>0, n≥Bmax{1,(4.01ε3072)1/s}⟹m∈Hd,ssupLn,d,s(πn,d⋆,m)≤4.01ε. Conversely, for every 0<ε<cs/4.01, Rs(n,d)≤4.01ε⟹n≥B(4.01εcs)1/s. Finally, for every fixed s∈(0,1] and every integer sequence dn≥2, Rs(n,dn)⟶0⟺n(2dn)⟶0⟺dn=o(n). For every fixed pair 0<lower≤1≤upper, vanishing minimax excess over the corresponding bounded-density classes implies the same dimension frontier: π∈Dn,dn,sinfP∈Adn,ssupVn(π,P)⟶0⟹dn=o(n).
Appendix: Full-design Capacity Lower Bound
An independent prior certifies the matching lower bound against every admissible assignment rule.
For every s∈(0,1], define the lower constant cs and the comparison scale bs(n,d) by cs=(48+32π2)16384s2,bs(n,d)=min{1,(n(2d))s}. Then cs>0, independently of n,d. For all integers n,d≥2, every design π∈Dn,d,s of Definition P-2 satisfies EξLn,d,s(π,mξ)≥csbs(n,d), where the expectation is over the independent coefficient-sign cosine prior and mξ is its associated prognostic function; the coefficient signs are drawn independently of the covariate sample X. Consequently, the minimax criterion of Definition P-3 satisfies Rs(n,d)≥csbs(n,d).
Appendix: Pair-cosine Prior
The exact cutoff and normalization construct the legal function family used in the converse.
Let B=(2d),L=max{1,⌈4096n/B⌉},M=BL2,C0=48+32π2. Before observing X, draw every coefficient ξα independently and uniformly from {−1,+1}. For α=(j,h,k,ℓ), where j<h and 1≤k,ℓ≤L, put Vα(x)=2cos(πkxj)cos(πℓxh),mξ(x)=C0LsM1α∑ξαVα(x). The prior νn,d,s⋆ is the law of this normalized pair-cosine function.