PubSwap: Public-Data Off-Policy Coordination for Federated RLVR
Organizations: Carnegie Mellon University
Abstract
Reasoning post-training with reinforcement learning from verifiable rewards (RLVR) is typically studied in centralized settings, yet many realistic applications involve decentralized private data distributed across organizations. Federated training is a natural solution, but scaling RLVR in this regime is challenging: full-model synchronization is expensive, and performing many local steps can cause severe client drift under heterogeneous data. We propose a federated RLVR framework that combines LoRA-based local adaptation with public-data-based off-policy steps to improve both communication efficiency and cross-client coordination. In particular, a small shared public dataset is used to periodically exchange and reuse response-level training signals across organizations, providing a lightweight anchor toward a more globally aligned objective without exposing private data. Our method selectively replaces locally incorrect responses with globally correct ones during public-data steps, thereby keeping training closer to the local policy while still benefiting from cross-client coordination. Across mathematical and medical reasoning benchmarks and models, our method consistently improves over standard baselines. Our results highlight a simple and effective recipe for federated reasoning post-training: combining low-rank communication with limited public-data coordination.
Figures & tables
| Model | Method | MATH | DeepMath | ||||||
|---|---|---|---|---|---|---|---|---|---|
| =10 | =40 | =90 | =120 | =10 | =40 | =90 | =120 | ||
| Qwen3-1.7B | Base model | 55.2 | 55.2 | 55.2 | 55.2 | 14.9 | 14.9 | 14.9 | 14.9 |
| FedAvg-GRPO | 77.9 | 75.6 | 75.5 | 75.9 | 48.9 | 52.7 | 50.4 | 50.7 | |
| FedProx-GRPO | 77.5 | 76.0 | 76.5 | 75.6 | 50.6 | 52.3 | 48.0 | 47.7 | |
| FedAvg- PubSwap | 77.0 | 76.7 | 76.9 | 76.6 | 51.1 | 53.0 | 53.3 | 55.8 | |
| Qwen2.5- Math-1.5B | Base | 58.4 | 58.4 | 58.4 | 58.4 | 34.9 | 34.9 | 34.9 | 34.9 |
| Method | =10 | =40 | =90 | =120 |
|---|---|---|---|---|
| Base model | 51.1 | 51.1 | 51.1 | 51.1 |
| FedAvg-GRPO | 66.9 | 66.5 | 67.0 | 67.4 |
| FedAvg- PubSwap | 70.0 | 65.4 | 70.2 | 70.5 |
| Method | =10 | =40 | =90 | =120 |
|---|---|---|---|---|
| Base model | 49.2 | 49.2 | 49.2 | 49.2 |
| FedAvg-GRPO | 58.7 | 58.2 | 57.9 | 56.0 |
| FedAvg- PubSwap | 57.5 | 59.4 | 58.5 | 58.1 |
| Method | =40 | =90 | =120 |
|---|---|---|---|
| Base model | 14.9 | 14.9 | 14.9 |
| FedAvg+GRPO | 52.0 | 51.6 | 51.3 |
| PubSwap | 53.0 | 56.7 | 54.9 |
| Method | =80 | =90 | =120 |
|---|---|---|---|
| FedAvg-GRPO | 48.0 | 50.4 | 50.7 |
| FedProx-GRPO | 46.5 | 48.0 | 47.7 |
| = 2 | 52.2 | 53.3 | 55.8 |
| = 4 | 54.3 | 54.3 | 52.5 |
| = 8 | 53.1 | 53.4 | 52.6 |
| Method | =90 | =120 |
|---|---|---|
| FedAvg-GRPO | 50.5 | 49.3 |
| FedProx-GRPO | 48.0 | 49.4 |
| = 2 | 51.0 | 53.1 |
| = 4 | 52.3 | 53.6 |
| = 8 | 51.9 | 51.7 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Method | MATH | DeepMath | ||||||
|---|---|---|---|---|---|---|---|---|---|
| =10 | =40 | =90 | =120 | =10 | =40 | =90 | =120 | ||
| Qwen3-1.7B | Base model | 55.2 | 55.2 | 55.2 | 55.2 | 14.9 | 14.9 | 14.9 | 14.9 |
| FedAvg-GRPO | 78.3 | 76.1 | 76.3 | 75.9 | 49.5 | 52.7 | 50.4 | 50.7 | |
| FedProx-GRPO | 77.5 | 76.7 | 76.5 | 75.6 | 52.0 | 52.3 | 48.0 | 47.7 | |
| FedAvg- PubSwap | 77.0 | 76.9 | 76.9 | 76.6 | 53.8 | 54.6 | 53.3 | 55.8 | |
| Qwen2.5- Math-1.5B | Base model | 58.4 | 58.4 | 58.4 | 58.4 | 34.9 | 34.9 | 34.9 | 34.9 |
| Method | =10 | =40 | =90 | =120 |
|---|---|---|---|---|
| Base model | 49.2 | 49.2 | 49.2 | 49.2 |
| FedAvg-GRPO | 59.7 | 58.9 | 57.9 | 57.7 |
| FedAvg- PubSwap | 58.3 | 59.5 | 58.5 | 58.1 |
| Parameter | Value | Parameter | Value |
| Pretrained Model | Qwen3-1.7B | Num Clients | 4 |
| Grad epochs per GRPO step | 2 | Train Batch Size | 8 |
| Max prompt length | 1024 | Max response length | 2048 |
| LoRA rank | 32 | LoRA alpha | 64 |
| LoRA modules | all linear | Gen. per prompt | 8 |
| Learning rate | Clip ratio low | 0.2 |
| Parameter | Value | Parameter | Value |
| Pretrained Model | Qwen2.5-Math-1.5B | Num Clients | 4 |
| Grad epochs per GRPO step | 2 | Train Batch Size | 8 |
| Max prompt length | 1024 | Max response length | 2048 |
| LoRA rank | 32 | LoRA alpha | 64 |
| LoRA modules | all linear | Gen. per prompt | 8 |
| Learning rate | Clip ratio low | 0.2 |
| Parameter | Value | Parameter | Value |
| Pretrained Model | Qwen3-4B-Instruct-2507 | Num Clients | 4 |
| Grad epochs per GRPO step | 2 | Train Batch Size | 4 |
| Max prompt length | 1024 | Max response length | 2048 |
| LoRA rank | 32 | LoRA alpha | 64 |
| LoRA modules | all linear | Gen. per prompt | 8 |
| Learning rate | Clip ratio low | 0.2 |
| Parameter | Value | Parameter | Value |
| Pretrained Model | Llama-3.2-3B-Instruct | Num Clients | 4 |
| Grad epochs per GRPO step | 2 | Train Batch Size | 8 |
| Max prompt length | 1024 | Max response length | 2048 |
| LoRA rank | 32 | LoRA alpha | 64 |
| LoRA modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj | Gen. per prompt | 8 |
| Learning rate | Clip ratio low | 0.2 |
Federated RL
Federated reinforcement learning lets distributed agents learn policies collaboratively while keeping their local data and experience private.
See all 34 papers