Proceedings

Towards a Framework for Learning of Algorithms: The Case of Learned Comparison Sorts

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 4353-4360.

https://doi.org/10.24963/ijcai.2024/481

Abstract

Designing algorithms is cumbersome and error-prone. This, among other things, has increasingly led to efforts to extend or even replace designing algorithms with machine learning models. While previous research has demonstrated that some machine learning models possess Turing-completeness, the findings are largely theoretical, and solutions for specific algorithmic tasks remain unclear. With this in mind, we investigate the feasibility of learning representations of classical algorithms from data on their execution, enabling their application to different inputs. We propose a novel and general framework for algorithm learning consisting of a model of computation that facilitates algorithm analysis across various levels of abstraction. We formalize the problem of learning an algorithm using an algebraic approach for graph traversal. We apply this framework to comparison sorts and evaluate the inferred machine learning models' performance, demonstrating the applicability of the approach in terms of accuracy and sensitivity.

  1. [Allen, 1970] Frances E. Allen. Control flow analysis. SIG- PLAN Not., 5(7):1-19, jul 1970.
  2. [Amato et al., 2021] Domenico Amato, Raffaele Giancarlo, and Giosuè Lo Bosco. Learned sorted table search and static indexes in small space: Methodological and practical insights via an experimental study. CoRR, abs/2107.09480, 2021.
  3. [Axtmann et al., 2021] Michael Axtmann, Sascha Witt, Daniel Ferizovic, and Peter Sanders. Engineering in-place (shared-memory) sorting algorithms, 2021.
  4. [Carvalho and Lawrence, 2023] Ivan Carvalho and Ramon Lawrence. Learnedsort as a learning-augmented sample- sort: Analysis and parallelization. In 35th International Conference on Scientific and Statistical Database Man- agement, SSDBM 2023. ACM, July 2023.
  5. [Chikofsky and Cross, 1990] Elliot Chikofsky and James H. Cross. Reverse engineering and design recovery: a taxon- omy. IEEE Software, 7(1):13-17, 1990.
  6. [Cormen et al., 2009] Thomas H. Cormen, Charles E. Leis- erson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms, Third Edition. The MIT Press, 3rd edition, 2009.
  7. [Ehrich, 1989] Gogolla Lipeck Ehrich. Algebraische Spez- ifikation abstrakter Datentypen. B.G. Teubner Stuttgart, Stuttgart, 1989.
  8. [Forsythe, 1964] George E. Forsythe. Algorithms. Commun. ACM, 7(6):347-349, 1964.
  9. [Goodfellow et al., 2016] Ian J. Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, Cam- bridge, MA, USA, 2016.
  10. [Graves et al., 2014] Alex Graves, Greg Wayne, and Ivo Danihelka. Neural Turing Machines. CoRR, abs/1410.5401, 2014.
  11. [Hahnloser et al., 2000] Richard H. R. Hahnloser, Rahul Sarpeshkar, Misha A. Mahowald, Rodney J. Douglas, and Hyunjune Sebastian Seung. Digital selection and analogue amplification coexist in a cortex-inspired silicon circuit. Nature, 408(6815), 2000.
  12. [Hastie et al., 2009] Trevor Hastie, Robert Tibshirani, and Jerome Friedman. The elements of statistical learning: data mining, inference and prediction. Springer, 2 edition, 2009.
  13. [Kraska et al., 2019] Tim Kraska, Mohammad Alizadeh, Alex Beutel, Ed H. Chi, Jialin Ding, Ani Kristo, Guil- laume Leclerc, Samuel Madden, Hongzi Mao, and Vikram Nathan. SageDB: A Learned Database System. In Bi- ennial Conference on Innovative Data Systems Research, 2019.
  14. [Kristo et al., 2020] Ani Kristo, Kapil Vaidya, Ugur C ¸etintemel, Sanchit Misra, and Tim Kraska. The Case for a Learned Sorting Algorithm. In ACM SIGMOD International Conference on Management of Data, pages 1001-1016, 2020.
  15. [Kristo et al., 2021] Ani Kristo, Kapil Vaidya, and Tim Kraska. Defeating duplicates: A re-design of the Learned- Sort algorithm. CoRR, abs/2107.03290, 2021.
  16. [Lloyd, 1982] Stuart P. Lloyd. Least squares quantization in pcm. IEEE Transactions on Information Theory, 28(2):129-137, 1982.
  17. [Petry and Biermann, 1976] Frederick E. Petry and Alan W. Biermann. Reconstruction of Algorithms from Memory Snapshots of Their Execution. In ACM Annual Confer- ence, pages 530-534, 1976.
  18. [Siegelmann and Sontag, 1995] Hava T. Siegelmann and Ed- uardo D. Sontag. On the computational power of neu- ral nets. Journal of Computer and System Sciences, 50(1):132-150, 1995.
  19. [Turing, 1936] Alan M. Turing. On computable numbers, with an application to the Entscheidungsproblem. Pro- ceedings of the London Mathematical Society, 2(42):230- 265, 1936.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards