Skip to content

Recovering LoRA Adapter Weights from Log-Probabilities

Xujun Che Xi Niu Haopeng Zhang Depeng Xu
Dec 2026
Machine Learning Natural Language Processing Cybersecurity

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.

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54

Diffusion models as plug-and-play priors

The possibility of inferring high-dimensional data inference in a model that consists of a prior and an auxiliary differentiable constraint given some additional information is considered, thereby allowing a range of potential applications in adapting models to new domains and tasks.

Alexandros Graikos, Esmeralda S. Whitammer, N. Jojic et al. · 316 citations · ⚡15

Trajectory Balance: Improved Credit Assignment in GFlowNets

It is proved that any global minimizer of the trajectory balance objective can define a policy that samples exactly from the target distribution, and empirically demonstrate the benefits of the trajectories balance objective for GFlowNet convergence, diversity of generated samples, and robustness to long action sequenc...

Esmeralda S. Whitammer, Moksh Jain, Emmanuel Bengio et al. · 302 citations · ⚡60

Related blog posts

MIT News · Artificial Intelligence Nov 17, 2026

Learning the language of machine learning

By studying the computational foundations of language learning, Associate Professor Jacob Andreas builds intelligent systems that can communicate effectively with humans.

Microsoft Research Blog Nov 3, 2026

Learn the rules: The hacker mindset

Research Manager Mike Walker reflects on a career spanning hacker culture, cybersecurity, and AI, sharing lessons about trust, teamwork, leadership, and why solving difficult problems requires curiosity, judgment, agility—and an understanding of the rules. The post Learn the rules: The hacker mindset appeared first on Microsoft Research.

MIT News · Artificial Intelligence Aug 27, 2026

Looking beyond natural sequences

A new machine-learning framework aims to improve the success rate of computational protein design while moving away from results that reproduce sequences found in nature.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.