# Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism

Hetis: 세분화되고 동적인 병렬 처리를 갖춘 이기종 GPU 클러스터에서의 LLM 서빙

Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu · arXiv · 2025년 9월 10일

- **연구 문제** A100, 3090, P100이 섞인 클러스터에서 기존 서빙 방식은 메모리와 계산을 고르게 쓰지 못합니다.
- **연구 방법** dense 모듈은 선택된 GPU에서 병렬화하고, Attention은 head 단위로 동적으로 배정합니다.

## 이질적 GPU에서 LLM 서빙이 어려운 이유

LLM 서빙은 모델 파라미터와 KV cache가 GPU 메모리를 많이 쓰기 때문에 자원이 많이 필요합니다. 생산 클러스터에는 A100 같은 고성능 GPU와 3090, P100 같은 저성능 GPU가 섞여 있어, 이들을 함께 활용해야 서빙 성능을 높일 수 있습니다. 그러나 이 논문은 기존 이질성 인지 시스템이 coarse-grained하고 정적인 병렬화 전략에 머문다고 지적합니다. 예를 들어 P100에서는 같은 요청의 MLP 처리 시간이 A100보다 24.5배 길어집니다. 이 차이는 고성능 GPU가 저성능 GPU의 중간 결과를 기다리며 놀게 만드는 원인이 됩니다.

