CanKD: Cross-Attention-based Non-local operation for Feature-based Knowledge Distillation

Shizhe Sun, Wataru Ohyama
11/26/2025
cs.CV

Official code: tori-hotaru/CanKD (4 stars, Apache-2.0, last commit 2026-03-01).

Abstract

We propose Cross-Attention-based Non-local Knowledge Distillation (CanKD), a novel feature-based knowledge distillation framework that leverages cross-attention mechanisms to enhance the knowledge transfer process. Unlike traditional self-attention-based distillation methods that align teacher and student feature maps independently, CanKD enables each pixel in the student feature map to dynamically consider all pixels in the teacher feature map. This non-local knowledge transfer more thoroughly captures pixel-wise relationships, improving feature representation learning. Our method introduces only an additional loss function to achieve superior performance compared with existing attention-guided distillation methods. Extensive experiments on object detection and image segmentation tasks demonstrate that CanKD outperforms state-of-the-art feature and hybrid distillation methods. These experimental results highlight CanKD's potential as a new paradigm for attention-guided distillation in computer vision tasks. Code is available at https://github.com/tori-hotaru/CanKD

View on arXivView PDF

Code Implementations(1)

tori-hotaru/CanKDOfficial100%
Apache-2.0

(WACV2026) The official code of "CanKD: Cross-Attention-based Non-local operation for Feature-based Knowledge Distillation"

40Shell, PythonNov 13, 20257 months agoApache-2.0

Cite this paper

@article{sun2025cankd,
  title  = {CanKD: Cross-Attention-based Non-local operation for Feature-based Knowledge Distillation},
  author = {Shizhe Sun and Wataru Ohyama},
  year   = {2025},
  eprint = {2511.21503},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.21503v1}
}

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

Discussion