Geometric Subspace Learning for Domain Generalization

Bifis, Aristeidis, Psarakis, Emmanouil Z.

–arXiv.org Artificial Intelligence 

Models deployed outside their training distribution lose accuracy, and the remedies that recover it at test time multiply serving cost; a recent test-time augmentation method, for example, evaluates the network on 101 views of every input. We present a domain generalization regularizer whose cost is confined to training and that leaves the deployed model unchanged: a learned linear projection is trained to map within-class deviations into its null space while anchoring class centroids in its row space, compactifying the embedding space without collapsing class structure. Because the projection composes linearly with the classification head, the two fold into a single matrix after training, so the served network has exactly the parameters, FLOPs and latency of the baseline, while the training-time terms avoid SVD and add about 1.5% to a ResNet-50 training step regardless of the number of classes. Paired with the CORAL alignment loss, the regularizer outperforms all fourteen DomainBed baselines, including CORAL, on PACS and Office-Home, and exceeds the reported accuracy of CORAL with test-time augmentation at 1/101 of its inference compute. Applied to frozen DINOv3 embeddings, where the backbone is shared and only a linear probe is trained, it improves over an ERM probe on all four benchmarks under leave-one-domain-out model selection.