![Table 1: The memory capacity and inference time across different GPUs. The time denotes the iteration time used to go through all layers, which is profiled fro…](https://refivu.com/papers/9a8fc864-5aea-4764-acc1-099932b6fbd6/figures/figure-6db42bc6ec783ee2a5f73c78a51b6ca4.png?thumb=512)

**Table 1** : The memory capacity and inference time across different GPUs. The time denotes the iteration time used to go through all layers, which is profiled from serving a batch of request under an OPT-2.7b model. The number of requests served in the prefill and decode phases are 3 and 25

[원문](https://arxiv.org/abs/2509.08309v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu · Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

메모리 측면에서는 Splitwise처럼 prefill과 decode를 나누면 모델 파라미터 사본이 늘어나 메모리를 낭비합니다. Hexgen처럼 비대칭으로 파라미터를 나누면 계산 시간은 맞출 수 있지만, 저성능 GPU의 KV cache 공간이 먼저 차서 고성능 GPU에 빈 메모리가 남습니다. 논문은 이 문제를 3090 GPU의 KV cache 공간이 최대 18.6GB로 제한되는 반면 A100에는 44.1GB가 남는 예시로 보여 줍니다.

## Hetis의 세 가지 설계 아이디어

Hetis는 두 가지 관찰에서 출발합니다. 첫째, dense 모듈의 계산을 모든 GPU에 나누면 저성능 GPU가 오히려 지연과 통신 오버헤드를 늘릴 수 있으므로, 계산 비용을 줄이는 GPU 부분집합만 골라 병렬화해야 합니다. 둘째, Attention은 파라미터가 없어 KV cache가 있는 곳에서 나눠 계산할 수 있으므로 모든 GPU로 분산할 수 있습니다. 이 두 관찰을 바탕으로 Hetis는 최적의 dense 병렬 구성을 찾고, Attention을 head 단위로 동적으로 배정합니다.

시스템은 Parallelizer, Profiler, Dispatcher, Hauler 네 모듈로 구성됩니다. Parallelizer는 GPU에 Primary worker와 Attention worker 역할을 나누고, Profiler는 계산과 통신 비용을 모델링합니다. Dispatcher는 요청의 Attention head를 실시간으로 배정하며, Hauler는 head 단위 KV cache를 관리하고 GPU 사이 이동을 수행합니다.

## Primary worker 병렬화와 역할 배정

Parallelizer는 dense 계산의 총비용 C를 최소화하는 구성 σ\*를 찾습니다. C는 통신 비용 C\_comm과 계산 비용 C\_comp의 합으로 정의되며, 이 문제는 NP-hard이므로 탐색 공간이 큽니다. 그래서 논문은 장치를 먼저 묶어 serving instance를 만들고, 그 안에서 GPU 종류별로 pipeline stage를 구성하는 계층적 탐색을 씁니다.

핵심은 저성능 GPU를 dense 계산에서 제외하는 휴리스틱입니다. GPU κ를 낮은 성능 순서로 하나씩 제거하면서 C\_p(σ−κ) 이 C\_p(σ)의 (1+Δ) 이하이면 제거합니다. 여기서 C\_p는 단계별 계산 비용의 최댓값이며, Δ는 기본값 0.05로 설정됩니다. 이 조건을 만족하는 GPU는 dense 계산 비용을 거의 줄이지 못하는 장치로 보고 Attention worker로만 씁니다.

## head 단위 동적 Attention 병렬화

Attention을 나누는 방법으로 batch 차원, sequence 차원, head 차원을 비교합니다. batch 차원은 요청 단위라 거칠고, sequence 차원은 마지막 토큰의 q 벡터를 여러 GPU에 반복 전송해야 합니다. head 차원은 일부 head만 옮기므로 통신량이 줄어듭니다. 논문은 Llama-70B에서 20% 부하를 넘길 때 head 단위 분할이 통신 오버헤드를 약 2.68배 줄인다고 측정했습니다. 이 수치는 한 Attention worker를 둔 조건의 결과입니다.

실제 계산은 head별 softmax 결과를 각 장치에서 따로 구하고 Concat으로 합치는 방식입니다. Attention은 head 차원에 대해 직교하므로 전역 softmax 통계량을 모을 필요가 없습니다.

![Figure 6: Illustration of dynamic Attention parallelism: each request consists of six Attention heads and the context lengths of three requests are diverse](https://refivu.com/papers/9a8fc864-5aea-4764-acc1-099932b6fbd6/figures/figure-de8deacd8e432183fdd257d24d9be9fb.png?thumb=512)

**Figure 6** : Illustration of dynamic Attention parallelism: each request consists of six Attention heads and the context lengths of three requests are diverse.

[원문](https://arxiv.org/abs/2509.08309v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu · Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## 배정 모델과 재배정

Dispatcher는 요청별 query head 수 x를 GPU에 배정하며, 한 요청의 head는 합이 H가 되도록 제약합니다. 각 GPU의 KV cache 용량 제약도 함께 둡니다. Attention 시간은 Profiler가 선형 모델 τ\_i = a\_i·h\_i + b\_i·g\_i + c\_i로 예측하고, 전송 비용은 α-β 모델 ρ\_i = γ\_i·d\_i + β\_i로 예측합니다. 이 문제는 선형 계획으로 바꿀 수 있어 다항 시간에 풀 수 있습니다.

진행 중인 요청의 부하가 한쪽으로 치우치면 Dispatcher는 재배정을 시도합니다. 이상 Attention 시간과 현재 시간의 차이가 임계값 Θ를 넘으면 가장 병목 기여가 큰 요청을 하나 재배정합니다. Θ는 기본값 50%입니다. KV cache가 부족하면 LIFO 대신 해당 GPU에 실제 메모리를 쓰는 가장 늦은 요청을 골라 재배정하며, 이때 기존 배정과 새 배정의 head 분포가 겹치는 부분의 cache를 재사용해 이동량을 줄입니다.

![Figure 14: Dynamic resource usage pattern in A100 and 3090 under time-varying request arrivals](https://refivu.com/papers/9a8fc864-5aea-4764-acc1-099932b6fbd6/figures/figure-6cf06db8b92bc769df8dfbfc7bced8c7.png?thumb=512)

**Figure 14** : Dynamic resource usage pattern in A100 and 3090 under time-varying request arrivals.

[원문](https://arxiv.org/abs/2509.08309v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu · Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## End-to-end 성능 비교

평가 클러스터는 A100-80GB 네 장, 3090 두 대씩 두 호스트, P100 네 장으로 구성했습니다. 워크로드는 ShareGPT, HumanEval, LongBench이며 모델은 Llama-13B, OPT-30B, Llama-70B입니다. 비교 대상은 Splitwise와 Hexgen입니다.

논문은 이 개선이 계산 불균형 방지, cache 활용, 교차 노드 통신 감소 때문이라고 설명합니다. 이 비교는 모델과 데이터셋 조합별 결과이므로 모든 설정에 같은 배율을 적용하면 안 됩니다.

![Figure 8: The normalized end-to-end latency across different datasets under Llama-13B](https://refivu.com/papers/9a8fc864-5aea-4764-acc1-099932b6fbd6/figures/figure-5e911fffca2c94421736015a90907a4b.png?thumb=512)

**Figure 8** : The normalized end-to-end latency across different datasets under Llama-13B.

[원문](https://arxiv.org/abs/2509.08309v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu · Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 9: The normalized end-to-end latency across different datasets under OPT-30B](https://refivu.com/papers/9a8fc864-5aea-4764-acc1-099932b6fbd6/figures/figure-9b8e534f489f9ce6ba7f677c30f1f1f2.png?thumb=512)

**Figure 9** : The normalized end-to-end latency across different datasets under OPT-30B.

[원문](https://arxiv.org/abs/2509.08309v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu · Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 지연 시간과 모듈별 분석

이 실험은 ShareGPT 1.5, HumanEval 6, LongBench 0.8 요청 속도에서 수행했고, 이 속도에서는 어떤 베이스라인도 포화되지 않았습니다.

Attention과 MLP 모듈의 디코딩 시간도 따로 측정했습니다. 저자들은 Attention 감소가 동적 Attention 병렬화에서 왔다고 해석합니다.

## 모델링 정확도와 재배정 효과

Hetis는 계산 시간을 최대 93.8%, 전송 오버헤드를 92.4%에서 96.1% 정확도로 예측했습니다. 프로파일링 파라미터를 ±20%까지 바꿔도 지연은 최대 6.9%만 늘었습니다.

head 단위 cache 관리는 저장 오버헤드를 13% 늘렸지만 fetch 시간은 26% 줄였습니다. Θ 민감도 실험에서는 Θ가 너무 작으면 cache 이동이 늘고 너무 크면 계산이 불균형해진다고 보고합니다.

## 한계와 확인 범위

논문은 주요 평가를 세 워크로드와 세 모델, 그리고 자체 이질적 클러스터에서 수행했습니다. 최적화 문제는 NP-hard이므로 큰 클러스터에서 탐색 비용이 커질 수 있습니다. 실험 클러스터 밖의 다른 GPU 조합이나 다른 프레임워크에서 같은 배율이 나오는지는 이 논문에서 확인하지 않았습니다.

## 논문 정보

- **저자**: Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 9월 10일
- **등록일**: 2026년 11월 12일
- **수정일**: 2025년 9월 10일
- **버전**: v1
- **arXiv**: 2509.08309
- **DOI**: 10.1145/3712285.3759784
- **분류**: cs.DC
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2509.08309v1) · [원문 PDF ↗](https://arxiv.org/pdf/2509.08309v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

The significant resource demands in LLM serving prompts production clusters to fully utilize heterogeneous hardware by partitioning LLM models across a mix of high-end and low-end GPUs. However, existing parallelization approaches often struggle to scale efficiently in heterogeneous environments due to their coarse-grained and static parallelization strategies. In this paper, we introduce Hetis, a new LLM system tailored for heterogeneous GPU clusters. Hetis addresses two critical challenges: (1) memory inefficiency caused by the mismatch between memory capacity and computational power in heterogeneous devices, and (2) computational inefficiency arising from performance gaps across different LLM modules. To tackle these issues, Hetis employs a fine-grained and dynamic parallelism design. Specifically, it selectively parallelizes compute-intensive operations to reduce latency and dynamically distributes Attention computations to low-end GPUs at a head granularity, leveraging the distinct characteristics of each module. Additionally, Hetis features an online load dispatching policy that continuously optimizes serving performance by carefully balancing network latency, computational load, and memory intensity. Evaluation results demonstrate that Hetis can improve serving throughput by up to $2.25\\times$ and reduce latency by $1.49\\times$ compared to existing systems.

## 원문 인용

Zizhao Mo, Jianxiong Liao, Huanle Xu, Zhi Zhou, Chengzhong Xu (2025). Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism. arXiv:2509.08309v1. https://doi.org/10.1145/3712285.3759784

**BibTeX**

```
@article{mo2025hetis,
  title = {{Hetis: Serving LLMs in Heterogeneous GPU Clusters with Fine-grained and Dynamic Parallelism}},
  author = {Zizhao Mo and Jianxiong Liao and Huanle Xu and Zhi Zhou and Chengzhong Xu},
  year = {2025},
  eprint = {2509.08309},
  archivePrefix = {arXiv},
  doi = {10.1145/3712285.3759784},
  url = {https://arxiv.org/abs/2509.08309v1}
}
```

## 이 논문의 용어

- [HumanEval](https://refivu.com/terms/3c3dbcadfdda-humaneval)
- [어텐션](https://refivu.com/terms/28f6748abd85-attention)
- [KV cache](https://refivu.com/terms/cbf2f6d2bcc1-kv-cache)
- [vLLM](https://refivu.com/terms/fe3c96648564-vllm)
- [LongBench](https://refivu.com/terms/ff37fb1a4d82-longbench)
- [ShareGPT](https://refivu.com/terms/eec8a738c5eb-sharegpt)
- [PagedAttention](https://refivu.com/terms/d7a56e615e19-pagedattention)
- [Linear Programming](https://refivu.com/terms/0eae6493c4a3-linear-programming)
- [Llama-70B](https://refivu.com/terms/f3268dc07322-llama-70b)
- [OPT-30B](https://refivu.com/terms/924e73d204d2-opt-30b)

## 다른 논문 해설

- [Instruction-Following Evaluation for Large Language Models](https://refivu.com/papers/87d7b3e4-5def-4a0c-ac6d-4f0204c38402-instruction-following-evaluation-for-large-language-models.md)
- [Large Language Models: A Survey](https://refivu.com/papers/d8a3f692-1bfe-4a26-b530-c20397434b3c-large-language-models-a-survey.md)
- [What Does BERT Look At? An Analysis of BERT's Attention](https://refivu.com/papers/8f682775-2bc4-4c36-a7e8-6afc56d2aeae-what-does-bert-look-at-an-analysis-of.md)
- [AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts](https://refivu.com/papers/e3fa3b73-5b1d-4ff0-8f81-98fad2340fa5-autoprompt-eliciting-knowledge-from-language-models-with.md)
- [DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligence](https://refivu.com/papers/a9b5666a-9125-4553-968a-b6f76e0d19db-deepseek-coder-when-the-large-language-model-meets.md)
- [OpenAI GPT-5 System Card](https://refivu.com/papers/678bc558-0d7f-4ee8-9fa0-55c5eb2daf22-openai-gpt-5-system-card.md)
- [Relational Knowledge Distillation](https://refivu.com/papers/bc94c76c-131e-4c9c-80c8-1c9bc90a7da4-relational-knowledge-distillation.md)
- [On the Variance of the Adaptive Learning Rate and Beyond](https://refivu.com/papers/5e5689e8-3163-4d7b-a0ef-51d1cc8ca1fe-on-the-variance-of-the-adaptive-learning-rate.md)
- [Receptive Field Block Net for Accurate and Fast Object Detection](https://refivu.com/papers/c379e7ab-56c5-489a-a229-d959705f520a-receptive-field-block-net-for-accurate-and-fast.md)
- [Detecting Spacecraft Anomalies Using LSTMs and Nonparametric Dynamic Thresholding](https://refivu.com/papers/64c18ffc-78a1-4f78-8aae-69d2bac47633-detecting-spacecraft-anomalies-using-lstms-and-nonparametric.md)
- [Cascaded Pyramid Network for Multi-Person Pose Estimation](https://refivu.com/papers/917d4471-88d7-4f2f-b082-558d51356b78-cascaded-pyramid-network-for-multi-person-pose-estimation.md)
- [Photonics for artificial intelligence and neuromorphic computing](https://refivu.com/papers/20f5aec1-bc52-4917-93d6-725c8afc0672-photonics-for-artificial-intelligence-and-neuromorphic.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/9a8fc864-5aea-4764-acc1-099932b6fbd6-hetis-serving-llms-in-heterogeneous-gpu-clusters-with)
