PeTeR taught us to robustify a circuit against the worst case inside an ordinary Circuit-Wasserstein ball. Classification under covariate shift asks for something narrower: the labels may keep their manners while the features misbehave.

The constraint we actually want

Suppose we have learned a PC PP to estimate the training joint Ptrain(X,Y)P_{\mathrm{train}}(X, Y). In the covariate-shift story, P(YX)P(Y \mid X) is supposed to survive the journey to test time; only the feature marginal is allowed to move. A joint ball CW(P,Q)ε\mathsf{CW}(P, Q) \le \varepsilon is therefore too permissive. It lets QQ rearrange the conditionals as freely as the marginals.

What we want instead is a conditional Circuit-Wasserstein ball: adversaries QQ such that

CW(PX,QX)εandQ(YX)=P(YX).\mathsf{CW}(P_X, Q_X) \le \varepsilon \quad\text{and}\quad Q(Y \mid X) = P(Y \mid X).

The DRO game is then the usual minimax over predictors hh,

minhmaxQ  EQ[Ey^h(x)[(y,y^)]],\min_h \max_Q \; \mathbb{E}_Q\bigl[\mathbb{E}_{\hat{y} \sim h(\cdot \mid x)}[\ell(y, \hat{y})]\bigr],

but the inner maximization is confined to that constrained neighborhood. The CW\mathsf{CW} constraint on the XX-marginals is the easy half—marginalize, then apply the same Lagrange trick PeTeR already uses. Preserving the conditional is the half that requires manners.

How to keep Q(YX)=P(YX)Q(Y \mid X) = P(Y \mid X)

Rather than writing the conditional equality as a tangle of parameter constraints on QQ, reparameterize the adversary by importance reweighting on features alone:

Q(X,Y)=P(X,Y)Rθ(X)Zθ.Q(X, Y) = \frac{P(X, Y)\, R_\theta(X)}{Z_\theta}.

When RθR_\theta is a smooth, decomposable, non-negative arithmetic circuit compatible with PP, the product can be materialized as a circuit in polynomial time after renormalizing by ZθZ_\theta. The conditional then cancels cleanly:

QX(X)=PX(X)Rθ(X)ZθQ(YX)=P(YX).Q_X(X) = \frac{P_X(X)\, R_\theta(X)}{Z_\theta} \quad\Longrightarrow\quad Q(Y \mid X) = P(Y \mid X).

Feasible QQ are therefore whatever you get by learning θ\theta under the mild demand that RθR_\theta stay non-negative. The Circuit-Wasserstein budget still polices how far QXQ_X may drift from PXP_X. Big Wasserstein is not invited to renegotiate the conditional in the hallway.

Community reading

Conditional CW\mathsf{CW} balls are how the archive plans to talk about distributionally robust classification without pretending every shift is a joint free-for-all. Keep the label map fixed. Budget the feature marginal. Compute the distance we can actually compute.

Elsewhere

OpenCW is scheduled to present before Congress on the danger of conditional Circuit-Wasserstein balls, and to recommend that all progress be paused until the end of the year. The Circuit-Wasserstein Ball Community will continue filing minutes in the interim. Big Wasserstein has offered to testify as an expert on delay.

← Back to posts