Opt:一种用于图形图像非线性最小二乘优化的领域专用语言
Opt: A Domain Specific Language for Non-linear Least Squares Optimization in Graphics and Imaging
摘要:
许多图形和视觉问题可以表示为目标函数在视觉数据(如图像和网格)上的非线性最小二乘优化。这些函数的数学描述非常简洁,但它们在实际代码中的实现非常繁琐,特别是在交互式应用程序中为现代GPU的实时性能进行优化时。在这项工作中,我们提出了一种新的语言,Opt(可在http://optlang.org),用于在图像或图形结构的未知数上简洁地编写这些目标函数。我们的编译器自动将这些规范转换为基于Gauss-Newton或Levenberg-Marquardt方法的最先进的GPU求解器。Opt可以生成求解器的不同变体,因此用户可以轻松地探索数值精度,无矩阵方法和求解器方法的权衡。在我们的结果中,我们实现了各种现实世界的图形和视觉应用。它们的能量函数可以用数十行代码来表达,并产生高度优化的GPU求解器实现。这些求解器具有与最佳发布的手动调整的特定于应用的GPU求解器竞争的性能,并且超过通用自动生成的求解器的数量级。
英文摘要:
Many graphics and vision problems can be expressed as non-linear least squares optimizations of objective functions over visual data, such as images and meshes. The mathematical descriptions of these functions are extremely concise, but their implementation in real code is tedious, especially when optimized for real-time performance on modern GPUs in interactive applications. In this work, we propose a new language, Opt (available under http://optlang.org), for writing these objective functions over image- or graph-structured unknowns concisely and at a high level. Our compiler automatically transforms these specifications into state-of-the-art GPU solvers based on Gauss-Newton or Levenberg-Marquardt methods. Opt can generate different variations of the solver, so users can easily explore tradeoffs in numerical precision, matrix-free methods, and solver approaches. In our results, we implement a variety of real-world graphics and vision applications. Their energy functions are expressible in tens of lines of code, and produce highly-optimized GPU solver implementations. These solver have performance competitive with the best published hand-tuned, application-specific GPU solvers, and orders of magnitude beyond a general-purpose auto-generated solver.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。