arXiv:2609.35449cs.CVSep 2026

Manuscript Offprint

arXiv:2609.35449

From internal representations to model improvement through prediction errors

Yushi Nakaya, Kenichi Higuchi, Shuichi Ishida

Abstract

With limited annotation budgets, choosing which images to label determines how much a model improves. Data-selection methods that use features from a separately trained model, or scene descriptions written by vision-language models, have been successful, but those signals do not directly capture changes in the model being improved. The target model's own internal features reflect what it has learned so far and change with retraining, making them a natural cue for choosing the next training data. However, feature rarity alone does not reveal the errors that matter for performance. Here we link internal features to prediction errors and their expected impact on performance and select images for labeling and retraining without using labels for candidate images. We evaluated the method with an object detector on two datasets and two pairs of random seeds. Adding internal features improved the identification of prediction errors in 15 of 16 conditions. When performance was averaged over successive labeling rounds, the method outperformed selection based only on feature rarity in all four evaluation settings and ranked among the top two of six methods. With other conditions held fixed, performance after retraining was again higher than with rarity-based selection, even though the latter collected more errors. With longer retraining, the proposed method ranked first among six methods. These results suggest that linking a model's internal features to its errors and their effects on performance may help select training images that improve performance, thereby allowing the model's current state to guide which images are labeled next.

Keywords: Active learning, Image selection, Model errors, Object detection, Annotation efficiency

Introduction

The performance of supervised machine learning depends on the model size, the data selected for labeling, label accuracy, and the stage at which the data are introduced during training. In practice, experts have limited time and resources for labeling and verification, and data quality problems can persist from training to deployment [1]. Active label cleaning selects records for review according to their likelihood of containing errors and the effort required to verify them, rather than reviewing every label, and can improve the data quality under a fixed budget [2]. The combination of active and self-supervised learning can also improve performance while reducing the number of labels required, thereby increasing annotation efficiency [3]. Data-centric AI treats data collection, selection, labeling, and quality control as iterative processes guided by downstream model performance [4, 5]. For image-based models, this raises the question of which images should be selected for further labeling or inclusion in training, and how the current state of the model should inform that choice.

However, selecting images that a model has difficulty processing does not necessarily improve performance. High-loss images may include useful examples from which the model has not yet learned. However, they may also include duplicates, noisy images or labels, and examples from which the current model cannot benefit under the existing training procedure. Studies that distinguish learnability from the ability to generalize have found that substantial training effort can be spent on unnecessary or unsuitable data [6]. The value of an image also depends on model maturity: typical examples may benefit an immature model, whereas atypical examples may become more useful later in training [7]. Therefore, the value of additional images should be assessed over a learning curve rather than at a single label budget. This distinction suggests two separate tasks: identifying images on which the current model is likely to err and determining whether selected images improve the model after retraining.

Active learning identifies unlabeled data that are expected to benefit a model and selects them for labeling [8, 9]. We use the term selection method to refer to the rule that determines which images should be labeled next. In deep learning, selection methods include predictive uncertainty [10], core-set selection, which aims to cover the image feature space [11], and BADGE, which combines output uncertainty with diversity in gradient representations [12]. For object detection, selection methods have used classification and localization distributions [13], entropy and diversity [14], consistency under image transformations [15], and internal features combined with uncertainty [16]. The performance of deep active learning can depend on random seeds for image selection and model training, the initial labeled sets, annotation budgets, retraining procedures, and evaluation protocols. One method may outperform random selection under one set of conditions but not another [17]. Therefore, evidence from a single pair of random seeds or a single label budget may be insufficient to establish an advantage over random sampling. We used two pairs of image-selection and model-training seeds and compared the methods over complete learning curves.

