Manuscript Offprint

arXiv:2610.25626

MapSteal: Map-based Autonomous Knowledge Stealing Attack Against Large Language Models

Zhengao Li, Chuxu Zhang, Yushun Dong

Abstract

Knowledge acquisition from black-box large language models (LLMs) offers a practical approach to adapting smaller student models. However, many existing methods rely on predefined queries or student feedback to guide acquisition, leaving autonomous expansion of knowledge targets an important challenge. We propose MapSteal, a student-independent framework for structured recursive knowledge acquisition. Starting from a small set of initial roots, MapSteal represents acquisition targets using structured states and recursively expands them through teacher-proposed directions. Question realization, proposal admission, and deduplication constrain the acquisition process, while root-aware scheduling organizes exploration under a fixed QA budget. The resulting question-answer pairs are used to adapt student models without requiring student feedback during acquisition. Experiments with Qwen3.5 students at 2B, 4B, and 9B scales show competitive downstream performance across six medical and cybersecurity benchmarks. On the 4B medical evaluation, Full MapSteal improves average accuracy by 1.17 percentage points over a simplified recursive acquisition variant. Cross-domain evaluations show that gains depend on the domain and evaluation panel. These results demonstrate the feasibility of structured, student-independent recursive acquisition while highlighting the distinction between generating acquisition targets and obtaining useful training supervision. Our code is available at https://github.com/LabRAI/Mapsteal.

1 Introduction

Large language models (LLMs) provide a valuable source of supervision for adapting smaller models to specialized domains and tasks. When a strong teacher is accessible only through a black-box API, a student can collect teacher-generated responses and use them for training without accessing the teacher's parameters or original training data. This paradigm has been extensively studied in model extraction and knowledge distillation, from functionality stealing in classifiers (Orekondy et al., 2018; Krishna et al., 2020) to capability extraction from modern language models (Birch et al., 2023; Liang et al., 2024; Ye et al., 2025; Li et al., 2026a). However, acquiring supervision from a black-box teacher can be expensive, and the space of possible queries is too large to explore exhaustively. Under a limited query budget, the central challenge is therefore to acquire knowledge that improves downstream student performance efficiently.

Prior work addresses this challenge through several complementary approaches. Query-efficient extraction methods select informative examples based on uncertainty, diversity, or disagreement (Pal et al., 2020; Peng et al., 2023; Baykal et al., 2023). Data-free approaches synthesize queries to expose student–teacher discrepancies (Kariyappa et al., 2022; Truong et al., 2021; Zhang et al., 2023). Student-aware methods further adapt generated supervision to the learner's observed weaknesses (Liu et al., 2024), while other approaches improve how acquired responses are used for training (Liang et al., 2024; Ye et al., 2025; Chen et al., 2026). Although these methods improve query selection, generation, and student adaptation, they raise a complementary question: what knowledge should become queryable next as acquisition proceeds? Selecting informative queries is insufficient when potentially useful knowledge targets are not represented in the current candidate space.

Constructing such targets introduces additional challenges. First, an evolving acquisition process must represent not only individual questions but also their knowledge objects, contextual conditions, and relationships to previously acquired information. Without an explicit acquisition state, recursive question generation can be difficult to organize. Second, deriving acquisition targets directly from

∗^{*}Corresponding author.

Student failures can be unreliable. An incorrect prediction may reflect question-specific difficulty rather than a transferable knowledge deficit. In our preliminary Medicine diagnostics, 129 of 179 initially incorrect examples were answered correctly after independent reformulation (Appendix F). This observation motivates an alternative that does not require explicit Student failure attribution.

To address these challenges, we propose MapSteal, a structured framework for recursive knowledge acquisition from black-box LLMs. MapSteal represents each acquisition target using five components: Object, Facet, Condition, TargetSpec, and Decision (O/F/C/T/D). Starting from a small set of domain roots, the framework maintains an evolving knowledge map of answered and pending acquisition states. Each executed query allows the teacher to provide both an answer and candidate child targets. Typed expansion operators modify the structured states, while admission rules filter invalid or redundant proposals. A root-level fair scheduler allocates acquisition opportunities across the growing frontier under a fixed query budget. The resulting question-answer pairs are collected to adapt the student after acquisition. Unlike student-feedback-driven approaches, MapSteal does not require online student training or explicit diagnosis of student weaknesses during acquisition.

We evaluate MapSteal across multiple student scales and knowledge domains. The results show that structured recursive acquisition provides useful downstream supervision under limited QA budgets. Controlled ablations on Medicine show that the full structured formulation improves the three-benchmark average by 1.17 percentage points over a simplified Object–Facet variant, while removing condition-based expansion reduces performance by 1.05 points. Additional analyses examine sensitivity to initial acquisition roots and characterize the trade-off between recursive depth, semantic novelty, and local coherence.

Our contributions are threefold:

• Explicit acquisition-state formulation. We formulate budget-constrained knowledge acquisition as the construction and execution of an evolving space of structured knowledge targets, distinguishing query-space expansion from selection within the available frontier.

• Structured recursive acquisition. We introduce MapSteal, which combines O/F/C/T/D acquisition states, teacher-guided typed expansion, proposal admission, and root-level fair scheduling to support traceable recursive knowledge acquisition without online student failure attribution.

• Empirical evaluation and analysis. We evaluate the framework across student scales and domains, investigate its structured components through controlled ablations, and characterize the effects of acquisition roots, query budgets, and recursive exploration behavior.

References (49)