Lune

NeurIPS2022Top-tier venue

Theseus: A Library for Differentiable Nonlinear Optimization

Luis Pineda, Taosha Fan, Maurizio Monge, Shobha Venkataraman, Paloma Sodhi, Ricky T. Q. Chen, Joseph Ortiz, Daniel DeTone, Austin S. Wang, Stuart Anderson, Jing Dong, Brandon Amos, Mustafa Mukadam

Abstract

We present Theseus, an efficient application-agnostic open source library for differentiable nonlinear least squares (DNLS) optimization built on PyTorch, providing a common framework for end-to-end structured learning in robotics and vision. Existing DNLS implementations are application specific and do not always incorporate many ingredients important for efficiency. Theseus is application-agnostic, as we illustrate with several example applications that are built using the same underlying differentiable components, such as second-order optimizers, standard costs functions, and Lie groups. For efficiency, Theseus incorporates support for sparse solvers, automatic vectorization, batching, GPU acceleration, and gradient computation with implicit differentiation and direct loss minimization. We do extensive performance evaluation in a set of applications, demonstrating significant efficiency gains and better scalability when these features are incorporated. Project page: https://sites.google.com/view/theseus-ai

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

23 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Scaling physics-informed hard constraints with mixture-of-experts cites Efficient and Modular Implicit Differentiation
  • VGGSfM: Visual Geometry Grounded Deep Structure from Motion cites DROID-SLAM: Deep Visual SLAM for Monocular, Stereo, and RGB-D Cameras
  • VGGSfM: Visual Geometry Grounded Deep Structure from Motion cites DeepV2D: Video to Depth with Differentiable Structure from Motion
  • DROID-SLAM: Deep Visual SLAM for Monocular, Stereo, and RGB-D Cameras cites DeepV2D: Video to Depth with Differentiable Structure from Motion
  • SurCo: Learning Linear SURrogates for COmbinatorial Nonlinear Optimization Problems cites Differentiation of Blackbox Combinatorial Solvers
  • Revisiting Implicit Differentiation for Learning Problems in Optimal Control cites Differentiation of Blackbox Combinatorial Solvers
  • Pinet: Optimizing hard-constrained neural networks with orthogonal projection layers cites Efficient and Modular Implicit Differentiation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers23

  1. VGGSfM: Visual Geometry Grounded Deep Structure from MotionJianyuan Wang, Nikita Karaev, Christian Rupprecht, David NovotnýCVPR 2024 · 48 citations
  2. Scaling physics-informed hard constraints with mixture-of-expertsNithin Chalapathi, Yiheng Du, Aditi S. KrishnapriyanICLR 2024 · 29 citations
  3. SurCo: Learning Linear SURrogates for COmbinatorial Nonlinear Optimization ProblemsAaron M. Ferber, Taoan Huang, Daochen Zha, Martin Schubert et al.ICML 2023 · 25 citations
  4. Pinet: Optimizing hard-constrained neural networks with orthogonal projection layersPanagiotis D. Grontas, Antonio Terpin, Efe C. Balta, Raffaello D'Andrea et al.ICLR 2026 · 22 citations
  5. Revisiting Implicit Differentiation for Learning Problems in Optimal ControlMing Xu, Timothy L. Molloy, Stephen GouldNeurIPS 2023 · 16 citations

Builds on12

  1. DROID-SLAM: Deep Visual SLAM for Monocular, Stereo, and RGB-D CamerasZachary Teed, Jia DengNeurIPS 2021 · 1,248 citations
  2. Vector Neurons: A General Framework for SO(3)-Equivariant NetworksCongyue Deng, Or Litany, Yueqi Duan, Adrien Poulenard et al.ICCV 2021 · 411 citations
  3. Efficient and Modular Implicit DifferentiationMathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig et al.NeurIPS 2022 · 386 citations
  4. Differentiation of Blackbox Combinatorial SolversMarin Vlastelica Pogancic, Anselm Paulus, Vít Musil, Georg Martius et al.ICLR 2020 · 341 citations
  5. DeepV2D: Video to Depth with Differentiable Structure from MotionZachary Teed, Jia DengICLR 2020 · 314 citations

Related papers

  1. PyPose: A Library for Robot Learning with Physics-based OptimizationChen Wang, Dasong Gao, Kuan Xu, Junyi Geng et al.CVPR 2023
  2. Learning, Solving and Optimizing PDEs with TensorGalerkin: an efficient high-performance Galerkin assembly algorithmShizheng Wen, Mingyuan chi, Tianwei Yu, Ben Moseley et al.ICML 2026 · 1 citation
  3. Tangent Space Backpropagation for 3D Transformation GroupsZachary Teed, Jia DengCVPR 2021
  4. ΦFlow: Differentiable Simulations for PyTorch, TensorFlow and JaxPhilipp Holl, Nils ThuereyICML 2024 · 29 citations
  5. DeepLM: Large-Scale Nonlinear Least Squares on Deep Learning Frameworks Using Stochastic Domain DecompositionJingwei Huang, Shan Huang, Mingwei SunCVPR 2021
Dusk over the sea between two cliffs drawn in fine vertical lines