Papers › Feature-based One-For-All: A Universal Framework for Heterogeneous Knowledge Distillation

Feature-based One-For-All: A Universal Framework for Heterogeneous Knowledge Distillation

15 Jan 2025arXiv:2501.08885archive 2025-07-28

Jhe-Hao Lin, Yi Yao, Chan-Feng Hsu, HongXia Xie, Hong-Han Shuai, Wen-Huang Cheng

Knowledge distillation (KD) involves transferring knowledge from a pre-trained heavy teacher model to a lighter student model, thereby reducing the inference cost while maintaining comparable effectiveness. Prior KD techniques typically assume homogeneity between the teacher and student models. However, as technology advances, a wide variety of architectures have emerged, ranging from initial Convolutional Neural Networks (CNNs) to Vision Transformers (ViTs), and Multi-Level Perceptrons (MLPs). Consequently, developing a universal KD framework compatible with any architecture has become an important research topic. In this paper, we introduce a feature-based one-for-all (FOFA) KD framework to enable feature distillation across diverse architecture. Our framework comprises two key components. First, we design prompt tuning blocks that incorporate student feedback, allowing teacher features to adapt to the student model's learning process. Second, we propose region-aware attention to mitigate the view mismatch problem between heterogeneous architecture. By leveraging these two modules, effective distillation of intermediate features can be achieved across heterogeneous architectures. Extensive experiments on CIFAR, ImageNet, and COCO demonstrate the superiority of the proposed method.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2501.08885")

Code

Syntology Ran 13 of 16 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 2 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: found in paper text by Syntology: 16 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jimmylin0979/PAT found in paper text by Syntology report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 13 ran; 1 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
2ran · fixture could not drive it
8ran
3unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jimmylin0979/PAT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BaseDistiller jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 7faaedcc21f0004d · report
CNN2CNNProjector jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 373d5549a4931491 · report
CNN2ViTProjector jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 58ec827bec449ba6 · report
RAProjector jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 7761c53ac0e3680a · report
RegionAttention jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 897882a5e8a88c61 · report
SEBlock jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 0546ce0adeb02bde · report
ViT2CNNProjector jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic Apache-2.0 (permissive) · d352000861a8fd36 · report
ViT2ViTProjector jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · metamorphic tier: deterministic Apache-2.0 (permissive) · fd196a0c189320de · report
get_positional_encoding jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · df1050a734942c85 · report
get_projector_module jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · fixture could not drive it Apache-2.0 (permissive) · f24a50ec4768698e · report
hcl_loss jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · f493ed098c0c2ecb · report
kd_loss jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 23388af4327e43c1 · report
register_distiller jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 0466efd8ed0a4c22 · report
PAT jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f4cf6aac98290b55 · report
PromptBlock jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e4459f636cf3355d · report
init_weights jimmylin0979/PAT/distillers/pat.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 93f26e689279411d · report

Tasks

AllKnowledge Distillation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections