arXiv:2609.05419v2 Announce Type: replace Abstract: Complex matrix multiplication is typically computed using 4 real matrix multiplications (GEMMs) of the same size. The well-known 3M multiplication algorithm reduces this cost to 3 real GEMMs, together with quadratic time pre- and post-processing steps. In this paper, we reduce 3M to 2M for matrices with integer real and imaginary parts, perfor
The 2M Multiplication Algorithm is a novel method for complex matrix multiplication that reduces the computational cost from the standard 4 real GEMMs (or the improved 3 real GEMMs) down to only 2 real GEMMs of the same size. Proposed by Peter Caday and published in arXiv:2609.05419 (submitted May 15, 2026), this algorithm leverages the algebraic structure of quadratic integer rings to map complex products to real integer arithmetic.
Key technical features and performance outcomes include:
The paper studies exact multiplication of complex matrices when the real and imaginary parts are integer-valued. It begins from the standard decomposition of complex GEMM into four real GEMMs and the Karatsuba-style 3M scheme that reduces this to three real GEMMs plus \(O(n^2)\) elementwise additions. The authors show that, under the integer-entry assumption, the number of dominant real GEMM calls can be reduced to two. The construction packs the two integer components into wider integer matrices using a base \(K\) (typically a power of two) and computes two real products, for example \[ P_+ = (A_r + K A_i)(C_r + K C_i), \qquad P_- = (A_r - K A_i)(C_r - K C_i). \] Algebraically, \((P_+ + P_-)/2\) contains \(A_rC_r\) and \(K^2 A_iC_i\), while \((P_+ - P_-)/(2K)\) gives the imaginary cross term \(A_rC_i + A_iC_r\). If \(K\) is chosen large enough that the low and high digit blocks do not overlap, the real and imaginary parts can be recovered exactly by shifts/masks and a few elementwise operations.
The key contribution is therefore an exact 2M algorithm for integer complex matrices, together with the conditions under which the packing is valid. The pre- and post-processing remain elementwise quadratic in the matrix dimension, but the operands are wider integers, with bit growth depending on the entry bounds and the matrix size. In other words, the method trades a reduction from three, or naively four, real GEMM calls to two for additional dynamic-range requirements and larger per-element precision. It is not a general floating-point replacement for 3M; its exactness and efficiency depend on the data being integer-valued and on avoiding carries or overflow in the packed representation.
This matters because complex GEMM is a central kernel in scientific computing, signal processing, and exact/integer numerical linear algebra. When the input matrices are integer-bounded and the GEMM cost dominates, a two-GEMM scheme can reduce the dominant arithmetic work by roughly one-third relative to 3M, or half relative to the naive four-GEMM method, and may be especially attractive on hardware with efficient wide-integer multiplication or in libraries that can exploit the packing. More conceptually, the result shows that the usual three-real-multiplication complexity of complex multiplication over a field can be bypassed in exact integer matrix multiplication by using digit separation, providing a specialized optimization for integer complex linear algebra.