TL;DR
Cornfigurator is the first automated deployment planner designed specifically for serving "Any-to-Any" multimodal models (which seamlessly mix text, image, video, and audio inputs and outputs). By intelligently balancing colocation and disaggregation of heterogeneous model components, it maximizes "goodput"—the throughput of requests that successfully meet their latency targets—outperforming existing expert-tuned baselines by up to 6.3×.
What Problem Does This Paper Address?
We are rapidly moving beyond text-only Large Language Models (LLMs) toward Any-to-Any (A2A) multimodal models like Qwen Omni or DeepSeek Janus. These models can ingest any combination of modalities (text, audio, video, images) and generate any combination as an output.
However, serving these models efficiently at scale is an engineering nightmare due to two massive sources of heterogeneity:
- Routing Path Heterogeneity: Different requests traverse entirely different subgraphs of the model. A text-to-text request bypasses audio and video encoders/generators entirely, leading to highly uneven and dynamic loads across different components.
- Computational Heterogeneity: The components themselves have vastly different hardware appetites. For instance, in Qwen 3 Omni, the text-processing "thinker" LLM can achieve nearly 30× (and sometimes up to 200×) higher request throughput than the audio-generating "talker" LLM on an NVIDIA A100 GPU.
Existing inference engines either deploy the entire model monolithically (meaning the slowest component bottlenecks everything) or rely on human experts to manually partition components across GPUs. Manual tuning is brittle, fails to generalize, and cannot adapt when the incoming workload mix shifts.
Methods
Cornfigurator automates this deployment planning by treating colocation, disaggregation, and resource allocation as a unified search space. Given a model definition graph, a GPU budget, and a target workload mix, it operates in two main phases:
1. Plan Enumeration
The planner systematically generates candidate deployment strategies. It explores graph-level decisions (which components should share a GPU vs. run on separate devices) and executor-level decisions (batch sizes and parallelism strategies like tensor or sequence parallelism).
To allow for highly specialized routing, Cornfigurator can even generate compound subplans—parallel deployment paths where one path is optimized specifically for heavy video requests while another handles lightweight text requests.
2. Coarse-to-Fine Statistical Evaluation
The raw search space for a complex model can exceed 500 million physical plans. To navigate this efficiently without running slow, brute-force simulations, Cornfigurator introduces a exact pruning pipeline:
- Stage 1: Network Flow Analysis: A cheap, flow-based throughput estimator identifies the bottleneck node for each plan and instantly discards plans with redundant, wasted capacity (pruning ~99.6% of candidates).
- Stage 2: Monte Carlo Latency Estimation: It randomly samples requests and aggregates offline profiling data to construct latency Cumulative Distribution Functions (CDFs), filtering out Pareto-suboptimal plans.
- Stage 3: Request-Level Simulation: The remaining handful of top-performing candidates (<0.01% of the initial space) are passed to a detailed discrete-event simulator that models complex queuing dynamics and inter-type request contention.
Datasets
The authors evaluated Cornfigurator using realistic production-style workloads across a variety of state-of-the-art models:
- ServeGen: Used to generate representative mixed-modality workloads (varying input/output lengths, image resolutions, and counts) for Any-to-Any models (Qwen 3 Omni, Qwen 2.5 Omni) and Multimodal LLMs (InternVL 3, Qwen 3 VL, Qwen 2.5 VL).
- DiffusionDB: Used to source real-world prompts and resolution mixes (512×512 and 1024×1024) to evaluate text-to-image generation serving (Qwen-Image).
Key Insights and Ideas
- Optimize Per Request Type, Not Globally: Traditional serving systems optimize for a single global latency metric. For A2A models, this is dangerous because lightweight text requests can absorb massive delays before breaching a global threshold meant for heavy audio/video requests. Cornfigurator enforces compute-proportional deadlines unique to each request type.
- Disaggregation is Not a Silver Bullet: While splitting every component onto its own GPU isolates performance, it often wastes resources. If an image encoder has low load, dedicating an entire GPU to it leaves that hardware underutilized and robs memory from the LLM's KV cache. Smart colocation is frequently the optimal choice.
- Statistical Pruning Makes Automated Planning Feasible: By using exact mathematical properties of network flow to eliminate redundant configurations early, the planner reduces a multi-thousand-hour simulation problem down to less than two minutes of execution time.
Key Results
- Generic Any-to-Any Serving: On Qwen 3 Omni, Cornfigurator achieved 1.24× to 2.73× higher goodput than expert-tuned baselines (like vLLM-Omni) across 8-GPU and 16-GPU setups.
- Multimodal LLM Serving: For InternVL 3 (which features a massive 6B image encoder), Cornfigurator delivered up to a 6.06× goodput improvement by automatically isolating the heavy encoder onto dedicated GPUs. Conversely, for Qwen 3 VL, it correctly recognized that the encoder was small enough that a monolithic deployment was optimal.
- Dynamic Adaptation to Workload Drift: When the workload shifted from being text-heavy to image-heavy, Cornfigurator automatically re-planned and updated the deployment strategy in seconds without requiring any model re-profiling.
Limitations and Future Work
- Profiling Overhead: While the planning phase takes under two minutes, the initial offline profiling of model components takes roughly 2.6 to 9.9 node-hours. This must be re-run whenever the underlying hardware or model architecture changes.
- Homogeneous Clusters: The current design assumes a cluster of identical GPUs (e.g., all A100s). The authors note that extending Cornfigurator to handle heterogeneous clusters (e.g., mixing premium H100s for LLMs with cheaper L4s for encoders) is an important open direction.
Summary updated