AI Navigate

CircuitBuilder: From Polynomials to Circuits via Reinforcement Learning

arXiv cs.LG / 3/19/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper formulates the problem of discovering efficient arithmetic circuits for polynomials as a single-player reinforcement learning game in which an agent constructs circuits from addition and multiplication gates within a fixed number of operations.
  • It implements an AlphaZero-style training loop and compares Proximal Policy Optimization with Monte Carlo Tree Search (PPO+MCTS) versus Soft Actor-Critic (SAC), with SAC achieving higher success on two-variable targets and PPO+MCTS scaling to three variables.
  • The results suggest polynomial circuit synthesis provides a compact, verifiable setting for studying self-improving search policies in ML.
  • The work demonstrates a concrete application of modern RL methods to symbolic circuit synthesis, highlighting potential crossovers between ML and computational algebra.

Abstract

Motivated by auto-proof generation and Valiant's VP vs. VNP conjecture, we study the problem of discovering efficient arithmetic circuits to compute polynomials, using addition and multiplication gates. We formulate this problem as a single-player game, where an RL agent attempts to build the circuit within a fixed number of operations. We implement an AlphaZero-style training loop and compare two approaches: Proximal Policy Optimization with Monte Carlo Tree Search (PPO+MCTS) and Soft Actor-Critic (SAC). SAC achieves the highest success rates on two-variable targets, while PPO+MCTS scales to three variables and demonstrates steady improvement on harder instances. These results suggest that polynomial circuit synthesis is a compact, verifiable setting for studying self-improving search policies.