# SCAFFOLD: Stochastic Controlled Averaging for Federated Learning

SCAFFOLD: 이질적 데이터의 연합 학습 수렴 개선

Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi, Sebastian U. Stich, Ananda Theertha Suresh · arXiv · 2019년 10월 14일

- **연구 문제** FedAvg는 클라이언트마다 데이터가 다르면 로컬 업데이트가 제각각 쏠리는 client-drift가 생겨, 서버 모델이 느리고 불안정하게 수렴합니다.
- **연구 방법** SCAFFOLD는 서버와 클라이언트에 제어 변수 c와 c\_i를 두고, 로컬 그래디언트에서 c\_i를 빼고 c를 더해 움직여 쏠림을 보정합니다.
- **주요 결과** EMNIST 로지스틱 회귀 실험에서 0.5 테스트 정확도에 도달하는 통신 라운드 수가 FedAvg 등 비교 방법보다 적었습니다.

## FedAvg가 이질적인 데이터에서 느려지는 이유

연합 학습에서는 데이터가 전화기, 센서, 병원 같은 여러 클라이언트에 나뉘어 있고 중앙 서버는 원본 데이터를 받지 않은 채 모델을 학습합니다. 이때 가장 널리 쓰이는 FedAvg는 각 클라이언트가 로컬 업데이트를 여러 번 수행한 뒤 서버에서 평균을 내어 통신 횟수를 줄입니다. 문제는 클라이언트마다 데이터 분포가 다를 때 생깁니다. 로컬 업데이트가 각 클라이언트의 최적점 쪽으로 치우치는 client-drift가 생기고, 그 결과 서버 모델의 수렴이 느리고 불안정해집니다. 저자들은 이 drift가 모든 클라이언트가 참여하고 full batch 그래디언트를 써도 남는다고 보았습니다. 논문은 이 문제를 이질성 가정 아래의 수렴률 분석으로 다룹니다.

## control variate로 로컬 업데이트 보정하기

SCAFFOLD는 서버 제어 변수 c와 클라이언트별 제어 변수 c\_i를 함께 유지합니다. 각 로컬 스텝은 그래디언트 g\_i(y)에서 c\_i를 빼고 c를 더한 방향으로 움직입니다. 그래서 c\_i가 클라이언트의 방향을, c가 서버의 방향을 추정하면 두 차이가 drift를 보정하는 역할을 합니다. 제어 변수는 Option II를 사용하며, 이는 이미 계산된 그래디언트와 로컬 이동량으로 c\_i^+를 갱신하는 방식입니다. 갱신된 업데이트 평균은 전역 스텝 크기 η\_g로 서버 모델에 반영되고, 샘플된 클라이언트만 제어 변수를 갱신합니다. c\_i가 항상 0이면 SCAFFOLD는 FedAvg와 같아진다고 설명됩니다.

## 이질성 조건 없는 수렴 보장

Theorem III는 β-smooth 함수들에 대해 클라이언트 간 유사도 가정 없이 SCAFFOLD의 기대 오차가 ϵ보다 작아지는 라운드 수를 제시합니다. 강볼록, 일반 볼록, 비볼록 경우에 각각 다른 라운드 조건이 주어지며, 클라이언트를 모두 사용할 때 강볼록 경우의 횟수는 σ²/(μNKϵ) + 1/μ 형태로 정리됩니다. 저자들은 이 결과가 이질성 가정에 묶이지 않는다고 설명합니다. 다만 이 정리는 β-smooth와 f\_i 조건 아래의 분석이며, 같은 기호의 모든 실험 설정을 보장하지는 않습니다.

## 이차 함수에서 로컬 스텝의 유용성

Theorem IV는 β-smooth 이차 함수들이 Hessian 차이 δ로 제한될 때, 전체 클라이언트를 사용하는 SCAFFOLD의 복잡도가 δ와 K에 따라 달라짐을 보입니다. 함수들이 비슷할수록 로컬 스텝이 더 유용해진다는 방향입니다. 증명은 이차 함수에 대해서만 형식적으로 제시되며, 저자들은 다른 함수로의 일반화를 열린 문제로 남겨 둡니다. 이 결과에서 그래디언트 차이 G보다 Hessian 차이 δ가 중요하다고 해석되는 점도 저자의 해석으로 읽어야 합니다.

## EMNIST 실험과 통신 라운드 비교

