재계산할 것인가, 복원할 것인가? 정적 그래프 NPU 서빙 스택에서 다중 모델 에이전트 워크플로를 위한 호스트 계층 KV
Recompute or Restore? Host-Tier KV for Multi-Model Agent Workflows on a Static-Graph NPU Serving Stack
한국어 초록
에이전트 워크플로는 긴 컨텍스트 접두부를 공유하는 종속적인 모델 호출을 발생시키므로, 이를 효율적으로 서빙하려면 해당 접두부의 키-값(KV) 캐시를 재사용하는 것이 중요하다. 그러나 모델 그래프를 사전에 컴파일하는 가속기에서는 장치 KV 예산이 고정되어 있어, 부하 상황에서 축출된 접두부를 다시 계산해야 한다. 이를 호스트 메모리에서 복원하면 재계산을 피할 수 있지만, 전송이 프리필 및 디코드와 동일한 엔진 스레드를 점유하므로 그 이점이 보장되지는 않는다. 본 논문에서는 두 개의 카드에서 Qwen3-8B 플래너를, 한 개의 카드에서 Qwen3-0.6B 실행기를 서빙하는 상용 정적 그래프 신경 처리 장치(NPU) 스택(Rebellions ATOM+, vllm-rbln 0.10.2)에서 복원이 재계산보다 유리한 경우를 연구한다. 먼저 기본 서빙이 붕괴할 때 반복 프리필이 플래너 작업을 지배함을 보인다. 실행된 플래너 프롬프트 토큰의 89.5%는 이미 이전에 생성된 것이었다. 이어서 런타임의 공개 KV 복사 호출 위에 동기식 호스트 DRAM 계층을 구축하고, 각 테스트 코호트 이전에 예측값을 고정하는 스케줄러 인식 이벤트 모델을 함께 구축한다. 실험 결과, 호스트 계층은 검증한 두 가지 과부하 조건에서 워크플로 서비스 수준 목표(SLO) 달성률을 22.8%에서 100%로, 9.4%에서 99.8%로 높였으며, 새로운 두 시드에서의 엔드포인트 확인은 체인 11.8%, 포크 18.2%의 보수적인 부하 이득을 뒷받침하는 반면 혼합 및 버스트 워크로드는 여전히 시드에 민감하다. 고정된 모델은 24개 공통 부하 조건 모두에서 중앙값 및 99번째 백분위수(P99) 지연 시간을 15% 허용 오차 이내로 예측하며, 여기에는 포크 워크플로에서 해당 계층이 유발하는 16~18%의 P99 증가도 포함된다. 그러나 세 가지 정책 대비의 순서를 잘못 예측하고, 더 저렴한 저장 경로의 이점을 과대 추정한다(예측 11% 대 실측 3.1%). 따라서 이 트레이드오프는 캐시 용량뿐 아니라 런타임 스케줄링과 전송 비용에도 좌우된다.
원문 초록
Agent workflows issue dependent model calls that share long context prefixes, so serving them efficiently depends on reusing the key-value (KV) cache of those prefixes. On accelerators that compile model graphs ahead of time, however, the device KV budget is fixed, and prefixes evicted under load must be recomputed. Restoring them from host memory avoids this recomputation, but the transfer occupies the same engine thread as prefill and decode, so its benefit is not guaranteed. In this paper, we study when restoring beats recomputing on a commercial static-graph neural processing unit (NPU) stack (Rebellions ATOM+, vllm-rbln 0.10.2) that serves a Qwen3-8B planner on two cards and a Qwen3-0.6B executor on one. We first show that repeated prefill dominates planner work when default serving collapses: 89.5% of the executed planner prompt tokens had been materialized before. We then build a synchronous host-DRAM tier on the runtime's public KV copy calls, together with a scheduler-aware event model whose predictions are frozen before each test cohort. Experimental results show that the host tier raises workflow service-level objective (SLO) attainment from 22.8% to 100% and from 9.4% to 99.8% in the two tested overload conditions, and endpoint confirmation on two new seeds supports conservative load gains of 11.8% (chain) and 18.2% (fork), while mixed and bursty workloads remain seed-sensitive. The frozen model predicts median and 99th-percentile (P99) latency within its 15% tolerance in all 24 common-load conditions, including the 16-18% P99 increase that the tier causes for fork workflows, but it misorders three policy contrasts and overestimates the benefit of a cheaper store path (11% predicted against 3.1% measured). The trade-off therefore depends on runtime scheduling and transfer cost as well as cache capacity.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.
저자 비고
arXiv Comments
14 pages, 6 figures, 5 tables