Static Feature Unreliability for ML
Inlining drastically changes static features like machine instructions and control flow graphs, which are critical inputs for machine learning models in binary analysis, making these features unreliable for AI's decision-making, especially under aggressive inlining.
The top 3
- Top Distortion: Inlining Corrupts Control & Data Flow Graphs for AI: Function inlining fundamentally merges code, drastically altering Control Flow Graphs (CFGs) and Data Flow Graphs (DFGs). This structural obfuscation makes it difficult for AI models to accurately trace program execution and data dependencies, impacting critical analysis tasks like vulnerability detection.
- AI's Semantic Challenge: Inlining Hides Original Function Context: By replacing function calls with their bodies, inlining eliminates crucial semantic context like original function boundaries and call-site specific information. This loss of high-level intent makes it significantly harder for ML models to infer the true purpose and contextual relationships of code segments.
- Biggest Hurdle: Inconsistent Inlining Undermines ML Model Robustness: Compiler inlining decisions vary significantly based on factors like optimization levels, build flags, and even programming styles, leading to inconsistent static features for semantically identical code. This variability undermines the robustness of ML models trained on specific feature distributions, causing performance degradation and fragility in real-world deployment.
Sources
Open the full topic