실험은 EMNIST를 N=100 클라이언트로 나누어 로지스틱 회귀와 2층 신경망에서 수행했습니다. 샘플링 비율은 20%였고, 0.5 테스트 정확도에 도달하는 통신 라운드를 비교했습니다. Table 3에서 SCAFFOLD는 에폭 수와 유사도 조건 전반에서 가장 빠른 방법으로 보고됩니다. 0% 유사도에서 FedAvg는 에폭이 늘수록 느려졌고, 비볼록 신경망 실험에서는 SCAFFOLD가 최종 테스트 정확도에서 FedAvg보다 높았습니다.

## 논문 정보

- **저자**: Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi, Sebastian U. Stich, Ananda Theertha Suresh
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2019년 10월 14일
- **등록일**: 2026년 11월 12일
- **수정일**: 2021년 4월 9일
- **버전**: v4
- **arXiv**: 1910.06378
- **분류**: cs.LG · cs.DC · math.OC · stat.ML
- **원문 이용 조건**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **제공 범위**: 논문 정보, 해설

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

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

## 원문 인용

Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi, Sebastian U. Stich, Ananda Theertha Suresh (2019). SCAFFOLD: Stochastic Controlled Averaging for Federated Learning. arXiv:1910.06378v4. https://arxiv.org/abs/1910.06378v4

**BibTeX**

```
@misc{karimireddy2019scaffold,
  title = {{SCAFFOLD: Stochastic Controlled Averaging for Federated Learning}},
  author = {Sai Praneeth Karimireddy and Satyen Kale and Mehryar Mohri and Sashank J. Reddi and Sebastian U. Stich and Ananda Theertha Suresh},
  year = {2019},
  eprint = {1910.06378},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.06378v4}
}
```

## 이 논문의 용어

- [SGD](https://refivu.com/terms/96a2d83e44ca-sgd)
- [FedAvg](https://refivu.com/terms/42fd22f625c0-fedavg)
- [FedProx](https://refivu.com/terms/a65de99075ee-fedprox)
- [EMNIST](https://refivu.com/terms/07145e6b598b-emnist)
- [control variates](https://refivu.com/terms/990dbb50f225-control-variates)
- [SCAFFOLD](https://refivu.com/terms/55f3d201c591-scaffold)

## 다른 논문 해설

- [Pruning Convolutional Neural Networks for Resource Efficient Inference](https://refivu.com/papers/f9a56d26-44b5-4ea9-af4f-8f00b03fe628-pruning-convolutional-neural-networks-for-resource-efficient.md)
- [M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillation](https://refivu.com/papers/c3b40084-e91f-4769-ab5c-b3256a5b92f7-m3-embedding-multi-linguality-multi-functionality-multi.md)
- [Online Learning for Matrix Factorization and Sparse Coding](https://refivu.com/papers/1ce2d052-c0f8-40f5-8ef8-2c82aed1ea18-online-learning-for-matrix-factorization-and-sparse-coding.md)
- [Adaptive Federated Learning in Resource Constrained Edge Computing Systems](https://refivu.com/papers/75d8bb03-c432-4128-871e-23133be3cbc7-adaptive-federated-learning-in-resource-constrained-edge.md)
- [Federated Optimization: Distributed Machine Learning for On-Device Intelligence](https://refivu.com/papers/5f4eb215-ecfd-414d-aaa9-bd382c3c7b54-federated-optimization-distributed-machine-learning-for-on.md)
- [Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs](https://refivu.com/papers/2f0fda58-62a6-4d7b-8db1-4bdf80289483-efficient-and-robust-approximate-nearest-neighbor-search.md)
- [Learning Dexterous In-Hand Manipulation](https://refivu.com/papers/8f01a51e-a6e2-4461-a855-c35b36cbc49e-learning-dexterous-in-hand-manipulation.md)
- [Scheduled denoising autoencoders](https://refivu.com/papers/d63c0765-833a-4313-9ce1-c45516b7d22a-scheduled-denoising-autoencoders.md)
- [AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks](https://refivu.com/papers/a0260608-3d36-436c-af24-a535c7e4e5ef-attngan-fine-grained-text-to-image-generation-with.md)
- [Stochastic Variational Inference](https://refivu.com/papers/36c9d62c-308d-476e-8657-7d699cf4658e-stochastic-variational-inference.md)
- [Semantic Understanding of Scenes through the ADE20K Dataset](https://refivu.com/papers/3862d7db-bf28-4590-ab09-839bcbf7ccaa-semantic-understanding-of-scenes-through-the-ade20k-dataset.md)
- [The CMA Evolution Strategy: A Tutorial](https://refivu.com/papers/2386515a-206e-4d75-9423-936049ac71e6-the-cma-evolution-strategy-a-tutorial.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/a21677f5-6e53-4724-a456-85f6bf3b0caf-scaffold-stochastic-controlled-averaging-for-federated)
