atlas

Research map / Reinforcement learning / Visual and representation RL

Optimizing Automatic Differentiation with Deep Reinforcement Learning

NeurIPS 2024 · Reinforcement learning › Visual and representation RL · approach: RL with tree search for discovery · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes AlphaGrad, which casts cross-country elimination for automatic differentiation as a single-player RL game (VertexGame) solved with AlphaZero and a transformer, minimizing multiplications, plus a JAX interpreter Graphax for runtime gains.

Problem

Finding the elimination order in cross-country elimination that minimizes the number of multiplications needed to compute exact Jacobians via automatic differentiation; existing heuristics (Markowitz, forward/reverse mode) and prior search methods are suboptimal.

Approach

Formulate vertex elimination ordering as a single-player game (VertexGame) with reward equal to negative multiplication count, and train an AlphaZero agent with a transformer policy/value network over compressed adjacency-tensor tokens to discover new AD algorithms tailored to each function.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · RoeFlux_1dmultiplications: 407 -> 320Helped
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · RobotArm_6DOFmultiplications: 288 -> 231Helped
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · HumanHeartDipolemultiplications: 172 -> 149Helped
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · PropaneCombustionmultiplications: 90 -> 88Helped
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · Random function gmultiplications: 451 -> 417Helped
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · BlackScholesmultiplications: 350 -> 312Helped
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · RoeFlux_3dmultiplications: 938 -> 811Helped
Use AlphaGrad's learned elimination order instead of the strongest baselineJacobian computation · Random function fmultiplications: 9333 -> 6374Helped
Use AlphaGrad with 50 MCTS simulations instead of reverse-mode AD2-layer MLP · 2-layer MLPmultiplications: 392 -> 398Hurt
Increase AlphaGrad search from 50 to 250 MCTS simulations2-layer MLP · 2-layer MLPmultiplications: 398 -> 389Helped
Use AlphaGrad with 50 MCTS simulations instead of reverse-mode ADTransformer · Transformermultiplications: 4688 -> 4831Hurt
Increase AlphaGrad search from 50 to 250 MCTS simulationsTransformer · Transformermultiplications: 4831 -> 4656No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: RoeFlux_1d RoeFlux_3d RobotArm_6DOF HumanHeartDipole PropaneCombustion BlackScholes_Jacobian 2-layer MLP Transformer encoder random functions f and g

Benchmarks: RoeFlux_1d RoeFlux_3d RobotArm_6DOF HumanHeartDipole PropaneCombustion BlackScholes_Jacobian 2-layer MLP Transformer encoder random function f random function g

Metrics: number of multiplications median runtime (ms)

Baselines: forward-mode AD reverse-mode AD minimal Markowitz degree JAX forward-mode AD JAX reverse-mode AD

Builds on: AlphaZero Gumbel AlphaZero AlphaTensor JAX PPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy