acceptodds
Under review as a conference paper at ICLR 2027

The Mode of Null-A: Compositional Computation of a Generalized Inverse

Abstract

We present a novel algorithm for calculating the preimage of an affine space through a product of matrices of special form: finding the largest input space such that implies , where is a given output affine space. These special matrices arise in AD, where the Jacobians describing the linearized computation have precisely this structure: the product of a series of linearized primitive numeric operations. This allows us to use the new algorithm to formulate Null-A mode preimage AD, which finds the affine preimage through the Jacobian or Jacobian transpose of a numeric computation. This is a generalization of the inverse AD problem of solving or . The key is to represent affine spaces in a fashion which lends itself to efficient preimage calculation, in a compositional and *quasi-local* fashion, through a succession of matrices . Unlike previous methods, Null-A preimage mode AD allows the matrices to be non-square, corresponding to a computer program whose number of active variables swells and shrinks during the computation. When is square and the initial affine space is a single point, this finds the conventional inverse. But in the more general case, having the entire affine space provides freedom which can be leveraged in a problem-specific manner. We apply the method to small problems on-CPU where the are linearized scalar unary or binary numeric functions; and to larger problems on-GPU where the are linearized aggregate array operations like convolution and attention.

open until 14 Dec 2026

est. 32% chance this paper gets accepted at ICLR 2027.

Reject 68%Accept 32%

What do you think this paper will get?

All positions stay anonymous.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.