TD-v1: domain-specific Token Dropping checkpoints
Five 50-epoch TD-v1 main-experiment checkpoints, one per dataset. Every model uses its dataset-specific fixed four-direction weights and frozen-reference-relative loss (legacy_fixed_ref). These are the previously completed TD-v1 models, not the later original-loss-restoration runs. Uniform-weight/reference-removal ablations are excluded.
| Dataset | Backbone | Epochs | Global batch | Seed | Learning rate |
|---|---|---|---|---|---|
| BUS-CoT | BiomedCLIP ViT-B/16 | 50 | 32 | 12 | 5e-7 |
| Brain MRI | BiomedCLIP ViT-B/16 | 50 | 32 | 12 | 5e-7 |
| Chest CT | BiomedCLIP ViT-B/16 | 50 | 32 | 12 | 5e-7 |
| COD10K | OpenAI CLIP ViT-B/32 quickgelu | 50 | 256 (2 x 128) | 0 | 1e-6 |
| MAS3K | OpenAI CLIP ViT-B/32 quickgelu | 50 | 32 | 12 | 5e-7 |
BUS-CoT freezes the text encoder; the other four models train both encoders. See each dataset's training_config.json for fixed loss weights and normalization. All models start from their original pretrained initialization, not another domain's fine-tuned checkpoint.
What TD-v1 means
The negative branch starts from the original image and aligned GT mask. After preprocessing, patch embedding, and positional embeddings, patch tokens overlapping at least 10 foreground pixels are physically removed before the transformer. CLS and the original positional embeddings of retained tokens are preserved. Variable sequence lengths are grouped by retained-token count. Positive processing is preserved. The frozen reference receives the same negative construction.
TD-v1 also includes the documented Tasa50Loss implementation (FP32 cosine margins and softplus), reference-initialization RNG capture/restore, and local model/tokenizer configuration. It is not an exact reproduction of the unmodified upstream implementation. Dataset-specific backbone/epoch/DDP choices and other protocol limitations are documented in the corresponding experiment records; in particular, historical MAS3K OpenAI settings were not independently established.
Files
manifest.json
SHA256SUMS
bus_cot/{epoch_50.pt,training_config.json}
brain_mri/{epoch_50.pt,training_config.json}
chestct/{epoch_50.pt,training_config.json}
cod10k/{epoch_50.pt,training_config.json}
mas3k/{epoch_50.pt,training_config.json}
The .pt files are unaltered full training checkpoints, not converted Hugging Face AutoModel packages. They include state_dict, epoch, and training-resume state such as optimizer/scaler state when present. No datasets, GT masks, access tokens, or unrelated checkpoints are included.
Download
from huggingface_hub import hf_hub_download
checkpoint_path = hf_hub_download(
repo_id="Bbang03/tasa-token-dropping-checkpoints",
filename="chestct/epoch_50.pt", # replace with the desired dataset
# revision="<commit SHA>", # pin a commit for reproducibility
)
You may also use snapshot_download for the entire repository. Verify the checkpoint bytes against SHA256SUMS.
Load with the matching TD-v1 environment
Use the supplied TD-v1/OpenCLIP implementation and its matching model configuration. Construct the backbone specified in training_config.json, then load the model state from the training checkpoint:
import torch
checkpoint = torch.load(checkpoint_path, map_location="cpu", weights_only=True)
assert checkpoint["epoch"] == 50
state = checkpoint["state_dict"]
# `model` must already be constructed with the corresponding TD-v1 backbone.
# For a non-DDP inference model, strip a DDP prefix only if present:
if state and all(key.startswith("module.") for key in state):
state = {key[len("module."):]: value for key, value in state.items()}
model.load_state_dict(state, strict=True)
model.eval()
For exact experiment reproduction, use the matching TD-v1 code, image transforms, tokenizer assets, and evaluation manifests. Resolve any server-local BiomedBERT configuration paths to the recipient's existing assets. The checkpoint files alone do not provide those source/data assets. Ordinary positive-image encoding uses the standard image path. Token-Dropped negative evaluation additionally requires the matching GT-mask geometry and TD-v1 negative-forward helper; it is not equivalent to blacking out pixels or using an attention mask.
Evaluation interpretation
Classification in these experiments includes GT-defined Token-Dropped negative states in addition to original positives. Such scores measure the specified state-discrimination protocol and should not be presented as ordinary GT-free clinical classification performance. Segmentation evaluates original images; no GT-based Token Dropping is injected into positive segmentation inference. Token deletion and retained-token count can themselves provide a negative-state shortcut; no unverified causal or generalization benefit is claimed.
Provenance and rights
Training code lineage: the supplied cvpr-reproduction Chest CT code and the initially obtained KRMayD/finegrained-vlm-training-test-copy-no-checkpoints resources, modified as TD-v1. Pretrained backbones: Microsoft BiomedCLIP and OpenAI CLIP. This repository does not grant additional rights to upstream source, pretrained models, or datasets; consult the respective upstream terms. No new license is inferred here.