Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/SK-1261 | Split Learning in FEDn #776

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

FrankJonasmoelle
Copy link
Contributor

This is a first implementation of Split Learning (for vertical federated learning) in FEDn.

The implementation includes:

  • A new session "splitlearning_session", which can be executed from the API client via "start_splitlearning_session"
  • A new helper (splitlearninghelper) responsible for saving & loading embeddings and gradients
  • A new aggregator (splitlearningagg) that concatenates client embeddings, continues the forward pass and calculates gradients based on the labels it receives
  • The logic is based on a forward and backward pass
  • In the forward pass, clients generate embeddings and send them to a combiner, where they are concatenated and the gradients are calculated
  • In the backward pass, the calculated gradients are sent back to the clients, who update their model parameters by continuing the backward pass
  • A vertical federated learning example, based on the titanic data set, for demonstration.

Limitations:

  • The current implementation works for only one combiner
  • It is assumed that the data & labels are sorted by index
  • Training data is processed in one batch

@FrankJonasmoelle FrankJonasmoelle self-assigned this Dec 19, 2024
@github-actions github-actions bot added feature New feature or request minor labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request HOLD minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant