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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 16 code samples harvested from 1 repository linked to this paper: 13 ran (of which 8 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 4 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 16 samples from 1 repository, 13 ran (9 with no instrument failure; 4 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

jimmylin0979/PAT found in paper text by SyntologySyntology: 16 samples, 13 ran (4 instrument-failed) · 3 unverified 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 (of which 8 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 4 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
2ran; the contract check could not run
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 4 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

jimmylin0979/PAT found in paper text by Syntology 16 samples, 13 ran (4 instrument-failed) · 3 unverified
BaseDistiller distillers/pat.py ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 7faaedcc21f0004d · report fixture: returned BaseDistiller · level recorded 2026-09-22
CNN2CNNProjector distillers/pat.py ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 373d5549a4931491 · report fixture: returned CNN2CNNProjector · level recorded 2026-09-22
CNN2ViTProjector distillers/pat.py ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 58ec827bec449ba6 · report fixture: returned CNN2ViTProjector · level recorded 2026-09-22
RAProjector distillers/pat.py ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 7761c53ac0e3680a · report fixture: returned RAProjector · level recorded 2026-09-22
RegionAttention distillers/pat.py ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 897882a5e8a88c61 · report fixture: returned RegionAttention · level recorded 2026-09-22
SEBlock in 14 papers distillers/pat.py ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 0546ce0adeb02bde · report fixture: returned SEBlock · level recorded 2026-09-22
ViT2CNNProjector distillers/pat.py ran · metamorphic tier: deterministic Apache-2.0 (permissive) · d352000861a8fd36 · report fixture: returned ViT2CNNProjector · level recorded 2026-09-22
ViT2ViTProjector distillers/pat.py ran · metamorphic tier: deterministic Apache-2.0 (permissive) · fd196a0c189320de · report fixture: returned ViT2ViTProjector · level recorded 2026-09-22
get_positional_encoding in 10 papers distillers/pat.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · df1050a734942c85 · report fixture: signature d_model:int/0/int, max_len:int/0/int · returned Tensor · level recorded 2026-09-22
get_projector_module distillers/pat.py ran; the contract check could not run (RAISES) · metamorphic tier: deterministic Apache-2.0 (permissive) · f24a50ec4768698e · report fixture: signature in_shapes:Size/1/int, out_shapes:Size/1/int, init_weight:NoneType/0/? · returned CNN2ViTProjector · level recorded 2026-09-22
hcl_loss distillers/pat.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · f493ed098c0c2ecb · report fixture: signature feat_s:Tensor/4/float, feat_t:Tensor/4/float · returned Tensor · level recorded 2026-09-22
kd_loss distillers/pat.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 23388af4327e43c1 · report fixture: signature logits_student:Tensor/2/float, logits_teacher:Tensor/2/float, temperature:float/0/float · returned Tensor · level recorded 2026-09-22
register_distiller distillers/pat.py ran · our draft was wrong Apache-2.0 (permissive) · 0466efd8ed0a4c22 · report fixture: signature fn:callable/0/? · returned function · level recorded 2026-09-22
PAT distillers/pat.py unverified Apache-2.0 (permissive) · f4cf6aac98290b55 · report
PromptBlock distillers/pat.py unverified Apache-2.0 (permissive) · e4459f636cf3355d · report
init_weights in 109 papers distillers/pat.py unverified Apache-2.0 (permissive) · 93f26e689279411d · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for Perspective-Aware Teaching (graph method: Perspective-Aware Teaching). 16 bricks; individually on a fixture: 13 ran (of which 8 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 4 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.

  1. PAT entry · level 0 · unverified · f4cf6aac98290b55
  2. BaseDistiller helper · level 1 · ran · 7faaedcc21f0004d
  3. PromptBlock model · level 0 · unverified · e4459f636cf3355d
  4. RegionAttention model · level 1 · ran · 897882a5e8a88c61
  5. get_projector_module helper · level 1 · ran; the contract check could not run (RAISES) · f24a50ec4768698e
  6. hcl_loss loss · level 1 · ran; the contract check could not run (RAISES) · f493ed098c0c2ecb
  7. kd_loss helper · level 1 · ran · our draft was wrong · 23388af4327e43c1
  8. register_distiller helper · level 1 · ran · our draft was wrong · 0466efd8ed0a4c22
  9. SEBlock model · level 1 · ran · 0546ce0adeb02bde
  10. RAProjector model · level 1 · ran · 7761c53ac0e3680a
  11. get_positional_encoding helper · level 1 · ran · honoured contract · df1050a734942c85
  12. CNN2CNNProjector model · level 1 · ran · 373d5549a4931491
  13. CNN2ViTProjector model · level 1 · ran · 58ec827bec449ba6
  14. ViT2CNNProjector model · level 1 · ran · d352000861a8fd36
  15. ViT2ViTProjector model · level 1 · ran · fd196a0c189320de
  16. init_weights helper · level 0 · unverified · 93f26e689279411d

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2501.08885") returns these assemblies with each brick's role and wiring (how to connect).

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