Abstract
InFL-UX is an interactive, browser-based toolkit designed to bridge the gap between Federated Learning (FL) and Interactive Machine Learning (IML). By leveraging modern web technologies, it enables non-technical users to collaboratively train deep learning models directly within a web browser. This approach facilitates privacy-preserving decentralized training while emphasizing human-in-the-loop refinement, making it particularly suitable for domains with sensitive data and a need for expert oversight.
Introduction
Machine Learning (ML) often faces significant hurdles in specialized fields like healthcare due to data scarcity and privacy concerns. While Federated Learning (FL) addresses privacy by keeping data on local devices, existing tools are frequently limited to backend simulations with minimal human interaction. Conversely, Interactive Machine Learning (IML) allows experts to refine models through real-time feedback but typically lacks decentralized capabilities. InFL-UX addresses this usability gap by providing a web-based interface where users can contribute to a global model by uploading data and correcting model suggestions without their raw data ever leaving the browser.
System Architecture and Methods
The InFL-UX system utilizes a modern web-centric tech stack to enable high-performance computation within the browser environment. The architecture consists of a dual-server setup: an FL Web Server hosting the application and an FL Server managing global model aggregation.
Key technical components include:
- ONNX Runtime: Facilitates both inference and training directly in the browser.
- WebAssembly (Wasm) & WebGPU: Enables near-native execution speeds and leverages local GPU resources.
- Asynchronous FL (FedAsync): Supports practical web-based participation where users can join and submit updates independently.
- IndexedDB: Provides persistent local storage for datasets and training progress across sessions.
Interactive Workflow
The toolkit democratizes machine learning by removing technical barriers; users only require a URL to participate. A core feature is the "human-in-the-loop" label review process. Before local training begins, users can review and correct model-generated label suggestions, ensuring high-quality data contributes to the global model updates.
For validation, the authors implemented a "Cats vs. Dogs" classification task using MobileNetV2. The workflow follows a structured path: administrative configuration, user data upload, interactive label correction, local training, and finally, global aggregation.
Results and Discussion
The proof-of-concept demonstrates the technical feasibility of a fully interactive, browser-based FL pipeline. The system successfully integrated MobileNetV2 for image classification and validated the end-to-end loop from configuration to aggregation. The architecture's use of abstract classes ensures extensibility to more complex tasks such as object detection.
However, several limitations remain due to the nascent state of web-based ML tooling. Current constraints include a fixed learning rate in the ONNX Runtime and hardware limitations that restrict training to WebAssembly backends rather than full WebGPU utilization.
Conclusion and Future Work
InFL-UX represents a significant step toward making decentralized, privacy-preserving machine learning accessible to non-experts. Future work will focus on conducting user studies to evaluate scalability and incorporating Explainable AI (XAI) techniques, such as class activation maps, to provide users with deeper insights into model predictions during the correction phase.
Summary updated