atlas

Research map / Large language models / Instruction and fine-tuning

Emerging Safety Attack and Defense in Federated Instruction Tuning of Large Language Models

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Safety alignment after fine-tuning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that malicious federated instruction-tuning clients can compromise LLM safety with automatically generated unaligned data, and proposes a server-side post-hoc defense that fine-tunes the aggregated LLM on generated safe and normal data.

Problem

Federated instruction tuning (FedIT) of LLMs can lose safety alignment when malicious clients train on unaligned harmful instruction-response data, and existing model-level FL defenses fail to detect such stealthy attacks.

Approach

A data-poisoning attack in which malicious clients train on harmful-instruction/harmful-response pairs generated automatically by an off-the-shelf LLM, plus a post-hoc server-side defense that fine-tunes the aggregated model on automatically generated aligned (harmful instruction, safe response) and normal data, avoiding model-level client comparison.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train malicious clients on Beavertails unaligned data instead of aligned dataFedAvg on Llama2-7B · AdvBench, LMSYS-ChatMD-Judge: 66.15 -> 25.96Hurt
train malicious clients on Beavertails unaligned data instead of aligned dataFedAvg on Llama2-7B · AdvBench, WildChatMD-Judge: 43.27 -> 12.31Hurt
add Level 2 post-hoc defense using generated dataFedAvg attacked with Beavertails · AdvBench, LMSYS-ChatMD-Judge: 25.96 -> 84.23Helped
add Level 2 post-hoc defense using generated dataFedAvg attacked with Beavertails · AdvBench, WildChatMD-Judge: 12.31 -> 82.12Helped
use classical FL aggregation defenses rather than plain FedAvg under safety attackFedAvg with Beavertails attack · AdvBench, LMSYS-ChatMD-Judge: 25.96 -> 27.88No clear effect
add Level 2 defense after aggregationFL baselines under LMSYS-Chat + Beavertails attack · AdvBenchMD-Judge: 25.96 -> 84.23Helped
use 400 Level 3 defense steps rather than other tested step counts (ablation)Level 3 defense · four attack settingsMT-1Helped
increase Level 3 defense training steps across [100, 200, 300, 400, 500] (ablation)Level 3 defense · four attack settingsMD-Judge: 41.73\%, 29.42\%Helped
fine-tune a pretrained Llama2 on generated defense data alone instead of normal local training (ablation)Local+Gen · generated-data fine-tuninghelpfulnessHurt
add generated defense data to federated fine-tuning under attack (ablation)FedAvg under attack · generated-data defensesafetyHelped
add generated defense data to federated fine-tuning under attack (ablation)FedAvg under attack · generated-data defensehelpfulnessNo clear effect
generate attack data with different off-the-shelf LLMs (ablation)FedAvg safety attack · LMSYS-ChatMD-JudgeHurt

Surprising findings

Limitations

Experimental setup

Datasets: LMSYS-Chat WildChat Dromedary-verbose Wizard-evol Beavertails MaliciousGen CodeAlpaca

Benchmarks: AdvBench MT-Bench HumanEval

Metrics: Rule-based safety rate MD-Judge safety score reward model score MT-Bench first-turn score HumanEval pass@1

Baselines: FedAvg Median Trimmed mean Krum DnC FoolsGold Residual

Builds on: OpenFedLLM FedAvg LoRA Krum

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy