New AI Method Adapts to Dynamic Data Shifts and Imbalance

Shaoyang Huang, Yashi Zhu, Yichen Yu, Lei Zhang, Zhang Yi, Tao He· July 1, 2026 View original

▶ The 2-minute explainer

Key takeaways

  • Real-world AI deployment faces both domain shifts and class imbalance.
  • BP-TTA combines balanced sampling and prototype guidance for adaptation.
  • It mitigates bias towards dominant classes and stabilizes online updates.
  • BP-TTA consistently outperforms other TTA methods in dynamic settings.

Who benefits

Autonomous VehiclesManufacturingHealthcareFinanceSecurity

Summary

Researchers introduce BP-TTA, a novel method for Test-Time Adaptation (TTA) that addresses both continual domain shifts and class imbalance in dynamic data streams. It uses batch-balanced sampling and prototype-guided adaptation to improve model stability and reliability.

Machine learning models often struggle when deployed in real-world environments where data distributions continuously shift, a problem known as domain shift. Test-Time Adaptation (TTA) aims to enable models to adapt online to unlabeled test data. While recent TTA methods have begun to tackle continual domain shifts, they frequently overlook another critical real-world challenge: class imbalance in dynamic data streams.This research introduces a new method called Balanced and Prototype-Guided Test-Time Adaptation (BP-TTA). BP-TTA is designed to simultaneously handle both continual domain shifts and class imbalance. It achieves this through two main mechanisms. First, it constructs balanced adaptation batches by combining current samples with high-confidence historical instances, which helps to mitigate bias towards dominant classes and stabilize online updates.Second, BP-TTA maintains and evolves class prototypes during inference. It then uses the similarity to these prototypes as a constraint during model adaptation. This prototype-guided approach enhances the reliability of pseudo-labels and further improves the stability of online updates, even under persistent domain shifts. Extensive experiments confirm that BP-TTA consistently outperforms existing state-of-the-art TTA methods in dynamic test-time streaming settings.

Why it matters

For professionals deploying AI models in real-world, dynamic environments (e.g., autonomous systems, real-time analytics), BP-TTA offers a significant advancement in maintaining model performance and reliability despite evolving data distributions and class imbalances.

How to implement this in your domain

  1. 1Evaluate existing deployed AI models for performance degradation due to dynamic domain shifts and class imbalance.
  2. 2Investigate integrating BP-TTA or similar adaptive techniques into your model deployment pipeline for online adaptation.
  3. 3Develop mechanisms to maintain and update class prototypes in real-time for deployed models.
  4. 4Implement batch-balanced sampling strategies for online model updates to counteract class imbalance.
  5. 5Benchmark BP-TTA against current TTA methods using your specific dynamic datasets.

Original post by Shaoyang Huang, Yashi Zhu, Yichen Yu, Lei Zhang, Zhang Yi, Tao He

"arXiv:2606.31420v1 Announce Type: new Abstract: Test-Time Adaptation (TTA) enables models trained on a source domain to adapt online to unlabeled test data under distribution shifts. While recent TTA methods have moved beyond static settings and begun to consider continual domain…"

View on X

Originally posted by Shaoyang Huang, Yashi Zhu, Yichen Yu, Lei Zhang, Zhang Yi, Tao He on X · view source

Want to go deeper?

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

Explore courses