Residual-Aware Output Representations for Scientific Surrogates
Anonymous authors
ICLR 2027
Abstract. Scientific surrogates are commonly trained to predict a complete physical response, whereas designs care about performance metrics derived from that response. This creates a distinct failure mode when a design-relevant metric is controlled by a small physical residual recovered through cancellation. We propose the residual-aware output representation method, where the surrogate exposes the small residual as an explicit output coordinate, reconstructs the complete response through an invertible transformation, and retains the original response-space training objective. In radio-frequency passives, exposing dissipation through impedance-like coordinates reduces relative error by on differential inductors and on six-port transformers with minimal change in scattering-response error; it also reduces circuit-level prediction violations. We further validate the proposed method on nanophotonic metasurfaces, reducing relative absorptance error. These results establish residual-aware output representation as a practical approach to cancellation-sensitive scientific problems.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 17:14 UTC.
- Rating
- 3/4
- Confidence
- 2/4
- Soundness
- 3/3
- Presentation
- 3/3
- Informativeness
- 3/3
Read review
Summary
This paper addresses a failure mode in scientific surrogates: small errors in a complete physical response can produce large errors in downstream metrics governed by cancellation-sensitive residuals. The authors propose residual-aware output representations that explicitly encode the relevant residual, reconstruct the complete response through an invertible transformation, and retain the original response-space training objective. The accompanying analysis characterizes the directional amplification of prediction errors near physical boundaries. For RF passives, the method exposes dissipation through impedance-based coordinates and reduces relative quality-factor errors by approximately 3.3–6.8× while maintaining comparable scattering-response accuracy. A nanophotonic experiment demonstrates an approximately twofold reduction in relative absorptance error. These results support output parameterization as a practical way to improve derived-metric accuracy without replacing complete-response prediction with task-specific regression.
Strengths
- Clear and practically relevant problem. The directional error analysis goes beyond observing a mismatch between response and task accuracy. The measured reduction in radial prediction error provides useful empirical support for the proposed mechanism.
- Simple, physically motivated formulation. The invertible representation preserves the complete response and its consistency with derived metrics, while avoiding additional task supervision in the main experiments.
- Meaningful downstream validation. Selected circuit designs are reevaluated using solver responses, and improvements remain after adding passivity filtering to the baseline. This strengthens the practical relevance of the prediction gains.
Weaknesses
The link between sensitivity analysis and learning remains incomplete. Equations (8) and (10) use different coordinate-error metrics. Their comparison does not establish reduced sensitivity under identical physical perturbations, nor explain why the unchanged response-space loss produces more favorable learned error directions. The main source of improvement deserves clearer emphasis. The direct (R,X) ablation nearly matches (log R,X), suggesting that explicit dissipation coordinates contribute more than the logarithmic parameterization. This distinction is important given the emphasis on logarithmic coordinates in the general formulation.
Questions for the authors
How does the theoretical coordinate-error metric relate to the error distribution actually learned under the unchanged response-space objective? Does the strong performance of direct (R,X) prediction extend to the other RF templates and downstream circuit tasks? How does a direct-S baseline with comparable scalar contractivity constraints perform?
4 comments
3. Direct with a scalar contractivity constraint. We trained two constrained componentwise- baselines on the differential inductor. The training protocols and loss definition here match those of the componentwise- row of Table 1. The only change is a map applied to the predicted differential-mode reflection , the mode from which is extracted, before the complete response is reconstructed.
- (a) Radial projection: The network predicts as in the baseline, and a prediction outside the unit circle is moved back onto that circle along the radial direction, while a prediction inside it is left untouched. This is the baseline plus the constraint .
- (b) Smooth radial map: The network's raw output is not used as directly. It is first squashed: its angle is kept, and its magnitude is replaced by , which is below for any . Every prediction therefore lies inside the unit circle.
| MAE$(S)$ | rel. error | |
|---|---|---|
| componentwise | 0.0062 | 0.172 |
| + radial projection (a) | 0.0060 | 0.184 |
| + radius (b) | 0.0071 | 0.071 |
| 0.0065 | 0.053 |
The radial projection (a) does not change error, so we can conclude that enforcing contractivity is not the mechanism. The smooth radial map (b) is changing coordinates: near the boundary the network's radial output equals up to a constant, which is already a residual-exposing coordinate, and as a result it recovers most of the gain in accuracy. Both results support the paper's claim that the improvement comes from residual-aware output coordinates.
Thanks for your reply. Basically, I think the motivation is critical and practical. Many scenes, such as Battery Life Prediction, Machine Learning Interatomic Potential, face the problem demonstrated in this paper. The model's performance is always extremely high in metrics, while can only provide limited screening or ranking ability, since the residual error is inherently small. Despite this, since I am not familiar with RF passive components, I can't further increase my score to four. That's why I give a weak accept with confidence 2. Best luck to the authors, I hope the paper can be accepted. By the way, I would appreciate it if the author could extend this paper to other scientific applications.
Thank you for your time and for your supportive comments. We agree that the same structure appears well beyond RF, including in battery-life prediction and interatomic potentials: a model can be accurate on the complete response and still unreliable for the small residual quantity which determines the quality of designs. The atmospheric heating-rate case added in this rebuttal is one of our first steps in that direction.
- Rating
- 1/4
- Confidence
- 3/4
- Soundness
- 1/3
- Presentation
- 1/3
- Informativeness
- 1/3
Read review
Summary
I could not evaluate the work. See Critical Weaknesses.
Strengths
I could not evaluate the work. See Critical Weaknesses.
Weaknesses
- I regret that I could not review the paper due to lack of clarity. Specifically, Line 87 in the introduction presents an equation that seems critical to the paper's motivation, but several quantities are undefined: What are the functions \rho and u? These are never defined. Somewhat less crucially, the dimensionality and/or set membership of all quantities in the introduction are left unclear (e.g., y, z, x). The authors should carefully proofread their paper for clarity before resubmission.
There are other examples of poor writing quality: e.g., Line 40 "because only the response-error component normal to the physical boundary is amplified to the first order". What physical boundary are we talking about? This is unclear.
Questions for the authors
I have no questions that can be effectively addressed in the rebuttal.
2 comments
Thank you for your comments. Below we demonstrate where each quantity is defined in the original manuscript. In the revised version, we will move these definitions into the introduction.
and (Line 87). The equation at L87 previews the construction defined in Sec. 2.2 (Eq. 3, Line 132-134). There, is the small physical residual (Line 89), is its logarithmic form, and is the remaining coordinates needed to reconstruct , chosen so that is invertible. For RF passives, the residual is the resistance and the representation is .
Quantities in the introduction. denotes the design parameters and the complete physical response (Line 29-30), with (Line 112); for RF passives, is the scattering response , and is the residual-aware representation of .
Physical boundary (Line 39). The boundary is , where the residual vanishes. It could be a conservation, passivity, or feasibility limit (Line 113). For RF passives it is the lossless unit circle . Dissipation is carried by the narrow radial margin between the response and the unit circle (Line 50-52, Fig. 1b).
We hope these pointers make the paper's motivation and method clear, and we would be grateful if you would reconsider your assessment.
This paper is definitely worth a higher score. Even for the readers unfamiliar with the application, I think the motivation and method are already clear and easy to follow.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
A surrogate model can predict a physical response accurately overall and still get a design metric badly wrong when that metric depends on a small residual left after near-cancellation. The paper calls this "directional error amplification" (Eq. 2). It proposes predicting the log of the residual plus complementary coordinates, rebuilding the response through an invertible map, and keeping the original loss on the response. For RF passive components it uses (log R, X). Relative Q error falls 3.3× for differential inductors, 6.7×/6.5× for transformers and 6.8× for spiral inductors, with similar MAE(S) (Table 1). The paper also shows gains at circuit level (Table 3), a 2.01× improvement on metasurfaces (Sec. 4.5), and a replication on an open process design kit (Table 7).
Strengths
The controls are strong. Q-supervision, a Jacobian-weighted loss, an impedance-space loss and a separate Q head (Sec. 4.3, App. E) separate the effect of the representation from changes to the objective. Auxiliary Q supervision reaches relQ 0.044 only at 20.6× the baseline MAE(S) (Table 2), whereas the proposed representation improves Q without that cost.
Weaknesses
The ML novelty and generality are limited. Each domain needs a hand-built invertible map, and impedance coordinates are already standard in RF. App. B shows that plain (R, X) without the log already gets relQ 0.0576 vs 0.0525, so most of the gain comes from a known reparameterization. There is no general recipe for choosing the coordinates, and the only non-RF result is a modest 2.01× with an MLP on 8-dimensional outputs.
Questions for the authors
Could you apply (log R, X) to the flat ResNet in Table 4, and ideally one more backbone? Outside cases with an obvious closed-form residual, how would someone build the coordinates and the invertible map? Could they be learned? Please add a stronger non-RF case, such as a field-level output or the formation-energy or drag settings cited in Sec. 1.
3 comments
Thank you for the detailed review and the constructive questions. We ran the experiments you asked for, and we will revise the manuscript accordingly. We divide the reply into three parts: (1) novelty, and how to construct the coordinates, (2) a non-RF case supporting the claim of the manuscript, (3) other backbones and the role of .
1. Novelty.
What is known. The mathematical equation between and impedance is textbook knowledge: engineers use it to read and from a response they already have. Transforming a regression target is also known, so we did not conclude the contribution in these domains.
What is new. We investigated each prior approach in ML venue, EDA venue and Circuit venue (discussed in Sec. 5 and tested for ablations in Sec. 4.3). We can conclude that each family of prior approaches gives up either the accuracy of the response or the accuracy of the metric read from it. The table below lists the comparison of approaches, with the values measured on the differential inductor.
| approach | MAE$(S)$ | rel. error | what it sacrifices |
|---|---|---|---|
| componentwise response surrogate () | metric accuracy | ||
| direct prediction of (separate head) | -- | - | the predicted is not the of the response |
| equivalent-circuit | -- | -- | restricts the response to a template (losing information) |
| auxiliary supervision | () | response accuracy | |
| loss reweighted toward impedance | -- | metric accuracy | |
| target transformation (loss on ) | -- | response accuracy | |
| passivity constraint on (new experiment) | metric accuracy | ||
| proposed: residual coordinate, response-space loss | -- |
The proposed method separates two roles which target transformation ties together: the residual becomes an output coordinate, while the objective stays on the complete response. The output remains a complete that circuit calculations reuse (Table 3).
Why it is not specific to RF. Equation 2 states the cause in general form: for a metric controlled by a small residual , only the component of the response error along is amplified, by . The representation gives that component its own coordinate. Measured in the plane, the radial error of the learned model falls by while the tangential error stays at the same scale (Sec. 4.2). Nothing in this argument relies on impedance: is its RF instance, and the metasurface (Sec. 4.5) and atmospheric (Part 2) cases are instances whose coordinates are not impedance.
2. Constructing the coordinates.
The residual is given by the task. A design metric is computed from the response by a formula, and is the small quantity in that formula: the dissipated power behind , the absorbed power behind an absorptance, the flux difference behind a heating rate. It is available in closed form from the definition of the metric.
Method. (i) Take from the definition of the metric. (ii) Use when is guaranteed by a conservation or passivity bound. (iii) Complete the coordinates with a that makes the map invertible, and keep the loss on the reconstructed response.
| domain | residual | representation |
|---|---|---|
| RF passives | ||
| metasurface | ||
| atmospheric column | flux difference across a layer | (top flux, layer increments) |
Can the coordinates be learned? In principle, yes: the map is invertible and differentiable, so it can be parameterized by an invertible network and trained with the definition of the metric as the signal; the response loss alone does not distinguish between invertible maps. In this paper the residual coordinate is taken from the definition of the metric, which is available in closed form in the cases we study, and the remaining coordinates use the simplest invertible completion. Learning the representation map is considered future work.
3. A field-level non-RF case: atmospheric heating rates. We added the heating-rate problem cited in Sec. 1 (Ukkonen, 2022). Its output is a vertical profile, and it has no connection to impedance.
Background. In every grid column, a weather or climate model computes how infrared radiation is absorbed and emitted by the atmosphere. The radiation solver returns the upward and downward energy fluxes (W/m$^2$) at each vertical level. What the model uses is the heating rate of each layer, i.e. how fast radiation warms or cools it, which is set by the difference of the net flux between the two levels that bound the layer:
The fluxes are hundreds of W/m$^2$, while their difference across one layer is about of them (median in our data). A flux error of is therefore of the order of of that difference, which is the cancellation structure of the paper with the flux difference as the residual.
Data. We implemented a gray (single-band) two-stream longwave solver with isothermal layers between and hPa ( levels) and a diffusivity factor of . The surface emits as a black body and no radiation enters at the top. A column is defined by six parameters, sampled independently: surface temperature (- K), tropospheric lapse rate (- K/km), tropopause height (- km), stratospheric temperature (- K), absorber scale height (- km), and total optical depth (-, log-uniform). The solver reproduces the analytic limits: zero heating in a transparent column, and the closed-form surface net flux of an isothermal column to machine precision. We use columns for training and for testing.
Surrogate and training. The surrogate maps the six parameters to the complete response, and at the levels ( outputs). Both representations use the same backbone (MLP with four hidden layers of width , GELU) and the same training: Adam, learning rate with cosine decay, batch size , epochs. Both minimize the same loss, the MSE on the standardized fluxes. The heating rate is not explicitly supervised.
Representations. Componentwise: the fluxes. Proposed: for each stream, the flux at the top level and the level-to-level increments; the fluxes are recovered by a cumulative sum before the loss. The increments are the residual. A heating rate can have either sign, so the residual coordinate is linear, , in place of the logarithm.
Metric. For each test column, the mean absolute heating-rate error over the layers, in K/day and also normalized by the root-mean-square heating rate of that column; we report the median over test columns. The typical heating-rate magnitude is K/day.
| flux MAE (W/m$^2$) | heating-rate error (K/day) | normalized heating-rate error | |
|---|---|---|---|
| componentwise fluxes | 0.044 | 0.0226 | 0.0088 |
| proposed | 0.041 | 0.0101 | 0.0039 |
The heating-rate error falls by (median of three seeds), and the flux error is slightly lower. Therefore, it proves effective of the residual-aware output representation and supports the claim of the manuscript.
4. Other backbones. We applied to two further backbones on the differential inductor. Both are residual networks built from the blocks of the flat network of Table 4.
- Residual network with frequency input. Geometry and frequency are concatenated and passed through residual blocks of width ( M parameters); the network predicts one frequency at a time.
- Flat residual network with a frequency-conditioned head. A residual trunk of the same width as the flat network of Table 4, whose per-frequency output layer is replaced by one -layer head shared across frequencies and fed with the Fourier frequency features of the main model. It has M parameters, comparable to the M of the flat network in Table 4.
Both are trained for epochs with the same training protocol.
| backbone | parameters | rel. error, | rel. error, | reduction |
|---|---|---|---|---|
| attention operator (paper) | 6.7 M | 0.172 | 0.053 | |
| residual network, frequency input | 3.4 M | 0.236 | 0.152 | |
| flat residual network, frequency head | 19.0 M | 0.111 | 0.085 |
The proposed representation lowers the error on each of the three backbones and in every training seed.
5. The role of . Direct is an instance of the proposed representation. vanishes with the dissipative margin , so is the residual, and gives it its own output coordinate with in place of . Its performance therefore supports the main claim: the gain comes from exposing the residual as an output coordinate. We trained on the other two templates and re-ran the circuit tasks.
| Transformer rel. error | 0.725 | 0.103 | 0.109 |
| Spiral rel. error | 0.804 | 0.161 | 0.119 |
| Matching: IL violation, median / p95 (dB) | 4.58 / 11.15 | 0.23 / 1.22 | 0.11 / 0.26 |
| Matching: selected designs with | 100% | 1.0% | 0 |
Both residual-exposing representations reduce the error by –. The logarithm is clearly better in circuit synthesis: it guarantees for any network output, hence a passive reconstructed response, and in matching-network selection it halves the median insertion-loss violation and every selected design is passive.
Comments on the paper
1 comment
Summary of Revisions and New Results
We thank the reviewers for their feedback. In our rebuttal, several main results are provided and summarized as follows:
-
Source of the accuracy improvement. The gain comes from exposing the residual as an output coordinate. Direct , which also exposes it, reduces relative error by 5-7× on the transformer and spiral templates, while a contractivity constraint alone does not help. The logarithm additionally guarantees a passive response: in matching-network selection, it halves the insertion-loss violation, and every selected design is passive.
-
Non-RF field-level case. On atmospheric heating rates, a vertical-profile output with no impedance involved, the residual-aware representation reduces heating-rate error by 2.2× with slightly lower flux error.
-
Other backbones. The improvement holds on all three backbones and every training seed.
We are happy to clarify further, and we hope these results address the reviewers’ concerns. We would be grateful if they could be reflected in the updated evaluations.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Thank you for the careful reading and informative feedback, and we answer your three questions below, two of them with new experiments, and we will revise the manuscript accordingly.
1. Sensitivity analysis and error. Whichever representation does not change the physical sensitivity of Q to S; it changes the direction of the network's own error. Under an identical perturbation of S, ΔQ is the same for every representation, because Q is computed from S mathematically. Eqs. 8 and 10 compare a different quantity: the Q error produced by an error of a given size in the quantities the network outputs. When the network outputs S, its error is set against the small dissipative margin ϵ, and a radial error K gives a relative Q error of about 2K/ϵ (Eq. 7). When it outputs logR, an error of the same size is a relative error in R, and the relative Q error has that same size (Eq. 10).
To compare the two models (same backbone) with one ruler, we measure their learned errors in the physical S plane (Sec. 4.2, Fig. 2b). The mean radial error falls from 8.3×10−3 to 1.5×10−3, which is a 5.5× reduction, while the mean tangential error stays at the same scale (4.1×10−3 and 5.9×10−3). As a result, K/T moves from 2.08 to 0.26. The training loss (MAE of S) is the same in both cases.
2. Source of the improvement; (R,X) on the other templates and circuit tasks. Direct (R,X) is an instance of the proposed representation. R=Zdϵ/∣1−s∣2 vanishes with the dissipative margin, so R is the residual, and (R,X) gives it its own output coordinate with ρ(m)=m in place of ρ(m)=logm. Its performance therefore supports the main claim: the gain comes from exposing the residual as an output coordinate. We trained (R,X) on the other two templates and re-ran both circuit tasks (based on the protocol in Sec. 4.4, pooled over three seeds).
Both residual-exposing representations reduce Q error by 5–7× on both templates at similar MAE of (S).
The logarithm achieves clearly better result in circuit synthesis. It guarantees R>0 for any network output, leading to a passive reconstructed response (Proposition 1). In transformer matching-network selection, where the design is chosen by minimizing the predicted insertion loss, (logR,X) halves the median insertion-loss violation (0.11 against 0.23 dB), lowers its 95th percentile from 1.22 to 0.26 dB and that of the optimality gap from 0.92 to 0.20 dB, and every selected design is passive (while (R,X) coordinate has 1% non-passivity).