SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.06122 · NeurIPS · 2022

Singular Value Fine-tuning: Few-shot Segmentation requires Few-parameters Fine-tuning

Jian Wang, Errui Ding, Jingdong Wang, Yanpeng Sun, Qiang Chen, Xiangyu He, Haocheng Feng, Junyu Han, Jian Cheng, Zechao Li

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-23; 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/2206.06122.json · badge: /api/ran/2206.06122.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
syp2ysy/SVF canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
zechao-li/SVF-pytorch reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
d_nsvd Ran
ran; our contract draft was wrong, not the code
zechao-li/SVF-pytorch/svf.py
code served (permissive licence) · get_code("46c465264fc07006")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small matrix for SVD decomposition
# Using distinct dimensions: 4 rows, 3 columns
matrix = torch.randn(4, 3)

# Define ARGS dict with all parameters
ARGS = {
    "matrix": matrix,
    "rank": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
round_to_nearest Ran
ran, honoured the contract we drafted
syp2ysy/SVF/svf.py
code served (permissive licence) · get_code("abd97f26f98fa5b0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from math import floor

def round_to_nearest(n, ratio=1.0, base_number=4, allow_rank_eq1=False):
    rank = floor(floor(n * ratio) / base_number) * base_number
    rank = min(max(rank, 1), n)
    if rank == 1:
        rank = rank if allow_rank_eq1 else n
    return rank

ARGS = {
    "n": 16,
    "ratio": 0.75,
    "base_number": 4,
    "allow_rank_eq1": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
replace_fullrank_with_lowrank Not yet run
unverified (harvested, no recorded run)
zechao-li/SVF-pytorch/svf.py
code served (permissive licence) · get_code("e839efa71c7b59e3")
How it ran

no invocation recorded.

round_to_nearest Not yet run
unverified (harvested, no recorded run)
zechao-li/SVF-pytorch/svf.py
code served (permissive licence) · get_code("72b4beced0f39b70")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
round_to_nearest 1 other paper
1 later
2509.03740 (2025-09)
CLIP-SVD: Efficient and Interpretable Vision-Language Adaptation via Singular Values

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-23.

Repositories linked to this paper

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

Abstract

Freezing the pre-trained backbone has become a standard paradigm to avoid overfitting in few-shot segmentation. In this paper, we rethink the paradigm and explore a new regime: fine-tuning a small part of parameters in the backbone. We present a solution to overcome the overfitting problem, leading to better model generalization on learning novel classes. Our method decomposes backbone parameters into three successive matrices via the Singular Value Decomposition (SVD), then only fine-tunes the singular values and keeps others frozen. The above design allows the model to adjust feature representations on novel classes while maintaining semantic clues within the pre-trained backbone. We evaluate our Singular Value Fine-tuning (SVF) approach on various few-shot segmentation methods with different backbones. We achieve state-of-the-art results on both Pascal-5 i and COCO-20 i across 1-shot and 5-shot settings. Hopefully, this simple baseline will encourage researchers to rethink the role of backbone finetuning in few-shot settings. The source code and models will be available at https://github.com/syp2ysy/SVF. * Equal Contribution. † Corresponding author. 3 In this paper, we consider two settings of few-shot segmentation: 1-shot and 5-shot, which contain only one and five support images and masks, respectively. Preprint. Under review.

For agents

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

get_harvested_code_for_paper("2206.06122")
get_code_for_paper("2206.06122")
have("2206.06122")

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

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

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

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

Connect an agent — have() is free.