Efficient symbolic differentiation using derivative graph factorization
Abstract
An efficient symbolic differentiation method and system that automatically computes one or more derivatives of a function using a computing device. A derivative graph is used to graphically represent the derivative of a function. Repeated factorization of the derivative graph yields a factored derivative graph. The derivative is computed by summing the products along all product paths in the factored derivative graph. The efficient symbolic differentiation method and system operates on both single input/single output and multiple input/multiple output functions. For a single input/single output function, the order of the factoring does not matter. However, for a multiple input/multiple output function, the factoring order is such that the factor subgraph appearing most frequently in the derivative graph is factored first. The method and system also use a product pairs priority queue to avoid the re-computing of sub-strings that are common between product paths.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for performing symbolic differentiation of a function, comprising: using a computing device to perform the following: representing the function as an expression graph; constructing a derivative graph from the expression graph to graphically represent a derivative of the function; factoring the derivative graph to its common factors and identifying common product sub-sequences to obtain a plurality of factor subgraphs to generate a factored derivative graph; and computing the derivative as a sum of products along all product paths in the factored derivative graph.
- Claim 2Depends on #1
The method of claim 1 , further comprising: determining that at least one node on the derivative graph satisfies a postdominator test or a dominator test; and factoring the derivative graph until no additional factoring can be performed.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- Agarwala, A., M. Agrawala, M. F. Cohen, D. Salesin, R. Szeliski, Photographing long scenes with multi-viewpoint panoramas, ACM Trans. Graph., 2006, pp. 853-861, vol. 25, No. 3.
- Bauer, F. L., Computational graphs and rounding error, SIAM J. Numer. Anal., 1974, pp. 87-96, vol. 11.
- Bischof, C. H., A. Carle, G.F. Corliss and A. Griewank, Adifor: Automatic differentiation in a source translator environment, Int'l Symposium on Symbolic and Algebraic Computing, ACM, 1992, pp. 294-302, Washington, D.C.
- Cooper, K. D., T. J. Harvey, K. Kennedy, A simple, fast dominance algorithm, Software Practice and Experience, 2001.
- CS553, "Machinery for Placing phi-Functions Dominance Frontier Example . . . ", Oct. 23, 2006, URL: http://www.cs.colostate.edu/~mstrout/ CS553Fall06/slides/lecture17-SSA.pdf.