NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection

Jianwei Li, Jung-Eun Kim

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: AI Safety, Security & Alignment › Backdoor Detection in LLMs · Type: new method · Keywords: backdoor purification, LoRA adapters, null-space projection, language model security, parameter-efficient fine-tuning

Areas: Safety & Security › Language Model Security › Backdoor security

Summary

Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection purifies LoRA adapters in large language models by projecting updates onto orthogonal null spaces to suppress hidden backdoors while preserving base model capabilities and downstream task performance.

Explained to a 5-year-old

Some people add a small piece of code to a big language model to help it do a special job. Bad people can hide tricks inside that piece of code that make the model say bad things. The researchers found a way to clean that piece of code without needing to know what the bad tricks look like. They do this by making the code point in a new direction that does not let the bad tricks work. After cleaning, the model still works well for its normal jobs and the special job.

Explained to a 5-year-old, longer

Big language models are computer programs that can write and understand text. To make them do a specific task, like answering questions about medicine, we add a tiny piece of code called an adapter. Sometimes, someone can hide a secret trick inside that adapter so the model will say something harmful when triggered. This secret trick is called a "backdoor" because it lets bad things happen without being noticed. Existing ways to clean the model need to know what the secret trick looks like or need lots of extra work. The new idea is to clean the adapter without knowing the secret trick and without having to redo everything. They look at how the adapter changes the model and find the directions where the bad tricks live. Then they create new directions that are completely opposite to those bad directions. They move the adapter's changes onto these safe directions, which cancels out the bad tricks. After this cleaning, the model still understands language and can do its special task well. The bad behavior almost disappears, going from almost always happening to rarely happening. This makes it safer to use the model in real applications like chatbots or translation tools.

For a technical reader

The paper introduces a method that purifies LoRA adapters in large language models by projecting their updates onto orthogonal null spaces, effectively removing hidden backdoor triggers without needing trigger knowledge or clean data. It first extracts the directions in which malicious behavior manifests and then constructs safe subspaces in both input and output channels for each layer or head. By moving the adapter parameters onto these safe subspaces, the approach drastically reduces attack success rates-from near 100% down to under 10%-while preserving the model’s original capabilities and the task-specific performance gained from fine-tuning. The technique scales from a single layer in a text-classification setting to full-parameter LLMs in generative tasks, requiring no post-hoc retraining of the suspect parameters. This makes it practical for production environments where fine-tuned models must be deployed securely and efficiently.

Problem

Parameter-efficient fine-tuning methods for large language models can be compromised by hidden backdoors that cause malicious behavior without obvious signs. Existing mitigation techniques typically rely on assumptions such as knowledge of triggers, access to clean data, or extensive retraining, which are often impractical in real-world deployments.

Method

The approach extracts high-fidelity backdoor directions from the model’s updates and constructs orthogonal null spaces in both input and output channels for each layer or head, then projects the adapter updates onto these null spaces to neutralize malicious influences while preserving benign and task-specific capabilities.

Results

The approach reduces attack success rates from near 100% to under 10% and maintains the base model’s performance as well as the adapter’s downstream capabilities.

Contributions

It provides a backdoor purification technique that works without prior trigger knowledge, clean references, or post-hoc retraining, and it scales from a single layer in text classification to full-parameter LLMs in generation.

Practical relevance

This work enables safer deployment of fine-tuned language models in production environments by mitigating hidden backdoors without costly retraining.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction