Faster modular composition using two relation matrices
Vincent Neiger, Bruno Salvy, Éric Schost, Gilles Villard
TL;DR
The paper presents a faster modular composition algorithm by leveraging two polynomial relation matrices that encode minimal bases for modules of relations between input polynomials. Under generic input, it constructs a univariate-to-bivariate reduction and a truncated-powers framework to achieve a running time of $\tilde{O}\left(n^{(\omega+3)/4}\right)$, improving upon prior general algorithms and matching the best known matrix-multiplication exponents. The approach integrates minimal-basis computation in Popov form, bivariate modular composition via Kronecker-like substitutions, and simultaneous truncated product techniques, with extensions to bivariate inputs and multipoint evaluation. The work also establishes complexity equivalences between truncated powers, bivariate composition, and characteristic polynomials, highlighting fundamental connections among core subproblems in modular polynomial computation and offering potential Las Vegas variants in future work.
Abstract
Modular composition is the problem of computing the composition of two univariate polynomials modulo a third one. For a long time, the fastest algebraic algorithm for this problem was that of Brent and Kung (1978). Recently, we improved Brent and Kung's algorithm by computing and using a polynomial matrix that encodes a certain basis of algebraic relations between the polynomials. This is further improved here by making use of two polynomial matrices of smaller dimension. Under genericity assumptions on the input, this results in an algorithm using $\tilde{O}(n^{(ω+3)/4})$ arithmetic operations in the base field, where $ω$ is the exponent of matrix multiplication. With naive matrix multiplication, this is $\tilde{O}(n^{3/2})$, while with the best currently known exponent $ω$ this is $O(n^{1.343})$, improving upon the previously most efficient algorithms.
