TL;DR
SNAPPerf is the first tabular foundation model specifically designed for software performance prediction. By pretraining on millions of synthetic systems, it can predict the performance of a new, unseen software system using just a few measurements as context—eliminating the need for expensive per-system retraining or hyperparameter tuning.
What Problem Does This Paper Address?
Modern software—from databases like SQLite to video encoders like VP8—comes with hundreds of configuration "knobs." These options interact in complex ways, drastically affecting execution time, memory usage, and energy consumption. Because the number of possible configurations grows exponentially, developers can only measure a tiny fraction of them.
Traditionally, researchers have built machine learning models (like regression trees or deep networks) to predict the performance of unmeasured configurations. However, these models are "per-system": if you update the software version, change the hardware, or shift the workload, the model becomes obsolete. You have to collect new data and retrain from scratch. In an era of rapid deployment and AI-assisted coding, this retraining bottleneck is becoming unsustainable.
Methods
The authors introduce SNAPPerf (Software-aware, No-retraining, Adaptive Prediction), which shifts the paradigm from "train-then-predict" to "pretrain-then-contextualize."
- Software-Aware Pretraining: Unlike general-purpose tabular models, SNAPPerf is pretrained on ~29 million synthetic configurable systems. These synthetic systems are generated using a "prior" that mimics real-world software characteristics: sparse feature effects, complex interactions between options, and constraints (e.g., "option A requires option B").
- In-Context Learning: SNAPPerf uses a 12-million parameter transformer architecture. At inference time, the model is "frozen" (no weights are updated). It simply takes a few real-world measurements as "context" and uses them to predict the performance of all other configurations in a single pass.
- Uncertainty Quantification: Instead of a single point estimate, the model predicts a full probability distribution, providing an uncertainty estimate that can help engineers decide which configuration to measure next.
Datasets
- Pretraining: ~29 million synthetic systems generated based on performance-modeling literature.
- Development: 16 real-world systems from previous studies used to tune the synthetic data generator.
- Evaluation: The DaL benchmark, consisting of 12 real-world systems (including Apache, MariaDB, and x264) with a total of 39,866 measured configurations across various metrics like runtime and latency.
Key Insights and Ideas
- Knowledge in Data, Not Architecture: The paper demonstrates that "software-awareness" doesn't need to be hard-coded into a neural network's architecture. Instead, it can be encoded into the pretraining data. By training on synthetic data that "looks like" software, the model learns the universal "physics" of configuration spaces.
- The Power of In-Context Learning for Tables: SNAPPerf proves that the few-shot capabilities seen in Large Language Models (LLMs) translate effectively to tabular performance data. This allows for "instant" prediction as soon as a few measurements are available.
- Synthetic Data as a Universal Proxy: Remarkably, the model achieves state-of-the-art results on real systems without ever seeing a single real measurement during its training phase.
Key Results
SNAPPerf significantly outperforms both traditional per-system models and general-purpose foundation models:
- Superior Accuracy: It reduces prediction error by 38% compared to the previous state-of-the-art (DaL) and by 25% compared to the best general-purpose tabular foundation model (Nori).
- Massive Efficiency Gains: To reach the same accuracy as current state-of-the-art models, SNAPPerf requires 54% fewer measurements on average.
- Consistency: SNAPPerf was the most accurate model in 57 out of 60 tested cases (different systems and measurement budgets).
Limitations and Future Work
While promising, the authors note several areas for continued research:
- Refining the Prior: Future work will involve "ablating" the synthetic generator to see exactly which elements (interactions, noise, constraints) contribute most to the model's success.
- Software Evolution: The authors plan to explore how SNAPPerf can better reuse measurements across successive software releases.
- From Prediction to Optimization: The ultimate goal is to integrate SNAPPerf into configuration "tuners" that automatically find the optimal settings for a given system under a strict measurement budget.
Summary updated