HyperAIHyperAI

Command Palette

Search for a command to run...

Route Anything: 범용 AI 시스템을 위한 모델 및 정책 라우팅에 관한 연구

Pengfei Zhou Yixing Ma Hexin Wang Weidong Tang Zhenglin Wan Wangbo Zhao Yang You

초록

인공 일반 지능(AGI)은 다양한 영역과 모달리티에 걸쳐 이해하고, 생성하고, 추론하고, 행동할 수 있는 방법을 요구한다. 단일 모델이 모든 역량을 갖추도록 하는 대신, AGI로 가는 유망한 경로는 이제 전문화된 모델, 도구, 정책(후보)으로 구성된 이종 생태계를 하나의 통합 AI 시스템으로 오케스트레이션하는 것이다. 이 비전의 핵심에는 다음과 같은 근본적인 질문이 있다. AI 시스템이 각 작업에 가장 유능한 후보를 동적으로 선택하고 조정하면서 성능과 계산 비용의 균형을 어떻게 맞출 수 있을까? 본 연구에서는 범용 AI 시스템 전반에서 모델 및 정책 라우팅을 연구하기 위한 통합 프레임워크인 Route Anything을 제시한다. 우리는 품질-비용 트레이드오프 하에서 최적 라우팅을 특징짓고, 라우터가 이용할 수 있는 정보가 달성 가능한 성능을 어떻게 결정하는지를 정립하는 통합 이론적 기반을 개발한다. 다양한 역량에 걸친 라우팅을 체계적으로 조사하기 위해, 먼저 언어 이해, 이미지, 비디오, 음성 생성, 코딩 및 업무 에이전트, 로봇 조작에 걸친 25개 벤치마크를 포괄하는 옴니모달 궤적 행렬을 구축하며, 이는 452개 후보 구성에서 얻은 374,401건의 평가 실행을 포함한다. 이 프레임워크를 바탕으로 다양한 라우터를 학습하고 테스트하여 옴니모달 모델 라우팅의 잠재력, 학습된 라우터의 역량, 라우팅이 효율성을 개선하는 조건을 조사한다. 우리의 결과는 역량 오케스트레이션의 상당한 기회를 보여준다. 입력별 오라클 라우팅은 최고의 고정 후보보다 5.4포인트 높은 성능을 보이며, 학습된 라우터는 16개 벤치마크에서 0.3포인트, 비디오 생성에서 2.1포인트, 로봇 조작에서 1.1포인트 높은 성능을 보이면서 정책 시간을 24% 덜 사용한다. 더 중요한 것은, 라우팅이 참조 모델 대비 효율성을 평균 8.82배 향상시키며, 코딩 작업에서는 25.5배, 텍스트 질의응답에서는 7.1배 향상시킨다는 점이다.

One-sentence Summary

Researchers from the National University of Singapore, University of California, Berkeley, and Hong Kong University of Science and Technology propose Route Anything, a unified model and policy routing framework for general-purpose AI that pairs quality-cost optimal routing theory with an omni-modal trajectory matrix of 374,401 runs across 25 benchmarks, and show that learned routers improve video generation by 2.1 points, robot manipulation by 1.1 points while using 24% less policy time, and efficiency by 8.82× on average relative to the reference model.

Key Contributions

  • Route Anything is a unified framework for studying model and policy routing across general-purpose AI systems, with a theoretical foundation characterizing optimal routing under quality–cost trade-offs and linking router information to attainable performance.
  • An omni-modal trajectory matrix spans 25 benchmarks across text and image understanding, image, video, and speech generation, coding and workplace agents, and robot manipulation, comprising 374,401 scored runs from 452 candidate configurations.
  • Per-input oracle routing outperforms the best fixed candidate by 5.4 points, and learned routers outperform it by 0.3 points across 16 benchmarks, by 2.1 points on video generation, and by 1.1 points on robot manipulation with 24% less policy time. Routing also raises efficiency by 8.82× on average over the reference model, including 25.5× on coding and 7.1× on text question answering.

Introduction

Agentic AI systems increasingly orchestrate many specialized models, tools, and policies, such as language models, image or video generators, speech models, and robot policies, rather than relying on one model for every capability. Because the best candidate for a given input varies, routing can match a strong fixed candidate at lower cost or exceed it by sending each input to the most suitable module. Prior routing research has focused mainly on language models, leaving the value of routing across modalities largely open. The authors introduce Route Anything, a unified framework for studying model and policy routing across text, images, video, speech, code, agents, and robot manipulation. They build an omni-modal trajectory matrix that evaluates 452 candidate configurations on the same inputs across 25 benchmarks, totaling 374,401 scored runs, and connect routing decisions to priced costs and quality constraints.

Method

The authors formulate the routing problem as selecting an optimal candidate from a finite menu for a given input. Each candidate yields an expected value and consumes a specific amount of resources. The router observes a state and selects a candidate to maximize a value-cost objective.

Jλ(g)=E[Vg]−λE[Dg]J_\lambda(g) = \mathbb{E}[V_g] - \lambda \mathbb{E}[D_g]Jλ​(g)=E[Vg​]−λE[Dg​]

At a given resource price λ\lambdaλ, the router balances quality and cost. To ensure reliability, the framework introduces a quality floor constraint relative to a reference policy, requiring the quality change to remain above a negative tolerance threshold.

