FactorLibrary: From Polynomials to Circuits via Recursive Subgoals
Rohan Pandey ⋅ Michael R Zeng ⋅ Weikun Zhang ⋅ Kaijie Jin ⋅ Naomi Morato ⋅ Archit Ganapule ⋅ Bhaumik Mehta ⋅ Jarod Alper
Abstract
Finding minimal arithmetic circuits for polynomials over finite fields is a combinatorially hard problem central to algebraic complexity theory. We formulate this problem as a two-directional reinforcement learning problem, bottom-up and top-down. To address the challenge of a fast-growing combinatorial search space, we introduce FactorLibrary, which stores factorizable subexpressions that serve as reusable subgoals across training episodes. We trained a bottom-up agent with Gumbel-PPO-MCTS and two top-down agents with PPO-MCTS and SAC. The PPO-MCTS top-down agent exhibited the most stable performance, finding certified optimal circuits up to complexity $8$ with a success rate of \(91.9\%\).
Chat is not available.
Successful Page Load