CausalSmith · seminar slides
Estimating Treatment Effects with Sparse Adjustment Cells
A known bound on how much treatment effects differ across cells can change how accurately we estimate their average.
Motivation
A practitioner wants the average treatment effect after adjusting for a discrete confounder.
- There are n observations across d adjustment cells.
- Cell frequencies can be highly uneven.
- Many sampled cells contain treated observations or controls, but no comparison between them.
Population overlap makes adjustment possible in principle. It does not supply observed comparisons in every cell.
Standard Approach
Estimate treated and control means within each cell, then average their differences using cell frequencies.
For binary outcomes with fixed overlap, Zeng et al. (2024) establish the usual regression, weighting and doubly robust mean-squared error scale
n2d2+n1,
where d counts cells and n counts observations.
Their unrestricted minimax lower benchmark, before saturation, is smaller:
n2log2nd2+n1,
These expressions compare ordinary sampling noise with the extra cost of sparse adjustment.
How can we use sparse cells more effectively—and how does effect heterogeneity change the answer?
Key Idea
We use two different sources of information.
- Similar effects: comparisons from cells containing both arms can estimate the population effect even with altered cell weights.
- Different effects: polynomial corrections estimate rare cells’ population contributions without dividing by their observed arm counts.
A known heterogeneity bound determines which method to use.
Under fixed overlap and bounded conditional means and variances, our selector attains the better risk benchmark. Upper and lower bounds match at homogeneity, at every fixed positive heterogeneity radius, and in several additional regimes.
Example
At exact homogeneity, every supported cell has the same treatment effect.
Let Nak count observations in arm a and cell k, and Nk=N0k+N1k.
A crossed cell contains both arms: Ik=1{N0kN1k>0}. Let Rn=∑kNkIk count observations in crossed cells.
Tncol:=clip[−M,M](Rn1{Rn>0}k=1∑dNkIk(Y1k−Y0k)),
Here Yak is the arm-cell sample mean. The inner value is zero if no cell is crossed; clipping truncates the estimate to the known target range [−M,M].
Every available comparison estimates the same effect. Their weights need not reproduce population cell frequencies.
Model
We observe independent records O=(X,A,Y):
- X is the adjustment cell.
- A∈{0,1} is treatment.
- Y is the outcome; Y(a) is its potential value under treatment a.
Consistency: Y=Y(A) links observed and potential outcomes.
Conditional exchangeability: (Y(0),Y(1))⊥A∣X rules out remaining treatment selection within cells.
Let pk=P(X=k) be cell mass and μak=EP[Y∣A=a,X=k] an arm-cell mean. The identified average treatment effect, or ATE, is
τ(P):=k=1∑dpk(μ1k−μ0k).
This averages cell effects using population masses—the adjustment logic of Rosenbaum and Rubin (1983).
Assumptions
Fixed overlap: the propensity πk=P(A=1∣X=k) satisfies ϵ≤πk≤1−ϵ, with fixed 0<ϵ<1/2. Both arms remain possible in every supported cell.
Known scale: M≥1 and ∣μak∣≤M/2, so the ATE lies in [−M,M].
Bounded noise:
EP[(Y−μak)2∣A=a,X=k]≤M2.
This bounds conditional variance; outcomes may be unbounded.
Known heterogeneity radius: write τk=μ1k−μ0k and δk=τk−τ(P).
k:pk>0max∣δk∣≤σM.
Here 0≤σ≤2. Our example has σ=0; radius two permits unrestricted effects under the mean bound.
Let Pd,ϵ,M,σ denote this model class, including the causal conditions. Cell masses are arbitrary.
Main Result
Our estimator τn⋆ selects among polynomial adjustment, crossed-cell averaging and zero, using known M,σ.
informal · Theorem T-11 For every n,d≥1, known M≥1,σ∈[0,2], consistency, exchangeability, fixed overlap and the mean, variance and heterogeneity bounds give the selector a worst-case MSE of at most CϵM2rn,d,σ.
rn,d,σ:=n−1+min{σ2+n2d,n2log2(en)d2,1},
The benchmark rn,d,σ is ordinary sampling noise plus the smallest of borrowing cost, polynomial approximation cost and the outcome-scale cap.
P∈Pd,ϵ,M,σsupEQP(n)[(τn⋆−τ(P))2]≤CϵM2rn,d,σ.
Here QP(n) is the independent sampling law, and Cϵ depends only on overlap.
Minimax Benchmark
Minimax risk is the smallest worst-case mean-squared error achievable by any estimator.
Let Rn,d,ϵ,M,σ denote that risk over our model class.
informal · Theorem T-14 For every n,d≥1, M≥1 and 0≤σ≤2, our consistency, exchangeability, fixed-overlap, mean, variance and heterogeneity conditions give a two-sided minimax risk bracket.
cϵM2{n1+min(1,n2d)+σ2min(1,n2log2(en)d2)}≤Rn,d,ϵ,M,σ.
The constant cϵ>0 depends only on overlap.
The unavoidable cost combines ordinary sampling noise, scarce comparisons even at homogeneity, and radius-sensitive rare-cell difficulty.
The upper bound chooses between methods; the lower bound records difficulties that every method faces.
Borrowing Across Cells
Conditional on observed cells and treatment assignments, the crossed-cell average targets
∑k(NkIk/Rn)τk, whenever Rn>0.
Its weights are nonnegative and sum to one.
- At exact homogeneity, they average the common effect.
- Otherwise, every averaged effect is within σM of the population ATE.
- Thus altered weights contribute at most σM to the conditional target discrepancy.
P∈Pd,ϵ,M,σsupEQP(n)[{Tncol−τ(P)}2]≤CϵM2(n1+σ2+n2d).
This bounds crossed-cell estimation risk. The squared radius prices borrowing; the other terms price sampling noise and scarce comparisons.
Why is the scarcity cost linear in d?
Collision Intuition
Consider the uniform-cell special case, pk=1/d, used in the homogeneous lower-bound construction.
- Two independent observations share a cell with probability 1/d.
- A sparse sample therefore supplies roughly n2/d within-cell pairs.
- Fixed overlap gives a nonvanishing fraction of opposite-arm pairs.
At homogeneity, these comparisons all inform the same effect. Their reciprocal information scale is d/n2.
In denser samples, ordinary 1/n sampling noise governs the risk; pairs sharing observations do not create independent information indefinitely.
Our occupancy analysis makes this intuition uniform over arbitrary cell masses.
The Rare-cell Target
Borrowing becomes costly when cell effects differ substantially. We then need each cell’s population-weighted contribution.
Use two population ingredients from the polynomial construction:
- sak=P(A=a,X=k): the arm-cell probability.
- zak=EP[(Y/M)1{A=a,X=k}]: the normalized outcome moment in that arm-cell.
Since zak=sakμak/M, cell k’s normalized ATE contribution is
pk(z1k/s1k−z0k/s0k).
Ordinary adjustment replaces these ratios with sample means. For a rare arm-cell, the denominator can be zero.
We instead approximate the weighted ratios by polynomials in population probabilities.
Heavy and Light Cells
Split the sample: a pilot block classifies cells, and an independent estimation block estimates their contributions.
Heavy cells have enough pilot observations for ordinary adjustment.
hk:=m1Nk(1)MY1k(1)−Y0k(1).
Here m1 is the estimation-block size, Nk(1) its cell count, and Yak(1) its arm-cell sample mean.
This estimates the cell’s contribution as empirical frequency times its contrast, normalized by M.
Light cells receive polynomial corrections. Write L=log(en) and use probability scale B:=4096L/m1.
On the classification event used in the analysis, light cells satisfy pk≤B/4, hence sak/B≤1/4.
Estimating Probability Powers
For each light cell, average products involving distinct observations:
- One outcome observation in arm-cell (a,k).
- j additional arm-cell memberships.
- One additional cell membership, with either treatment arm.
Their aggregate formula is
Uk,a,j=MSak(1)⋅(m1)j+2(Nak(1)−1)j(Nk(1)−j−1),
where Sak(1) is the arm-cell outcome total, Nak(1) its count, and (N)r=N(N−1)⋯(N−r+1).
Independence across distinct observations gives the population expectation
E[Uk,a,j]=pksakjzak.
The three factors correspond to the final cell membership, the j arm-cell memberships and the single outcome observation. One outcome per product means higher polynomial orders require no higher outcome moments.
Weighted Reciprocal Approximation
The light-cell target contains reciprocals of arm-cell probabilities.
Let x=sak/B. The coefficient polynomial
∑j=0Kn−2gKn,jxj
approximates 1/x for 0<x≤1/4. Here Kn is the degree parameter and gKn,j are shifted-Chebyshev coefficients.
The useful guarantee is weighted:
x2∑j=0Kn−2gKn,jxj−1/x≤Kn−2.
Uniform accuracy for the reciprocal near zero is unnecessary. The ATE multiplies that reciprocal by pkzak.
Bounded means give ∣zak∣≤sak/2; overlap gives pk/sak≤1/ϵ. Together they bound the normalized cell-contribution error by B/(ϵKn2), including both arms.
Signed Polynomial Correction
Replace each population product by its unbiased distinct-observation statistic:
Pk:=a∈{0,1}∑(−1)1−aj=0∑Kn−2Bj+1gKn,jUk,a,j.
This is cell k’s normalized polynomial contribution. The arm signs subtract controls from treated outcomes.
Its expectation is
E[Pk]=∑a∈{0,1}(−1)1−aBpkzak∑j=0Kn−2gKn,j(sak/B)j.
Compare this with the target pk(z1k/s1k−z0k/s0k).
The polynomial replaces each reciprocal; the factorial statistic estimates every resulting probability product without dividing by an observed count.
This follows the large-alphabet approximation strategy of Jiao et al. (2015).
Combining Contributions
Add ordinary heavy-cell contributions and polynomial light-cell contributions:
Tnpoly:=Mclip[−1,1]k∈H∑hk+k∈L∑Pk.
The sets H and L are the pilot-classified heavy and light cells.
The sum estimates the ATE in units of M; multiplication returns to outcome units.
The construction estimates the aggregate contribution of rare cells. It does not require a reliable treatment-control contrast in every light cell.
The Logarithmic Bias Gain
A light cell’s normalized approximation error is at most B/(ϵKn2).
Summing over at most d cells gives aggregate bias at most dB/(ϵKn2).
Our calibration uses:
- Probability scale B:=4096L/m1.
- Degree Kn:=⌊α0L⌋, with a sufficiently small fixed constant α0.
- Logarithmic factor L=log(en).
The probability scale grows with one logarithm; the approximation denominator grows with its square.
Thus aggregate bias is at most a constant times d/(nL). Squaring gives the remainder d2/(n2L2).
The logarithmic improvement comes from weighted approximation accuracy. Can its variance remain controlled?
Variance Control
Increasing degree improves approximation but enlarges coefficients.
For a fixed light-cell set S, an estimation block of size m, degree K, and probability scale B, our covariance bound gives
VarQP(m)(k∈S∑Pk)≤mCϵ+Cϵ62K{dB2+md2K2B2}.
This bounds the variance of the aggregate light contribution. The factor 62K records coefficient growth; the remaining terms account for repeated-cell and cross-cell dependence.
With m=m1, B:=4096L/m1 and Kn:=⌊α0L⌋, the small degree multiplier keeps both correction terms bounded by a constant times 1/n+d2/(n2L2).
Adding squared approximation bias, heavy-cell error and pilot-classification error gives polynomial risk at most a constant times M2{1/n+min(1,un,d)}, where un,d=d2/{n2log2(en)}.
Choosing the Branch
Compare the polynomial and borrowing remainders:
un,d:=n2log2(en)d2.
This prices rare-cell approximation.
hn,d,σ:=σ2+n2d.
This prices heterogeneity and scarce crossed-cell comparisons.
τn⋆:=⎩⎨⎧Tncol,Tnpoly,0,hn,d,σ≤min{1,un,d},un,d<min{1,hn,d,σ},otherwise.
The choice is deterministic in known n,d,σ. The zero branch supplies the outcome-scale cap because ∣τ(P)∣≤M.
The selector converts two complementary estimation mechanisms into the main upper bound.
Lower-bound Mechanism
Two binary hard families from Zeng et al. (2024) explain the lower benchmark.
Homogeneity: a family with a common cell effect gives the unavoidable scale M2{n−1+min(1,d/n2)}.
Radius-sensitive difficulty: attenuate a hard binary family’s responses. Let λ=σ/2.
B′(a)∼Bernoulli{21+λ(B(a)−21)},
Here B(a) is a binary potential response and B′(a) its randomized replacement.
Y(a):=M{B′(a)−1/2}.
This centers and scales the replacement into our outcome model.
The same randomization applies to every competing law, so it cannot make them easier to distinguish. It contracts treatment-effect separation by σ/2, producing the lower term M2σ2min{1,un,d}.
Matched Regimes
Keep our model assumptions, known M,σ, and fixed overlap.
informal · Theorem T-13 Under our fixed-overlap model, for every σ>0 and σ≤σ≤2, the known-radius selector is minimax optimal in order for all n,d≥1, M≥1.
| Regime | Matched mean-squared risk, up to constants | |---|---| | Exact homogeneity: σ=0 | M2{n−1+min(1,d/n2)} | | Unrestricted effects: σ=2 | M2{n−1+min(1,un,d)} | | Radius bounded away from zero | M2rn,d,σ | | Saturation or baseline dominance | M2rn,d,σ |
Here rn,d,σ=n−1+min{1,un,d,hn,d,σ}.
For the last row, define bn,d=n−1+d/n2. Matching holds when 1≤un,d, un,d≤Kbn,d, or σ2≤Kbn,d, for any fixed comparison factor K≥0.
Our homogeneous example has linear sparse-cell cost because available comparisons can estimate one common effect.
Open Questions
The remaining matching problem concerns heterogeneity radii that shrink with sample size.
L:=log(en),b:=n−1+n2d,u:=n2L2d2.
Here b is the homogeneity baseline and u the polynomial remainder. A diverging gap between the proved benchmarks can occur only where
b≪u≪1,b≪σ2≪1,
meaning that both remainders vanish but remain much larger than the baseline.
- Can a stronger lower bound reach the selector benchmark M2{b+min(u,σ2)}?
- Can a better estimator approach the product benchmark M2(b+σ2u)?
- Unknown M,σ, changing overlap and inference require further analysis.
Takeaways
- Near homogeneity permits borrowing: altered cell weights cause little bias, and sparse comparisons cost d/n2.
- Polynomial adjustment repairs rare-cell ratios: distinct-observation products estimate a weighted reciprocal approximation; logarithmic degree gives aggregate bias of order d/(nL).
- Known heterogeneity determines the choice: our selector attains the better benchmark, with matching minimax bounds in the homogeneous, fixed-positive-radius, saturation and baseline-dominance regimes.
Appendix: Selector Upper Bound
With known outcome scale and heterogeneity radius, the selector attains the all-alphabet upper benchmark.
For every overlap parameter ϵ with 0<ϵ<1/2, there exist a constant Cϵ>0 and a polynomial calibration handle (Nϵ,ρϵ) such that:
- (Handle calibration.) ρϵ>0, and for every pair of integers n,d≥1, Nϵ≤n,d≤ρϵnlog(en)⟹2≤Kn, where Kn is the polynomial degree used by the polynomial estimator.
- (Index range.) The guarantee applies to every pair of integers n,d≥1, every M≥1, and every 0≤σ≤2.
- (Model class.) The law P ranges over Pd,ϵ,M,σ from Definition P-1.
For these indices, let Tnpoly be the admissible polynomial estimator calibrated by (Nϵ,ρϵ), let Tncol be the collision estimator, and let τn⋆ be the known-radius selector in Definition P-7 applied with radius σ to these two estimators, and write rn,d,σ=n1+min{1,min[n2log2(en)d2,σ2+n2d]} for the selector benchmark. Then τn⋆ is measurable, satisfies τn⋆(s)∈[−M,M] for every sample s, and P∈Pd,ϵ,M,σsupEQP(n)[(τn⋆−τ(P))2]≤CϵM2rn,d,σ.
Appendix: Radius-sensitive Lower Bound
Binary hard families transferred through a radius-dependent channel give the all-alphabet lower benchmark.
For every 0<ϵ<1/2, there exist constants cϵ and bϵrad such that 0<cϵ≤1,0<bϵrad. For all integers n,d≥1, all M≥1, and all 0≤σ≤2, the minimax mean-squared risk Rn,d,ϵ,M,σ of Definition P-9 satisfies cϵM2{n1+min(1,n2d)+σ2min(1,n2log2(en)d2)}≤Rn,d,ϵ,M,σ. Moreover, for the same constants and every such n,d,M,σ, there are a capped alphabet size drad, a source family, a padding map into {1,…,d}, an embedding into Pd,ϵ,M,σ, and a coupling realizing the radius-channel construction with source constant bϵrad. Along this realization, for all source laws P0,P1, τ(P1)−τ(P0)=M2σ{ψ(P1)−ψ(P0)}, and for every estimator τ taking values in [−M,M], some source law P satisfies cϵM2σ2min(1,n2log2(en)d2)≤EP{(τ−τ(P))2}.
Appendix: Two-sided Minimax Bracket
The constructive upper bound and unavoidable lower bound apply to the same real-outcome model class.
For every overlap parameter ϵ with 0<ϵ<1/2, there are real constants cϵ and Cϵ such that 0<cϵ≤1,1≤Cϵ,cϵ≤Cϵ. For every n,d∈N, M∈R, and σ∈R, suppose that
- (Sample and alphabet sizes.) n≥1 and d≥1.
- (Outcome envelope.) M≥1.
- (Radius range.) 0≤σ≤2.
Let Rn,d,ϵ,M,σ be the minimax mean-squared risk in Definition P-9 over the real-outcome class Pd,ϵ,M,σ with fixed overlap ϵ, conditional exchangeability, consistency, conditional mean normalization, conditional second central moment envelope M, and approximate-homogeneity radius σM. Define un,d=n2log2(en)d2,hn,d,σ=σ2+n2d, and write ℓn,d,σ=n1+min{1,n2d}+σ2min{1,un,d},rn,d,σ=n1+min{1,un,d,hn,d,σ}. Then cϵM2ℓn,d,σ≤Rn,d,ϵ,M,σ≤CϵM2rn,d,σ.
Appendix: Matched Regimes
The selector is optimal in the matched regimes, and a diverging benchmark gap is localized to shrinking radii.
Fix 0<ϵ<1/2. For n,d∈N, put Ln=log(en), bn,d=n1+n2d,un,d=n2Ln2d2,hn,d,σ=σ2+n2d,rn,d,σ=n1+min{1,min(un,d,hn,d,σ)}, and define qn,d,σ=n1+min{un,d,σ2+n2d},ℓn,d,σ=bn,d+σ2un,d. Let Rn,d,ϵ,M,σ be the minimax mean-squared risk in Definition P-9. Then all of the following hold.
- (Triangular benchmarks.) For every n,d∈N and every 0≤σ≤2, if Ln2<d<nLn, then 21{bn,d+min(un,d,σ2)}≤qn,d,σ≤bn,d+min(un,d,σ2),ℓn,d,σ=bn,d+σ2un,d.
- (Fixed interior radii.) For every σ∈(0,2], there exist constants c,C with 0<c≤C such that, for every n,d∈N, every M≥1, and every σ satisfying σ≤σ≤2, cM2rn,d,σ≤Rn,d,ϵ,M,σ≤CM2rn,d,σ, whenever n≥1 and d≥1.
- (Matching elbows.) For every K≥0, there exist constants c,C with 0<c≤C such that, for every n,d∈N, every M≥1, and every 0≤σ≤2, cM2rn,d,σ≤Rn,d,ϵ,M,σ≤CM2rn,d,σ, whenever n≥1, d≥1, and at least one of 1≤un,d,un,d≤Kbn,d,σ2≤Kbn,d holds.
- (Exact algebraic elbow.) For every n,d∈N with n≥1, un,d≤bn,d⟺d2≤nLn2+dLn2.
- (Sufficient elbows.) For every n,d∈N with n≥1, d≤nLn⟹un,d≤bn,d, and d≤Ln2⟹un,d≤bn,d.
- (Residual wedge implication.) For any sequences dn∈N and σn∈R, if eventually dn≥1 and 0≤σn≤2, and if the frontier-to-capped-converse benchmark ratio n−1+min{1,dn/n2}+σn2min{1,un,dn}rn,dn,σn→∞, then the sequence lies in the residual wedge: un,dnbn,dn→0,un,dn→0,σn2bn,dn→0,σn2→0.
- (Nonempty wedge.) The sequence dn=n and σn=Ln−1/2 lies in the residual wedge.
- (Diagonal divergence.) Along dn=n and σn=Ln−1/2, ℓn,n,Ln−1/2qn,n,Ln−1/2≍Ln eventually, and ℓn,n,Ln−1/2qn,n,Ln−1/2→∞.