Abstract
Standard deep learning paradigms rely on multiple passes over static datasets, which is often impractical for real-world streaming applications. This paper introduces the One Pass ImageNet (OPIN) challenge, where models must learn from the 1.28 million image dataset in a single sequential pass with constrained memory. We present Error-Prioritized Replay (EPR), a strategy that prioritizes "surprising" examples for the replay buffer. Our results show that EPR can achieve 65.0% top-1 accuracy on ImageNet while utilizing only 10% of the storage and computational resources required by traditional 90-epoch training.
Introduction
The prevailing "data-hungry" approach to computer vision involves training models like ResNet-50 for 90 epochs, effectively seeing every image 90 times. However, in many practical scenarios—such as processing sensor data or adhering to privacy regulations—data arrives as a continuous stream and cannot be stored indefinitely. The One Pass ImageNet (OPIN) problem addresses this by requiring models to learn from a single pass of the data stream while maintaining a limited "scratchpad" memory.
Methodology
To tackle OPIN, we move beyond naive one-pass training by incorporating techniques from continual learning. The core of our approach is Error-Prioritized Replay (EPR).
- Efficient Storage: To maximize the utility of the memory buffer, images are stored as JPEG-encoded bytes rather than raw tensors, increasing the number of stored examples by approximately 3x within the same memory footprint.
- Sampling Strategy: We employ reservoir sampling with a recency bias (controlled by a factor $\beta$) to ensure the buffer reflects the evolving data stream while slightly favoring recent examples.
- Error-Prioritized Replay (EPR): Instead of uniform sampling, we prioritize images with high predictive error (loss). These "difficult" examples are more likely to be replayed, maximizing the learning signal from the limited buffer.
- Importance Weighting: To prevent overfitting to outliers and correct the distribution shift caused by prioritization, we apply importance weights during training to ensure the model remains aligned with the true data distribution.
Results and Discussion
The performance gap between standard multi-epoch training and naive one-pass training is stark. While a 90-epoch ResNet-50 reaches 76.9% accuracy, a naive one-pass model achieves only 30.6%, highlighting the heavy reliance of modern models on repetition.
As shown in the table above, with just 10% of the storage and compute budget, the EPR method reaches 65.0% accuracy, recovering more than half of the performance gap between naive training and the gold-standard 90-epoch regime.
Analysis of Efficiency
A key finding is the "power of 1%": even a tiny buffer storing 1% of the dataset provides a massive boost over the naive baseline. Furthermore, we analyzed the trade-off between "Effective Epochs" (the total number of backpropagation steps) and storage capacity.
The data indicates that increasing the computational budget (effective epochs) consistently improves performance, even when storage is extremely limited. For instance, at 10% storage, increasing effective epochs from 2 to 9 improves accuracy from 45.7% to 65.0%. This suggests that replaying "hard" examples can effectively simulate the benefits of multi-epoch training with a fraction of the actual data access.
Conclusion and Future Work
The OPIN challenge highlights the inefficiency of standard training paradigms. By using Error-Prioritized Replay, we demonstrate that high-quality models can be trained with a fraction of the usual data access and storage.
Future work should explore the impact of non-i.i.d. data streams, where data ordering is not uniform, and the performance of alternative architectures like Vision Transformers (ViTs) in this constrained setting. Additionally, more sophisticated priority functions beyond simple loss could further close the gap with multi-epoch training.
Summary updated