[Paper Review] Why Local Search Excels in Expression Simplification
This paper demonstrates that Stochastic Local Search (SLS) outperforms Monte Carlo Tree Search (MCTS) in finding optimal Horner schemes for expression simplification in High Energy Physics. By exploiting the flat state space with few local minima, SLS achieves near-optimal results with only two parameters—computation time and neighborhood structure—delivering results at least 10 times faster than MCTS and accelerating numerical integration by up to 24×.
Simplifying expressions is important to make numerical integration of large expressions from High Energy Physics tractable. To this end, Horner's method can be used. Finding suitable Horner schemes is assumed to be hard, due to the lack of local heuristics. Recently, MCTS was reported to be able to find near optimal schemes. However, several parameters had to be fine-tuned manually. In this work, we investigate the state space properties of Horner schemes and find that the domain is relatively flat and contains only a few local minima. As a result, the Horner space is appropriate to be explored by Stochastic Local Search (SLS), which has only two parameters: the number of iterations (computation time) and the neighborhood structure. We found a suitable neighborhood structure, leaving only the allowed computation time as a parameter. We performed a range of experiments. The results obtained by SLS are similar or better than those obtained by MCTS. Furthermore, we show that SLS obtains the good results at least 10 times faster. Using SLS, we can speed up numerical integration of many real-world large expressions by at least a factor of 24. For High Energy Physics this means that numerical integrations that took weeks can now be done in hours.
Motivation & Objective
- To investigate the structural properties of the Horner scheme state space to determine if simpler search algorithms could outperform complex, parameter-heavy methods.
- To address the challenge of optimizing multivariate polynomial evaluation in High Energy Physics, where expressions with millions of terms require efficient numerical integration.
- To replace manually tuned MCTS with a minimal-parameter SLS approach that maintains or improves performance on real-world large expressions.
- To enable faster numerical integration in particle physics by simplifying expressions via optimal Horner schemes, reducing computation time from weeks to hours.
Proposed method
- Apply Stochastic Local Search (SLS) with a carefully designed neighborhood structure that swaps adjacent variables in the Horner scheme ordering.
- Use Simulated Annealing as a baseline SLS variant to evaluate performance and convergence behavior.
- Measure state space flatness by analyzing the distribution of operation counts across neighboring states and the number of local minima.
- Compare SLS against MCTS and SA-UCT using a benchmark suite of real-world High Energy Physics expressions with up to 7.7 million operations.
- Optimize SLS by tuning only two parameters: number of iterations (computation time) and neighborhood structure, avoiding the need for fine-tuning exploration-exploitation constants.
- Implement the final SLS-based algorithm in the next release of the open-source symbolic manipulation system FORM.
Experimental results
Research questions
- RQ1Is the state space of Horner schemes sufficiently flat to allow effective search using basic Stochastic Local Search (SLS) rather than complex tree search algorithms?
- RQ2Can SLS achieve performance comparable to or better than MCTS in finding optimal Horner schemes, despite MCTS’s ability to balance exploration and exploitation?
- RQ3How does the number of local minima in the Horner scheme state space affect the convergence and robustness of local search algorithms?
- RQ4To what extent can SLS reduce computation time in numerical integration of large expressions in High Energy Physics compared to existing methods?
- RQ5Can SLS be made practical for real-world use by minimizing the number of tunable parameters while maintaining high performance?
Key findings
- The Horner scheme state space is relatively flat, with operation counts varying only slightly across neighboring states, which supports the effectiveness of local search.
- The state space contains only a few local minima, making it feasible for SLS to converge to near-optimal solutions without getting trapped in poor regions.
- SLS achieves results comparable to or better than MCTS on expressions with 15 or more variables, with significantly faster convergence—over 10 times faster in terms of required samples.
- SLS reduces the number of operations in real-world expressions by a factor of up to 24, enabling numerical integration to be accelerated by at least 24×.
- SLS requires only two parameters—computation time and neighborhood structure—making it far more practical and easier to deploy than MCTS, which requires tuning of the exploration constant $C_p$.
- The SLS-based algorithm will be integrated into the next release of the open-source symbolic manipulation system FORM, enabling broader adoption in High Energy Physics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.