Skip to main content
QUICK REVIEW

[논문 리뷰] LLM Router: Prefill is All You Need

Tanay Varshney, Annie Surla|arXiv (Cornell University)|2026. 03. 21.
Network Packet Processing and OptimizationComputer Science인용 수 0
한 줄 요약

이 논문은 Encoder-Target Decoupling과 SharedTrunkNet 라우팅 아키텍처를 소개하며, 프리필 활성화를 사용해 대상 모델의 정답 여부를 예측하고, 의미론적 베이스라인 대비 라우팅 성능이 우수하고 비용 절감을 가져오는 것을 보여준다.

ABSTRACT

LLMs often share comparable benchmark accuracies, but their complementary performance across task subsets suggests that an Oracle router--a theoretical selector with perfect foresight--can significantly surpass standalone model accuracy by navigating model-specific strengths. While current routers rely on fragile semantic signals, we propose using internal prefill activations via Encoder-Target Decoupling--a functional separation between the model providing the predictive signal (the Encoder) and the model whose performance is being estimated (the Target). This allows optimized heterogeneous pairing between unique encoders and target models. We utilize Fisher Separability (J) and Effective Dimensionality (d_eff) as mathematical probes to isolate optimal layer-wise signals, providing the predictive foundation for our SharedTrunkNet architecture. SharedTrunkNet captures up to 45.58% of the accuracy gap between the strongest standalone model and the Oracle while achieving 74.31% cost savings relative to the highest-cost model.

연구 동기 및 목표

  • 의미론적 쿼리 신호가 아닌 내부 모델 활성화를 통해 라우팅을 촉진하여 모델별 정답 여부와 난이도를 더 잘 예측하도록 한다.
  • Encoder-Target Decoupling을 도입하여 오픈 가중치 인코더가 폐쇄 소스 모델의 성능을 예측하도록 한다.
  • 기하학적 탐침으로 Fisher Separability (J)를 비롯한 정보 계층을 식별하고, 효과적 차원성과 비등방성 진단을 보완한다.
  • SharedTrunkNet을 제안하여 concatenated prefill 특징을 사용해 여러 후보 모델의 정답 가능성을 함께 예측하는 다출력 MLP를 제시한다.
  • frontier, 소형, 혼합 모델 풀에서 프론티어 수준과 글로벌 수준에서 라우팅을 평가해 실용적 이득을 입증한다.

제안 방법

  • 두 단계 라우팅 아키텍처를 형식화한다: 질의로부터 신호를 추출하고 후보 타깃에 대한 신뢰도 추정.
  • Encoder LLM으로부터 prefill 활성화를 추출하고 선택된 상위 층에서 PCA로 차원 축소된 특징을 계산한다.
  • concatenated prefill 특징을 사용해 모든 후보 타깃에 대한 동시에 정답 확률을 예측하도록 SharedTrunkNet을 학습한다.
  • Encoder-Target 기반 라우팅을 여러 모델 풀 및 벤치마크에서 의미론적 베이스라인과 비교한다.
  • 라우팅 점수 s_k,q = λ * p_hat_k(q) - (1 - λ) * C̃_k,q 를 정의하고 정확도-비용 트레이드를 추적하기 위해 다양한 λ를 평가한다.
  • 중앙값 입력/출력 토큰 및 제공자 가격을 기반으로 한 부분 비용 모델을 사용하여 C_k,q를 추정한다.
Figure 1: Overview of the two-stage routing architecture: signal extraction and confidence estimation.
Figure 1: Overview of the two-stage routing architecture: signal extraction and confidence estimation.

실험 결과

연구 질문

  • RQ1오픈 가중치 인코더가 프리필 활성화를 사용하여 폐쇄 소스 대상 모델의 성능을 예측할 수 있는가?
  • RQ2정답 대비 부정답 예측을 가장 잘 구분하는 내부 활성화 계층 속성은 무엇인가? 예: Fisher J, d_eff, 비등방성?
  • RQ3공동 다출력 라우터(SharedTrunkNet)가 대상 정답 예측에서 의미론적 베이스라인을 능가하는가?
  • RQ4frontier, 소형, 혼합 모델 풀에서 프리필 신호를 이용한 라우팅 시 정확도와 비용의 이점은 무엇인가?

주요 결과

  • SharedTrunkNet은 모든 풀에서 일관되게 가장 강한 per-model AUC와 가장 낮은 Brier 점수를 달성한다.
  • frontier, 소형, 혼합 풀에서 SharedTrunkNet은 오라클과의 차이를 상당 부분 좁히면서도 비용을 크게 절감한다(예: frontier 풀에서 가장 비싼 모델 대비 74.31%의 비용 절감).
  • 인코더 타깃의 경우, 대형 오픈 가중치 인코더(예: Qwen-3.5 122B)가 종종 각 타깃의 AUC에서 최고치를 보이며, 많은 타깃 모델의 자체 히든 상태를 능가한다.
  • Fisher Separability (J)가 프리필 라우팅에 정보성 있는 층을 효과적으로 식별하는 반면, d_eff와 비등방성은 보조 진단을 제공한다.
  • Encoder-Target Decoupling은 오픈 인코더를 사용해 대상 성능을 예측할 수 있게 하여 모델 간 맥락과 보정에 도움을 준다.
Figure 2: Frontier pool: raw accuracy vs. total cost ($). SharedTrunkNet dominates all semantic backbones across the full cost range.
Figure 2: Frontier pool: raw accuracy vs. total cost ($). SharedTrunkNet dominates all semantic backbones across the full cost range.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.