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:
- R1 (Weights as Data): A transformer-based encoder treats the LoRA weights as raw data to generate a "soft prompt" for a writer model.
- 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.
- 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.
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.
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.
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