Papers › Flatten Long-Range Loss Landscapes for Cross-Domain Few-Shot Learning

Flatten Long-Range Loss Landscapes for Cross-Domain Few-Shot Learning

1 Mar 2024CVPR 2024 1arXiv:2403.00567archive 2025-07-28

Yixiong Zou, Yicong Liu, Yiman Hu, Yuhua Li, Ruixuan Li

Cross-domain few-shot learning (CDFSL) aims to acquire knowledge from limited training data in the target domain by leveraging prior knowledge transferred from source domains with abundant training samples. CDFSL faces challenges in transferring knowledge across dissimilar domains and fine-tuning models with limited training data. To address these challenges, we initially extend the analysis of loss landscapes from the parameter space to the representation space, which allows us to simultaneously interpret the transferring and fine-tuning difficulties of CDFSL models. We observe that sharp minima in the loss landscapes of the representation space result in representations that are hard to transfer and fine-tune. Moreover, existing flatness-based methods have limited generalization ability due to their short-range flatness. To enhance the transferability and facilitate fine-tuning, we introduce a simple yet effective approach to achieve long-range flattening of the minima in the loss landscape. This approach considers representations that are differently normalized as minima in the loss landscape and flattens the high-loss region in the middle by randomly sampling interpolated representations. We implement this method as a new normalization layer that replaces the original one in both CNNs and ViTs. This layer is simple and lightweight, introducing only a minimal number of additional parameters. Experimental results on 8 datasets demonstrate that our approach outperforms state-of-the-art methods in terms of average accuracy. Moreover, our method achieves performance improvements of up to 9\% compared to the current best approaches on individual datasets. Our code will be released.

PaperPDFConference PDFCodeCode 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="2403.00567")

Code

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

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

zoilsen/flor officialmentioned in paperpytorch 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

11 samples harvested; 8 ran; 0 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.

2ran · our draft was wrong
6ran
3unverified

Licence: 11 of the 11 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 zoilsen/flor. “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.

DBindex zoilsen/flor/utils.py official repository ran no licence file found · pointer only · c43e6e5f82ef6a4c · report
euclidean_dist zoilsen/flor/methods/protonet.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 4dd319c45d372246 · report
get_assigned_file zoilsen/flor/options.py official repository ran fingerprinted no licence file found · pointer only · 400a8db2fb9b1633 · report
get_resume_file zoilsen/flor/options.py official repository ran fingerprinted no licence file found · pointer only · 7b02b06c5ac04f3d · report
one_hot zoilsen/flor/utils.py official repository ran no licence file found · pointer only · f1324589fc273593 · report
softplus zoilsen/flor/methods/backbone.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 938085d32a386023 · report
sparsity zoilsen/flor/utils.py official repository ran no licence file found · pointer only · de09514deda6f881 · report
train zoilsen/flor/network_train.py official repository ran no licence file found · pointer only · acf1008d411fbae3 · report
ResNet10 zoilsen/flor/methods/backbone.py official repository unverified no licence file found · pointer only · 7f253b800d51e8d9 · report
ResNet18 zoilsen/flor/methods/backbone.py official repository unverified no licence file found · pointer only · ee3b1d7df72ebb48 · report
parse_args zoilsen/flor/options.py official repository unverified no licence file found · pointer only · ee012e3754df8726 · report

Tasks

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

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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