arrow
Return

FORTE: Online DataFrame Query Optimizer

delete2026-01-01
delete0
PRE
AI
Y
Yoonho Choi *
K
Kyoungtae Lee
M
Minji Kim
H
Hyungsoo Jung
H
Hyojin Sung
DOI:10.1109/CGO68049.2026.11395223delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
DataFrame libraries are widely adopted in data science for their flexible, Pythonic interfaces, but their fragmented APIs and unstructured query patterns limit systematic optimization. Existing work has explored parallel execution or SQL-style logical rewrites, yet these approaches fall short in capturing DataFrame-specific semantics and Python control-flow context. We present FORTE, the first online, source-to-source query optimizer that unifies multiple DataFrame libraries under a shared intermediate representation (DFL). DFL makes DataFrame semantics explicit, enabling composable and portable rewriting rules such as user-defined function (UDF) lifting/lowering, loop lifting, and API tuning, alongside classical rewrites (e.g., predicate pushdown). FORTE employs a lightweight, learned cost model and greedy search to apply these rewrites with negligible overhead, while supporting both intra-library optimization and cross-library transpilation. Our evaluation on TPC-H workloads and real-world Kaggle/GitHub workloads shows that FORTE consistently delivers substantial speedups-up to 52.53x (3.7x on average) across Pandas, Modin, Polars, and Pandas-on-Spark-demonstrating that online, IR-guided rewriting can significantly outperform existing DataFrame engines and rewriters, while enabling cross-library retargetability.
Keywords:
DataFrame optimization
query rewriting
intermediate representation
online optimization
cross-library compatibility

Journal

2
2026 IEEE/ACM INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, CGO
IF:
0
Papers:
48
Citations:
0

Organization

P
pohang university of science & technology (postech)
Scholars:
391
Papers: 162
Citations: 0
E
Ewha Womans University
Scholars:
1.2W
Papers: 1.1W
Citations: 1.2W
S
seoul national university (snu)
Scholars:
7.2W
Papers: 6.6W
Citations: 86
researcher View more organizations