Efficient symbolic differentiation for graphics applications

被引:14
作者
Guenter, Brian
机构
[1] Microsoft Research
来源
ACM TRANSACTIONS ON GRAPHICS | 2007年 / 26卷 / 03期
关键词
symbolic differentiation; AUTOMATIC DIFFERENTIATION;
D O I
10.1145/1239451.1239559
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Functions with densely interconnected expression graphs, which arise in computer graphics applications such as dynamics, space-time optimization, and PRT, can be difficult to efficiently differentiate using existing symbolic or automatic differentiation techniques. Our new algorithm, D*, computes efficient symbolic derivatives for these functions by symbolically executing the expression graph at compile time to eliminate common subexpressions and by exploiting the special nature of the graph that represents the derivative of a function. This graph has a sum of products form; the new algorithm computes a factorization of this derivative graph along with an efficient grouping of product terms into subexpressions. For the problems in our test suite D* generates symbolic derivatives which are up to 4.6 x 10(3) times faster than those com uted by the symbolic math program Mathematica and up to 2.2 x 10(5) times faster than the non-symbolic automatic differentiation program CppAD. In some cases the D* derivatives rival the best manually derived solutions.
引用
收藏
页数:12
相关论文
共 12 条
[1]   COMPUTATIONAL GRAPHS AND ROUNDING ERROR [J].
BAUER, FL .
SIAM JOURNAL ON NUMERICAL ANALYSIS, 1974, 11 (01) :87-96
[2]   Adifor 2.0: Automatic differentiation of Fortran 77 programs [J].
Bischof, C ;
Khademi, P ;
Mauer, A ;
Carle, A .
IEEE COMPUTATIONAL SCIENCE & ENGINEERING, 1996, 3 (03) :18-32
[3]  
Bischof CH, 1997, SOFTWARE PRACT EXPER, V27, P1427, DOI 10.1002/(SICI)1097-024X(199712)27:12<1427::AID-SPE138>3.0.CO
[4]  
2-Q
[5]   Efficient synthesis of physically valid human motion [J].
Fang, AC ;
Pollard, NS .
ACM TRANSACTIONS ON GRAPHICS, 2003, 22 (03) :417-426
[6]  
Griewank A., 2003, Acta Numerica, V12, P321, DOI 10.1017/S0962492902000132
[7]   Newton-type algorithms for dynamics-based robot movement optimization [J].
Lee, SH ;
Kim, J ;
Park, FC ;
Kim, M ;
Bobrow, JE .
IEEE TRANSACTIONS ON ROBOTICS, 2005, 21 (04) :657-667
[8]   Spacetime constraints [J].
Witkin, Andrew ;
Kass, Michael .
Computer Graphics (ACM), 1988, 22 (04) :159-168
[9]  
COMPUTER GRAPHICS SI
[10]  
COMPUTER GRAPHICS SI