FedCoT: Communication-Efficient Federated Reasoning Enhancement for Large Language Models
Organizations: East China Normal University, China · University of Montreal, Canada
Abstract
Enhancing LLM reasoning in federated settings is nontrivial due to stringent computational, communication, and privacy constraints, especially in healthcare, where clinically consequential decisions require not only accuracy but also interpretable, auditable rationales to meet safety, accountability, and regulatory requirements. Conventional federated fine-tuning largely imitates final answers rather than cultivating step-by-step reasoning, often relying on privacy-sensitive centralized distillation and still incurring substantial communication overhead. We address this gap with \textbf{\ours{}}, a federated reasoning framework that combines lightweight chain-of-thought resampling with a compact discriminator for selection, and client-aware LoRA stacking with weighted classifier aggregation to accommodate heterogeneity while reducing aggregation noise and communication; clients generate candidate chains and supervision locally, and only lightweight modules are aggregated on the server. Experiments on medical reasoning benchmarks show consistent gains under tight resource budgets while keeping data local and respecting privacy, offering an interpretable and resource-efficient solution. Our code is made publicly available at https://github.com/DIaacKr/FedCoT
Figures & tables
| Datasets | Train | Test | Source |
| PubMedQA ( 2019 ) | 450 | 500 | Experts |
| BioASQ ( 2015 ) | 494 | 124 | Articles |
| MMLU ( 2020 ) | 1299 | 163 | Examination |
| MedMCQA ( 2022 ) | 3000 | 4183 | Examination |
| MedQA ( 2021 ) | 10178 | 1273 | Examination |
| Method | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA | Avg. | ||||||
| Acc. (%) | (%) | Acc. (%) | (%) | Acc. (%) | (%) | Acc. (%) | (%) | Acc. (%) | (%) | Acc. (%) | (%) | |
| LLaMA-3-8B-Instruct | 37.90 | — | 29.80 | — | 27.20 | — | 38.70 | — | 9.20 | — | 28.56 | — |
| +Self-Consistency | 40.30 | +2.40 | 31.50 | +1.70 | 24.70 | -2.50 | 41.10 | +2.40 | 2.80 | -6.40 | 28.08 | -0.48 |
| +FedIT | 42.74 | +4.84 | 47.29 | +17.49 | 53.73 | +26.53 | 71.17 | +32.47 | 13.20 | +4.00 | 45.63 | +17.07 |
| +FedFFA-LoRA | 25.00 | -12.90 | 39.47 | +9.67 | 37.78 | +10.58 | 57.67 | +18.97 | 4.60 | -4.60 | 32.90 | +4.34 |
| +FLORA | 37.10 | -0.80 | 42.05 | +12.25 | 45.56 | +18.36 | 61.96 | +23.26 | 7.00 | -2.20 | 38.73 | +10.17 |
| Method | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA | Avg. |
| Best-of-N (Logits-based) | 40.32 | 27.76 | 26.24 | 38.04 | 5.60 | 27.59 |
| Best-of-N (Qwen3-0.6B-Reranker) | 49.20 | 26.50 | 29.60 | 36.20 | 12.40 | 30.78 |
| FedCoT (Local) | 57.30 | 42.60 | 40.80 | 56.40 | 29.20 | 45.26 |
| FedCoT (Qwen3-0.6B-Base) | 50.00 | 43.70 | 37.00 | 49.70 | 13.20 | 38.72 |
| FedCoT (ours) | 68.50 | 45.20 | 54.10 | 68.70 | 41.00 | 55.50 |
| Method | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA | Avg.(%) |
| CoT | 37.90 | 29.80 | 27.20 | 38.70 | 9.20 | 28.56 |
| FedCoT (r=4,4,4,4,4) | 67.70 | 44.50 | 52.60 | 65.00 | 40.80 | 54.12 |
| FedCoT (r=8,8,8,8,8) | 68.50 | 45.40 | 53.40 | 65.60 | 41.00 | 54.78 |
| FedCoT (r=16,16,16,16,16) | 69.40 | 45.00 | 54.30 | 65.60 | 41.00 | 55.06 |
| FedCoT (r=32,32,32,32,32) | 66.10 | 45.70 | 54.00 | 66.30 | 41.00 | 54.62 |
| FedCoT (r=4,32,32,16,4) | 68.50 | 45.20 | 54.10 | 68.70 | 41.00 | 55.50 |
| Method | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA | Avg. | |||||
| Acc. (%) | Size | Acc. (%) | Size | Acc. (%) | Size | Acc. (%) | Size | Acc. (%) | Size | Acc. (%) | |
| FedCoT (Full) | 68.50 | 364 | 45.20 | 1420 | 54.10 | 7278 | 68.70 | 915 | 41.00 | 205 | 55.50 |
| w/o Candidate Selection | 69.40 | 494 | 44.90 | 2000 | 53.70 | 10178 | 62.90 | 1299 | 41.00 | 450 | 54.38 |
| w/o Soft Labeling | 67.70 | 364 | 45.10 | 1420 | 54.50 | 7278 | 60.30 | 915 | 41.00 | 205 | 53.72 |
| w/o CS & SL | 65.30 | 494 | 45.20 | 2000 | 56.10 | 10178 | 54.00 | 1299 | 41.00 | 450 | 52.32 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Max Length | Actor Model | Avg.(%) |
| 512 | LLaMA-3-8B-Instruct | 5.93 |
| Qwen2.5-7B-Instruct | 26.28 | |
| 1024 | LLaMA-3-8B-Instruct | 0.02 |
| Qwen2.5-7B-Instruct | 0.04 |
| Model | Method | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA | Avg.(%) |
| LLaMA-3-8B- Instruct | FedIT-512 | 42.74 | 47.29 | 53.73 | 71.17 | 13.20 | 45.63 |
| FedCoT-512 | 65.30 | 45.20 | 56.10 | 54.00 | 41.00 | 52.32 | |
| FedIT-1024 | 45.16 | 46.45 | 54.36 | 70.55 | 13.80 | 46.06 | |
| FedCoT-1024 | 78.20 | 44.40 | 53.70 | 58.30 | 42.20 | 55.36 | |
| Qwen2.5-7B- Instruct | FedIT-512 | 82.26 | 48.48 | 44.30 | 68.71 | 47.20 | 58.19 |
| FedCoT-512 | 96.80 | 50.00 | 52.50 | 66.30 | 64.80 | 66.08 |
| Dataset | Positive | Negative | Ratio(%) |
| BioASQ | 5,740 | 145 | 97.54 |
| MedMcQA | 47,290 | 5,408 | 89.74 |
| MedQA | 118,719 | 26 | 99.98 |
| MMLU | 36,676 | 979 | 97.40 |
| PubMedQA | 3,288 | 740 | 81.63 |
| Model | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA |
| Baseline | 37.90 | 29.80 | 27.20 | 38.70 | 9.20 |
| Skywork-Reward-V2-Qwen3-0.6B | 31.50 | 24.50 | 20.20 | 32.50 | 4.00 |
| Skywork-Reward-V2-Llama-3.2-1B | 41.90 | 23.90 | 25.80 | 28.80 | 6.40 |
| Skywork-Reward-V2-Qwen3-1.7B | 25.00 | 24.80 | 21.20 | 26.40 | 1.00 |
| Skywork-Reward-V2-Llama-3.1-8B | 16.10 | 12.80 | 7.60 | 16.00 | 0.60 |
| Question :A previously healthy 29-year-old man comes to the emergency department because of burning with urination for several days. He has also had pain in the right ankle for 3 days and pain and swelling in the left knee for 1 day. Two weeks ago, he had several days of fever and bloody diarrhea, for which he was treated with antibiotics. Examination shows a small left knee effusion and bilateral conjunctival injection. Which of the following is the most likely additional finding in this patient?\n A. Palpable mass in the right lower quadrant\n B. Tenderness at the insertion of the Achilles tendon\n C. Pain on passive extension of the fingers\n D. Circular erythematous rash with central clearing Ground-Truth Answer : B ; |
| Generation 1 : Here is the step-by-step reasoning to answer the question:\n\nThe patient presents with a combination of symptoms, including burning with urination, pain in the right ankle, and pain and swelling in the left knee. The development of new symptoms, such as joint pain and swelling, suggests that the infection may have spread to other parts of the body.\n\nThe patient’s conjunctival injection (inflammation of the conjunctiva) is also a significant finding, as it is a common manifestation of disseminated infection.\n\nGiven the patient’s symptoms and medical history, the most likely diagnosis is reactive arthritis, which is a type of spondyloarthropathy that occurs in response to an underlying infection, often gastrointestinal.\n\nReactive arthritis typically affects the joints, eyes, and skin, and can cause symptoms such as joint pain, swelling, and inflammation. The patient’s bilateral conjunctival injection and left knee effusion are consistent with this diagnosis.\n\nThe most likely additional finding in this patient would be:\n\n#### C. Pain on passive extension of the fingers\n\nThis symptom is a common manifestation of reactive arthritis, as the condition can cause inflammation and stiffness in the hands and fingers. Passive extension of the fingers would likely cause pain and stiffness, which would be consistent with the patient’s underlying diagnosis.\n\nThe other options are not as likely:\n\nB. Tenderness at the insertion of the Achilles tendon: Achilles tendonitis is a possible diagnosis, but it is not the most likely explanation for the patient’s symptoms given the patient’s medical history and conjunctival injection.\n\n |
| Prediction 1 : C ; Score 1: 0.77344 |
| Generation 2 : Here is the step-by-step reasoning to answer the question:\n\nThe patient presents with a complex set of symptoms, including burning with urination, pain in the right ankle, and pain and swelling in the left knee. The patient also reports a history of fever and bloody diarrhea two weeks ago, which was treated with antibiotics.\n\n Step 4: Consider the possible causes of the patient’s symptoms in the context of the possible sources of infection.\n\nGiven the patient’s history of bloody diarrhea and the presence of symptoms in the joints and eyes, it is possible that the patient has developed a septic arthritis, which is an infection of the joint that is caused by bacteria that have spread from another part of the body.\n\nStep 5: Evaluate the patient’s symptoms in relation to the possible causes of septic arthritis.\n\nThe patient’s symptoms of pain and swelling in the joints, as well as the presence of a small left knee effusion, are consistent with septic arthritis. The patient’s bilateral conjunctival injection also suggests that the infection may have spread to the eyes.\n\nStep 6: Consider the most likely additional finding in the patient.\n\nGiven the patient’s symptoms and the possible causes of septic arthritis, the most likely additional finding is a palpable mass in the right lower quadrant, which could indicate an abscess or a collection of pus in the right lower quadrant of the abdomen.\n\n#### A. Palpable mass in the right lower quadrant |
| Prediction 2 : A ; Score 2: 0.717285 |
| Generation 3 : Here is the step-by-step reasoning:\n\nThe patient presents with a combination of symptoms, including burning with urination, pain in the right ankle, and pain and swelling in the left knee. This suggests that the patient may have a systemic infection that is affecting multiple parts of the body.\n\nThe patient had a recent episode of bloody diarrhea, which is a common symptom of gastrointestinal infections. The fact that he was treated with antibiotics suggests that the infection was likely bacterial in nature.\n\nThe patient’s symptoms are consistent with a urinary tract infection (UTI), as burning with urination is a common symptom of UTIs. The presence of a small left knee effusion and bilateral conjunctival injection suggests that the infection may have spread to the joints and eyes, respectively.\n\nThe patient’s symptoms are also consistent with reactive arthritis, a condition that can occur as a complication of certain bacterial infections, such as Salmonella or Shigella. Reactive arthritis is characterized by joint pain and swelling, as well as conjunctivitis and urethritis.\n\nGiven the patient’s symptoms and medical history, the most likely additional finding is:\n\nB. Tenderness at the insertion of the Achilles tendon\n\nThis is because reactive arthritis often affects the joints, including the ankles, and the Achilles tendon is a common site of tenderness in this condition.\n\n#### B. Tenderness at the insertion of the Achilles tendon |
| Prediction 3 : B ; Score 3: 0.833984 |
| Model | bioasq | medmcqa | medqa | mmlu | pubmedqa | average | |||||||
| p@1 | p@k | p@1 | p@k | p@1 | p@k | p@1 | p@k | p@1 | p@k | p@1 | p@k | ||
| LLaMA-3-8B | 37.90 | 70.97 | 29.84 | 68.18 | 27.18 | 70.46 | 38.65 | 71.78 | 9.20 | 42.00 | 28.55 | 64.68 | 36.12 |
| LLaMA-3.1-8B | 25.81 | 64.52 | 35.07 | 72.22 | 32.05 | 73.53 | 39.26 | 77.30 | 15.20 | 54.80 | 29.48 | 68.47 | 38.99 |
| Qwen2.5-7B | 73.39 | 98.39 | 43.75 | 70.98 | 29.46 | 66.54 | 50.31 | 78.53 | 38.80 | 73.40 | 47.14 | 77.57 | 30.43 |
| Qwen2.5-3B | 10.48 | 46.77 | 18.98 | 55.41 | 5.03 | 23.80 | 26.38 | 65.64 | 1.20 | 7.40 | 12.41 | 39.81 | 27.39 |
| LLaMA3.2-3B | 31.45 | 70.16 | 31.41 | 65.57 | 20.03 | 59.62 | 32.52 | 70.55 | 4.80 | 24.20 | 24.04 | 58.02 | 33.98 |
| Method | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA | Avg. |
| LlaMA-3-8B-Instruct | 37.90 | 29.80 | 27.20 | 38.70 | 9.20 | 28.56 |
| FedCoT (5 clients) | 68.50 | 45.20 | 54.10 | 68.70 | 41.00 | 55.50 |
| FedCoT (8 clients) | 69.40 | 44.30 | 52.80 | 69.30 | 41.20 | 55.40 |
| Method | BioASQ | MedMCQA | MedQA | MMLU | PubMedQA | Avg. |
| Qwen2.5-7B-Instruct | 73.40 | 43.70 | 29.50 | 50.30 | 38.80 | 47.14 |
| FedCoT (shared head) | 96.00 | 51.70 | 53.40 | 74.20 | 68.20 | 68.70 |
| FedCoT (personalized head) | 80.60 | 48.20 | 29.50 | 60.10 | 43.60 | 52.40 |