Method and apparatus for logarithmic mathematics in AI matrix multiplications
AssigneeTensordyne, Inc.
InventorsJian Hui Huang, Gary S. Goldman, Jan Lennart Haug, Michael Wilhelm Laraia, Lukas Rinder
Life of this patent
Estimating the term…
Loading patent…
AssigneeTensordyne, Inc.
InventorsJian Hui Huang, Gary S. Goldman, Jan Lennart Haug, Michael Wilhelm Laraia, Lukas Rinder
Estimating the term…
A matrix multiplication system and method are disclosed that perform multiplication in a logarithmic domain and accumulation in a linear domain using co-designed bidirectional conversion circuits. Linear-domain operands are converted to a logarithmic domain by a linear-to-logarithmic conversion that divides a mantissa into exactly four non-uniform windows and applies affine mappings implemented using shift and add operations. Logarithmic-domain multiplication results are converted to linear-domain values by a logarithmic-to-linear conversion that divides a mantissa into exactly four equal-width windows and applies corresponding affine mappings implemented using shift and add operations. The affine mappings of the linear-to-logarithmic conversion are analytic inverses of the affine mappings of the logarithmic-to-linear conversion, and window boundaries of the linear-to-logarithmic conversion are derived by inverse mapping of the logarithmic-to-linear window boundaries. The conversion circuits are co-designed to provide round-trip exactness apart from quantization effects, thereby avoiding systematic bias during accumulation.
A processing system for performing matrix multiplication, comprising:
A method for performing matrix multiplication by a processing system comprising a matrix multiplication engine comprising a plurality of logarithmic logic cores, a linear-to-logarithmic conversion circuit and a logarithmic-to-linear conversion circuit, each logarithmic logic core configured to perform multiplication in a logarithmic domain and accumulation in a linear domain, the method comprising:
Dependencies are inferred from the claim text.