Reproduce “Model Leeching: An Extraction Attack Targeting LLMs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Lewis Birch, William Hackett, Stefan Trawicki, Neeraj Suri, Peter Garraghan

Researchers at Lancaster University and Mindgard developed "Model Leeching," a black-box extraction attack that distills task-specific knowledge from large, proprietary language models like ChatGPT-3.5-Turbo into smaller, local models. This method enabled high-fidelity replication of LLM behavior at a cost of only $50, and demonstrated an 11% increase in adversarial attack success against the target LLM by using the extracted model for attack staging.

Key insights

  • High-fidelity, task-specific knowledge can be extracted from large, proprietary LLMs through black-box API interactions for a minimal economic cost.
  • Smaller, extracted models can achieve performance comparable to the much larger target LLMs for specific tasks, effectively replicating their behavior.
  • Extracted models provide an effective and cost-efficient staging ground for optimizing adversarial attacks, which can then be transferred to enhance attack success rates against the original target LLM.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.