Papers › Improving Representation of High-frequency Components for Medical Visual Foundation Models

Improving Representation of High-frequency Components for Medical Visual Foundation Models

19 Jul 2024arXiv:2407.14651archive 2025-07-28

Yuetan Chu, Yilan Zhang, Zhongyi Han, Changchun Yang, Longxi Zhou, Gongning Luo, Chao Huang, Xin Gao

Foundation models have recently attracted significant attention for their impressive generalizability across diverse downstream tasks. However, these models are demonstrated to exhibit great limitations in representing high-frequency components and fine-grained details. In many medical imaging tasks, the precise representation of such information is crucial due to the inherently intricate anatomical structures, sub-visual features, and complex boundaries involved. Consequently, the limited representation of prevalent foundation models can result in significant performance degradation or even failure in these tasks. To address these challenges, we propose a novel pretraining strategy, named Frequency-advanced Representation Autoencoder (Frepa). Through high-frequency masking and low-frequency perturbation combined with adversarial learning, Frepa encourages the encoder to effectively represent and preserve high-frequency components in the image embeddings. Additionally, we introduce an innovative histogram-equalized image masking strategy, extending the Masked Autoencoder approach beyond ViT to other architectures such as Swin Transformer and convolutional networks. We develop Frepa across nine medical modalities and validate it on 32 downstream tasks for both 2D images and 3D volume data. Without fine-tuning, Frepa can outperform other self-supervised pretraining methods and, in some cases, even surpasses task-specific trained models. This improvement is particularly significant for tasks involving fine-grained details, such as achieving up to a +15% increase in DSC for retina vessel segmentation and a +7% increase in IoU for lung nodule detection. Further experiments quantitatively reveal that Frepa enables superior high-frequency representations and preservation in the embeddings, underscoring its potential for developing more generalized and universal medical image foundation models.

PaperPDFCodeCode Syntology ran

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 17 code samples harvested from 1 repository linked to this paper: 15 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 3 honoured, 0 violated, 7 with no contract checked; 5 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 1 where our contract draft was wrong; 4 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 17 samples from 1 repository, 15 ran (10 with no instrument failure; 5 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 between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 1 of the 15 samples that ran has no recorded date.

Arturia-Pendragon-Iris/Frepa officialmentioned in papermentioned on GitHubpytorchMITSyntology: 17 samples, 15 ran (5 instrument-failed) · 2 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

17 samples harvested: 15 ran (of which 0 constructed an object rather than computing a result; 10 with no instrument failure: 3 honoured, 0 violated, 7 with no contract checked; 5 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
1ran · our draft was wrong
4ran; the contract check could not run
7ran
2unverified

Licence: 1 of the 17 samples is pointer only, meaning Syntology does not serve that copy's text. For that sample, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Arturia-Pendragon-Iris/Frepa. “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”. “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. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

Arturia-Pendragon-Iris/Frepa official repository 17 samples, 15 ran (5 instrument-failed) · 2 unverified
false_negative evaluation.py ran MIT (permissive) · 5918a2c8063db81e · report fixture: signature pred:ndarray/2/float, label:ndarray/2/int, smooth:float/0/float · returned float64 · level recorded 2026-09-24
false_positive evaluation.py ran MIT (permissive) · f79426e2a95b7a05 · report fixture: signature pred:ndarray/2/float, label:ndarray/2/int, smooth:float/0/float · returned float64 · level recorded 2026-09-24
frangi_filter analysis/filter_2D.py ran MIT (permissive) · 5a69c69f11eafb55 · report fixture: signature np_array:ndarray/2/float, scale_range:range/0/?, alpha:float/0/float, beta:float/0/float, gamma:int/0/int, enhance:bool/0/bool · returned ndarray · level recorded 2026-09-24
get_1d_sincos_temp_embed in 5 papers attn_module.py ran · honoured contract fingerprinted MIT (permissive) · 85c400086fb61347 · report fixture: signature embed_dim:int/0/int, length:int/0/int · returned ndarray · level recorded 2026-09-24
get_2d_sincos_pos_embed in 170 papers attn_module.py ran MIT (permissive) · 02c43f67a5f856d7 · report fixture: signature embed_dim:int/0/int, grid_size:int/0/int, cls_token:bool/0/bool, extra_tokens:int/0/int · returned ndarray · level recorded 2026-09-24
get_rel_pos in 54 papers
census: 3 implementations from 6 papers, 3 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
model.py ran; the contract check could not run (RAISES) MIT (permissive) here; the stored copy is pointer only · d51d94a92bbaf66b · report fixture: signature q_size:int/0/int, k_size:int/0/int, rel_pos:Tensor/2/float · returned Tensor · level recorded 2026-09-22
img_degrade pretrain/utils.py ran; the contract check could not run (RAISES) MIT (permissive) · 25926b913a448899 · report fixture: signature ct_array:ndarray/3/float · returned ndarray · level recorded 2026-09-24
img_mask pretrain/utils.py ran fingerprinted MIT (permissive) · 306991bf95c6f7de · report fixture: signature ct_array:ndarray/3/float, masked_ratio:float/0/float · returned ndarray · level recorded 2026-09-24
jerman_filter analysis/filter_2D.py ran MIT (permissive) · ad7194aabc208160 · report fixture: signature np_array:ndarray/2/float, tau:int/0/int, enhance:bool/0/bool · returned ndarray · level recorded 2026-09-24
jerman_filter_scan analysis/filter_2D.py ran MIT (permissive) · b65e4be1f60fda96 · report fixture: signature raw_array:ndarray/3/float, tau:float/0/float, enhance:bool/0/bool · returned ndarray · level recorded 2026-09-24
modulate in 137 papers
census: 3 implementations from 12 papers, 1 distinct output on one shared input
attn_module.py ran · our draft was wrong fingerprinted MIT (permissive) · 03310bba324ae4fb · report fixture: signature x:Tensor/2/float, shift:Tensor/1/float, scale:Tensor/1/float · returned Tensor · level recorded, date not recorded
refine_ct pretrain/utils.py ran · honoured contract fingerprinted MIT (permissive) · 0475e9f78fad81d2 · report fixture: signature ct_array:ndarray/2/float · returned ndarray · level recorded 2026-09-24
true_negative evaluation.py ran · honoured contract fingerprinted MIT (permissive) · 6b7de36ae6ac0fdd · report fixture: signature pred:ndarray/1/int, label:ndarray/1/int · returned float64 · level recorded 2026-09-24
window_partition in 377 papers
census: 13 implementations from 17 papers, 5 distinct outputs across 3 buckets, one shared input per bucket
model.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 9185d0312408e7bd · report fixture: signature x:Tensor/4/float, window_size:int/0/int · returned tuple · level recorded 2026-09-24
window_unpartition in 56 papers model.py ran; the contract check could not run (RAISES) MIT (permissive) · 5ddb841ad5ed28ee · report fixture: signature windows:Tensor/4/float, window_size:int/0/int, pad_hw:tuple/1/int, hw:tuple/1/int · returned Tensor · level recorded 2026-09-24
read_in_mha file_to_numpy.py unverified MIT (permissive) · 6a69a5ba013677f1 · report
simple_stack_dcm_files file_to_numpy.py unverified MIT (permissive) · 7cea931bf632b21c · report

Tasks

Lung Nodule Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxStochastic DepthSwin TransformerTransformer

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