arXiv:2611.19821v1 cs.LG

GraphPass: 컴파일러 패스 선택을 위한 그래프 신경망 연구

GraphPass: A Study of Graph Neural Networks for Compiler Pass Selection

Mohammed Saqlain

제출 2026-11-17

한국어 초록

컴파일러 패스는 대체로 고정된 파이프라인(-O2, -O3)이나 수작업으로 만든 휴리스틱으로 선택한다. 본 연구는 프로그램의 제어 흐름 그래프(CFG)를 입력받는 그래프 신경망(GNN)이 순전파 한 번으로 고정된 다섯 가지 패스 시퀀스 중 하나를 선택할 수 있는지 조사한다. GraphPass는 그래프 어텐션(GAT) 또는 그래프 합성곱(GCN) 인코더로 각 CFG를 표현하고 다섯 시퀀스 중 하나로 분류한다. 다섯 가지 프로그램 계열에 걸쳐 생성한 CFG 5,000개의 합성 벤치마크에서, 두 인코더 모두 홀드아웃 프로그램의 약 92%에서 기준 레이블과 일치했다. 수작업 규칙 기반 휴리스틱은 68.4%, 계층적 구조를 쓰지 않은 다층 퍼셉트론(MLP)은 85%였다. 간선 제거 실험을 보면 개선의 원인은 CFG 간선이 아니라 기본 블록 단위 처리다. 동일한 기본 블록 특징을 사용하되 간선을 모두 제거한 GCN은 95.0%, 실제 CFG를 사용한 GCN은 92.2%를 기록했다. 이 벤치마크에서 레이블은 프로그램 계열로 정해지므로, 과제는 사실상 계열 인식에 해당한다. 실제 컴파일러가 얼마나 빨라지는지는 측정하지 않았다. CFG당 추론 비용은 O(|V| + |E|)이다. CPU 코어 하나에서 일반적인 프로그램은 1.7ms, 블록이 10만 개인 그래프는 약 0.8초가 걸렸다.

원문 초록

Compiler pass selection is usually governed by fixed pipelines (-O2, -O3) or hand-written heuristics. We study whether a graph neural network (GNN) over a program's control-flow graph (CFG) can select among a fixed menu of five pass sequences in a single forward pass. GraphPass encodes each CFG with a graph attention (GAT) or graph convolutional (GCN) encoder and classifies it into one of the five sequences. On a synthetic benchmark of 5,000 generated CFGs in five program families, both encoders agree with the benchmark's reference label on about 92% of held-out programs, versus 68.4% for a hand-written rule-based heuristic and 85% for a flat MLP. An edge ablation indicates that this gain comes from per-block processing rather than from CFG edges: a GCN given the same basic-block features with all edges removed scores 95.0%, versus 92.2% with the true CFG. In this benchmark the label is determined by the program family, so the task amounts to family recognition. Real-compiler speedup is not measured. Inference costs O(|V| + |E|) per CFG, measured at 1.7 ms for a typical program and about 0.8 s for a 100,000-block graph on one CPU core.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2611.19821v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.