تقرير
Solving Recurrence Relations using Machine Learning, with Application to Cost Analysis
العنوان: | Solving Recurrence Relations using Machine Learning, with Application to Cost Analysis |
---|---|
المؤلفون: | Klemen, Maximiliano, Carreira-Perpiñán, Miguel Á., Lopez-Garcia, Pedro |
المصدر: | EPTCS 385, 2023, pp. 155-168 |
سنة النشر: | 2023 |
المجموعة: | Computer Science |
مصطلحات موضوعية: | Computer Science - Programming Languages, Computer Science - Machine Learning, F.3.2, F.3.1, F.4.1, I.2.6, D.1.6 |
الوصف: | 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 sparse regression techniques to guess a candidate closed-form function, and a combination of an SMT-solver and a CAS to check whether such function is actually a solution of the recurrence. We have implemented a prototype and evaluated it with recurrences generated by a cost analysis system (the one in CiaoPP). The experimental results are quite promising, showing that our approach can find closed-form solutions, in a reasonable time, for classes of recurrences that cannot be solved by such a system, nor by current CASs. Comment: In Proceedings ICLP 2023, arXiv:2308.14898 |
نوع الوثيقة: | Working Paper |
DOI: | 10.4204/EPTCS.385.16 |
URL الوصول: | http://arxiv.org/abs/2309.07259 |
رقم الأكسشن: | edsarx.2309.07259 |
قاعدة البيانات: | arXiv |
DOI: | 10.4204/EPTCS.385.16 |
---|