Federated Learning (Federated Averaging)
Federated learning trains one model across several data holders, such as hospitals or branches, without pooling their rows. In federated averaging each client improves the current model on its own data for a few local steps, and a server averages the client models weighted by their sample sizes, round after round.
연합학습은 병원이나 지점처럼 여러 자료 보유처의 행을 한곳에 모으지 않고 하나의 모형을 학습하는 방식입니다. 연합평균에서는 각 참여처가 현재 모형을 자기 자료로 몇 단계 개선하고, 서버가 표본 크기로 가중한 평균을 내는 과정을 여러 차례 반복합니다.
How close does a model trained by federated averaging across my sites come to a model trained on the pooled data, and to models each site could fit alone?
여러 기관에 걸쳐 연합평균으로 학습한 모형이 자료를 합쳐 학습한 모형이나 기관별 단독 모형과 비교해 얼마나 좋은지 알고 싶습니다.
The method treats the group column as the client, holds out part of each client's rows, and runs federated averaging of a linear or logistic regression with chosen rounds, local epochs, batch size, learning rate and client fraction. It reports the federated model's held-out performance per client and overall, the centralised optimum of the same objective, client-only models, the objective gap and the convergence curve.
When to use Federated Learning (Federated Averaging)
- You plan a multi-site study where raw data cannot leave each site and want to see what federated training would achieve.
- You want to show that a federated model matches the pooled analysis.
- You want to tune rounds, local epochs or learning rate before a real deployment.
When to use something else
- You can legally pool the data: use Binary Logistic Regression
- You want to combine published site estimates rather than train a model: use Meta Analysis
- Sites differ systematically and you want site effects: use Generalized Linear Mixed Model (GLMM)
Assumptions and requirements
- Rows are independent within clients
- The same features are measured the same way at every client
- Linear or logistic model form
What the analysis reports
- Held-out accuracy and log loss, or RMSE and R squared, for federated, centralised and client-only models
- Per-client performance table
- Objective gap and distance to the centralised parameters
- Objective by communication round
How to report it
Federated averaging across [value] sites ([value] rounds, [value] local epochs) reached held-out accuracy [value], compared with [value] for the centralised model and [value] for site-only models.
Related methods
- Binary Logistic Regression
- Multiple Linear Regression
- Generalized Linear Mixed Model (GLMM)
- Regularized Logistic Regression (Lasso, Ridge, Elastic Net)
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with scikit-learn.
독립 계산. scikit-learn 대조 참조 시험 2건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Federated Learning (Federated Averaging) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a grouping variable
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.