Recovering LoRA Adapter Weights from Log-Probabilities

Fine-tuning a public base model with a low-rank adapter is the standard way to build a deployed language model, and the adapter is then the only proprietary part of the deployment. We show that it can be recovered at the parameter level, not merely imitated, from the next-token log-probabilities a standard inference interface returns, using nothing but prompts of ordinary tokens and the public base. The attack rests on prompts so short that each attention head has a single free weight, which turns every response into linear equations in the adapter. On GPT-2 small with rank-one adapters trained on text, five thousand prompts recover every layer's query and value increments to a relative error of 10^-8, and the clones are indistinguishable from their victims to double-precision rounding. The same procedure recovers rank-four and rank-eight adapters and carries over to Llama-3.2-1B. The number of prompts needed is bounded below by the model dimension, and the bound is tight. Returning only the 20 or 5 largest log-probabilities does not prevent recovery once longer prompts are used. What binds is the victim's arithmetic: under bf16 the recovered parameters stay 10-20% from the truth, yet the clone behaves within ten percent of the victim's own redeployment noise, on a real serving stack as in simulation. The protection an interface offers is set by its precision, truncation and noise, not by the size of the increment.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Recovering LoRA Adapter Weights from Log-Probabilities

Xujun Che, Xi Niu, Depeng Xu, Haopeng Zhang
arXiv
Adversarial Robustness in Machine Learning
preprint

Recovering LoRA Adapter Weights from Log-Probabilities

Xujun Che, Xi Niu, Depeng Xu, Haopeng Zhang
preprint en

Abstract

Fine-tuning a public base model with a low-rank adapter is the standard way to build a deployed language model, and the adapter is then the only proprietary part of the deployment. We show that it can be recovered at the parameter level, not merely imitated, from the next-token log-probabilities a standard inference interface returns, using nothing but prompts of ordinary tokens and the public base. The attack rests on prompts so short that each attention head has a single free weight, which turns every response into linear equations in the adapter. On GPT-2 small with rank-one adapters trained on text, five thousand prompts recover every layer's query and value increments to a relative error of 10^-8, and the clones are indistinguishable from their victims to double-precision rounding. The same procedure recovers rank-four and rank-eight adapters and carries over to Llama-3.2-1B. The number of prompts needed is bounded below by the model dimension, and the bound is tight. Returning only the 20 or 5 largest log-probabilities does not prevent recovery once longer prompts are used. What binds is the victim's arithmetic: under bf16 the recovered parameters stay 10-20% from the truth, yet the clone behaves within ten percent of the victim's own redeployment noise, on a real serving stack as in simulation. The protection an interface offers is set by its precision, truncation and noise, not by the size of the increment.

arXiv
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon