A*-Inspired Batch Selection Accelerates CNN Training, Outperforms Deeper Models

Anxhelo Shehu, Enes Stastoli, Arben Cela· July 20, 2026 View original

Summary

A novel A*-Inspired Batch Selection (A*-BS) strategy significantly accelerates Convolutional Neural Network (CNN) training by intelligently scheduling mini-batches based on difficulty and diversity. This lightweight, model-agnostic method allows simpler architectures to achieve higher accuracy and faster training times than much deeper ResNet baselines on medical image classification tasks.

Traditional Convolutional Neural Network (CNN) training often relies on randomly shuffled mini-batches, which can lead to slower convergence and a diminishing learning signal as many samples quickly become "easy." This research introduces A*-Inspired Batch Selection (A*-BS), a lightweight and model-agnostic strategy that reframes mini-batch scheduling as a heuristic search problem. Each batch is assigned an A*-like score, combining a loss-based difficulty measure with a reuse penalty, ensuring both informative gradient updates and batch diversity throughout the training process. A*-BS integrates seamlessly into existing training pipelines without requiring modifications to network architectures or optimization algorithms. The method was evaluated on the MedMNIST-v2 benchmark's twelve 2D classification tasks using a relatively simple CNN architecture. Remarkably, this lightweight model, when combined with A*-BS, achieved higher accuracy and AUC than both ResNet-18 and ResNet-50 baselines on half of the tasks, with relative gains up to 15%. Ablation studies confirmed A*-BS's superiority over random shuffling across all tasks. Furthermore, wall-clock measurements showed substantial speed improvements, indicating that intelligent batch ordering can effectively compensate for reduced architectural complexity, offering a computationally efficient alternative to deeper models.

Why it matters

Professionals can achieve faster, more efficient CNN training and potentially use simpler models for complex tasks, leading to reduced computational costs and quicker iteration cycles in AI development.

How to implement this in your domain

  1. 1Analyze current CNN training pipelines to identify bottlenecks related to convergence speed or computational resources.
  2. 2Investigate the A*-Inspired Batch Selection (A*-BS) algorithm and its implementation details.
  3. 3Integrate A*-BS into an existing CNN training framework as a drop-in replacement for random batch shuffling.
  4. 4Benchmark the performance (accuracy, AUC, training time) of models trained with A*-BS against those using traditional random shuffling.
  5. 5Explore if simpler, less resource-intensive CNN architectures can achieve competitive results when paired with A*-BS.

Who benefits

HealthcareManufacturingRetailAutomotiveImage Processing

Key takeaways

  • Random batch shuffling can lead to inefficient CNN training.
  • A*-Inspired Batch Selection intelligently orders batches for faster convergence.
  • This method allows simpler CNNs to outperform deeper architectures.
  • It significantly reduces training time and computational costs.

Original post by Anxhelo Shehu, Enes Stastoli, Arben Cela

"arXiv:2607.15745v1 Announce Type: new Abstract: Common practice when training Convolutional Neural Networks (CNNs) is to use randomly shuffled mini-batches. This creates two limitations: slower convergence, and a diminishing learning signal, since many samples are quickly classif…"

View on X

Originally posted by Anxhelo Shehu, Enes Stastoli, Arben Cela on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses