Log probabilities alone can recover LoRA adapter weights, GPT-2 experiment shows
In brief
A paper posted to arXiv on Dec. 2 says LoRA adapter weights can be recovered at the parameter level using only the next-token log probabilities returned by an API.
1 min read
Translated from the Korean original. Read the original in Korean
Why it matters
- A fine-tuned adapter, the only proprietary asset in a deployed model, could be recovered from nothing more than the output of a standard inference interface.
By the numbers
- 5,000
- Prompts used for recovery (GPT-2 small)
- Rank 1
- Adapter structure tested
Key details
The researchers claim they can recover an adapter parameter by parameter, rather than merely imitating it. All that is needed are the next-token log probabilities returned by the inference interface, prompts made of ordinary tokens and the publicly available base model. The key to the attack is making prompts very short so that only one free weight remains per attention head. Each response then becomes a linear equation in the adapter.
Context
Targeting a rank-1 adapter trained on text for GPT-2 small, the researchers recovered the query and value updates in every layer using 5,000 prompts. Research targeting components added through fine-tuning continues, including papers NWM reported earlier on backdoors at the fine-tuning stage and on removing capabilities from open-weight models.