Abstract: Inspired by recent strides in empirical efficacy of implicit learning in many robotics tasks, we seek to understand the theoretical benefits of implicit formulations in the face of nearly discontinuous functions typical of contact dynamics. We derive generalization error bounds for explicit and implicit models, demonstrating that violation-based implicit formulations offer superior robustness and sample efficiency.
Introduction
In robotics, modeling contact events—such as a foot striking the ground or a gripper making contact with an object—is a fundamental challenge. These events create "stiff" or nearly discontinuous functions that are notoriously difficult for standard machine learning models to capture. Traditional learning theory suggests that as the slope (Lipschitz constant) of a function increases, the amount of data required to generalize well grows exponentially. This paper, presented at L4DC 2022, provides a theoretical foundation for why implicit learning methods excel in these high-stiffness scenarios.
Learning Formulations
The research compares three distinct mathematical approaches to learning these functions:
- Explicit (exp): The standard mapping where an output is directly predicted from an input ($y = f(x)$).
- Naive Implicit (nimp): The output is defined as the solution to an internal optimization problem, but the training loss remains focused on the final prediction error.
- Violation Implicit (vimp): This approach balances prediction error with the "violation" of internal physical constraints. By introducing a hyperparameter $\epsilon$ to weight these terms, the model gains a smoother optimization landscape.
Graph Distance and Generalization
A core insight of this work is the shift from standard prediction error to Graph Distance. While standard losses only account for noise in the output ($y$), Graph Distance considers noise in both the input ($x$) and output ($y$). This is particularly relevant for robotics, where sensor noise affects all measurements.
The authors prove that the "violation loss" used in the vimp formulation serves as a mathematically sound proxy for squared graph distance. This relationship allows the model to remain stable even as the function's stiffness approaches infinity.
Theoretical Results and Sample Complexity
Using a 1D toy problem of a point mass falling under gravity and hitting a flat ground, the authors derived concrete generalization bounds using Rademacher complexity.
The Lipschitz Explosion
For explicit models, the difficulty of learning scales with $1/\Delta t$ (where $\Delta t$ is the simulation time step). As $\Delta t$ decreases to improve simulation accuracy, the function becomes stiffer, and the generalization bound for explicit models "blows up." In contrast, the vimp approach avoids this poor scaling, maintaining a stable bound even as the time step approaches zero.
Optimization Landscape
Beyond generalization, the formulation significantly impacts the ease of training. The violation implicit loss creates a smoother, more balanced loss landscape compared to the sharp, "V-shaped" landscapes of explicit and naive implicit models. This makes the optimization problem much easier for standard algorithms like Stochastic Gradient Descent (SGD) to navigate.
Numerical analysis of the toy problem reveals a staggering Sample Complexity Gap: explicit and naive implicit approaches require over two orders of magnitude (100x) more data to achieve the same generalization guarantees as the violation implicit approach.
Conclusion
This work bridges the gap between the empirical success of implicit models and their theoretical underpinnings. By relating violation loss to graph distance, the authors demonstrate that implicit formulations are fundamentally more "learnable" for the high-stiffness physics of contact. Future work will explore extending these tight bounds to high-dimensional systems involving complex friction and articulated robot dynamics.
Summary updated