← Latest papers
🔢 mathematics

Square Root Gauss-Newton iLQR

This paper presents a numerically robust and algorithmically simple Square Root Gauss-Newton iLQR formulation that leverages the weighted least-squares structure of the cost function to enable a backward pass based on single QR-decompositions, thereby improving conditioning and stability, particularly within augmented Lagrangian frameworks for constrained trajectory optimization.

Original authors: Maximilian Haas-Heger, Jur van den Berg

Published 2026-09-21
📖 6 min read🧠 Deep dive

Original authors: Maximilian Haas-Heger, Jur van den Berg

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Robots, autonomous cars, and spacecraft all share a fundamental challenge: they must move from one place to another while obeying the laws of physics and avoiding obstacles. To do this, they rely on a mathematical process called trajectory optimization, which acts like a super-powered navigator. This navigator constantly calculates the best possible path by testing countless variations of speed and direction, looking for the route that uses the least energy or time. When the world is simple and predictable, standard math tools can solve this puzzle perfectly. But the real world is messy. Robots have complex joints, cars slide on wet roads, and spacecraft must dodge debris. In these situations, the math becomes non-linear and difficult, requiring the computer to make a series of educated guesses, refine them, and repeat the process until it finds a solution that works. This iterative process is the backbone of modern motion planning, allowing machines to perform delicate tasks like assembling parts or landing on other planets.

However, as these machines become more capable, they are asked to operate under stricter rules. A robot arm might need to avoid hitting a human hand, or a drone might need to stay within a narrow corridor. To enforce these rules, computers add heavy penalties to their calculations whenever a path comes close to breaking a constraint. While this forces the robot to obey, it also creates a hidden danger: the numbers the computer uses to find the path can become so wildly different in size that the machine loses its ability to distinguish between them. It is like trying to measure the width of a single hair while standing next to a mountain; the tiny detail gets lost in the noise of the massive scale. When this happens, the computer's calculations become unstable, and the robot may fail to find a path at all, or worse, calculate a path that looks perfect on paper but is physically impossible.

In a recent study, researchers Maximilian Haas-Heger and Jur van den Berg from Waabi Innovation Inc. tackled this problem of numerical instability. They focused on a specific algorithm known as the iterative Linear Quadratic Regulator, or iLQR, which is widely used to plan these complex paths. The team discovered that by changing how the algorithm handles its internal math, they could make it significantly more robust without slowing it down. Their work centers on a technique called a "square root" formulation. In standard computing, the algorithm keeps track of a large table of numbers representing the cost of every possible move. When constraints are tight, this table becomes difficult to read. The researchers realized that instead of tracking the full table, the algorithm could track a simpler, triangular version of it, much like keeping only the essential ingredients of a recipe rather than the entire pantry.

The key to their success lies in the way they simplified the problem. They treated the robot's goal as a weighted sum of errors, similar to how a photographer might focus on minimizing the blur in a photo by adjusting specific settings. By using a method known as Gauss-Newton, which approximates complex curves with straight lines, they ensured that the mathematical structure of the problem remained stable. This allowed them to replace the heavy, unstable calculations with a lighter, more precise operation called a QR decomposition. Think of this operation as a way of organizing a messy pile of data into a neat, orderly stack where every piece fits perfectly without any gaps or overlaps. This new approach allows the computer to maintain its precision even when the penalty for breaking a rule becomes enormous.

The researchers tested their new method on a challenging scenario involving two robotic arms working together to carry a rigid object. The arms had to move the object from a starting point to a goal while keeping their grips at a fixed distance from each other, a constraint that required the computer to balance multiple competing demands. They ran simulations where the penalty for violating this distance rule was increased to extreme levels, far beyond what a standard computer would normally handle. In these tests, the traditional method began to fail, losing accuracy and eventually producing nonsense results as the penalty grew. The new square root method, however, held its ground. It continued to produce accurate paths even when the penalty was so large that the standard method had completely broken down. In fact, the new approach retained six to seven significant digits of accuracy in standard computer arithmetic where the old method had lost almost all of them.

This improvement is not just a theoretical win; it translates directly into reliability for real-world machines. The study showed that the new method could drive the optimization process much further, allowing robots to satisfy constraints with a level of tightness that was previously impossible. While the standard method might give up when asked to be precise to one part in a million, the new method could push that precision to one part in a hundred billion. The researchers noted that this gain in precision comes with almost no extra cost in computing time, adding less than three percent to the total time required to solve a problem. This means that engineers can use the new method as a drop-in replacement for the old one, instantly making their robots more capable of handling difficult, high-stakes tasks.

The paper also addresses why this specific improvement has not been widely adopted before. While similar "square root" techniques have been used for decades in navigation systems like the Kalman filter, they have been harder to apply to trajectory optimization because the math is more complex. Previous attempts to create a square root version of iLQR were either too complicated to use or numerically inferior. The authors argue that their approach is different because it leverages the specific structure of the problem to simplify the math, reducing each step to a single, elegant operation. They suggest that for any robot planning a path under strict constraints, there is no reason not to use this more stable method, just as engineers would not choose an unstable navigation system for a spacecraft.

Ultimately, the work demonstrates that the limits of robot movement are often defined not by the laws of physics, but by the limits of the computer's ability to calculate them. By refining the way these calculations are performed, the researchers have removed a significant barrier, allowing machines to navigate more complex and dangerous environments with greater confidence. The study confirms that with the right mathematical tools, we can push the boundaries of what autonomous systems can achieve, ensuring they remain precise and reliable even when the stakes are highest.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →