Flip Graphs in Higher Dimensions: Searching for One-Step Multiplication Algorithms
Random walks on flip graphs have found several of the best known algorithms for matrix multiplication, but only for products of two inputs. To our knowledge, we are the first to take flip graphs to products of several inputs computed in one step, such as abc, which are tensors of any order. We cast the search for such algorithms as graph search: a state is a correct algorithm, a move rewrites two multiplications without changing the result, and the goal is an algorithm with few multiplications, reached in few moves. We give the exact condition for every move at any order and prove that the moves connect all algorithms for every concise tensor in which three positions have dimension at least 2. Walks run by a GPU engine for tensors of order up to 8 give the best known one-step algorithms over GF(2) for 43 products. Six of them use fewer multiplications than the best algorithms that multiply two inputs at a time, for example 14 instead of 16 for abc mod x 4. Four are proven optimal, and fourteen hold over Z.
- arXiv
- 2612.03901
- Authors
- Daniel Koyfman
- Categories
- cs.SC · cs.AI · cs.CC