Skip to main content
QUICK REVIEW

[Paper Review] FEAST: An Automated Feature Selection Framework for Compilation Tasks

Paishun Ting, Chun‐Chen Tu|arXiv (Cornell University)|Oct 29, 2016
Parallel Computing and Optimization TechniquesComputer Science7 references5 citations
TL;DR

FEAST is an automated feature selection framework that uses LASSO, sequential forward/backward selection, and statistical methods to identify a minimal, high-performing subset of static program features for compiler tasks. It achieves comparable compiler parameter tuning performance using only ~18% of the original feature pool, significantly reducing redundancy and computational cost.

ABSTRACT

The success of the application of machine-learning techniques to compilation tasks can be largely attributed to the recent development and advancement of program characterization, a process that numerically or structurally quantifies a target program. While great achievements have been made in identifying key features to characterize programs, choosing a correct set of features for a specific compiler task remains an ad hoc procedure. In order to guarantee a comprehensive coverage of features, compiler engineers usually need to select excessive number of features. This, unfortunately, would potentially lead to a selection of multiple similar features, which in turn could create a new problem of bias that emphasizes certain aspects of a program's characteristics, hence reducing the accuracy and performance of the target compiler task. In this paper, we propose FEAture Selection for compilation Tasks (FEAST), an efficient and automated framework for determining the most relevant and representative features from a feature pool. Specifically, FEAST utilizes widely used statistics and machine-learning tools, including LASSO, sequential forward and backward selection, for automatic feature selection, and can in general be applied to any numerical feature set. This paper further proposes an automated approach to compiler parameter assignment for assessing the performance of FEAST. Intensive experimental results demonstrate that, under the compiler parameter assignment task, FEAST can achieve comparable results with about 18% of features that are automatically selected from the entire feature pool. We also inspect these selected features and discuss their roles in program execution.

Motivation & Objective

  • Address the ad hoc and redundant nature of manual feature selection in compiler optimization tasks.
  • Reduce the number of features used in machine learning for compilation without sacrificing performance.
  • Automate the selection of representative, non-redundant static features for compiler parameter assignment.
  • Enable scalable, dynamic-feature-free performance prediction in compiler optimization using only static features.
  • Provide a general-purpose framework applicable to various compilation tasks beyond parameter tuning.

Proposed method

  • FEAST integrates LASSO regression to perform sparsity-inducing feature selection by penalizing non-essential features.
  • It applies sequential forward and backward selection to iteratively add or remove features based on model performance.
  • The framework processes a pool of 56 static features extracted from the cTuning Compiler Collection, including control flow, instruction, and pointer-related metrics.
  • Feature selection is evaluated using a supervised learning setup for compiler parameter assignment, with performance measured via prediction accuracy.
  • The method is designed to be general-purpose, applicable to any numerical feature set in compilation tasks.
  • An automated compiler parameter assignment scheme is proposed to evaluate FEAST’s effectiveness in real-world scenarios.

Experimental results

Research questions

  • RQ1Can automated feature selection methods like LASSO and sequential selection effectively reduce the number of static features while maintaining performance in compiler parameter tuning?
  • RQ2How much can the feature set be reduced without compromising prediction accuracy in compiler optimization tasks?
  • RQ3Which specific features are most influential in predicting optimal compiler parameter assignments?
  • RQ4Can a dynamic-feature-free approach achieve performance comparable to methods relying on expensive profiling or dynamic features?
  • RQ5How do the selected features from FEAST contribute to understanding program behavior and compiler optimization?

Key findings

  • FEAST reduces the original 56 static features to approximately 10 features (18% of the original pool) while maintaining comparable performance in compiler parameter assignment.
  • The selected features are highly representative and include metrics such as number of basic blocks, phi-node counts, pointer operations, and instruction types.
  • The framework significantly reduces execution time in scenarios requiring repeated program runs, due to smaller feature sets and faster model inference.
  • The selected features provide meaningful insights into program structure and behavior, such as control flow complexity and memory access patterns.
  • LASSO and sequential selection methods in FEAST consistently identify a small, high-performing subset of features across multiple runs.
  • The approach enables scalable, dynamic-feature-free performance prediction, making it practical for large-scale compilation workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.