cs.LGSep 26, 2026

Learning When to Recur: Token-Adaptive Recursion for Imbalanced Ophthalmic Domain Incremental Learning

Authors: Nanxi Yu, Kang Li, Ye Du, Xiaowei Hu, Weihua Yang, Shujun Wang

Organizations: School of Mechanical and Electrical Engineering, University of Electronic Science and Technology of China, Sichuan, China · Department of Biomedical Engineering and Sports Technology, The Hong Kong Polytechnic University, Hong Kong SAR, China · School of Future Technology, South China University of Technology, Guangdong, China · Shenzhen Eye Hospital, Shenzhen Eye Medical Center, Southern Medical University, Guangdong, China

Abstract

Domain incremental learning is essential for adapting ophthalmic deep learning models to sequential clinical domains while preserving diagnostic expertise. Existing domain incremental learning methods predominantly address the domain shift induced by style variations. However, they often overlook the severe class imbalance inherent in real-world clinical scenarios, such as clinical referral systems. Institutions in these systems encounter drastic fluctuations in class priors, resulting in label distribution shift, a critical form of domain shift that triggers severe catastrophic forgetting. To address these challenges, we propose ToRe, a rehearsal-free and parameter-efficient framework that leverages frozen ophthalmic foundation models for robust incremental adaptation. ToRe employs a parameter isolation strategy to decouple domain-specific optimization paths, thereby helping mitigate catastrophic forgetting driven by both label distribution shift and style variations. Simultaneously, it introduces token-adaptive recursion that adaptively allocates additional computational depth across tokens, allowing simple tokens to exit the recursion loop early while subjecting complex tokens, such as those associated with lesions, to deeper recursive processing. This mechanism enhances the feature representations for minority classes, thereby supporting generalization throughout the domain incremental learning process. Extensive evaluations on nine heterogeneous datasets demonstrate that ToRe consistently outperforms state-of-the-art methods in overall performance across the three benchmarks, while maintaining near-zero forgetting. Together, these results support the applicability of ToRe to dynamic and imbalanced clinical environments. The code is available at https://github.com/Nancyolo/ToRe

Figures & tables

Explore similar work

CardsList
  1. HEDP: A Hybrid Energy-Distance Prompt-based Framework for Domain Incremental Learning

    May 7, 2026Yu Feng, Zhen Tian, Haoran Luo +8Prompt LearningDomain-Incremental Learning

  2. BPG: Balancing Plasticity and Generalization for Domain Incremental Learning

    Aug 11, 2026Qiang Wang, Songlin Dong, Shaokun Wang +5Domain-Incremental LearningIncremental Learning