Selection methods differ in both the features they use and their relationship to the model being trained. One successful line of work selects data using representations learned separately from the target model. In the fully supervised setting of those studies, TypiClust selects typical examples from diverse clusters in a self-supervised feature space, and ProbCover selects examples to cover the distribution in such a space [7, 18]. More recently, vision-language models have been used to describe relevant detection scenarios in language and retrieve matching images for labeling, as in the AIDE data engine for autonomous driving [19]. These methods can characterize the data without relying on a target model trained on very few labels, but they rely on a separate model rather than on the behavior of the detector being trained. Neither a separately learned feature space nor a language description directly tracks changes in the target model's parameters or its remaining errors as training proceeds. An image that is distinctive in that space need not provide information that would benefit the target model at its current stage. Annotation effort may therefore be directed toward images that are unusual in the external feature space but that the target detector already handles correctly. Conversely, errors in images that appear ordinary in that space may be overlooked. Diversity-based selection can thus choose images that provide the model with little new information [11, 12]. In our comparison, this line of work is represented by k-center selection on features from a separately pretrained ResNet-50. We chose it because it provides a simple implementation of the shared principle of covering an external feature space, has no component tied to the target detector, and can be applied identically at every stage and to every detector.

The target model’s own internal features offer a different source of information: they are computed using its current parameters and change as the model is retrained. Existing approaches already use this connection. Core-set selection measures distances between representations produced by the target network, and BADGE combines the network’s internal representations with its current predictions to construct gradient embeddings [11, 12]. This dependence on the target model motivates our use of internal features: they reflect how the model currently processes each image and may therefore help reveal its specific weaknesses. For an object detector, the features can be obtained during the same inference pass that produces the predicted boxes, without a separate feature extractor. The question is how to turn this information about the current model into a useful criterion for selecting its next training images.

Using internal representations alone does not guarantee better performance. Selecting for feature-space coverage or gradient diversity, as in core-set selection and BADGE [11, 12], does not explicitly distinguish error types and weight them by their effects on the evaluation metric. In particular, feature rarity does not directly indicate the probability of a classification or localization error, its effect on performance, or whether retraining can correct it. We hypothesize that linking internal features to the target model's prediction errors and their expected impact on performance can make those features more useful for image selection. This principle may also be applicable to other learning tasks in which error types and their effects on an evaluation metric can be defined. We tested this hypothesis for object detection.

For object detection, the target detector predicts bounding boxes and class labels for objects in each image. Errors can arise from incorrect class labels, inaccurate box locations, duplicate detections, predictions on background regions, or missed objects. These error types can affect evaluation metrics differently. The Toolbox for Identifying Detection Errors (TIDE) attributes the losses in detection performance to these error types [20]. However, classifying errors based on ground truth differs from predicting errors in unlabeled images before selection. Detector confidence or class probabilities are commonly used as indicators of prediction uncertainty, but neural network probabilities are not necessarily calibrated [21]. In object detection, calibration error can also vary with the position and size of the predicted bounding box [22]. Thus, low confidence alone does not indicate that a prediction is erroneous, that the error is worth correcting, or that the corresponding image would be useful for further training. Certain post-processing methods use detector outputs alone to estimate whether a predicted box is correct [23]. However, they do not use internal representations and reduce errors to a distinction between true and false positives. When used independently, internal features and output uncertainty do not identify errors in an image or indicate how those errors relate to performance after retraining.

In this study, we therefore use the errors made by the target model and their expected effects on performance to guide image selection. We estimated the type and probability of each prediction error from the target model's internal representations and outputs without using ground-truth annotations for the candidate images and combined these estimates with the expected effect of each error on the current evaluation metric. We did not attempt to predict whether training with an image would correct the errors associated with it. Instead, we changed only the selection method, retrained the same model using the same procedure, and evaluated the selection cue using performance over the resulting learning curve.

