mlsanityData to 7 Oct 2026

On Extracting Specialized Code Abilities from Large Language Models: A Feasibility Study

arXiv 2303.03012 ↗First posted 6 Mar 2023cs.SEcited by 13

Not on the map. Why?

Abstract (arXiv)

Recent advances in large language models (LLMs) significantly boost their usage in software engineering. However, training a well-performing LLM demands a substantial workforce for data collection and annotation. Moreover, training datasets may be proprietary or partially open, and the process often requires a costly GPU cluster. The intellectual property value of commercial LLMs makes them attractive targets for imitation attacks, but creating an imitation model with comparable parameters still incurs high costs. This motivates us to explore a practical and novel direction: slicing commercial black-box LLMs using medium-sized backbone models. In this paper, we explore the feasibility of launching imitation attacks on LLMs to extract their specialized code abilities, such as"code synthesis" and "code translation." We systematically investigate the effectiveness of launching code ability extraction attacks under different code-related tasks with multiple query schemes, including zero-shot, in-context, and Chain-of-Thought. We also design response checks to refine the outputs, leading to an effective imitation training process. Our results show promising outcomes, demonstrating that with a reasonable number of queries, attackers can train a medium-sized backbone model to replicate specialized code behaviors similar to the target LLMs. We summarize our findings and insights to help researchers better understand the threats posed by imitation attacks, including revealing a practical attack surface for generating adversarial code examples against LLMs.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Mar 2023.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 5; 2025: 4; 2026: 2.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2023Towards Understanding the Capability of Large Language Models on Code Clone Detection: A Survey
  2. 2025Trust Me, I Know This Function: Hijacking LLM Static Analysis using Bias
  3. 2025When Code Crosses Borders: A Security-Centric Study of LLM-based Code Translation ↗
  4. 2025ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Cases
  5. 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detection
  6. 2025Evaluating the Generalization Capabilities of Large Language Models on Code Reasoning
  7. 2024Code-Switching Red-Teaming: LLM Evaluation for Safety and Multilingual Understanding
  8. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval