7.4 Enablement of Federated Learning
7.4.1 Overview
Federated Learning (FL) is a distributed machine learning paradigm in which model training is performed locally on multiple participating nodes and only model parameters or model updates (for example, weights or gradients) are exchanged with aggregation entities, rather than raw training data. Each participating node (FL Client) trains a local model instance on its own data and reports model updates to one or more FL Servers and/or FL Aggregators, which combine such updates to refine a global model. This approach contributes to keeping training data local, reducing backhaul traffic, and enabling model training closer to IoT data sources.
In real-world IoT environments, heterogeneous devices from various manufacturers and protocols coexist, making interoperability and integrated management challenging. Therefore, there is a critical need to integrate FL capabilities into a standardized framework such as the oneM2M platform. By defining a dedicated resource for FL within oneM2M, the system ensures data compatibility and interoperability among heterogeneous devices, enabling a hierarchical FL structure that utilizes Infrastructure Nodes (IN-CSE) and Middle Nodes (MN-CSE).
The proposed solution supports a hierarchical FL topology:
- FL Client: realized by an AE (e.g. an ADN-AE or MN-AE on a constrained edge device) that creates a local
<flJob> resource with
roleset to"FLClient", retrieves the global model, performs local training on private data, and reports back model updates only. - FL Server: realized by an AE (e.g. an IN-AE hosted on an IN-CSE, or an MN-AE hosted on an MN-CSE for a
local/regional deployment) that creates and manages the <flJob> resource with
roleset to"FLServer", distributes the global model, and drives the round lifecycle. - FL Aggregator: realized by the same, or a delegated, AE that retrieves the reported model updates from the
Hosting CSE, performs the aggregation function (e.g. FedAvg), and republishes the updated global model. In this
proposed solution the FL Aggregator function is co-located with the FL Server (
role = "FLServer"), which allows the FL Aggregator to be hosted separately (e.g. as a distinct AE, or on a MEC Platform/Application) in later revisions of this solution. - FL Orchestrator: the policy and lifecycle-management functions (round scheduling, client selection) are
represented as attributes of the <flJob> resource
(e.g.
maxRounds,roundDeadline,minReportingNodes,deviceStatusCriteria) that are set by the FL Server/Orchestrating AE when the job is created or updated.
In this proposed solution, the FL Server, FL Aggregator and FL Orchestrator roles are co-located in a single AE, referred to below as the Coordinator Application (e.g. an IN-AE), while each AE performing the FL Client role is referred to as a Trainer Application (e.g. an MN-AE or ADN-AE).
To seamlessly decouple these AEs and standardize their interactions, a dedicated FL resource hosted on a CSE (<flJob>) is introduced. Rather than communicating directly, the Coordinator Application and Trainer Applications interact only through the following core properties defined within this resource:
- State and Round Control: properties to synchronize the current training phase (e.g. training, reporting, aggregating) and track the current iteration round across all participating nodes.
- Model and Aggregation Management: properties providing URI references for the global model to be downloaded and the target resource locations where local training results should be uploaded.
- Training Hyperparameters: properties encapsulating the learning configurations required for local training, such as learning rate, batch size, local epochs, and optimizer.
- Membership and Role Management: properties specifying the functional role of the node — Coordinator Application (encompassing the FL Orchestrator and FL Aggregator roles) or Trainer Application (acting as the FL Client) — and identifying the target devices authorized to participate in each training round.
- Device Condition: an optional property defining minimum device status criteria (e.g. battery or memory thresholds) to dynamically filter eligible Trainer Applications before a round starts.
A oneM2M CSE (IN-CSE or MN-CSE) acts purely as a resource host: it stores the <flJob> resource and associated model data, and notifies subscribed FL Clients of state changes. The CSE does not interpret FL semantics.
Figure 7.4.1-1 illustrates the resource-tree topology for a deployment with one FL Server (hosted on an IN-CSE) and two FL Clients (hosted on MN-CSEs).

