Introduction
Bayesian Optimization (BO) is a powerful framework for optimizing expensive black-box functions, such as hyperparameter tuning for deep neural networks or determining optimal medical dosages. However, as data increasingly resides on decentralized edge devices, traditional centralized BO faces significant privacy and communication challenges. Federated Learning (FL) offers a paradigm for collaborative model training without sharing raw data, yet extending BO to a federated setting is non-trivial.
The primary hurdles in Federated Bayesian Optimization (FBO) include the non-parametric nature of Gaussian Processes (GPs), which typically require sharing the entire history of observations; the high communication overhead of transmitting full posterior distributions; and the inherent heterogeneity of agents, where optimal configurations may vary significantly across different users.
Federated Thompson Sampling (FTS)
To address these challenges, this paper introduces Federated Thompson Sampling (FTS). The algorithm leverages two key techniques to ensure privacy and efficiency:
- Random Fourier Features (RFF): By approximating the GP kernel with RFF, the model is transformed into a Bayesian linear regression framework with a fixed parameter vector $\omega$. This enables agents to share model updates without exposing raw data points.
- Thompson Sampling for Compression: Instead of communicating a full $M \times M$ covariance matrix, agents draw a single sample $\omega$ from their posterior. This reduces communication complexity from $O(M^2)$ to $O(M)$, making it suitable for bandwidth-constrained edge devices.
In the FTS workflow, a target agent decides whether to use its own data or a neighbor's shared sample based on a probability $p_t$. This probability increases over time, allowing agents to benefit from collaborative exploration early on while eventually relying on their own local data to converge to a personalized optimum.
Experimental Evaluation
The performance of FTS was evaluated across a variety of benchmarks:
- Synthetic Functions: 1D functions sampled from a GP were used to test robustness against agent dissimilarity and the impact of the number of features ($M$).
- Landmine Detection: Tuning SVM hyperparameters for mine detection across 29 different fields.
- Activity Recognition: Optimizing logistic regression models for activity prediction using data from Google Glass (38 participants) and mobile phones (30 subjects).
Results and Key Insights
FTS demonstrates several advantages over standard Thompson Sampling (TS) and existing meta-learning approaches like RGPE and TAF.
Robustness and Convergence: Theoretical analysis and empirical results confirm that FTS achieves "no-regret" asymptotically. Even when collaborating with neighbors whose objective functions differ, the algorithm successfully identifies the local optimum. As shown in the synthetic experiments, increasing the number of random features $M$ is particularly beneficial when neighbors possess sufficient data to provide high-quality approximations.
Efficiency and Scalability: FTS is significantly more communication-efficient, achieving superior performance while transmitting orders of magnitude fewer parameters. Furthermore, its computational runtime remains nearly constant as the number of agents increases, whereas other multi-agent BO methods often scale linearly with the number of participants.
Conclusion
Federated Thompson Sampling provides a robust, communication-efficient, and privacy-preserving solution for collaborative black-box optimization. While it mitigates raw data exposure, future work could further enhance privacy through Differential Privacy to protect against inference attacks. Additionally, exploring automated weighting for neighbor contributions and sharing GP hyperparameters could further improve the algorithm's adaptability to heterogeneous environments.
Summary updated