Papers
Topics
Authors
Recent
2000 character limit reached

Reinforcement Learning for Graph Coloring: Understanding the Power and Limits of Non-Label Invariant Representations (2401.12470v1)

Published 23 Jan 2024 in cs.LG and cs.AI

Abstract: Register allocation is one of the most important problems for modern compilers. With a practically unlimited number of user variables and a small number of CPU registers, assigning variables to registers without conflicts is a complex task. This work demonstrates the use of casting the register allocation problem as a graph coloring problem. Using technologies such as PyTorch and OpenAI Gymnasium Environments we will show that a Proximal Policy Optimization model can learn to solve the graph coloring problem. We will also show that the labeling of a graph is critical to the performance of the model by taking the matrix representation of a graph and permuting it. We then test the model's effectiveness on each of these permutations and show that it is not effective when given a relabeling of the same graph. Our main contribution lies in showing the need for label reordering invariant representations of graphs for machine learning models to achieve consistent performance.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (12)
  1. Deep learning-based hybrid graph-coloring algorithm for register allocation, 2019.
  2. Complexity analysis of a decentralised graph colouring algorithm. Information Processing Letters, 107(2):60–63, 2008.
  3. Coloring big graphs with alphagozero, 2019.
  4. Solving graph coloring problem via graph neural network (gnn). In 2022 17th International Conference on Emerging Technologies (ICET), pages 178–183, 2022.
  5. Mohit Mayank. Reinforcement learning with q tables, Aug 2018.
  6. Reinforcement learning for combinatorial optimization: A survey, 2020.
  7. Playing atari with deep reinforcement learning, 2013.
  8. Stable-baselines3: Reliable reinforcement learning implementations. Journal of Machine Learning Research, 22(268):1–8, 2021.
  9. A gentle introduction to graph neural networks. Distill, 2021. https://distill.pub/2021/gnn-intro.
  10. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017.
  11. Mastering the game of go without human knowledge. nature, 550(7676):354–359, 2017.
  12. Mike Wang. Deep q-learning tutorial: Mindqn, Oct 2021.
Citations (1)

Summary

We haven't generated a summary for this paper yet.

Whiteboard

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.