SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.00567 · CVPR · 2024

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

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

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.00567.json · badge: /api/ran/2403.00567.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zoilsen/flor canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
DBindex Ran
ran, honoured the contract we drafted
zoilsen/flor/utils.py
pointer only (licence: NONE) · get_code("c43e6e5f82ef6a4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

euclidean_dist Ran
ran; our contract draft was wrong, not the code
zoilsen/flor/methods/protonet.py
pointer only (licence: NONE) · get_code("4dd319c45d372246")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_assigned_file Ran
ran; our contract draft was wrong, not the code
zoilsen/flor/options.py
pointer only (licence: NONE) · get_code("400a8db2fb9b1633")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_resume_file Ran
ran; our contract draft was wrong, not the code
zoilsen/flor/options.py
pointer only (licence: NONE) · get_code("7b02b06c5ac04f3d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

one_hot Ran
ran; our contract draft was wrong, not the code
zoilsen/flor/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from tinkez/fap_cdfsc, is pointer only (licence: NONE) · get_code("f1324589fc273593")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

softplus Ran
ran; our contract draft was wrong, not the code
zoilsen/flor/methods/backbone.py
pointer only (licence: NONE); the stored copy get_code serves, from hytseng0509/CrossDomainFewShot, is pointer only (licence: NONE) · get_code("938085d32a386023")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sparsity Ran
ran, honoured the contract we drafted
zoilsen/flor/utils.py
pointer only (licence: NONE) · get_code("de09514deda6f881")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

train Ran
ran; our contract draft was wrong, not the code
zoilsen/flor/network_train.py
pointer only (licence: NONE) · get_code("acf1008d411fbae3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ResNet10 Not yet run
unverified (harvested, no recorded run)
zoilsen/flor/methods/backbone.py
pointer only (licence: NONE) · get_code("7f253b800d51e8d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ResNet18 Not yet run
unverified (harvested, no recorded run)
zoilsen/flor/methods/backbone.py
pointer only (licence: NONE) · get_code("ee3b1d7df72ebb48")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
zoilsen/flor/options.py
pointer only (licence: NONE) · get_code("ee012e3754df8726")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoilsen/flor when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 5 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
euclidean_dist 16 other papers
15 dated earlier, 1 later · 2 only as an assembly brick
1703.05175 (2017-03)
Prototypical Networks for Few-shot Learning
1902.08605 (2019-02)
Are Few-Shot Learning Benchmarks too Simple ? Solving them without Task Supervision at Test-Time
1905.13613 (2019-05)
Regression Networks for Meta-Learning Few-Shot Classification
and 13 more not named here
one_hot 5 other papers
3 dated earlier, 2 later
1912.07200 (2019-12)
A Broader Study of Cross-Domain Few-Shot Learning
2208.10930 (2022-08)
FS-BAN: Born-Again Networks for Domain Generalization Few-Shot Classification
and 2 more not named here
get_assigned_file 4 other papers
4 dated earlier
1905.13613 (2019-05)
Regression Networks for Meta-Learning Few-Shot Classification
1912.07200 (2019-12)
A Broader Study of Cross-Domain Few-Shot Learning
2202.02471 (2022-02)
CLUSTER-INDUCED VORONOI DIAGRAMS: A GEOMETRIC APPROACH
and 1 more not named here
sparsity 4 other papers
3 dated earlier, 1 later
1912.07200 (2019-12)
A Broader Study of Cross-Domain Few-Shot Learning
2208.10930 (2022-08)
FS-BAN: Born-Again Networks for Domain Generalization Few-Shot Classification
and 1 more not named here
softplus 3 other papers
2 dated earlier, 1 later
2001.08735 (2020-01)
Cross-Domain Few-Shot Classification via Learned Feature-Wise Transformation
2208.10930 (2022-08)
FS-BAN: Born-Again Networks for Domain Generalization Few-Shot Classification
2406.16422 (2024-06)
Exploring Cross-Domain Few-Shot Classification via Frequency-Aware Prompting
DBindex 2 other papers
2 dated earlier
1905.13613 (2019-05)
Regression Networks for Meta-Learning Few-Shot Classification
2208.10930 (2022-08)
FS-BAN: Born-Again Networks for Domain Generalization Few-Shot Classification
ResNet18 2 other papers
1 dated earlier, 1 later
2208.10930 (2022-08)
FS-BAN: Born-Again Networks for Domain Generalization Few-Shot Classification
2406.16422 (2024-06)
Exploring Cross-Domain Few-Shot Classification via Frequency-Aware Prompting
get_resume_file 1 other paper
1 dated earlier
2208.10930 (2022-08)
FS-BAN: Born-Again Networks for Domain Generalization Few-Shot Classification

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.00567")
get_code_for_paper("2403.00567")
have("2403.00567")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.00567.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.00567.svg)](https://syntology.ai/paper/2403.00567)

Connect an agent — have() is free.