For the learned routing models, the authors leverage a fine-tuned Qwen3.5-4B backbone, processing task text, output requirements, and optional multimodal inputs like camera frames or robot states. They propose two primary routing architectures. The outcome router scores each input and candidate pair using a sigmoid head. This module is trained via cross-entropy against the normalized outcome of the candidate, directly optimizing for expected value. The type router alternatively classifies the input into a specific capability type and selects the best candidate from a pre-fitted table. The authors explicitly prefer outcome regression over winner-label classification, as the latter discards valuable information from ties and failures and can suffer from significant value loss.

To guarantee the quality floor on unseen test inputs, the system employs a sequential certification workflow along a price path. As the price parameter increases from zero to the fitted maximum efficiency, a sequence of routers is evaluated.

As shown in the figure below:

The certification process tests routers in order, computing valid p-values for the null hypothesis that the quality change falls below the negative tolerance. The workflow stops at the first router that fails the statistical test, returning the last certified router. If the very first router fails the test, the system defaults to the baseline reference policy, thereby ensuring a certified quality floor without requiring multiplicity corrections.

Experiment

These experiments evaluate model routing across multimodal benchmarks, robot manipulation, and cost-sensitive code and router testbeds, comparing fixed best candidates, oracles, and learned routers on matched inputs. The findings show that most routing headroom lies within task types rather than between them, and learned routers provide only modest quality gains, with clearer benefits when an outcome-based robot router reads the scene and saves inference time. Cost-aware studies further indicate that cheaper routes are often good enough, while retries, verifiers, and finer states are worthwhile only if their added value exceeds their full cost, and matched comparisons on identical inputs are essential to avoid artificial gains from missing-score fallbacks.

Routing improves efficiency over a reference model across modalities while keeping quality loss small, with the largest gains in code and text question answering and more modest gains in image generation and robot policy inference. Per-input candidate selection provides clear headroom over any fixed candidate, and image generation routing can trade a small quality loss for meaningful cost savings. However, fitted zero-loss guarantees can be brittle unless certified, and richer candidates or finer states are worthwhile only when their net value beats what they replace. Code and text QA see the largest routing efficiency gains, while image generation and robot policy routing show comparatively small improvements. Oracle candidate selection outperforms the best fixed candidate per benchmark, and image routing can cut cost with minimal quality loss, but fitted guarantees need certification to hold reliably.

A per-input oracle scores clearly above the best fixed candidate on the test split, but the size of this gap varies widely across task groups. The largest potential gains are in video generation and robot manipulation, while speech generation has almost no headroom. Choosing the best fixed candidate in hindsight adds little over the training-selected fixed candidate, so most opportunity lies within task types. The largest oracle-to-fixed gaps occur in video generation and robot manipulation, where no candidate dominates and the gaps are roughly 18 to 19 points. Speech generation candidates are nearly perfect, leaving a gap well under one point between the fixed and oracle scores.

Finer grouping reveals larger potential gains from selecting the best candidate. The gap is smallest at benchmark level, grows at capability-type level, and is largest for task-and-scene splits, especially robots. Most of the gain lies within types at coarser levels, but the within-type share declines for task and scene splits. Potential routing gain increases as grouping moves from benchmark-level to capability-type-level to task-and-scene-level. Robots show the largest gap and the lowest within-type share, indicating more potential gain outside type-level selection. Router overhead remains small relative to image and video generation costs.

Across the reported panels, oracle policies consistently outperform the fixed candidate, but both fixed-candidate scores and the size of the gain vary by setting; the robot panel shows the largest headroom. Absolute scores are comparable only within each row, so these gaps are the key within-study signal. Related routing experiments show cost-quality tradeoffs, including image routes that cut test cost substantially at a small score loss and robot routing that saves time without lower success. Oracle scores exceed fixed-candidate scores in every listed study, showing consistent potential gains from better candidate selection. The robot panel has the largest fixed-to-oracle gap, indicating more headroom for learned routers in that setting. Some multi-benchmark panels show relatively small fixed-to-oracle gaps, while the robot and rule-based tree panels show larger absolute gains. Image routing experiments show a modest quality loss can cut test cost by roughly a quarter, while robot routing saves time without reducing success.

Across the 16 benchmarks, the learned router improves the average score only slightly over the fixed candidate and captures a small share of the oracle headroom. Gains are uneven: code and workplace agents and video generation benefit most, text QA declines slightly, speech generation is unchanged, and image generation shows only a modest lift. The robot manipulation outcome router also improves over its fixed candidate but leaves most of the oracle gap unclaimed. Code and workplace agents and video generation show the largest improvements over the fixed candidate, while text QA is the only group where the router scores below it. Speech generation shows no change, image generation captures only a small fraction of the possible oracle gain, and robot manipulation improves but with a similarly modest share of the oracle gap.

These experiments compare learned per-input routing against fixed and oracle candidate selection across benchmarks, modalities, and grouping granularities. Routing improves efficiency with generally small quality loss, with the largest gains in code, text question answering, video generation, and robot manipulation, while speech and image generation show limited headroom or modest improvements. Finer task-and-scene grouping increases potential routing gain, especially for robots, but learned routers capture only a small share of the oracle gap, and fitted zero-loss guarantees need certification to be reliable.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp