From LoRA to Language: Recovering Skill Documents from Adapters

Saranya Dintakurthy Swadha, Pavan C Shekar, Arpit Jain, Aswanth KrishnanarXiv 2026

TL;DR

This paper introduces the "Executing Writer," a method to reverse-engineer human-readable skill documents from opaque LoRA adapters. By letting an adapted model "describe" its own behavior, the researchers can recover up to 91% of a skill's performance and transfer that knowledge to entirely different model families that couldn't otherwise load the adapter.

What Problem Does This Paper Address?

In the world of AI agents, "skills" are often provided as text documents (e.g., "how to review code" or "how to navigate a specific database"). To save space in the limited context window, researchers have started "compiling" these skills into Low-Rank Adapters (LoRAs)—small sets of weight updates that change a model's behavior without needing the text in the prompt.

However, this creates a "black box" problem. A LoRA is just a block of numbers; it is hard to read, impossible to edit without retraining, and "model-locked" to the specific architecture and tokenizer it was trained on. You can't take a LoRA trained for Qwen and plug it into Llama. The authors tackle the inverse problem: Given an adapter and its base model, can we reconstruct the original skill document?

Methods

The authors compare three "Reader" architectures to see which can best extract text from weights:

  1. R1 (Weights as Data): A transformer-based encoder treats the LoRA weights as raw data to generate a "soft prompt" for a writer model.
  2. R2 (Vocabulary & Lines): This method uses a "vocabulary lens" to identify which words the weight updates "point to" and retrieves similar instruction lines from a training bank.
  3. R3 (The Executing Writer): This is the paper's primary contribution. Instead of just looking at the weights, it attaches the frozen skill adapter to the base model and trains a tiny "writer adapter" ($\phi$) on top. Essentially, it teaches the model how to describe the new behaviors the skill adapter has enabled.
Figure 1: The pipeline. A skill document s is compiled into an adapter ∆s. The Executing Writer attaches ∆s (frozen) and a trainable writer ϕ to the frozen base model θ and generates a document ˆs. Recovery is scored by the share of the original’s key instructions that ˆs states and by whether ˆs still works when given to a model.

For "behavioral adapters"—those trained only on task performance rather than text—the authors use an Executing Agent. This agent runs both the base and adapted models on real tasks, observes where their actions diverge, and writes a skill document based on those differences.

Datasets

The study utilizes several key benchmarks and datasets:

  • SkillsBench: A public benchmark containing diverse agent tasks and human-written skills.
  • ALFWorld: A text-based household simulator used to test behavioral adapters.
  • Hypernetwork Corpus: A collection of 11,000 skill documents used to train the "writer" models.
  • Custom Synthetic Tasks: Rule-following tasks (like fee calculation or ticket triage) designed to test if the reader can find "hidden" arbitrary rules within an adapter.

Key Insights and Ideas

  • Weights are for Identity, Execution is for Content: The authors found that while you can identify which skill an adapter holds just by looking at the weights, those weights only pass on about "one bit" of actual document content to a standard encoder. To get the details, you have to actually run the adapter.
  • The "Adapter Gap": There is a massive information gap between reading weights as data and running them. Running the adapter hands the "simulation" of the skill to the frozen network, which already knows how to process it, leaving the writer with the much easier task of just putting it into words.
  • Portability is the Killer App: The most significant "aha moment" is that recovering the text makes the skill portable. A skill "decompiled" from a Qwen-based LoRA can be dropped into the prompt of a Llama-3.1 model, effectively transferring the capability across model families.
  • Recitation vs. Behavior: The paper distinguishes between adapters trained to print their instructions (recitation) and those trained to act on them (behavioral). As shown in Table 1, the latter is much harder to recover because the text was never a training target.
Table 1: The three adapter families used in this paper.

Key Results

  • Instruction Recovery: The Executing Writer (R3) recovers 39–44% of key instructions from held-out skills, doubling the performance of weight-only methods.
  • Functional Restoration: On external skills, the recovered documents restore 85–91% of the original task gain.
  • Cross-Model Transfer: A skill recovered from a Qwen LoRA lifted a Llama-3.1-8B model's success rate on ALFWorld from 5% to 55%.
  • Rank Matters: Higher-rank adapters (e.g., rank 64) are significantly easier to "read" than lower-rank ones (rank 16), as shown in the authors' rank-transfer experiments.
Figure 2: Three ways to read an adapter. R1 and R2 never run the adapter; R3 runs it inside its base model and trains only a small writer. Grey: given and frozen; blue: trained; green: fixed computation. Recovery figures are from Table 3.

Limitations and Future Work

  • Behavioral Bottleneck: Recovering skills from adapters that never "saw" the text during training remains difficult. The current agent-based approach often produces skills that are correct but that smaller models (like 7B parameters) struggle to follow reliably.
  • Model Specificity: Most of the "trained writer" results are currently limited to the Qwen model family.
  • Evaluation Bias: The study relies heavily on LLM-as-a-judge (using models like Gemini and JEV-1.13), which may not perfectly capture human nuances in instruction following.
  • Future Directions: The authors suggest exploring "activation lenses" on middle layers and developing writers trained on a much wider variety of behavioral adapters to improve inference capabilities.

Summary updated

Abstract

Agent skills are short documents that teach a language model how to handle a class of tasks. To save context, these documents are increasingly compiled into low-rank adapters (LoRA), which keep the behaviour but lose the text: an adapter is hard to read, edit, audit or move to another model. We ask whether the skill document can be written back from the adapter and its frozen base model, and we score each recovered document by the share of the original's key instructions it states and by the tasks it solves. Reading the weights alone recovered little with the methods we tried; a learned map from weights to text passed on about one bit of the document. Running the adapter worked much better. The Executing Writer, a small writer trained on top of the adapted model, recovers 39-44% of the key instructions of held-out skills, against 1.3-1.5% with another skill's adapter, and on adapters fitted to 41 external skills its documents restore 85-91% of the original's task gain. These strongest results are on adapters whose training stored the document; adapters trained on behaviour alone are much harder for trained writers (1-2% of instructions). For these adapters we test an agent that runs the base and adapted models and writes a skill from where they differ. On ALFWorld its skills recover 58-71% of a LoRA's gain and carry over to models that cannot load the LoRA, lifting Llama-3.1-8B from 5% to 55%. Whether such a skill comes from the adapter depends on what the adapter learned: when its behaviour cannot be guessed, the adapter is the source; when it can, a reward loop without the adapter does as well.
BibTeX
@misc{swadha2026from,
  author = {Saranya Dintakurthy Swadha and Pavan C Shekar and Arpit Jain and Aswanth Krishnan},
  title = {{From LoRA to Language: Recovering Skill Documents from Adapters}},
  year = {2026},
  eprint = {2611.09454},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09454},
}
Figure