Unbiased First-Order Randomized Smoothing for Differentiable Simulators
Mathis SCHEFFLER, Wilson Jallet, Cordelia Schmid, Justin Carpentier
NeurIPS 2026
TL;DR. Unbiased, low-variance gradient estimators for non-smooth physical simulations using first order information.
Abstract. Computing informative gradients through nonsmooth physical models—such as those involving hard contact or bouncing—is a cornerstone challenge in robotics and machine learning. Randomized smoothing offers a principled way to obtain well-behaved surrogate gradients, yet standard first-order estimators of these smoothed gradients are biased whenever the underlying function is discontinuous. In this work, we show that this bias arises from neglected discontinuity contributions and derive a corrected first-order formula that eliminates it. When the discontinuity structure is known, we exploit it to build discontinuity-aware gradient estimators, which we instantiate for differentiable collision detection on 3D meshes. When it is unknown, we propose a complementary estimator that leverages classical gradients to reduce variance. We validate this estimator on nonsmooth trajectory optimization instances, demonstrating variance reductions of several orders of magnitude over zeroth-order baselines in the smooth regime, while remaining unbiased under discontinuities where standard first-order estimators fail.
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
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper considers the problem of gradient estimation in differentiable simulation, and shows that the bias in estimating such gradients results from ignoring gradient contributions at discontinuity boundaries. The paper derive a corrected first-order expression that removes the bias. When the locations and structure of the discontinuities are known, this information is used to construct discontinuity-aware gradient estimators. The reviewers agree that the paper is well-written and contains important contributions to the field of differentiable simulation. Some of the issues raised by the reviewers are related to: (1) the relevance of the test benchmarks to this problem, (2) the low-dimentional nature of the systems considered in the experiments, (3) the assumptions made for the theoretical analysis and that are perhaps too strong and may not hold in practice.
Final justification
The authors addressed most of our concerns in the rebuttal.
- Final justification
- The authors addressed most of our concerns in the rebuttal.
Read meta-review
Meta-review
This paper considers the problem of gradient estimation in differentiable simulation, and shows that the bias in estimating such gradients results from ignoring gradient contributions at discontinuity boundaries. The paper derive a corrected first-order expression that removes the bias. When the locations and structure of the discontinuities are known, this information is used to construct discontinuity-aware gradient estimators. The reviewers agree that the paper is well-written and contains important contributions to the field of differentiable simulation. Some of the issues raised by the reviewers are related to: (1) the relevance of the test benchmarks to this problem, (2) the low-dimentional nature of the systems considered in the experiments, (3) the assumptions made for the theoretical analysis and that are perhaps too strong and may not hold in practice.
1 comment
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper develops unbiased first-order gradient estimators for randomized smoothing of discontinuous functions, a setting that is pervasive in differentiable simulation (hard contact, collisions, friction).
The motivation is a known failure mode. The smoothed surrogate has a well-defined gradient , but the standard first-order bundle estimator (FoBG) averages and thus implicitly assumes , an identity that holds only for functions and breaks at discontinuities. FoBG is therefore biased, forcing a return to the unbiased but high-variance zeroth-order estimator (ZoBG).
Using distributional (Schwartz) derivative calculus, the authors derive a corrected formula (Theorem 1) in which equals the FoBG smooth term plus surface integrals over the discontinuity surfaces that recover the missing signed jumps:
This pinpoints FoBG's failure: for the Heaviside step it returns , whereas the formula recovers the true smoothed gradient .
Two estimators follow, depending on whether the discontinuity structure is known:
- QFoBG (discontinuities known): a sampling-free quadrature scheme for differentiable collision detection on 3D meshes, where the discontinuity surfaces of a polytope support function are edge cones. The smoothed Hessian is nearly closed-form (one 1D Gauss–Legendre integral), giving zero variance and orders-of-magnitude lower error than ZoBG at equal compute on GraspNet.
- CFoBG (discontinuities unknown): estimates the smooth part via antithetic FoBG and the jump correction via a leave-one-out zeroth-order residual. It is proved unbiased (Prop. 2) with variance away from discontinuities versus for ZoBG, and matches ZoBG's rate near them.
Empirically, on DDP trajectory optimization CFoBG discovers the jump on a discontinuous Platformer task where biased FoBG stalls, and matches FoBG on smooth Hopper tasks while cutting estimator variance by 3–4 orders of magnitude over ZoBG.
Strengths and weaknesses
This submission tackles a genuinely awkward problem in differentiable simulation: the standard first-order bundle estimator (FoBG) for the gradient of a randomized-smoothing surrogate is biased whenever the underlying function is discontinuous, which is exactly the regime that matters for contact-rich robotics. The community has known about this failure since Suh et al. (2022b), and the prevailing responses have been either to retreat to the unbiased but high-variance zeroth-order estimator (ZoBG) or to interpolate between the two (AoBG). The authors take a more principled route: instead of trading bias for variance, they diagnose where the bias comes from and remove it. I find the overall framing compelling and the execution largely convincing, with the main reservations concerning empirical breadth and a few claims I could not fully check.
Quality. The technical core is sound and, importantly, the diagnosis and the fix are tightly coupled. The key move is to treat the nonsmooth as a Schwartz distribution and write its generalized derivative as the classical gradient plus signed-jump surface measures; convolving with then yields the corrected formula (Theorem 1) in which FoBG is exactly the smooth term and the bias is exactly the omitted discontinuity integrals. This is a satisfying explanation rather than a patch, and the Heaviside worked example ( vs. FoBG's ) makes the mechanism concrete. The two estimators are well matched to their regimes. For QFoBG, reducing the polytope support-function discontinuities to edge cones and obtaining a near-closed-form smoothed Hessian (with a single 1D Gauss–Legendre integral) is a clean instantiation, and the zero-variance claim is well argued. For CFoBG, the leave-one-out construction is the crux: it is what buys unbiasedness while still using first-order information, and Proposition 2's rate away from discontinuities is a meaningful improvement over ZoBG's . The authors are also commendably honest about the limitation that CFoBG gives no variance reduction near discontinuities (the regime), and Appendix C even quantifies the residual bias of the competing AoBG.
That said, several quality concerns temper my enthusiasm. (i) The empirical evaluation is thin relative to the generality of the claims: trajectory optimization is demonstrated only on a 2D Platformer and two low-dimensional Hopper variants, all with . Given that the motivating pain point is contact-rich manipulation and locomotion, I would want to see at least one higher-dimensional or genuinely contact-rich task before believing the method scales. (ii) The headline "3–4 orders of magnitude" variance reduction holds in the smooth regime, but CFoBG's cost is evaluations of both and (an antithetic ZoBG plus an antithetic FoBG); a per-wall-clock or per-evaluation comparison against ZoBG and AoBG would make the trade-off defensible rather than asserted. (iii) Proposition 2's variance proof leans on Taylor expansions and a leave-two-out decomposition whose cross-term bookkeeping I could examine only at the level of the argument's structure; the result is plausible and the steps look right, but a reviewer with more time on the appendix should confirm the bound on .
Clarity. The paper is well organized and, for a distribution-theoretic treatment, unusually readable. Section 2 builds the ZoBG/FoBG background cleanly, Section 3 motivates the correction before formalizing it, and the "known vs. unknown discontinuities" split gives the reader a clear map. The three obstacles to applying Theorem 1 directly (combinatorial explosion, composition of simulation steps, non-commutativity with composition) are a genuinely useful discussion, and the bouncing-ball illustration of how discontinuities cancel across time steps is the kind of intuition the topic needs. Minor issues: the inline rendering of several equations (e.g., the jump definition and the CFoBG formulas) is cramped and hard to parse; the leave-one-out notation could be stated more explicitly when first used; and I noticed an internal inconsistency in the checklist, which cites "Golse [2010]" whereas the main text and bibliography use Golse 2020. None of these affect correctness, but they should be fixed.
Significance. If the central claim holds up, this is a useful contribution to a community that currently accepts a real bias/variance dilemma as a fact of life. The result is directly relevant to differentiable physics, trajectory optimization, and (as the authors note) first-order RL on nonsmooth dynamics, and the QFoBG collision-detection application is concrete enough that practitioners could adopt it more or less immediately. The conceptual transfer from differentiable rendering (edge sampling, parametric discontinuities) into randomized smoothing for robotics is the kind of cross-pollination that tends to have legs. My main hesitation about significance is the same as for quality: the practical payoff in the hardest setting (near discontinuities, which is where contact actually lives) is explicitly not improved by CFoBG, and QFoBG's applicability hinges on enumerable discontinuity surfaces, so the demonstrated "best of both worlds" is somewhat narrower than the abstract's framing suggests.
Originality. The work is original in the way that matters here: not a brand-new optimization method, but a new and clarifying lens on an existing one. Recasting the FoBG bias as missing distributional-derivative terms, and then turning that diagnosis into two regime-specific unbiased estimators, is a novel synthesis rather than an incremental tweak of AoBG. The relationship to prior work (Suh et al., Lidec et al. for the smoothing side; Li et al., Bangaru et al., Michel et al. for the rendering side) is clearly drawn, so the delta over existing contributions is easy to locate. The leave-one-out residual that makes CFoBG unbiased without sacrificing first-order information is, to my knowledge, the most genuinely new technical ingredient.
Overall. A well-motivated, clearly written paper with a principled core result and two sensible instantiations. The theory is the strongest part; the empirical validation is the weakest and is what currently holds me back from a stronger endorsement. I would be inclined toward acceptance if the authors (a) add a higher-dimensional / contact-rich experiment or convincingly argue why the 2D/Hopper suite suffices, (b) report compute-matched comparisons that account for CFoBG's first- and zeroth-order evaluations, and (c) fix the citation inconsistency and tighten the appendix variance argument.
Questions
1. Empirical scaling beyond low-dimensional tasks. The motivating pain point is contact-rich robotics, yet the trajectory-optimization evaluation is limited to a 2D Platformer and two low-dimensional Hopper variants. Could you either (a) add one higher-dimensional or genuinely contact-rich task (e.g., a planar pushing/manipulation or a multi-contact locomotion setting), or (b) argue explicitly why the current suite is sufficient to support the generality implied by the abstract? I am not asking for a large-scale study — even a single additional task with the existing protocol would help me judge whether CFoBG's smooth-regime advantage and unbiasedness persist as state and contact dimensionality grow. This is the single change most likely to raise my Significance and Quality scores; absent it, my concern is that the demonstrated "best of both worlds" may be specific to toy regimes.
2. Compute-matched comparison. CFoBG requires evaluations of both and (one antithetic ZoBG plus one antithetic FoBG), whereas ZoBG needs only function evaluations. The headline "3–4 orders of magnitude" variance reduction is reported per-sample. Could you provide a variance-vs-wall-clock (or variance-vs-total-evaluations) comparison against ZoBG and AoBG? If the gain survives a per-evaluation accounting, this would directly strengthen the central claim; if it shrinks substantially, I would want the abstract's framing softened accordingly.
3. QFoBG applicability boundary. QFoBG's elegance depends on the discontinuity surfaces being enumerable edge cones of a convex polytope. How does the approach degrade for (a) non-convex geometries handled via convex decomposition, and (b) the many-edge regime — does the per-edge cost in remain practical, and at what vertex/edge count does the closed- form advantage over ZoBG disappear? Clarifying the operating envelope would help me calibrate how broadly the QFoBG contribution applies.
Minor (no response needed to change my score): Please reconcile a few internal inconsistencies: (i) the checklist cites "Golse [2010]" whereas the main text and bibliography use Golse 2020; (ii) checklist item 7 reports "400 random seeds" for the Table 1 medians, but the main text (Section 4.2) only specifies 100 independent trials and never states a seed count for the trajectory-optimization results — please state the actual protocol for Table 1 in the main text; (iii) Appendix D refers to "Section D" where Section 4.2 appears to be intended.
Limitations
Yes.
Formatting concerns
No major formatting or anonymity violations observed.
2 comments
We thank the reviewer for the detailed review, and for listing explicit conditions. We address them in order. (a) New experiments (§1). (b) A compute-matched comparison (§2). (c) A restructured proof, together with the corrections (§5). §3 addresses the significance concern and §4 answers Q3.
§1 New experiments (condition (a), Q1, and point (2) of the initial meta-review)
We ran three tasks from the benchmark suite of Suh et al. (2022): Pushing with soft contact ( and ), Friction (Coulomb stick-slip), and Tennis (policy optimization, , horizon ). We used their hyperparameters (, ; we use antithetic sampling while they do not) and their experimentation protocol. AoBG uses . Final cost, median [Q25, Q75] of over 100 seeds:
| Task | ZoBG | FoBG | AoBG | CFoBG (ours) |
|---|---|---|---|---|
| Tennis () | 3.211 [3.208, 3.213] | 5.576 [5.576, 5.576] | 3.211 [3.208, 3.213] | 3.211 [3.208, 3.213] |
| Friction | 8.858 [8.855, 8.860] | 9.081 [9.080, 9.086] | 8.858 [8.855, 8.860] | 8.853 [8.850, 8.857] |
| Pushing soft, | 7.064 [7.060, 7.070] | 7.028 [7.028, 7.028] | 7.064 [7.060, 7.070] | 7.028 [7.028, 7.028] |
| Pushing soft, | 7.029 [7.029, 7.029] | 7.028 [7.028, 7.028] | 7.029 [7.029, 7.029] | 7.028 [7.028, 7.028] |
Without having to know which regime it is in (continuous or discontinuous), CFoBG is best or tied-best on every task. FoBG's bias makes it fail on Friction and Tennis, while ZoBG gives up first-order sample efficiency when samples are scarce (). Furthermore, CFoBG performs as well as ZoBG when we increase dimensionality as in the tennis task.
On dimensionality. All sampling-based estimators degrade in high dimension, ZoBG included. This is a property of randomized smoothing itself, not of our correction. There are two ways to deploy it. One can smooth directly in neural network's weight space and rely on sample count. Or one can write the objective as , with a network and the nonsmooth simulator-and-loss: the discontinuities live in alone, so it suffices to smooth in the input space of and backpropagate the resulting gradient through by ordinary autodiff. In robotics that input is typically an action or state vector, a few tens of dimensions at most. The Tennis task () sits in that regime, where CFoBG performs on par with ZoBG while FoBG's bias makes it fail.
§2 Compute-matched comparison (condition (b), Q2)
With a fused value-and-gradient pass, CFoBG costs two forwards and two backwards per antithetic pair, the same as antithetic FoBG. Per estimate: antithetic ZoBG 2 fwd / 0 bwd, antithetic FoBG 2/2, CFoBG 2/2, antithetic AoBG 2/2 plus a linear program.
Measured variance and wall-clock per estimate (N=4, , timing measured on a laptop), on the smooth system (Hopper) and the discontinuous one (Platformer):
| Estimator (Antithetic) | Hopper | Platformer |
|---|---|---|
| ZoBG | @ 0.23 ms | @ 0.23 ms |
| FoBG (biased) | @ 0.43 ms | @ 0.52 ms |
| CFoBG (ours) | @ 0.53 ms | @ 0.50 ms |
| AoBG =0.1 | 26.85 @ 0.50 ms | 5.57 @ 0.52 ms |
| AoBG =30 | 20.8 @ 0.50 ms | 5.57 @ 0.52 ms |
| AoBG =100 (biased) | 8.43 @ 0.50 ms | @ 0.52 ms |
| AoBG =1000 (biased) | @ 0.50 ms | @ 0.52 ms |
That overhead is small against the variance it buys. On Hopper, CFoBG cuts variance by 3.6 orders of magnitude against ZoBG ( against ) at the wall-clock, so the gain survives compute-matching by a factor of about . On the Platformer the useful information is carried by function values alone, so CFoBG matches antithetic ZoBG's variance exactly, at the cost: compute-matched, there is no variance gain to be had there, and what CFoBG provides instead is unbiasedness while FoBG is biased, which is why it performs poorly.
AoBG costs almost exactly what CFoBG costs: it computes both estimators and solves a linear program per estimate. The sweep over shows the trade-off directly: AoBG's variance only approaches CFoBG's as grows, i.e., as AoBG degenerates into (biased) FoBG. CFoBG reaches the low-variance regime while staying provably unbiased, with no hyperparameter to tune.
The gain therefore survives per-evaluation accounting when derivatives carry useful information. When the useful information is carried only by the discontinuities, CFoBG performs as well as ZoBG, but is indeed more expensive to compute. But in practice the user could flag that a problem has no derivatives and in that case our implementation of CFoBG would be as fast as ZoBG by skipping unnecessary steps.
Lastly, our previous examples use autodiff to compute derivatives. In many robotic applications, tools such as the implicit function theorem (see: "OptNet: Differentiable Optimization as a Layer in Neural Networks" ; Brandon Amos, J. Zico Kolter) allow computation of derivatives faster than the forward pass. In such cases we expect the gain of CFoBG over ZoBG to be even more pronounced.
§3 On the Significance concern (payoff near discontinuities)
We believe that near a discontinuity surface , the jump information is carried by function values only as the gradients contain no information about the jump amplitude or the discontinuity surface position. Hence it is unclear whether a first-order estimator can beat the zeroth-order rate there. The relevant property is attaining the ZoBG floor unbiasedly, which CFoBG does whereas FoBG misses the jump entirely.
We will sharpen the abstract accordingly: "demonstrating variance reductions" → "demonstrating variance reductions in the smooth regime".
§4 QFoBG applicability boundary (Q3)
- We improved our implementation: since the integrand decays as , edges far from contribute negligibly and their quadrature can be skipped, drastically reducing computation time. Doing so, we re-evaluated the computation time at 10 quadrature points and ended up with the following table:
| Object | Computation Time ( s ), | Computation Time ( s ), |
|---|---|---|
| Cylinder | 0.125 | 0.274 |
| Elephant | 1.573 | 3.228 |
| Rubik Cube | 1.587 | 3.134 |
| Suction Cup | 1.604 | 3.198 |
Figure 4 will be updated with these improved timings and the code will be open sourced.
-
Still doing the edge filtering to avoid unnecessary computations, we evaluated the computation time of the Hessian on different meshes with 10,000 to 30,000 edges. On these meshes, the computation for the Hessian ranges from 10 s to 30 s at and from 10 s to 50 s at . Overall we observe that the complexity is linear in the number of edges. Our implementation is still a for loop over all edges. With an adjacency graph we believe we could further improve our computational time especially on big meshes.
-
We found that a full deterministic Hessian with QFoBG costs the equivalent of 40-140 support function evaluations (measured on the same meshes). A zeroth-order Hessian estimate from ~ function evaluations is orders of magnitude less accurate (see Figure 4, the first dot of the ZoBG curves corresponds to 100 samples). This leads us to believe that no realistic accuracy target makes ZoBG competitive at any mesh size we tested.
For non-convex shapes decomposed into convex parts, the standard practice differentiates through the closest convex pair, neglecting the discontinuities of the argmin over pairs. Making those argmin discontinuities explicit via Theorem 1 would give an exact derivative, we leave this as future work.
§5 - Condition (c) + minors
- We will restructure the proof with intermediate lemmas to make the full proof simpler to understand and we are happy to post the lemmas statements here if useful.
- We validate with linear regression on the data from Figure 2 that the scaling is indeed except when a.e., as in that case, the scaling is even better.
- [Golse]: the correct date is 2010, we will fix the bibliography accordingly
- Table 1 medians are computed over 400 random seeds. This will be stated in the final version.
- "Section D" → "Section 4.2"
- we thank you for noticing the cramped inline equations and will define the leave-one-out notation at first use.
We believe this addresses (a), (b), and (c) as well as the Significance concern, and we are happy to elaborate on any point during the discussion.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper adresses the challenge of gradient estimation on discontinuous functions in physical simulations. The authors identify the biasedness of previous estimators as main limitation and propose novel unbiased estimators. QFoBG explicitly incorporates discontinuity terms when the discontinuity structure is known, and CFoBG, which remains applicable when these surfaces are unknown by combining first-order gradient information with an unbiased zeroth-order residual. The experiments in the paper compare QFoBG against prior approaches, mainly the standard zero order bundle gradient from Suh et al (2022). The results show lower errors and high walltime efficiency. Further experiments show the benefits of the proposed approach on trajectory optimization problems.
Strengths and weaknesses
Strengths
- The paper is well motivated and addresses an important problem for differentiable simulation, especially in contact-rich or non-smooth physical systems where biased gradients and discontinuities pose challenges for optimization. The problems around gradients of contacts are well established in robotics and progress on this topic is promising for the field.
- The paper presents an elegant and clean idea. Based on the observation that standard randomized smoothing estimators lack a discontinuity correction, they construct a corrected estimator which is unbiased.
- The empirical results are convincing within the considered settings. The collision-detection experiments show clear accuracy and runtime advantages, and the trajectory-optimization experiments demonstrate the relevance of the approach for robotics applications.
- Related work seems appropriately discussed, but I am not an expert on the works on the simulation side.
Weaknesses
Method:
- The theoretical analysis appears correct to me, but some assumptions might not hold in physical simulators. In particular, the analysis relies on functions being piecewise smooth with a finite collection of reasonably well-behaved discontinuity hypersurfaces, and integrable gradient and jump terms. Can the authors justify why these hold in physical simulators that implement more complicated constraints and functions, eg friction and mode switches?
- The known-discontinuity estimator is only directly applicable when the relevant discontinuity surfaces can be identified and integrated over. In realistic contact-rich domains, such as dexterous manipulation or humanoid control, the number of contact modes and discontinuity surfaces can grow very quickly, which might make this approach difficult to deploy beyond structured cases such as the polytope support-function example. I do not think that this invalidates the positive results in this papers, but perhaps the authors can comment on the limits of the scalability of their method in terms of collision geometries?
Evaluation:
- The empirical evaluation is somewhat narrow relative to the broader motivation of differentiable simulation for robotics. The collision-detection experiments are convincing for the structured setting where QFoBG applies, and the trajectory-optimization experiments demonstrate the usefulness of CFoBG, but the paper does not evaluate the method on more complex manipulation or contact-rich humanoid tasks. It would be interesting to see how large the benefits are in such scenarios. In particular, robot manipulation might be a domain where the approach could have large impact as suggested in Suh et al.
Clarity:
- To me, the distinction between CFoBG and QFoBG could be clearer. I think the paper would improve by introducing QFOBG in the method section briefly instead of only mentioning it in the results. A sentence contrasting QFoBG as the structured first-order instantiation of Eq. (11) for polytope support functions, and CFoBG as the black-box alternative when discontinuity surfaces are unknown, would improve readability.
Minor:
- Links are sim broken and only link to the top of page 10. Maybe this could be fixed.
- Line 155: "number of surfaces of discontinuity" --> "number of discontinuity surfaces"
- Line 22: "explicability in deep learning" --> "explainability in deep learning"
- Line 177: "which differ by a factor of 22×" --> "which differ by a factor of 22"
Questions
- Can the authors explain the transition from eq (12) to (13) and state why the subtraction term yields a residual jump estimator?
- How does your method perform on contact rich manipulation tasks? Even without additional experiments I would be interested in the authors intuition on this.
Limitations
yes
Final justification
The paper clearly identifies a weakness of prior gradient estimators for differentiable simulation and proposes a principled fix. The theoretical and empirical results are convincing so I recommend acceptance.
Formatting concerns
none
4 comments
We thank the reviewer for the careful reading and the positive assessment. We address each point below: the validity of our assumptions (§1), the scalability of QFoBG with collision geometry (§2), additional experiments (§3), the transition from equation (12) to equation (13) (§4), and our intuition on contact-rich manipulation (§5). We also respond to point (3) of the initial meta-review in (§1).
§1 - Validity of the assumptions in physical simulators (Weakness 1 / point (3) of the initial meta-review)
We will add a dedicated Remark in the paper or its appendix making the following explicit:
-
Over a finite horizon a fixed-step simulator composes finitely many piecewise-smooth maps, so the composed map is piecewise smooth with finitely many pieces. Event accumulation (Zeno) is ruled out by fixed-step integration. On a compact region of interest, and when trajectories cross the discontinuity surfaces transversally (which is typically the case in simulation), the discontinuity set is then a finite union of smooth hypersurfaces of finite area. The remaining assumption of Theorem 1 is integrability of the jump and gradient terms against the Gaussian, a mild requirement, given the fast decay of the Gaussian weight. The main obstruction there is grazing, discussed below.
-
Simultaneous contacts are intersections of discontinuity surfaces i.e., sets of surface measure zero, which contribute to neither the volume nor the surface integrals in Theorem 1. In practice we found that there are a lot of negligible discontinuity sets. An example from our own setting: at the origin, the support-function argmax can be any vertex. So {0} is a discontinuity point between all edges. Yet this degenerate set has surface measure zero and is invisible to the integrals.
-
Active-set changes in complementarity-based contact produce kinks: the solution map stays continuous and piecewise-. In this setting our proofs hold. We'll make this explicit in our final version.
-
Grazing is a regime where some gradients genuinely blow up as an integrable inverse square-root singularity which is precisely why Theorem 1 assumes integrable rather than bounded gradient terms. This example will be discussed either in the paper or appendix to motivate the hypothesis of our theorem. Moreover, grazing and zeno are phenomena that only occur in continuous-time dynamics so they are probably less relevant in practice.
These issues are also present in other literature on nonsmooth numerical optimal control outside randomised smoothing, including work tackling problems by using Filippov or complementary systems (see Finite Elements with Switch Detection for direct optimal control of nonsmooth systems by Nurkanovic et al.). These formulations do not use simulators but embed the nonsmooth dynamics equations into the optimization problem, and lift the piecewise-C1-ness and discontinuities in having "switches" encoded as complementarity constraints over algebraic variables (equivalent to choosing the active-set). They typically assume a finite number of switches, ruling out the Zeno phenomenon. The active-set changes are then lifted to the level of the optimizer itself which also has to deal with the simulation equations. In our view these might be inevitable problems/choices which arise when a practitioner wants to use a method which exploits structure beyond a zero-order black-box simulation.
§2 - Scalability of QFoBG with collision geometry (Weakness 2)
- As briefly discussed at the end of Sec. 3.1, QFoBG requires enumerable discontinuity surfaces. In our case of convex meshes, this boils down to edges which are trivially enumerable. Quantitatively (full tables in our response to Reviewer hUj6), using the fact that Gaussian weighting makes distant surfaces exponentially negligible, we can perform the quadrature only on a subset of all edges leading to competitive timings without a loss of precision: the Hessian computation cost is small even for huge meshes; 10–50 s for a 10,000-30,000 edge mesh on a single CPU core. For non-convex meshes, one can either work with convex hulls or decompose meshes into convex components.
§3 - Evaluation breadth (Weakness 3)
- We've added some additional experiments from Suh et al. (2022), including a pushing task, whose results are detailed in response to reviewer hUj6. Here is a quick summary:
| Task | ZoBG | FoBG | AoBG | CFoBG (ours) |
|---|---|---|---|---|
| Tennis () | 3.211 [3.208, 3.213] | 5.576 [5.576, 5.576] | 3.211 [3.208, 3.213] | 3.211 [3.208, 3.213] |
| Friction | 8.858 [8.855, 8.860] | 9.081 [9.080, 9.086] | 8.858 [8.855, 8.860] | 8.853 [8.850, 8.857] |
| Pushing soft, | 7.064 [7.060, 7.070] | 7.028 [7.028, 7.028] | 7.064 [7.060, 7.070] | 7.028 [7.028, 7.028] |
| Pushing soft, | 7.029 [7.029, 7.029] | 7.028 [7.028, 7.028] | 7.029 [7.029, 7.029] | 7.028 [7.028, 7.028] |
On all tasks, CFoBG is best or tied best. This strengthens the claim of the paper positioning CFoBG as a drop-in default estimator: efficient and unbiased in both continuous and discontinuous regimes.
§4 - From Eq. (12) to Eq. (13) (Q1)
For and any independent of , we have : subtracting an affine model inside a zeroth-order estimator removes exactly its linear coefficient from the expectation. Since Theorem 1 reads while the zeroth-order estimator is unbiased for all of , taking to be the quantity Eq. (12) estimates gives
which is Eq. (13): the subtraction removes precisely what (12) already accounts for, so the residual estimates exactly the discontinuity contribution FoBG misses. The identity requires independent of , which is what the leave-one-out means provide once they are replaced by sample estimates, hence unbiasedness (Prop. 2). The same expansion gives the variance away from the discontinuities: the subtraction cancels the first-order term, antithetic pairing cancels the quadratic one, and the third-order remainder survives, giving .
We will expand this below Eq. (13) and define the leave-one-out notation at first use.
§5 intuition on contact-rich manipulation (Q2):
Our expectation:
- FoBG's bias grows with the number of jump-inducing events along a rollout so the correction matters more, not less, as contact richness increases.
- A manipulation rollout is mostly smooth phases (free motion, sustained sticking) punctuated by event surfaces: CFoBG's variance reduction applies to the smooth majority, with zeroth-order-rate behavior localized near events. So CFoBG has the potential to help solve contact-rich manipulation problems. Verifying this at scale, as rigid-contact differentiable simulators mature, is the future work we will detail with the camera-ready's additional page.
§6 Clarity + Minors Thank you for catching these. QFoBG will be introduced in our method section and the contrast with CFoBG will be made more explicit. Other points will also be fixed in the final version.
We hope these clarifications address the reviewer's concerns, and we are happy to elaborate on any point during the discussion period.
First, I would like to thank the authors for the thorough and thoughtful rebuttal, especially given the tight space constraints.
In my review I mainly identified the strong assumptions wrt to simulator conditions and the unclarity of scaling to large scenes. I appreciate your clarifications wrt to the validity of the assumptions in physical simulators. Your discussion of grazing and active set changes add relevant context to your theory for the paper. Furthermore, your scaling results are convincing and sufficiently clarify on this unclarity.
I had also raised the lack of evaluation of the efficacy of CFOBG for manipulation / contact rich tasks, which you responded to by providing new and convincing experiments. I thank you for these clarifications and the interesting discussion on the benefits of CFOBG for manipulation. Your rebuttal confirmed my positive impression of this paper.
Thank you for your thoughtful review and your feedback. Our discussion will make the final version stronger.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this work, the authors propose a method to compute unbiased or corrected surrogate first order gradients for non-smooth differentiable simulation via randomized smoothing. They begin by showing that the bias in first order gradients at discontinuities is due to neglected discontinuity contributions. Then they derive a discontinuity-aware gradient estimator for when the discontinuity structure is known. When the discontinuity structure is not known, they propose a corrected gradient estimator that has reduced variance. This work is then evaluated by comparing Gumbel smoothing, ZoBG, and their method QFoBG on estimating the hessian for different meshes from GraspNet. The second evaluation was done comparing vanilla FoBG and their CFoBG used for trajectory optimization of a 2D platformer and hopper.
Strengths and weaknesses
Strengths: This is a well-written paper that proposes a novel method to address the classical problem of computing gradients for discontinuous models such as physics models involving contact. The paper presents a good narrative moving from identifying the source of errors to deriving a new method to address it. The paper also provides positive experimental results in two distinct areas of hessian estimation of meshes and trajectory optimization, with analysis in various dimensions.
Weaknesses: The weakness here is that the evaluations was a bit limited. The first is that the hopper experiments used MuJoCo dynamics that are smooth and continuous, so why do we care about this application? The second is that the experiments seemed to only test optimization over parameters that are directly used as input, which means that it is only necessary to do a single forward query, compute gradients, and then step forward. In settings such as system identification and neural policy, the input is not the parameters that need to be estimated, so larger datasets are needed. This also necessitates the use of batch estimation of gradients. It would be good to discuss how this method fits into these applications and how it would perform.
Questions
-
If the hopper dynamics is smooth and continuous, is evaluation here informative besides that your CFoBG can recover the FoBG? Please clarify the significance here and discuss whether using a non-smooth physics simulator would be more appropriate here.
-
As explained in the weakness section, the experiment settings seem limited. Please elaborate on how your method would perform in those settings or why it is not appropriate.
Limitations
There is a limitation sections, but it is sparse and I would like to see it expanded. For example, if the application setting, as explained in the weaknesses, is a limitation, please include that. Furthermore, the limitations points toward possible future works, which would be a useful contribution.
Final justification
No change.
Formatting concerns
No concerns.
1 comment
We thank the reviewer for the constructive review. In (§1) we address question 2 and point (2) of the meta review and in (§2) we address question 1 and point (1) of the meta review.
§1 - New tasks, neural policies, and batch estimation (Q2, Weakness 2, and point (2) of the initial meta-review)
We have added three tasks from the suite of Suh et al. (2022). Details are in our response to Reviewer hUj6; final costs, as median [Q25, Q75] of over 100 seeds:
| Task | ZoBG | FoBG | AoBG | CFoBG (ours) |
|---|---|---|---|---|
| Tennis () | 3.211 [3.208, 3.213] | 5.576 [5.576, 5.576] | 3.211 [3.208, 3.213] | 3.211 [3.208, 3.213] |
| Friction | 8.858 [8.855, 8.860] | 9.081 [9.080, 9.086] | 8.858 [8.855, 8.860] | 8.853 [8.850, 8.857] |
| Pushing soft, | 7.064 [7.060, 7.070] | 7.028 [7.028, 7.028] | 7.064 [7.060, 7.070] | 7.028 [7.028, 7.028] |
| Pushing soft, | 7.029 [7.029, 7.029] | 7.028 [7.028, 7.028] | 7.029 [7.029, 7.029] | 7.028 [7.028, 7.028] |
CFoBG is best or tied-best on every row, while FoBG's bias makes it fail on Friction and Tennis and ZoBG underperforms on the pushing task due to its higher variance.
When the parameters are not simulator inputs, nothing changes. CFoBG needs only values and gradients of the composed map, so it applies whether the Gaussian is injected in control, policy-parameter, or physical-parameter space. Tennis is the empirical case: the optimized parameters are those of a feedback policy (), and CFoBG matches ZoBG and AoBG there while FoBG performs poorly.
Batch estimation adds no simulator queries. The leave-one-out means are simple to compute (sum-minus-self, post-processing on the per-sample values and gradients already computed), so a minibatch needs exactly what FoBG needs, and the estimator stays batch- and GPU-compatible.
On how it would perform: unbiasedness composes with minibatch SGD, since the smoothed gradient of a dataset average is the average of the smoothed gradients. Bias does not average away while variance falls as over a minibatch, so in large-data regimes an unbiased estimator matters more, not less.
Finally, on scale: sampling-based estimators all degrade in high dimension, ZoBG included, but a neural policy need not be smoothed in weight space. Writing the objective as , the network, the nonsmooth simulator-and-loss, the discontinuities live in alone, so one smooths in the input space of and backpropagates through by ordinary autodiff. The smoothing dimension is then typically that of an action or state vector, a few tens at most in robotics, and independent of the parameter count. Alternatively, one can smooth and hope that enough datapoints will allow low enough variance as in most RL pipelines.
§2 - On the Hopper evaluation (Q1, Weakness 1, and point (1) of the initial meta-review)
The two systems test the two halves of the claim. Hopper is smooth: it shows that the correction costs nothing where FoBG is already correct and that CFoBG outperforms ZoBG. The Platformer works with a discontinuous simulation and has discontinuities: it shows that CFoBG is as good as ZoBG there, where FoBG fails because of its bias. This plus the additional experiments of (§1) make CFoBG a drop-in default, since one need not know in advance whether a problem is discontinuous or not.
We agree the limitation section is too sparse. We will lengthen it and attach a future-work direction to each limitation, taking the reviewers' comments into account:
- CFoBG does not improve performance at a discontinuity. This points toward future work. But its unclear whether knowledge of derivatives can give information about discontinuities and whether first-order methods can beat zero-order methods at discontinuities. In that light, our estimator could already be near optimal at discontinuities.
- When trying to apply Theorem 1, the discontinuity surfaces may be hard to find. Finding efficient ways to find such surfaces has great potential.
- Our fix of the first-order randomized smoothing could be applied to other optimization surrogates such as MPPI or first-order RL pipelines.
We are happy to elaborate on any point during the discussion period.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Thank you for the meta-review. We have addressed the three points you raise in our responses to the reviewers. Where a paragraph directly answers one of them, we say so explicitly in the paragraph's title, so it should be immediately visible which parts of our responses are relevant to which point.