Papers
Topics
Authors
Recent
Search
2000 character limit reached

Deconfounded Hierarchical Gate (DHG)

Updated 5 July 2026
  • DHG is a causal gating mechanism that decouples nuisance effects by counterfactually adjusting validator scores in physics-constrained deep generative models.
  • It removes confounding through backdoor adjustments and hierarchical activation, ensuring that global constraints precede localized detail in generation.
  • Empirical results in lithium-ion battery temperature extrapolation show significant RMSE reductions by enforcing coarse-to-fine physical constraints.

Deconfounded Hierarchical Gate (DHG) is a causal gating mechanism for physics-constrained deep generative modeling under confounding, introduced to address out-of-distribution extrapolation when a nuisance variable causally affects both the generated state and the apparent physics residual. In the formulation reported for lithium-ion battery temperature extrapolation, DHG acts as both a diagnostic and a control mechanism: it identifies when and how strongly temperature confounding contaminates each constraint level, removes that contamination through counterfactual estimation and backdoor adjustment, and activates hierarchical physical constraints progressively in a coarse-to-fine order during generation (Okita, 8 May 2026).

1. Problem setting and motivation

DHG is motivated by a failure mode of physics-constrained deep generative models in out-of-distribution regimes such as temperature, material, or protocol shift. The reported setting concerns diffusion or flow-matching style generators with physics penalties, where a common practice is to apply a single static regularization term uniformly across timesteps and samples. The method is introduced on the premise that this practice is inadequate for two stated reasons: physical constraints are hierarchical, and the constraint signal itself can be confounded (Okita, 8 May 2026).

The hierarchy claim is operational rather than purely conceptual. Coarse, global consistency is treated as a prerequisite for finer local detail, so a uniform penalty ignores priority structure across levels. The confounding claim is causal: a nuisance variable such as temperature affects both the generated data and the measured violation or validator score. Under such conditions, a high residual is not uniquely interpretable as intrinsic physical inconsistency.

The battery example is used to make this ambiguity explicit. Temperature ZZ affects internal resistance, producing a sharp early voltage dip at low temperature in Phase 1, and also affects degradation rate through an Arrhenius mechanism, producing an earlier terminal drop at high temperature in Phase 3. The reported interpretation is that these effects create Simpson’s paradox: correlations reverse when conditioning on temperature. A naive constraint can therefore penalize physically valid waveforms solely because their appearance changes with temperature (Okita, 8 May 2026).

A central implication is that raw validator outputs or PDE residuals are not neutral measurements in shifted environments. They may mix intrinsic inconsistency with environment-specific appearance changes, so directly optimizing them can push a generator away from valid solutions under new conditions. DHG is designed to separate these contributions.

2. Causal formulation and deconfounding

The causal formulation uses a structural causal model with XX as the current generative state, YY as the physical target or validator score, ZZ as the confounder, ClC_l as the level-ll constraint, and glg_l as the gate modulating that constraint’s contribution. At a high level, the causal relations are Z→XZ \rightarrow X, Z→YZ \rightarrow Y, and X→YX \rightarrow Y, with lower-level constraint signals influencing higher-level decisions.

At level XX0, the observational violation is defined as

XX1

where XX2 is either a learned validator or a residual norm. DHG seeks a counterfactual or interventional quantity that neutralizes the confounder:

XX3

In practice, the intervention is implemented by holding XX4 fixed while replacing the temperature input to the validator. With a virtual set of temperatures XX5, the approximation is

XX6

The causal reference point is the backdoor adjustment formula

XX7

The distinction emphasized in the method is that XX8 averages over the spurious path XX9, whereas intervention blocks that path. DHG applies this logic not by changing the generator state, but by intervening on YY0 in the validator (Okita, 8 May 2026).

A second deconfounding step addresses inter-level dependence. Higher-level scores may inherit confounding through lower-level signals, so DHG regresses out lower-level counterfactual violations:

YY1

where YY2 denotes stop-gradient. The learned coefficients YY3 serve as inter-level backdoor adjustments and are interpreted as carriers of confounding strength across levels.

DHG also defines an explicit diagnostic quantity,

YY4

which measures how much the observational score differs from its temperature-neutral counterpart. Larger YY5 indicates stronger confounding at level YY6. This makes DHG not only a training mechanism but also a way to render confounding empirically visible.

3. Hierarchical gates and training objective