Figure 7.4.1-1: Resource tree structure for Federated Learning
7.4.2 Resource Types
7.4.2.1 Resource Type flJob
The <flJob> resource represents a Federated Learning job and is utilized to control the entire lifecycle of an FL task within the oneM2M framework. This resource can be created by a Coordinator Application (e.g., IN-AE) to manage global states and synchronize rounds, while corresponding <flJob> resources can be created by Trainer Applications (e.g., MN-AE) for local state synchronization and execution. By updating the attributes of the <flJob> resource, the oneM2M system can trigger Notifications to subscribed nodes, orchestrating the transition of FL phases from initialization to completion.
Furthermore, a local <flJob> resource created by a Trainer Application at a Middle Node (MN-CSE) can utilize the announceTo attribute to announce its presence to the Infrastructure Node (IN-CSE). This action generates a <flJobAnnc> resource within the IN-CSE's resource tree. Through this mechanism, the Coordinator Application can centrally monitor the operational status and progress of all distributed participating nodes without the need to individually query each underlying node.
Table 7.4.2.1-1: Child resources of <flJob> resource |Child Resources of <_flJob>|Child Resource Type|Multiplicity|Description|<flJob> Child Resource Types| |-|-|-|-|-| |[variable]|<semanticDescriptor>|0..n|See clause 9.6.30 [1]|<semanticDescriptor>, <semanticDescriptorAnnc>| |[variable]|<subscription>|0..n|See clause 9.6.8 [1]|<subscription>_|
Table 7.4.2.1-2 details the attributes of the <flJob> resource used for Federated Learning control, model management, configurations, and membership.
Table 7.4.2.1-2: Attributes of <flJob> resource
| Attributes of <flJob> | Multiplicity | RW/RO/WO | Description | <flJobAnnc> Attributes |
|---|---|---|---|---|
| resourceType | 1 | RO | See clause 9.6.1.3 [1] | NA |
| resourceID | 1 | RO | See clause 9.6.1.3 [1] | NA |
| resourceName | 1 | WO | See clause 9.6.1.3 [1] | NA |
| parentID | 1 | RO | See clause 9.6.1.3 [1] | NA |
| expirationTime | 1 | RW | See clause 9.6.1.3 [1] | MA |
| accessControlPolicyIDs | 0..1 (L) | RW | See clause 9.6.1.3 [1] | MA |
| labels | 0..1 (L) | RW | See clause 9.6.1.3 [1] | MA |
| creationTime | 1 | RO | See clause 9.6.1.3 [1] | NA |
| lastModifiedTime | 1 | RO | See clause 9.6.1.3 [1] | NA |
| announceTo | 0..1 (L) | RW | See clause 9.6.1.3 [1]. An FL Client's <flJob> resource sets this attribute to the address of the FL Server's Hosting CSE so that the FL Server can monitor job state without individually polling each FL Client. | NA |
| announcedAttribute | 0..1 (L) | RW | See clause 9.6.1.3 [1] | NA |
| announceSyncType | 0..1 | RW | See clause 9.6.1.3 [1] | MA |
| creator | 0..1 | RO | See clause 9.6.1.3 [1] | NA |
| custodian | 0..1 | RW | See clause 9.6.1.3 [1] | NA |
| role | 1 | WO | The federated learning role performed by the AE/CSE that created this resource. Allowed values: "FLServer", "FLClient". The FL Aggregator and FL Orchestrator functions are not separate role values; an FL Server-role AE's function(s) are identified by serverFunctions. |
OA |
| serverFunctions | 0..1 (L) | RW | Present only when role = "FLServer". Identifies which FL Server-side function(s) apply to this job. Allowed values (one or more): "FLOrchestrator", "FLAggregator". In this proposed solution both values are performed by the single AE that created the resource. |
OA |
| jobState | 1 | RW | The current state of the federated learning job (FSM control attribute). Allowed values: "FL_READY" (initialized, awaiting participants), "FL_TRAINING" (global model distributed, local training in progress/expected), "FL_REPORTING" (an FL Client has completed local training and is uploading/has uploaded its update), "FL_AGGREGATING" (FL Aggregator is combining received updates), "FL_COMPLETED" (job terminated). See clause 7.4.3.2 for the state transition diagram. |
OA |
| currentRound | 1 | RW | The index of the training round currently in progress. Incremented by the FL Server at the start of each round. An FL Client compares this value against the round of the model it holds to decide whether to (re)join training. | OA |
| maxRounds | 0..1 | RW | Present only when role = "FLServer". The maximum number of training rounds after which the job is terminated (jobState set to "FL_COMPLETED") regardless of convergence. |
OA |
| minReportingNodes | 0..1 | RW | Present only when role = "FLServer". The minimum number of FL Client reports that must be received in the current round before aggregation may begin. |
OA |
| roundDeadline | 0..1 | RW | Present only when role = "FLServer". The maximum duration (or absolute time) an FL Server waits for FL Client reports in the current round before proceeding to aggregation with the reports received so far. |
OA |
| aggStrategy | 0..1 | RW | Present only when role = "FLServer". Identifies the aggregation algorithm to apply to received model updates (e.g. "FedAvg"). |
OA |
| globalModelRef | 0..1 | RW | The address (resource ID or URI) from which the current global model can be retrieved. Set by the FL Server/FL Aggregator when a new global model is published; retrieved by FL Clients at the start of each round. May reference an <mlModel> resource as defined in clause 7.1.2.2, a <container>/<contentInstance>, or an external URL. This attribute need not be present when the <flJob> resource is created (jobState = "FL_READY") but shall be present before jobState is set to "FL_TRAINING". |
OA |
| localModelRef | 0..1 | RW | The address (resource ID or URI) to which a model update shall be, or has been, uploaded. For an FL Client's <flJob>, this is the target resource on the FL Server's/FL Aggregator's Hosting CSE to which the FL Client uploads its local update. For an FL Server's/FL Aggregator's <flJob>, this identifies the collection point (e.g. a <container>) where FL Client updates are gathered. | OA |
| hyperParams | 1 | RW | The set of training hyperparameters, encapsulated as a JSON string (e.g. learningRate, batchSize, optimizer), applied by an FL Client during local training. Set by the FL Server/FL Orchestrator and distributed as part of the <flJob> resource. |
OA |
| localEpochs | 0..1 | RW | The number of local training iterations (epochs) an FL Client shall perform on its own data before reporting an update, set to reduce communication overhead by allowing more than one local epoch per round. | OA |
| dataVolume | 0..1 | RW | Present only when role = "FLClient". The size (e.g. number of local training samples) used by the FL Client in the current round, written by the FL Client together with its report to localModelRef to support weighted aggregation strategies (e.g. sample-weighted FedAvg). |
OA |
| participantList | 0..1 (L) | RW | Present only when role = "FLServer". The list of identifiers of FL Client AEs/CSEs admitted to participate in the job. |
OA |
| deviceStatusCriteria | 0..1 | RW | The minimum device-resource conditions (e.g. minimum battery level, available CPU/memory thresholds) that an FL Client shall verify locally before accepting a training-round notification and transitioning to "FL_TRAINING". Enables resource-aware client selection at the FL Client rather than requiring the FL Server to poll device status. |
OA |
Table 7.4.2.1-3: Attribute usage by role
| Attribute | FL Server | FL Client |
|---|---|---|
| role | "FLServer" |
"FLClient" |
| serverFunctions | Set to one or both of "FLOrchestrator", "FLAggregator" for the job |
Not present |
| jobState | Tracks overall round state for the job | Tracks the local training state |
| globalModelRef | Global model publication address | Global model download address |
| localModelRef | Collection address for received updates | Local update upload address |
| maxRounds, minReportingNodes, roundDeadline, aggStrategy, participantList | Set (job-level policy) | Not present |
| deviceStatusCriteria, localEpochs, dataVolume | Set as distributed policy / not applicable | Consumed to control local behaviour / reported |
7.4.2.2 flJob state transition diagram
