Papers › Exploring Cross-Domain Few-Shot Classification via Frequency-Aware Prompting

Exploring Cross-Domain Few-Shot Classification via Frequency-Aware Prompting

24 Jun 2024arXiv:2406.16422archive 2025-07-28

Tiange Zhang, Qing Cai, Feng Gao, Lin Qi, Junyu Dong

Cross-Domain Few-Shot Learning has witnessed great stride with the development of meta-learning. However, most existing methods pay more attention to learning domain-adaptive inductive bias (meta-knowledge) through feature-wise manipulation or task diversity improvement while neglecting the phenomenon that deep networks tend to rely more on high-frequency cues to make the classification decision, which thus degenerates the robustness of learned inductive bias since high-frequency information is vulnerable and easy to be disturbed by noisy information. Hence in this paper, we make one of the first attempts to propose a Frequency-Aware Prompting method with mutual attention for Cross-Domain Few-Shot classification, which can let networks simulate the human visual perception of selecting different frequency cues when facing new recognition tasks. Specifically, a frequency-aware prompting mechanism is first proposed, in which high-frequency components of the decomposed source image are switched either with normal distribution sampling or zeroing to get frequency-aware augment samples. Then, a mutual attention module is designed to learn generalizable inductive bias under CD-FSL settings. More importantly, the proposed method is a plug-and-play module that can be directly applied to most off-the-shelf CD-FLS methods. Experimental results on CD-FSL benchmarks demonstrate the effectiveness of our proposed method as well as robustly improve the performance of existing CD-FLS methods. Resources at https://github.com/tinkez/FAP_CDFSC.

PaperPDFCodeCode 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="2406.16422")

Code

Syntology Ran 5 of 9 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 9 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tinkez/fap_cdfsc officialmentioned in papermentioned on GitHubpytorch 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

9 samples harvested; 5 ran; 0 honoured the contract we drafted; 4 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.

2ran · our draft was wrong
3ran
4unverified

Licence: 9 of the 9 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 tinkez/fap_cdfsc. “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.

euclidean_dist tinkez/fap_cdfsc/methods/protonet.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 4dd319c45d372246 · report
gmul tinkez/fap_cdfsc/methods/gnn.py official repository ran no licence file found · pointer only · 9b60369fe450e564 · report
mutual_attention tinkez/fap_cdfsc/train_FAP.py official repository ran fingerprinted no licence file found · pointer only · e7510bc750821ad5 · report
one_hot tinkez/fap_cdfsc/functions.py official repository ran no licence file found · pointer only · f1324589fc273593 · report
softplus tinkez/fap_cdfsc/methods/backbone.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 938085d32a386023 · report
FAPLoop tinkez/fap_cdfsc/train_FAP.py official repository unverified no licence file found · pointer only · b92542406bd48a73 · report
Grad_ascending tinkez/fap_cdfsc/train_FAP.py official repository unverified no licence file found · pointer only · 690034f538853a2c · report
ResNet10 tinkez/fap_cdfsc/methods/backbone.py official repository unverified no licence file found · pointer only · 156415175e0efadf · report
ResNet18 tinkez/fap_cdfsc/methods/backbone.py official repository unverified no licence file found · pointer only · b6071c551fcbd7c6 · report

Tasks

Cross-Domain Few-ShotFew-Shot LearningInductive BiasMeta-Learningcross-domain few-shot learning

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