In the proposed method, the target detector trained on the current labeled set is fixed and runs on all unlabeled candidates. The error type and error probability of each predicted box are estimated from the internal features, final outputs, and position and size of the box. Each error-type probability is weighted by the change in average precision (AP) that would follow if the errors of that type were replaced by correct predictions, and the weighted values are then summed within the image. The sufficiency of the evidence, the stability of the estimate under resampling of the predicted boxes, and an estimate of relative annotation effort computed from the number and crowding of predicted boxes are then considered together to determine the image priority (Fig. 1). The selection starts from a random draw obtained using the same image-selection seed. Candidates are matched to random images with similar predicted classes, object counts, object sizes, and internal features, and a random image is replaced only when the candidate's priority is clearly judged to be higher. When the evidence is insufficient for determining priority, the random draw is retained. Annotations are revealed only after selection, and selection and retraining are repeated as the labeled fraction of candidate images increases from 5% to 25%.

a^{a} Three ways to choose unlabeled images

Figure

b Per-prediction error estimation

Figure

No ground truth of the candidate images is used

c^{c} Evidence-gated replacement

Figure

Otherwise the random draw is kept unchanged

d Active-learning loop (5% → 25% labeled)

Figure

Fig. 1 | Selecting data by linking a model's internal representation to its prediction errors. a, Three ways to choose unlabeled images. b, Six outcome probabilities per box are estimated from internal features, outputs, and geometry. The image priority is the evidence sufficiency times the lower stability bound of the error-weighted sum, obtained by resampling the predicted boxes, divided by the estimated annotation effort. Ground-truth annotations for the candidate images are withheld. c, A randomly drawn image is replaced by a matched candidate only when the candidate's lower bound exceeds the random image's upper bound by a fixed margin. d, Active-learning loop from 5% to 25% labeled images.

The primary analysis used YOLOv8n with COCO 2017 and BDD100K [24–26]. COCO 2017 contains everyday objects, whereas BDD100K contains driving scenes. Together, they allowed us to test the selection principle across two distinct image domains. For each dataset, we used image-selection seed 11 with model-training seed 1, and image-selection seed 18 with model-training seed 0. The second pair was used to test whether the direction of the results is reproduced when both seeds change. We compared six methods: the proposed method, random sampling, k-center selection using features from a separate ResNet-50, BADGE adapted to object detection (hereafter BADGE), which uses internal representations and output uncertainty, output-entropy selection, and rarity-only selection based on internal representations. Within each dataset and seed condition, all methods started with the same labeled images and the same model trained on the initial 5% of labeled images (hereafter, the 5% model) and then increased the labeled fraction to 10, 15, 20, and 25%. These fractions refer to detector-training images. They exclude a separate labeled set of 1,500 images that the proposed method uses to fit, tune, and evaluate its error estimator (Methods). Our primary metric was the normalized area under the five-point learning curve. We connected the mAP@[0.50:0.95] (mean average precision over box-overlap thresholds from 0.50 to 0.95, hereafter mAP) values at each point with straight line segments, integrated the resulting curve using the trapezoidal rule, and divided the area by the 0.20 width of the label range. A matched comparison from the same 10% model to the 15% model isolated the difference between linking internal representations to prediction errors and selecting images based on representation rarity. We report both the number of true errors in the selected images and the mAP after retraining. Thus, the comparison tests whether collecting more errors coincides with improved performance. A supplementary evaluation used Faster R-CNN with image-selection seed 11 and model-training seed 1 to compare the proposed method, BADGE, and rarity-only selection using the corresponding 5% model for each dataset. We also tested the sensitivity to the training time in a BDD100K experiment that trained every stage for 40 epochs from the same 5% model.

We show that internal features identified the detector’s erroneous predictions more accurately than an estimator without them in 15 of 16 conditions. We also demonstrate that error-linked selection outperforms rarity-only selection in a matched comparison, although the latter collected more true errors. The proposed method ranked among the top two of the six methods in all four main conditions and first of six when every stage was retrained for 40 epochs. Under the conditions examined, the errors of the current model and their effects on the evaluation metric were more useful cues for choosing training images than the rarity of the internal representation.

References (22)