The hierarchical component activates constraints from global to local along continuous flow-matching generation time YY7. The reported three-level design assigns Level 1 to global self-consistency, Level 2 to mid-scale patterns, and Level 3 to local consistency. The initial activation offsets are YY8, YY9, and ZZ0, corresponding respectively to early, mid, and late stages of generation (Okita, 8 May 2026).

Each level uses a sigmoid time schedule

ZZ1

with learnable ZZ2 initialized to ZZ3. This schedule determines when each constraint becomes active along the generation trajectory.

The actual gate for level ZZ4 is defined from lower-level deconfounded scores:

ZZ5

Its role is to suppress higher-level constraints until lower-level deconfounded violations are sufficiently small. In the stated intuition, global consistency must be achieved before more localized constraints contribute gradients. The gate is therefore hierarchical in dependency and causal in its input signal.

The loss combines data fitting, frozen-operator guidance, and deconfounded hierarchical constraints. The general form is

ZZ6

with ZZ7. In the reported implementation,

ZZ8

and

ZZ9

with ClC_l0 and ClC_l1.

The level-specific constraint ClC_l2 can take two forms. When physical equations are not directly imposed, ClC_l3 is the learned self-consistency score ClC_l4 or a calibrated transform of ClC_l5. When PDEs are known, ClC_l6 can be a residual norm such as ClC_l7, with the same deconfounding procedure applied to counterfactual residuals. This makes DHG compatible with both learned validators and explicit PDE residuals.

4. Integration with FNO and conditional flow matching

The full reported pipeline is HPC-FNO-CFM with DHG. It combines a pretrained Fourier Neural Operator, a conditional flow-matching generator, and level-specific validators. The FNO(1) component is a Fourier Neural Operator for 1D sequences with 3 layers, 16 Fourier modes, width 64, and approximately 9.5M parameters. The generator is a conditional flow matching model with a U-Net velocity field ClC_l8. The validators ClC_l9 are two-layer MLPs with ReLU and sigmoid (Okita, 8 May 2026).

The procedure is organized into three stages. In Stage 1, FNO(1) is pretrained on multi-condition data excluding the target domain. The pretraining loss is MarginRankingLoss enforcing temperature ordering, exemplified by lower average voltage at higher temperature. The pretrained parameters ll0 are then frozen. In Stage 2, the CFM is trained with a condition encoder ll1, and the frozen FNO output

ll2

is provided as an extra input to the velocity field without updating ll3. In Stage 3, the validators and CFM are trained jointly with DHG-based deconfounded hierarchical constraints.

At the per-batch level, Stage 3 computes ll4, evaluates ll5, forms ll6 by averaging over ll7, adjusts higher-level scores using learned ll8, constructs gates ll9, computes the time schedule glg_l0, and accumulates glg_l1. Only the CFM and validators are updated; the pretrained FNO remains frozen.

The temperature encoder glg_l2 is given explicitly as a 3D encoding:

glg_l3

with glg_l4, glg_l5, and glg_l6.

The reported training schedules are also explicit. Pretraining uses glg_l7, 500 epochs, and a WSD scheduler. Downstream training uses glg_l8, 300 epochs, and gradient clipping at 1.0. The number of DHG levels is glg_l9, the schedule offsets are initialized to Z→XZ \rightarrow X0, and the learned inter-level coefficients Z→XZ \rightarrow X1 are clamped, for example, at Z→XZ \rightarrow X2 or Z→XZ \rightarrow X3 to ensure stability (Okita, 8 May 2026).

5. Empirical results and the target-exclusion finding

The principal benchmark is lithium-ion battery temperature extrapolation. Training uses NASA data at Z→XZ \rightarrow X4 only, specifically B0005–B0007 with 168 cycles each. Evaluation is performed at Z→XZ \rightarrow X5, Z→XZ \rightarrow X6, Z→XZ \rightarrow X7, and Z→XZ \rightarrow X8 across five groups: Near, Low1, Low2, High1, and High2. Inputs are voltage waveforms Z→XZ \rightarrow X9 resampled to 50 points and normalized, together with capacity Z→YZ \rightarrow Y0 of sequence length 50 (Okita, 8 May 2026).

The reported voltage-waveform RMSE values are as follows:

Setting RMSE
Pure CFM 0.397
DHG + hierarchical constraints + frozen FNO(1) 0.224
DHG + hierarchical constraints + frozen FNO(1), corrected scheduler 0.215
Training from scratch 0.480

