Task-Level Contrastiveness for Cross-Domain Few-Shot Learning

Kristi Topollai, Anna Choromanska
10/3/2025
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Few-shot classification and meta-learning methods typically struggle to generalize across diverse domains, as most approaches focus on a single dataset, failing to transfer knowledge across various seen and unseen domains. Existing solutions often suffer from low accuracy, high computational costs, and rely on restrictive assumptions. In this paper, we introduce the notion of task-level contrastiveness, a novel approach designed to address issues of existing methods. We start by introducing simple ways to define task augmentations, and thereafter define a task-level contrastive loss that encourages unsupervised clustering of task representations. Our method is lightweight and can be easily integrated within existing few-shot/meta-learning algorithms while providing significant benefits. Crucially, it leads to improved generalization and computational efficiency without requiring prior knowledge of task domains. We demonstrate the effectiveness of our approach through different experiments on the MetaDataset benchmark, where it achieves superior performance without additional complexity.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{topollai2025tasklevel,
  title  = {Task-Level Contrastiveness for Cross-Domain Few-Shot Learning},
  author = {Kristi Topollai and Anna Choromanska},
  year   = {2025},
  eprint = {2510.03509},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.03509v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.03509.svg)](https://codeofpaper.com/paper/2510.03509)

Discussion