Solving Recurrence Relations using Machine Learning, with Application to Cost Analysis
Maximiliano Klemen, Miguel \'A. Carreira-Perpi\~n\'an, Pedro, Lopez-Garcia

TL;DR
This paper introduces a machine learning-based method to solve complex recurrence relations in static cost analysis, overcoming limitations of existing solvers and enabling more effective resource usage predictions.
Contribution
It presents a novel, general approach combining machine learning, SMT-solving, and CAS to solve arbitrary constrained recurrence relations in cost analysis.
Findings
Successfully solves classes of recurrences unsolvable by existing tools.
Achieves reasonable computation times for complex recurrence relations.
Demonstrates effectiveness on recurrences generated by a cost analysis system.
Abstract
Automatic static cost analysis infers information about the resources used by programs without actually running them with concrete data, and presents such information as functions of input data sizes. Most of the analysis tools for logic programs (and other languages) are based on setting up recurrence relations representing (bounds on) the computational cost of predicates, and solving them to find closed-form functions that are equivalent to (or a bound on) them. Such recurrence solving is a bottleneck in current tools: many of the recurrences that arise during the analysis cannot be solved with current solvers, such as Computer Algebra Systems (CASs), so that specific methods for different classes of recurrences need to be developed. We address such a challenge by developing a novel, general approach for solving arbitrary, constrained recurrence relations, that uses machine-learning…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