The paper also reports that FID/PFD improves consistently and correlates with RMSE. For capacity extrapolation, frozen pretrained FNO(1) achieves RMSE 0.084, compared with 0.214 from scratch.

A particularly notable result concerns pretraining strategy. Excluding the target domain from FNO pretraining improves extrapolation by 39%, with RMSE Z→YZ \rightarrow Y1 versus Z→YZ \rightarrow Y2, and the text also notes Z→YZ \rightarrow Y3 in a specific setup. After a corrected scheduler, the best RMSE is Z→YZ \rightarrow Y4. The stated interpretation is that withholding NASA forces the model to learn condition-invariant physical structure, such as temperature-dependent ion transport, rather than domain-specific shortcuts tied to electrode-chemistry-specific discharge shape. The paper explicitly connects this observation to invariant risk minimization and to temperature confounding in NASA via Simpson’s paradox. A common expectation is that including target-domain data should improve transfer; the reported result shows the opposite in this setting (Okita, 8 May 2026).

DHG-specific diagnostics reinforce the confounding interpretation. Learned backdoor coefficients Z→YZ \rightarrow Y5 are larger in datasets with larger temperature span, and MICH_EXP reaches the clamp upper bound, which is described as consistent with stronger confounding. Temperature discrimination accuracy from generated waveforms is above random in both reported datasets: NASA achieves Z→YZ \rightarrow Y6 versus random Z→YZ \rightarrow Y7, and MICH_EXP achieves Z→YZ \rightarrow Y8 versus random Z→YZ \rightarrow Y9. Increasing the clamp upper bound on X→YX \rightarrow Y0 from X→YX \rightarrow Y1 to X→YX \rightarrow Y2 improves RMSE on MICH_EXP from X→YX \rightarrow Y3 to X→YX \rightarrow Y4, indicating that sufficient correction capacity can matter. The learned schedule offsets remain near X→YX \rightarrow Y5 after training, which is presented as evidence for coarse-to-fine activation.

6. Practical use, scope, and limitations

The reported guidance for other domains begins with confounder identification. The confounder X→YX \rightarrow Y6 should causally affect both system states and constraint signals. Examples named in the paper include temperature in fluids or transport, viscosity, Mach number, and material properties. This suggests that DHG is intended for settings where the nuisance variable is structurally entangled with what a validator measures, rather than merely correlated with the dataset (Okita, 8 May 2026).

Hierarchy design is likewise domain-aware. Level 1 is assigned to global invariants such as mass or charge balance, monotone trends, or energy bounds. Level 2 is assigned to mid-scale structure such as constitutive relations, dominant modes, or coarse PDE residuals. Level 3 is assigned to local detail such as pointwise PDE residuals, boundary conditions, or range constraints. If equations are known, the hierarchy can be instantiated with increasingly fine residuals; if equations are unknown or noisy, learned validators can score self-consistency instead.

The deconfounding procedure requires choosing a counterfactual set X→YX \rightarrow Y7 or more generally X→YX \rightarrow Y8 that covers the expected range, together with an empirical or uniform prior X→YX \rightarrow Y9. Counterfactual scores are computed by replacing XX00 in the validator while holding XX01 fixed. The learned XX02 coefficients are trained with stop-gradient on the predictors and clamped in a range such as XX03 to XX04. Reported hyperparameter guidance includes gate sharpness XX05 typically between 5 and 20, learnable schedule offsets initialized to XX06, and a small XX07, for example XX08, to avoid overpowering the data loss. The compute overhead is reported as approximately XX09 baseline because of multiple validator passes over XX10, with a recommendation to keep XX11 modest, such as 3–7, or to subsample per step.

The stated limitations are causal, statistical, and operational. DHG assumes that the dominant confounder has been correctly identified; unobserved confounders can remain. Its counterfactual estimates depend on validator quality; weak validators degrade deconfounding. It also assumes the availability of a reasonable XX12 and XX13 set. Failure modes include over- or under-correction through the XX14 clamps and brittle gates when XX15 is too sharp. The method is also described as less helpful when out-of-distribution behavior is governed by feedback dynamics, such as cycle extrapolation with nonlinear degradation, where explicit modeling of feedback may be required. More broadly, the paper presents DHG as demonstrated on batteries across temperature, while noting that extension to other PDE-governed systems is promising but requires a domain-aware hierarchy (Okita, 8 May 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Deconfounded Hierarchical Gate (DHG).