{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2603-20821","title":"Compass: Optimizing Compound AI Workflows for Dynamic Adaptation","arxiv_id":"2603.20821","date":"2026-03-21","proceeding":null,"authors":["Milos Gravara","Juan Luis Herrera","Stefan Nastic"],"abstract":"Compound AI is a distributed intelligence approach that represents a unified system orchestrating specialized AI/ML models with engineered software components into AI workflows. Compound AI production deployments must satisfy accuracy, latency, and cost objectives under varying loads. However, many deployments operate on fixed infrastructure where horizontal scaling is not viable. Existing approaches optimize solely for accuracy and do not consider changes in workload conditions. We observe that compound AI systems can switch between configurations to fit infrastructure capacity, trading accuracy for latency based on current load. This requires discovering multiple Pareto-optimal configurations from a combinatorial search space and determining when to switch between them at runtime. We present Compass, a novel framework that enables dynamic configuration switching through offline optimization and online adaptation. Compass consists of three components: COMPASS-V algorithm for configuration discovery, Planner for switching policy derivation, and Elastico Controller for runtime adaptation. COMPASS-V discovers accuracy-feasible configurations using finite-difference guided search and a combination of hill-climbing and lateral expansion. Planner profiles these configurations on target hardware and derives switching policies using a queuing theory based model. Elastico monitors queue depth and switches configurations based on derived thresholds. Across two compound AI workflows, COMPASS-V achieves 100% recall while reducing configuration evaluations by 57.5% on average compared to exhaustive search, with efficiency gains reaching 95.3% at tight accuracy thresholds. Runtime adaptation achieves 90-98% SLO compliance under dynamic load patterns, improving SLO compliance by 71.6% over static high-accuracy baselines, while simultaneously improving accuracy by 3-5% over static fast baselines.","url_abs":"https://arxiv.org/abs/2603.20821","url_pdf":"https://arxiv.org/pdf/2603.20821","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2603.20821","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.20821"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/polaris-slo-cloud/compass","reach":null}],"summary":{"unverified":8},"by_repo_kind":{"found_in_text":{"samples":8,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":8,"samples":[{"code_sha256_prefix":"3b7bac006153d975","entry":"compute_thresholds","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"compass/planner/aqm.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/compass/planner/aqm.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3b7bac006153d975"}},{"code_sha256_prefix":"01c2dbd88db084d2","entry":"compute_work_thresholds","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"compass/planner/aqm.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/compass/planner/aqm.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"01c2dbd88db084d2"}},{"code_sha256_prefix":"3d8b927ec7e90a7c","entry":"config_key","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"compass/search/parameter_space.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/compass/search/parameter_space.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d8b927ec7e90a7c"}},{"code_sha256_prefix":"44693da873c6f1ba","entry":"extract_pareto","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"compass/planner/pareto.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/compass/planner/pareto.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"44693da873c6f1ba"}},{"code_sha256_prefix":"accb76fb10cba33a","entry":"is_dominated","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"compass/planner/pareto.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/compass/planner/pareto.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"accb76fb10cba33a"}},{"code_sha256_prefix":"14f5101cad673081","entry":"load_pareto","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"compass/planner/aqm.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/compass/planner/aqm.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"14f5101cad673081"}},{"code_sha256_prefix":"75cfc0af9f628d6d","entry":"load_questions","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"experiments/run_baseline.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/experiments/run_baseline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"75cfc0af9f628d6d"}},{"code_sha256_prefix":"0f77efe6090e1806","entry":"select_operating_points","repo":"polaris-slo-cloud/compass","repo_kind":"found_in_text","path":"compass/planner/pareto.py","file_url":"https://github.com/polaris-slo-cloud/compass/blob/HEAD/compass/planner/pareto.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0f77efe6090e1806"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}