arXiv:2611.20106v1 cs.DC

출력이 긴 대규모 언어 모델 서빙에서 선점이 작업 진전에 기여하도록 하는 방법

Making Preemption Productive in Long-Output LLM Serving

Ziji Shi, Xinyi Wan, Chaoyi Ruan, Guangxing Huang, Min Lin, Jialin Li

제출 2026-11-17

한국어 초록

추론형 대규모 언어 모델(LLM)은 긴 출력을 생성하며, 이때 키-값(KV) 캐시는 수분 동안 GPU 메모리를 점유한다. 메모리가 가득 차면 서버가 요청을 선점한다. 선점된 요청은 새 출력을 거의 생성하지 못하면서 상태를 잃고 다시 복원하는 일을 반복할 수 있다. 본 연구는 이 현상을 KV 스래싱이라고 부른다. 기존 시스템에서는 요청의 5분의 1 이상이 1분 넘게 멈추는 경우도 있다. 새 요청의 수용을 늦추지 않고는 선점을 피할 수 없으므로, 선점 후에도 작업을 진전시킬 방법을 연구한다. 제안하는 서빙 시스템 Stint는 선점된 요청이 지금까지 수행한 작업을 보존하고, 대기 시간에 상한을 두며, 재개한 요청이 새로운 출력을 생성하도록 한다. Stint는 연속 메모리 배치를 우선하는 CPU 메모리 풀에 고정 길이 KV 스냅샷을 저장한다. 필요한 크기만큼 정확히 연속 구간을 할당하고, 융합한 K/V 개더·스캐터 커널과 이중 버퍼링으로 스냅샷을 이동한다. 대기 시간을 기준으로 멈춘 요청을 다시 수용하며, 보호 정책을 적용해 다시 선점되기 전에 새 토큰을 디코딩할 차례를 준다. 디코딩 과정의 은닉 상태에서 남은 출력 길이를 추정해 어느 요청을 선점할지 결정한다. H200 GPU에서 Qwen3-32B로 수학 올림피아드 작업을 재현한 결과, Stint에서 50초를 넘겨 중단된 요청은 없었다. 동일 엔진에서 재계산하는 방식 대비 출력 토큰당 시간의 99번째 백분위수가 50.7% 줄었다. 기준선에서 실행 기회를 얻지 못하던 요청이 이제 마지막에 끝나지 않으므로, 전체 작업은 10.7% 더 일찍 끝났고 처리량은 12.0% 높았다.

원문 초록

Reasoning LLMs generate long outputs whose key--value (KV) caches occupy GPU memory for minutes. When memory fills, the server preempts requests, and a preempted request can repeatedly lose and recover its state while producing little new output. We call this behavior KV thrashing. In certain cases, existing systems leave more than a fifth of requests stalled for over a minute. Because preemption cannot be avoided without delaying admission, we ask how to make it productive. We present Stint, a serving system that preserves a preempted request's work, bounds how long it waits, and gives it fresh output after it returns. Stint stores fixed-length KV snapshots in a contiguity-first CPU pool with an exact-extent allocator, and moves them with fused K/V gather/scatter kernels and double buffering. Age-based readmission brings stalled requests back, and protection gives them a turn of fresh decoding before another preemption. Remaining-length estimates from decoding hidden states guide victim selection. On olympiad-math replays with Qwen3-32B on H200 GPUs, no request pauses for more than 50 seconds under Stint and p99 time per output token falls by 50.7\% relative to recomputation in the same engine. The replay as a whole finishes 10.7\% sooner (12.0\% higher throughput), because the requests that baselines starve no longer finish last.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2611.20106v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.