Skip to main content

Federated Learning Flow

Federated training uses the execution model: a Platform experiment contains a TRAINING / FEDERATED run with one step per copied workflow node. Each Platform step tracks an attempt per clinic, plus a real container attempt when the Platform hosts the aggregator. Each Client owns its local run, steps, and container attempts. FederatedTrainingBO coordinates participants; the single-participant search coordinator leaves federated steps to this flow.

Identifiers​

IDScope
globalUniqueExperimentIdCorrelates Platform and Client messages.
uniqueRandomClinicId / participant IDPseudonymous clinic identity within one experiment.
Run / step / attempt IDDatabase-local; Tool callback runId and APP_ID identify the attempt.
Workflow nodeIdCorrelates the current node across Platform and Clients; stale reports for other nodes are ignored.
Relay channel / client IDRelay session and participant, separate from execution IDs.

Message flow​

LEARNING_QUERY announces the experiment; clinics approve data access before starting. Client ↔ Platform messages use the FLNet WebSocket (FedDBClientDataDTO, FedDBClientTypeEnum). On reconnect, CURRENT_LEARNINGS registers experiment subscriptions. UPDATE_LEARNING carries LearningClientSyncRequestDTO downstream and LearningClientSyncResponseDTO upstream; each clinic acts only on its addressed relay configuration. The Controller joins the Relay after certificate signing; the Tool waits for relay readiness. Tool lifecycle/logs use the attempt WebSocket; model updates travel through Controller HTTP :8001 and Relay TCP. The Learning APIs synchronize execution state.

The coordinator is an accepted clinic or, when enabled and requested, the Platform. A Platform aggregator uses the same attempt launcher, callback API, and Controller protocol. The Platform waits for its aggregator to finish uploading the model before advancing. An error stops training; STOP_LEARNING tells Clients to stop attempts, containers, and relay sessions.

Where to contribute​

ResponsibilityLearning-APIs location
Accept, start, advance, stopGlobal api/project/training/federated/FederatedTraining{BO,SetupBO,ProgressBO,CleanupBO}
Platform aggregatorFederatedTrainingAggregatorBO, FederatedTrainingEventsBO
Client setup, start, certificates, outputsLocal api/learning/project/run/FederatedLearning*BO
Client status reportsFederatedLearningEventsBO: observes execution-runs, deduplicates attempt ID/status, calls FederatedLearningRunBO to report upstream
Participant / relay persistenceGlobal and Local execution/federation

Debug in order: subscription/acceptance → Tool socket connected → all participants ready → relay/certificate setup → attempt messages → outputs → all participants and aggregator finished.