TL;DR
This paper introduces a factor graph-based framework to solve Linear Quadratic Regulator (LQR) problems with complex equality constraints. By treating control as a probabilistic inference problem, the authors demonstrate how to handle "cross-time-step" constraints (like periodic motions) in linear time, matching the efficiency of standard dynamic programming while offering much greater flexibility.
What Problem Does This Paper Address?
In robotics, the Linear Quadratic Regulator (LQR) is a foundational tool for finding optimal trajectories and control laws. However, real-world tasks often involve "auxiliary constraints"—extra rules beyond basic physics. These are usually categorized into:
- Local Constraints: Rules affecting a single moment (e.g., "the robot must be at this coordinate at $t=5$").
- Cross-Time-Step Constraints: Rules linking different moments (e.g., "the robot's leg position at the end of a stride must match its position at the start").
Standard Dynamic Programming (DP) approaches handle local constraints well but struggle with cross-time-step constraints. These non-Markovian dependencies usually break the "chain" structure that DP relies on, often forcing researchers to use computationally expensive global solvers that don't provide the feedback policies needed for real-time control.
Methods
The authors reformulate the Equality Constrained LQR (EC-LQR) as a Factor Graph.
- Factor Graph Representation: States and controls are nodes, while costs and constraints are "factors" connecting them. This visual and mathematical structure makes it easy to "plug in" a constraint between any two variables, regardless of how far apart they are in time.
- Variable Elimination (VE): To solve the graph, the authors use the Variable Elimination algorithm. This process systematically removes variables to simplify the problem. Mathematically, this is equivalent to performing a sparse QR factorization on the underlying system of equations.
- Modified Gram-Schmidt: To handle "hard" equality constraints (which act like factors with zero variance/infinite weight), they employ a modified Gram-Schmidt process. This ensures numerical stability when solving the constrained least-squares problem.
- Feedback Policies: Unlike simple trajectory optimizers, this method extracts the optimal feedback gain matrices ($K$) and feedforward terms ($k$) during the elimination process, allowing the robot to react to perturbations.
Datasets
As a theoretical and algorithmic paper in control theory, it does not use standard vision or NLP datasets. Instead, the authors evaluated their method using:
- Randomly Generated Linear Systems: Used to benchmark computational complexity and scaling against state-of-the-art DP methods.
- Double Integrator Model: A simulated "hopping robot" used to demonstrate periodic gait constraints (cross-time-step constraints).
Key Insights and Ideas
- Symmetry with Inference: The paper reinforces the "Control as Inference" paradigm. Solving for the best control sequence is mathematically identical to finding the Maximum A Posteriori (MAP) estimate in a Gaussian Markov Random Field.
- Linear Complexity is Preserved: The most significant insight is that as long as the "reach" of a cross-time-step constraint is bounded (e.g., a constraint only looks 20 steps back), the solver remains $O(T)$, or linear with respect to the trajectory length.
- QR vs. SVD: The authors found that using QR factorization (via VE) scales better for large state and control dimensions than the SVD-based methods used in some previous DP-based EC-LQR solvers.
Key Results
- Efficiency: The proposed method matches the $O(T)$ complexity of the current state-of-the-art DP approach. In tests with large state dimensions ($n, m = 60$), the factor graph approach was significantly faster (170ms vs 247ms for a trajectory of length 100).
- Robustness to Perturbations: In the hopping robot simulation, the factor graph method successfully generated a feedback policy that maintained periodic constraints even when the robot's initial state was bumped. Baseline methods that couldn't handle cross-time constraints natively failed to maintain the required gait pattern under the same conditions.
- Accuracy: The method achieved identical cost and constraint violation results (near machine epsilon, $\sim 10^{-26}$) compared to global quadratic programming solvers, but with the added benefit of producing a feedback law.
Limitations and Future Work
- Equality Only: Currently, the framework only handles equality constraints. Real robots often have inequality constraints (e.g., motor torque limits). The authors suggest using barrier or penalty functions to incorporate these in the future.
- Linearity: The method is strictly for linear systems. While many nonlinear problems can be solved by "iterative LQR" (successive linearization), a native nonlinear factor graph approach (similar to iSAM2 used in SLAM) is a suggested next step.
- Over-constrained Systems: The paper assumes constraints are consistent. Future work could involve prioritizing constraints in cases where they conflict.
Summary updated