arXiv:2610.25215cs.CLOct 2026

Manuscript Offprint

arXiv:2610.25215

Hidden Cartographer: Hidden State Guided Data Selection for Dual Budgeted Instruction Tuning

Zixuan Qin, Qi Qin, Erbo Li, Ting Wei, Yifan Sun, Zhaoxin Fan

Abstract

Given the high cost of expert annotation and limited fine-tuning resources, effective data selection from large unlabeled pools under strict budgets has become a crucial step in adapting LLMs to specialized domains. Existing label-dependent methods risk distorted selection when using pseudo-labels, while traditional active learning methods do not explicitly characterize instruction-tuning dynamics. To address these limitations, we propose Hidden Cartographer (HC), a two-stage framework that uses hidden states to guide annotation and exact training dynamics to select the final training subset. The first stage is Progressive Candidate Expansion, which utilizes the proxy to iteratively select top unlabeled candidates for expert annotation, merging them to recompute training dynamics and update the proxy until the annotation budget is exhausted; the second stage is Exact Cartography Pruning, which ranks these annotated candidates by their exact dynamics scores to isolate a compact subset under the final training budget. Experiments across the medical, legal, and financial domains demonstrate that HC achieves the highest average accuracy among all budgeted baselines, requiring annotation for only 20–30% of the original pool and fine-tuning on just 10–15%.

1 Introduction

Large language models perform well across a range of NLP tasks (Yu et al., 2026; Li et al., 2026). However, achieving optimal performance in vertical domains such as medicine, law, and finance often requires instruction tuning on domain data, particularly for smaller scale models (Ke et al., 2025; Slack and Al Moubayed, 2025; Li et al., 2024b). In practice, this process is subject to two budget constraints: domain data are abundant and unla-

Figure

Figure 1: Training-data value and selection distributions in the medical domain. All panels use the same Dataset Cartography space, with confidence on the x-axis and variability on the y-axis. Top left: Four regional subsets are constructed by sampling 15% of the full training pool from each region. Darker blue indicates better performance on medical benchmarks after fine-tuning on the corresponding subset. Top middle: The best-performing region among the four, identified as the region containing high-value samples. Other panels: Distributions of samples selected by HC, Random, SPICE, and Coreset at the same 15% selection ratio.

beled, and obtaining high-quality annotations requires costly expert knowledge; fine-tuning on all available data consumes substantial computational resources (Xia et al., 2025). Data selection provides an effective way to overcome these constraints: it can prioritize unlabeled samples to guide expert annotation and select the most valuable annotated samples for final fine-tuning. We therefore study how to construct an efficient training subset from a large unlabeled domain pool under joint constraints on annotation cost and computational resources.

Existing data selection methods typically rely on labels to compute losses and gradients or assess samples' influence on model utility (Xia et al., 2024; Deb et al., 2025; Lin et al., 2025; Chang et al., 2026; Li et al., 2024a; Yang et al., 2024). However, this paradigm requires annotating the entire unlabeled pool in advance, making it difficult to satisfy practical budget constraints. Al-

*Project leaders and Corresponding authors. Emails: sunyifan@ruc.edu.cn, zhaoxinf@buaa.edu.cn though pseudo-labeling allows these methods to be directly applied to unlabeled data acquisition, model-generated responses often contain domain-specific factual errors, which can introduce additional noise and distort the resulting selection signals. Meanwhile, though traditional active learning methods (Sener and Savarese, 2018; Ash et al., 2020, 2021; Kung et al., 2023) select unlabeled candidates using heuristic criteria such as diversity and uncertainty, these criteria characterize only properties of the data distribution and do not explicitly model candidates' dynamic learning behavior during instruction tuning. Consequently, the key challenge is to accurately estimate a selection signal closely linked to downstream model utility before labels are available.

To address this challenge, we adopt a training dynamics perspective to establish a selection signal that reflects the target model's learning behavior. Building on Data Cartography (Swayamdipta et al., 2020), we monitor token-length-normalized response probabilities across training checkpoints to derive sample confidence and variability for instruction tuning (detailed in Section 3). As illustrated in Figure 1, these metrics effectively isolate a high-utility data region that existing selection methods fail to target. While exact training dynamics provide an ideal selection criterion, computing them inherently requires ground-truth labels. To estimate this signal prior to annotation, we leverage prompt-only hidden representations extracted directly from the frozen target model. Prior research indicates that such hidden states intrinsically encode model-perceived difficulty (Zhu et al., 2025) and semantic uncertainty (Yin et al., 2026). We hypothesize that these representations can reliably predict the target model's training dynamics using only unlabeled inputs.

Based on this insight, we propose Hidden Cartographer (HC), a two-stage framework for data selection under both annotation and training constraints. The first stage, Progressive Candidate Expansion, addresses the annotation constraint. HC starts from a small expert-labeled seed set, extracting hidden-state features to train a proxy predicting confidence and variability. Due to limited initial labels, HC avoids a one-shot final data selection. Instead, it iteratively expands a candidate pool via active learning: the proxy scores unlabeled samples, experts annotate the top-K selections, and this newly labeled data refines the proxy for the next round. This process improves the recall of high-value samples within a limited annotation budget.

The second stage, Exact Cartography Pruning, addresses the training cost constraint. Once the candidate pool is annotated, HC computes the exact confidence and variability within this smaller pool and applies a scoring function. HC then selects the final subset for instruction tuning from the candidate pool. This design connects the two stages: hidden states are used to cheaply recover a high-quality candidate pool from the unlabeled data, and exact cartography is used to precisely prune this pool into a much smaller training set. In this way, HC avoids relying on noisy pseudo-labels for full-pool selection while also avoiding the cost of annotating and training on the entire dataset.

Our contributions are summarized as follows:

• We formulate domain LLM data selection as a dual-constrained problem, where both expert annotation and LLM training computation are limited. We further identify LLM hidden states as a label-free signal for estimating sample training dynamics without relying on noisy pseudo-labels or full-dataset annotation.

• We propose Hidden Cartographer, a two-stage framework with Progressive Candidate Expansion and Exact Cartography Pruning. The first stage uses a hidden-state proxy to recover high-value samples under limited annotation, while the second computes exact confidence-variability scores to select a training subset.

• Experiments across medicine, law, and finance show that HC outperforms random selection and strong data selection baselines under the same budget. HC reduces expert annotation cost by 70–80% by annotating only a candidate pool, and training cost by 85–90% by fine-tuning on only 10–15% of the data.