florian / federated-learning-addon

11 stars 4 forks source link

Federated Learning – Firefox addon

js-standard-style

Federated Learning is a new subarea of machine learning where the training process is distributed among many users. Instead of sharing their data, users only have to provide weight updates to the server.

This is the first draft of the Firefox addon that implements the client-side part of a Federated Learning system. Everytime users perform searches in the awesome bar, the model's predictions are compared to the actual user behaviour and weight updates are computed. These updates are collected using Telemetry.

Installing the addon

  1. Go to about:config and set extensions.legacy.enabled to true
  2. Go to about:debugging, click Load Temporary Add-on and select manifest.json

The addon was built for a beta version of Firefox.

Study variations

After the study was installed, the variation can be changed by updating the federated-learning.frecency.variation pref in about:config. The new value needs to be one of the three values listed above. After the pref was changed, the browser has to be restarted so that the change is taken into account.

Components

Experiment APIs

Core components

Building the addon

$ npm run build

Depending on what should be done with the build, it still needs to be signed by someone else.

References