[Workflow API] Enable participants in FederatedRuntime to review and approve plan #1607
scngupta-dsp
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
The proposal was discussed in an offline review with key stakeholders SUMMARY Default behavior when
Configurable Review policy:
Dynamic Addition of Envoys:
NEXT STEPS:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
SUMMARY
This proposal introduces a structured mechanism for reviewing and agreeing on plans for executing FL experiments in
FederatedRuntime
within the Workflow API. This feature enables all participants, including the Director and Envoys, to review and approve an experiment plan before executionThe Director, acting as the orchestrator, manages this review process to ensure consistency, trust, and readiness across the federation. Additionally, the User/Data Scientist who submitted the experiment plan will be notified of the outcome (approval or rejection) on completion of the review process.
MOTIVATION
Currently in
FederatedRuntime
, users can initiate and execute Federated Machine Learning experiments without an explicit approval from all participants (including Directors or Envoys). While this approach allows for a swift action, the absence of formal agreement or review process may lead to following challenges:SCOPE
FederatedRuntime
KEY REQUIREMENTS
Feature Configuration:
Each participant in Federation shall be able to configure this feature individually. Feature can be enabled or disabled by including an optional
review_experiment
flag in each participant’s configuration (YAML) file. The behavior ofreview_experiment
flag in each participant’s configuration file shall be as followsreview_experiment: false
- plan is auto-approvedreview_experiment: true
- node-admin review and approval is requiredDefault: If the
review_experiment
setting is not present in configuration, the participant defaults to manually approving the experiment (i.e. as ifreview_experiment: True
)Configuration File Interface
review_experiment
flag to true in the configuration file as shown below:Persistence of Configuration:
Director and Envoy Interface for reviewing and approving the plan
review_experiment
flag is enabled, the plan for the received experiment shall be printed on console and following interface will be presented to the Director and Envoys for reviewing and responding to the experiment plan:Review Timeline
review_experiment
flag is set to true, Director and Envoy shall wait for manual approval (or rejection) of the planNotify plan review outcome to User/Data Scientist:
Experiment execution on Consensus:
PROPOSED APPROACH
The mechanism consists of two phases: the Review Phase and the Execution Phase.
Phase 1: Review Phase
Director Review: Director reviews the plan.
Envoy Review:
Director Consensus: Director waits for responses from all Envoys and
Phase 2: Execution Phase
If the Director and all Envoys approve the experiment:
SCENARIOS:
Scenario A: Director rejects the plan
Scenario B: Director approves the plan and (any) Envoy rejects the plan
Scenario C: ALL participants approve the plan
RISKS and MITITAGTION
Different combinations of participant approvals and rejections shall be validated thoroughly to ensure that an experiment proceeds only when all participants have approved the plan
VALIDATION
Manual
DEMONSTRATION
Feature shall be demonstrated by modifying the existing
openfl-tutorials/experimental/workflow/FederatedRuntime/101_MNIST
tutorialBeta Was this translation helpful? Give feedback.
All reactions