Atlas is a framework for deployment optimization of compound AI workflows on heterogeneous clusters. It takes a workflow specification, candidate model variants, a calibration dataset, and SLOs as input, and produces an execution plan that assigns one model variant and one hardware placement to each workflow stage. The framework operates in three phases: profiling, optimization, and execution.
The candidate model variants are registered in the model store, which represents the ecosystem of models available for optimization across workflow stages. The SLOs define the operating constraints under which Atlas selects execution plans, covering latency, throughput, memory, and cost requirements.
In the profiling phase, two independent profilers operate in parallel. The accuracy profiler runs each pair of adjacent stages on the calibration dataset, measuring how the output quality of an upstream stage shifts the quality distribution of its downstream neighbor. This produces per-pair accuracy profiles that keep profiling cost proportional to the number of stage pairs rather than the number of full configurations. The performance profiler draws candidate variants from the model store and measures the latency, throughput, and memory footprint of each variant on each hardware tier. Both sets of profiles are stored in the profile catalog.
In the optimization phase, the plan estimator consumes the per-pair accuracy profiles and applies Markovian Accuracy Predictor (MAP) to estimate end-to-end accuracy for every candidate configuration. The Atlas optimizer selects the model variant assignment and hardware placement per stage that maximizes predicted accuracy subject to the SLO constraints.
The resulting execution plan is submitted to the workflow executor, which deploys the selected variants on their assigned hardware tiers and serves inference requests until a new plan replaces it.
Atlas: Optimizing Deployment of Compound AI Workflows on Heterogeneous Clusters. IEEE/ACM Symposium on Edge Computing (SEC), 2026.
The repository regenerates each table and each result figure of the paper from the measurement data.
| Path | Contents |
|---|---|
atlas/accuracy_model/ |
MAP. Fit the model, predict end-to-end accuracy, evaluate against measurements. |
atlas/compiler/milp_optimizer_v2.py |
The MILP optimizer. Selects variants and tiers under SLO limits. |
atlas/compiler/profiles.py |
Reads the hardware profiles and builds the input of the optimizer. |
examples/ |
run_atlas.py runs Atlas end to end on W1. my_workflow_template.py is the template for a new workflow. See section 6. |
atlas/compositor/ |
An earlier implementation of the same accuracy model. The bucket-sensitivity experiment (Fig. 10) uses it. |
experiments/ |
One script for each table and each result figure of the paper. See section 5. |
data/measured/ |
Measured accuracy data for each workflow. See section 7. |
data/profiles/ |
Measured latency, throughput, and memory of each model variant on each hardware tier. |
data/solver_scaling/ |
Measured solve times of the synthetic MILP scaling study. |
data/derived/ |
One precomputed input of the bucket-sensitivity experiment. |
results/expected/ |
The result files that the paper uses. reproduce.sh compares new results with these files. |
figures/ |
The figures of the paper, one file for each figure. |
tests/ |
Unit tests, integration tests, and tests that check the paper numbers. |
reproduce.sh |
Runs all experiments and compares the results with results/expected/. |
The names follow Table II of the paper.
| Name | Workflow | Configurations |
|---|---|---|
| W1 | Linear RAG: embedder, reranker, generator | 96 |
| W2 | W1 with a learned router. The router sends each query to a small or a large generator. | 128 |
| W3 | W1 with a generator-critic feedback loop | 60 |
| W4 | W1 with routing. The small branch has the feedback loop. | 216 |
Two more data sets exist. The paper does not report them. They calibrate the router stage and the feedback loop on their own. The scripts call them RouterCal and RefineCal.
| Item | Requirement |
|---|---|
| Python | 3.10 or later. The frozen results come from Python 3.12.7. |
| Packages | numpy, scipy, pandas, matplotlib, mip. pytest for the tests. requirements.txt gives the exact versions. |
| Solver | CBC. The mip package installs it. No commercial solver is necessary. |
| Hardware | One CPU core and 2 GB of memory. No GPU. |
| Disk | 35 MB for the repository, 5 MB for the regenerated results. |
| Time | About two minutes for the tests and the experiments. Five more minutes for the synthetic solver sweep. |
| Operating system | Tested on macOS 15 (Apple silicon). Linux with the same packages is expected to work. |
- Clone the repository.
- Create a virtual environment.
- Install the packages:
pip install -r requirements.txt
The file requirements.txt gives the versions that made the files in results/expected/. Other versions can give small differences in the last digits.
- Run the tests:
python3 -m pytest -q
The 56 tests must pass. The tests in tests/reproduction/ check the paper numbers for W1, RouterCal, RefineCal, and the composition step.
Run:
./reproduce.sh
The script runs the tests, runs each experiment, and compares the new result files with results/expected/. The script stops with an error if one experiment fails or if one result file is different.
The step fig8_slo_sweep.py runs a synthetic MILP scaling study. This step takes about five minutes. To skip this step, run:
QUICK=1 ./reproduce.sh
The other steps take about two minutes together.
Each experiment is also a stand-alone script. Run it from the repository root with PYTHONPATH=.:
PYTHONPATH=. python3 experiments/table3_fig5_map_loo.py
The table below gives, for each part of the paper, the script, the result files, and the figure file.
| Paper | Script | Result files | Figure file |
|---|---|---|---|
| Table III, Fig. 5: MAP accuracy on W1 to W4 | table3_fig5_map_loo.py |
results/map_loo/metrics_summary.csv, results/map_loo/scatter_data.csv |
figures/fig05_map_predicted_vs_measured.pdf |
| Table III: PAS-naive and PAS-fair rows | table3_pas_baselines.py |
results/tables/VIB_pas_metrics.csv, results/tables/VIB_pas_config_predictions.csv |
|
| Section IV: fitted MAP parameters | fit_and_dump.py |
results/fitted/W1.json to W4.json, results/fitted/summary.csv |
figures/fig04_map_transition_model.pdf |
| Fig. 6: profiling cost | fig6_profiling_cost.py |
results/tables/VIC_profiling_cost.csv, results/tables/VIC_profiled_units.csv |
figures/fig06_profiling_cost.pdf |
| Fig. 7: plan selection on one tier | fig7_planner_homogeneous.py |
results/tables/VID_planner_outcomes.csv, VID_plan_details.csv, VID_planner_summary.csv |
figures/fig07_planner_homogeneous.pdf |
| Fig. 8: placement on three tiers | fig8_placement_heterogeneous.py, fig8_slo_sweep.py |
results/heterogeneous/milp/VIE_heterogeneous_outcomes.csv, VIE_slo_sweep_map.csv |
figures/fig08_placement_heterogeneous.pdf |
| Fig. 9: accuracy predictors on W4, three tiers | fig9_predictor_heterogeneous.py |
results/heterogeneous/milp/VIE_fig9_outcomes.csv |
figures/fig09_predictor_heterogeneous.pdf |
| Fig. 10: bucket sensitivity | fig10_bucket_sensitivity.py |
results/bucket_sensitivity/bucket_sensitivity_all.csv |
figures/fig10_bucket_sensitivity.pdf |
| Section VI: W3 error at large K | w3_feedback_error.py |
results/tables/W3_feedback_error_by_K.csv, W3_feedback_error_worst.csv, W3_feedback_error_summary.json |
|
| Section VI: solver cost | solver_cost.py |
results/tables/solver_cost_real_solves.csv, solver_cost_config_scaling.csv, solver_cost_summary.json |
figures/fig11_solver_config_scaling.pdf |
The figure numbers refer to the SEC 2026 paper. figures/fig01_compound_ai_workflows.pdf, fig02_end_to_end_profiling_cost.pdf, and fig03_atlas_overview.png are the figures of the introduction and the motivation. Some experiment scripts also write a preview figure to results/. The files in figures/ are the figures of the paper.
Atlas is a library. There is no command-line tool. The script examples/run_atlas.py runs the full mechanism on the W1 data of the paper:
PYTHONPATH=. python3 examples/run_atlas.py --latency-ms 500 --load-rps 2 --budget 1.0
The script prints the configurations with the highest predicted accuracy, the selected plan, and the tier of each stage. Use --tiers rtx4090 to limit the optimizer to one tier. Use --y-max 4 to permit replicas.
To run Atlas on a different workflow, copy examples/my_workflow_template.py and fill in the four inputs. The template has a small synthetic workflow that runs as is.
- Samples. Make one
Sampleobject for each question and each configuration. Give the configuration as a tuple of variant names in stage order. Give one quality number per stage and the end-to-end task metric. A composed workflow also needsBoundarySampleobjects for the boundary between two segments. Seeatlas/accuracy_model/data/samples.py. - Workflow description. Make a
WorkflowSpecwith the stages, the variants of each stage, and the segments. A segment is linear, routing, or refinement. Seeatlas/accuracy_model/spec.pyand the loaders inatlas/accuracy_model/data/loaders/. - Bucket specification. Give a
BucketSpecfor each stage. Usedomainwith fixed cut points orquantilewith a bucket count. The paper uses B=2 for binary signals. - Hardware profiles. Give the p99 latency, the throughput, and the memory of each variant on each tier, and the memory cap and the cost of each tier. The function
load_profilesinatlas/compiler/profiles.pyreads CSV files in the layout ofdata/profiles/.
The five calls that follow are the mechanism:
| Step | Call | Result |
|---|---|---|
| Fit MAP | fit(samples, workflow, bucket_specs) |
A FittedPredictor with the bucket boundaries, the entry distributions, the per-pair transition matrices, and the per-bucket quality values. |
| Predict | predicted_accuracy_per_config(predictor) |
The predicted end-to-end accuracy of every configuration. |
| Translate | to_legacy_workflow_spec(workflow) |
The workflow in the format of the optimizer. |
| Assemble | build_plan_parameters(workflow, accuracy, profiles, tiers) |
The PlanParameters object of the MILP. |
| Plan | plan_max_accuracy(workflow, params, slo) |
A PlanSolution: the selected configuration, the tier and the replica count of each stage, and the predicted accuracy, latency, throughput, and cost. |
Atlas stops at the plan. The deployment of the plan is not part of this repository.
Each file in data/measured/ is a JSON Lines file. Each line is one question through one configuration of one workflow. Each line gives the configuration, the per-stage quality signals, and the end-to-end answer F1 on SQuAD.
| File | Workflow | Contents |
|---|---|---|
W1_sweep.jsonl |
W1, 96 configurations | 8 generators, 2 embedders, 2 rerankers, 3 retrieval depths, 2 reranking depths |
W1_sweep_base72.jsonl |
W1, first 72 configurations | The reproduction tests use this file. |
W2_sweep.jsonl |
W2, 128 configurations | Four router thresholds. The files W2_sweep_t030.jsonl to W2_sweep_t060.jsonl hold one threshold each. |
W3_sweep.jsonl |
W3, 60 configurations | Five W1 front-ends, three feedback budgets, four generator-critic pairs |
W3_boundary.jsonl |
W3 boundary samples | Quality at the boundary between the W1 front-end and the feedback loop |
W3_refinement_calibration.jsonl, W3_router_predictions.json |
Inputs of the bucket-sensitivity experiment | |
W4_sweep.jsonl |
W4, 216 configurations | Three router thresholds, three producers, two critics, six remote generators |
router_calibration_sweep.jsonl |
RouterCal |
The router stage on its own |
refinement_calibration_sweep.jsonl |
RefineCal |
The feedback loop on its own |
The W1, W3, RouterCal, and RefineCal data come from runs of the workflows on the RTX 4090 server. The W2 and W4 data come from the simulation that Section VI-A of the paper describes.
The six files in data/profiles/ give the p50, p95, and p99 latency, the throughput, and the memory of each model variant on each tier: an NVIDIA RTX 4090, an NVIDIA RTX A4000, and a 32-core CPU node. The cost rates of the tiers are 0.40, 0.20, and 0.10 dollars per replica-hour.
The repository does not contain the code that made the measurements, and it does not contain the router checkpoints.
results/expected/ holds the result files that the paper uses. experiments/check_expected.py compares new result files with these files. The comparison ignores the solver-time columns and the provenance timestamps. The solver times depend on the hardware. All other values must match to 1e-9.
To write the frozen files again after a code change, run:
./reproduce.sh --update
If you use this code or this data, cite the paper:
@inproceedings{gravara2026atlas,
author = {Gravara, Milos and Stanisic, Andrija and Nastic, Stefan},
title = {Atlas: Optimizing Deployment of Compound {AI} Workflows on Heterogeneous Clusters},
booktitle = {Proceedings of the IEEE/ACM Symposium on Edge Computing (SEC 2026)},
year = {2026},
address = {Santa Clara, CA, USA},
publisher = {IEEE}
}The file CITATION.cff holds the same reference in a machine-readable form.
Milos Gravara, Distributed Systems Group, TU Wien. Email: m.gravara@dsg.tuwien.ac.at or milos.gravara@tuwien.ac.at