DirPA: Addressing Prior Shift in Imbalanced Few-shot Crop-type Classification
Organizations: Technical University of Munich (TUM), TUM School of Engineering and Design, Department of Aerospace and Geodesy, Chair of Remote Sensing Technology, Munich, 80333, Germany · Technical University of Munich (TUM), Munich Data Science Institute (MDSI), Garching, 85748, Germany · ELLIS Unit Jena, University of Jena, Jena, Germany, Jena, 07743, Germany
Abstract
Real-world agricultural monitoring is often hampered by severe class imbalance and high label acquisition costs, resulting in significant data scarcity. In few-shot learning (FSL) -- a framework specifically designed for data-scarce settings -- , training sets are often artificially balanced. However, this creates a disconnect from the long-tailed distributions observed in nature, leading to a distribution shift that undermines the model's ability to generalize to real-world agricultural tasks. We previously introduced Dirichlet Prior Augmentation (DirPA; Reuss et al., 2026a) to proactively mitigate the effects of such label distribution skews during model training. In this work, we extend the original study's geographical scope. Specifically, we evaluate this extended approach across multiple countries in the European Union (EU), moving beyond localized experiments to test the method's resilience across diverse agricultural environments. Our results demonstrate the effectiveness of DirPA across different geographical regions. We show that DirPA not only improves system robustness and stabilizes training under extreme long-tailed distributions, regardless of the target region, but also substantially improves individual class-specific performance by proactively simulating priors.
Figures & tables
| Country | # Crop classes | # Parcels |
| Austria | ||
| Belgium | ||
| Flanders | ||
| Wallonia | ||
| Estonia | ||
| Germany |
| Country | # Crop classes | |||
| Train (validation test) | Validation | Test | Validation test | |
| Belgium | ||||
| Estonia | ||||
| Latvia | ||||
| Lithuania | ||||
| Portugal | ||||
| Country | Gini coefficient |
| Belgium | |
| Estonia | |
| Latvia | |
| Lithuania | |
| Portugal | |
| Slovakia |
| Country | -shot training set | ||||
| Belgium | |||||
| Estonia | |||||
| Latvia | |||||
| Lithuania | |||||
| Portugal | |||||
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Node(s) | GPU | VRAM | CPU | vCPUs | Architecture |
| 1–3 | NVIDIA RTX A6000 | GB | Intel Xeon | Ampere | |
| 4 | NVIDIA A100-SXM4 | GB | AMD EPYC | Ampere |
| hyperparameter | value / value range |
| training/tuning epochs | |
| tuning trials per setup | |
| tuning warmup steps (batches) | |
| early stopping patience (epochs) | |
| batch size | |
| learning rate | \left[{10}^{-4}{10}^{-2}\right] |
| hyperparameter | value / value range |
| training/tuning epochs | |
| tuning trials per setup † | |
| tuning warmup steps (batches) | |
| early stopping patience (epochs) | |
| batch size | |
| head learning rate | \left[{10}^{-6}{10}^{-2}\right] |
| hyperparameter | value / value range |
| DirPAconcentration | |
| DirPAscaling factor |
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
| algorithm/loss | benchmark task ( -shot) | ||||
| 1 | 5 | 10 | 20 | 100 | |
| CE | |||||
| CEDirPA | |||||
| FL | |||||
| FLDirPA | |||||
Class-Imbalanced Learning
Class-imbalanced learning develops classifiers that recognize rare classes without sacrificing performance on common ones.
See all 256 papers