MOKD: Cross-domain Finetuning for Few-shot Classification via Maximizing Optimized Kernel Dependence

Hongduan Tian, Feng Liu, Tongliang Liu, Bo Du, Yiu-ming Cheung +1 more
2/12/2026

No official code found. Best implementation: tmlr-group/MOKD (5 stars, MIT, last commit 2024-10-07).

Abstract

In cross-domain few-shot classification, \emph{nearest centroid classifier} (NCC) aims to learn representations to construct a metric space where few-shot classification can be performed by measuring the similarities between samples and the prototype of each class. An intuition behind NCC is that each sample is pulled closer to the class centroid it belongs to while pushed away from those of other classes. However, in this paper, we find that there exist high similarities between NCC-learned representations of two samples from different classes. In order to address this problem, we propose a bi-level optimization framework, \emph{maximizing optimized kernel dependence} (MOKD) to learn a set of class-specific representations that match the cluster structures indicated by labeled data of the given task. Specifically, MOKD first optimizes the kernel adopted in \emph{Hilbert-Schmidt independence criterion} (HSIC) to obtain the optimized kernel HSIC (opt-HSIC) that can capture the dependence more precisely. Then, an optimization problem regarding the opt-HSIC is addressed to simultaneously maximize the dependence between representations and labels and minimize the dependence among all samples. Extensive experiments on Meta-Dataset demonstrate that MOKD can not only achieve better generalization performance on unseen domains in most cases but also learn better data representation clusters. The project repository of MOKD is available at: \href{https://github.com/tmlr-group/MOKD}{https://github.com/tmlr-group/MOKD}.

View on arXivView PDF

Code Implementations(1)

tmlr-group/MOKDCommunity100%
MIT

[ICML 2024] "MOKD: Cross-domain Finetuning via Maximizing Optimized Kernel Dependence"

50Shell, PythonMay 23, 20242 years agoMIT

Similar Papers

Cite this paper

@article{tian2026mokd,
  title  = {MOKD: Cross-domain Finetuning for Few-shot Classification via Maximizing Optimized Kernel Dependence},
  author = {Hongduan Tian and Feng Liu and Tongliang Liu and Bo Du and Yiu-ming Cheung and Bo Han},
  year   = {2026},
  eprint = {2405.18786},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.18786},
  journal = {ICML 2024 2024}
}

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/2405.18786.svg)](https://codeofpaper.com/paper/2405.18786)

Discussion