Efficient Neural Network Model Selection for Few-Class Application Datasets

Bryan Bo Cao, Abhinav Sharma, Lawrence O'Gorman, Michael Coss, Shubham JainarXiv 2026

TL;DR

This paper introduces "few-class distinctiveness," the observation that neural network performance behaves differently when datasets have fewer than ten classes compared to standard large-scale benchmarks. The authors propose a lightweight difficulty metric that enables model selection 6 to 29× faster than traditional training-and-testing, allowing for the creation of "sub-models" that are up to 42% smaller than standard "nano" architectures without sacrificing accuracy.

What Problem Does This Paper Address?

Most neural network research is benchmarked on massive datasets like ImageNet (1,000 classes) or COCO (80 classes). However, many practical edge applications—such as a drone tracking a single target or a factory robot identifying three types of safety gear—operate in a "few-class" regime (typically <10 classes).

The authors argue that practitioners currently select models based on large-scale benchmark performance, assuming those results extrapolate linearly down to smaller tasks. This often leads to using models that are unnecessarily large and computationally expensive for simple tasks. The challenge is finding a way to quickly identify the most efficient model for a specific, small-scale task without the time-consuming process of training and testing dozens of candidates.

Methods

The researchers focused on data-side properties rather than just model architecture. Their core contribution is a quantitative measure of classification difficulty based on class similarity.

  1. Similarity Metrics: They define intra-class similarity (how similar images within the same class are) and inter-class similarity (how similar images from different classes are) using cosine similarity of feature embeddings.
  2. SimSS (Similarity-Based Silhouette Score): They propose a novel metric that combines these similarities to predict how difficult a dataset will be for a model.
  3. Sub-Models: Instead of stopping at the smallest published models (like YOLOv5-nano), the authors used standard compound scaling factors to scale down even further, creating a sequence of "sub-models" (SY1 to SY8) with reduced width and depth.
  4. Fast Selection: By calculating the difficulty metric once for a dataset, they can predict relative model performance across different class groupings without repeated training.

Datasets

The study utilized a wide array of standard datasets to validate their findings across different domains:

  • General Classification: CIFAR-10, CIFAR-100, ImageNet-1K, and ImageNet-200.
  • Specialized Classification: CalTech-101, CalTech-256, Food-101, CUB-200 (Birds), GTSRB43 (Traffic Signs), Indoor67, and Textures47.
  • Object Detection: COCO (Common Objects in Context).
  • New Benchmark: The authors introduced the "Few-Class Arena," a benchmark specifically designed for evaluating model selection and dataset difficulty in few-class scenarios.

Key Insights and Ideas

  • The "Few-Class" Regime is Unique: As the number of classes ($N_{CL}$) drops below 10, accuracy curves often flatten or behave non-linearly compared to the 10–1000 class range.
  • Intra-Class Similarity is King: Surprisingly, for few-class datasets, the tightness of a class cluster (intra-class similarity) is a much better predictor of accuracy than the distance between different classes (inter-class similarity). This is illustrated in the correlation studies where metrics emphasizing intra-class similarity showed the strongest relationship with actual model accuracy.
Figure 1: Accuracy results over a number of classes from 2 to 8 and for three models. Results for the CIFAR-100 dataset is on the left, and for ImageNet-200 on the right.
  • Massive Redundancy in "Nano" Models: For very simple tasks (1–3 classes), even "nano" models are overkill. The authors found that for a 1-class detection task, they could reduce computation by 72% (moving from YOLOv5-nano to their SY4 sub-model) while maintaining similar accuracy.
  • Data-Side Guidance: By focusing on the data's inherent difficulty, practitioners can skip the "brute force" approach of training every possible model, instead using the SimSS metric to narrow down candidates instantly.

Key Results

  • Speedup: The proposed difficulty metric allows for comparing models and datasets 6× to 29× faster than the conventional approach of training and testing.
  • Efficiency Gains: In a mobile robot task, the authors deployed a sub-model that was 42% smaller than YOLOv5-nano.
  • Predictive Power: The SimSS metric achieved high Pearson correlation coefficients ($r \geq 0.88$) with actual empirical accuracy, proving it to be a reliable proxy for dataset difficulty.
Figure 2: Spearman correlation values on the CIFAR-100 dataset for three models and for class sizes NCL = 2, 3, 4, 6, 8. On the horizontal axis, “D A 2” designates “Difficulty method A, 2 classes”; “D B 3” designates “Difficulty method B, 3 classes”; etc.

Limitations and Future Work

  • Class Count Boundary: The study primarily focused on the range of 2 to 10 classes. The authors note that few-class properties appear to converge with many-class properties as $N_{CL}$ increases, but they did not extensively test the transition point beyond 10.
  • Dataset Specificity: While tested on many datasets, the authors acknowledge that highly specialized datasets (like medical imaging or specific textures) might require different weightings of the similarity metrics.
  • Scale-Resolution: The paper identifies "scale-resolution" as a key data-side property but leaves its detailed mathematical analysis for future work.
  • Hardware Diversity: While tested on robots, drones, and IoT devices, the energy savings were sometimes masked by the high power consumption of locomotion (motors/propellers). Future work could look at stationary, battery-powered IoT sensors where the neural network's power draw is the primary concern.

Summary updated

BibTeX
@misc{cao2026efficient,
  author = {Bryan Bo Cao and Abhinav Sharma and Lawrence O'Gorman and Michael Coss and Shubham Jain},
  title = {{Efficient Neural Network Model Selection for Few-Class Application Datasets}},
  year = {2026},
  eprint = {2606.19712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.19712},
}
Figure