Please use this identifier to cite or link to this item: https://research.matf.bg.ac.rs/handle/123456789/3246
Title: GraalMHC: ML-Based Method-Hotness Classification for Binary-Size Reduction in Optimizing Compilers
Authors: Čugurović, Milan 
Prokopec, Aleksandar
Spasojevic, Boris
Jovanovic, Vojin
Vujošević Janičić, Milena 
Affiliations: Informatics and Computer Science 
Informatics and Computer Science 
Keywords: Binary-Size Reduction;GraalVM Native Image;Machine Learning;Optimizing Compilers;Static Profilers
Issue Date: 28-Jan-2026
Rank: M33
Publisher: ACM
Related Publication(s): Proceedings of the 35th ACM SIGPLAN International Conference on Compiler Construction
Conference: ACM SIGPLAN International Conference on Compiler Construction (35 ; 2026 ; Sydney)
Abstract: 
Optimizing compilers often sacrifice binary size in pursuit of higher run-time performance. In the absence of method execution profiles, they uniformly apply performance-oriented optimizations, typically various forms of code duplication. Duplications in methods that are rarely or never executed only increase binary size without improving performance. Modern static profiler use ML to predict branch profiles, yet they do not identify which methods will be frequently executed at run time. Doing so would enable more selective optimizations, reducing binary size while preserving or only minimally affecting run-time performance. We present GraalMHC, a machine-learning-based static profiler that predicts method hotness. GraalMHC uses the XGBoost ensemble to classify methods as cold and warm. For cold methods, GraalMHC enables code-size-reducing optimizations, and for warm methods, it enables performance-improving optimizations. In this way, GraalMHC enables binary-size reductions with no or minimal impact on run-time performance. In addition, GraalMHC allows users to choose between three different size-optimization levels: (S1) 9-13% binary-size reduction with 1-2% performance loss, (S2) 15-25% reduction with 3-5% performance loss, and (S3) 17-35% reduction with 5-7% performance loss. We integrate GraalMHC into the Oracle GraalVM Native Image compiler, delivering a complete end-to-end solution.
URI: https://research.matf.bg.ac.rs/handle/123456789/3246
ISBN: [9798400722745]
DOI: 10.1145/3771775.3786276
Appears in Collections:Research outputs

Show full item record

Google ScholarTM

Check

Altmetric

Altmetric


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.