Mind the Gap: Bridging Prior Shift in Realistic Few-Shot Crop-Type Classification
Joana Reuss, Ekaterina Gikalo, Marco Körner
TL;DR
This work tackles prior-shift in realistic few-shot crop-type classification by introducing Dirichlet Prior Augmentation (DirPA/DiPA), which proactively simulates unknown target priors during training through Dirichlet-distributed pseudo-priors and logit adjustment. The method acts as a dynamic feature regularizer, stabilizing training and improving generalization, particularly in low-shot regimes. Evaluated on Estonia/EuroCropsML time-series Sentinel-2 data with a Transformer backbone, DirPA yields higher accuracy and Cohen's kappa across most few-shot scenarios, while remaining effective as the data scale grows. The approach is model-agnostic and can be extended beyond crop-type classification to any few-shot task afflicted by training/test prior distribution mismatch.
Abstract
Real-world agricultural distributions often suffer from severe class imbalance, typically following a long-tailed distribution. Labeled datasets for crop-type classification are inherently scarce and remain costly to obtain. When working with such limited data, training sets are frequently constructed to be artificially balanced -- in particular in the case of few-shot learning -- failing to reflect real-world conditions. This mismatch induces a shift between training and test label distributions, degrading real-world generalization. To address this, we propose Dirichlet Prior Augmentation (DirPA), a novel method that simulates an unknown label distribution skew of the target domain proactively during model training. Specifically, we model the real-world distribution as Dirichlet-distributed random variables, effectively performing a prior augmentation during few-shot learning. Our experiments show that DirPA successfully shifts the decision boundary and stabilizes the training process by acting as a dynamic feature regularizer.
