SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.12493 · 2026

Histopath-C: Towards Realistic Domain Shifts for Histopathology Vision-Language Adaptation

Mehrdad Noori, David Osowiechi, Gustavo Vargas, Fereshteh Shakeri, Ben Ayed, Ali Moslem, Yazdanpanah Sahar, Dastani Ismail

arXiv · PDF · Open in the Atlas

Code that ran

5 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 2 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/2601.12493.json · badge: /api/ran/2601.12493.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
Mehrdad-Noori/Histopath-C community
Papers with Code archive
5 ran · 6 no recorded run
copy not recorded community
not in the paper's declared repositories
0 ran · 1 no recorded run
FunctionStatusWhere it lives
LinearLoRA Ran
ran on a synthesized input · constructed an object; no result was computed
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("a1b1a64fc7662e1b")
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, through the batch API) and returned an instance of its own class, LinearLoRA: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

# Create a small existing linear layer to wrap
existing_linear = nn.Linear(in_features=4, out_features=3)

# Define ARGS with all parameters for LinearLoRA
ARGS = {
    'existing_linear': existing_linear,
    'r': 2,
    'lora_alpha': 1,
    'fan_in_fan_out': False,
    'dropout_rate': 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LinearLoRA — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LinearLoRA output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
LoRALayer Ran
ran on a synthesized input · constructed an object; no result was computed
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("9f65194824bd7d42")
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, through the batch API) and returned an instance of its own class, LoRALayer: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

ARGS = {
    'r': 8,
    'lora_alpha': 16,
    'fan_in_fan_out': False,
    'dropout_rate': 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LoRALayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LoRALayer output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
TorchMHAWrapper Ran
ran on a synthesized input · constructed an object; no result was computed
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("86a0cdc047344c13")
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, through the batch API) and returned an instance of its own class, TorchMHAWrapper: the run constructed the object and did not call it, so no result was computed. 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 simple instance of TorchMHAWrapper to understand its usage
# The forward method takes x (and optional attn_mask) and performs self-attention

# Define arguments for TorchMHAWrapper.__init__
dim = 4
num_heads = 2
qkv_bias = True
attn_drop = 0.0
proj_drop = 0.1

# Create an instance to test
model = nn.Module()

# Define ARGS mapping all parameters
ARGS = {
    "dim": dim,
    "num_heads": num_heads,
    "qkv_bias": qkv_bias,
    "attn_drop": attn_drop,
    "proj_drop": proj_drop,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TorchMHAWrapper — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TorchMHAWrapper output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_lora_parameters Ran
ran; our contract draft was wrong, not the code
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("3525af0b792c8af0")
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, through the batch API) and returned list. 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)

class MockLoRAModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Create some LoRA parameters
        self.lora_a = nn.Parameter(torch.randn(4, 3))
        self.lora_b = nn.Parameter(torch.randn(3, 2))
        # Create a bias parameter
        self.bias = nn.Parameter(torch.randn(2))
        # Create a layer with lora_ prefix and bias
        self.linear_lora_weight = nn.Parameter(torch.randn(5, 4))
        self.linear_bias = nn.Parameter(torch.randn(5))
        # Regular parameter without lora prefix
        self.weight = nn.Parameter(torch.randn(6, 7))

model = MockLoRAModel()

ARGS = {
    'model': model,
    'bias': 'none'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
load_templates_from_yaml Ran
ran; our contract draft was wrong, not the code
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("8bcc28934af8c424")
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, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 yaml
import tempfile
import os

# Create a temporary YAML file with template data
temp_dir = tempfile.mkdtemp()
yaml_file_path = os.path.join(temp_dir, 'templates.yaml')

template_data = {
    'templates': [
        'Hello, {name}!',
        'Welcome to {place}.',
        'Thank you for {action}.'
    ]
}

with open(yaml_file_path, 'w') as f:
    yaml.dump(template_data, f)

ARGS = {
    'file_path': yaml_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
LATTE Not yet run
unverified (harvested, no recorded run)
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("3e0782a021185cdd")
How it ran

no invocation recorded.

PlainMultiheadAttentionLoRA Not yet run
unverified (harvested, no recorded run)
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("2bcb1f7365c6b8f7")
How it ran

no invocation recorded.

apply_lora Not yet run
unverified (harvested, no recorded run)
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("7310952b682a5384")
How it ran

no invocation recorded.

mark_only_lora_as_trainable Not yet run
unverified (harvested, no recorded run)
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("9d0925bfce78e31f")
How it ran

no invocation recorded.

print_clip_parameters Not yet run
unverified (harvested, no recorded run)
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("3b6da4f2d7e16ad0")
How it ran

no invocation recorded.

print_optimizer_parameters Not yet run
unverified (harvested, no recorded run)
Mehrdad-Noori/Histopath-C/adapt/latte.py
code served (permissive licence) · get_code("884da1390fa49a5e")
How it ran

no invocation recorded.

set_param Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from maxzanella/clip-lora
pointer only; the stored copy get_code serves, from maxzanella/clip-lora, is pointer only (licence: AGPL-3.0) · get_code("e39f18623c2d033c")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 9 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
set_param
brick of this paper's assembly: helper
7 other papers
5 dated earlier, 2 later · 2 only as an assembly brick
2401.09257 (2024-01)
A First-Order Multi-Gradient Algorithm for Multi-Objective Bi-Level Optimization
2405.18541 (2024-05)
Low-Rank Few-Shot Adaptation of Vision-Language Models
2501.10945 (2025-01)
Gradient-Based Multi-Objective Deep Learning: Algorithms, Theories, Applications, and Beyond
and 4 more not named here
get_lora_parameters
brick of this paper's assembly: helper
1 other paper
1 later
2605.02247 (2026-05)
Fine-Tuning Impairs the Balancedness of Foundation Models in Long-tailed Personalized Federated Learning
load_templates_from_yaml
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2406.13875 (2024-06)
WATT: Weight Average Test-Time Adaptation of CLIP

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

Repositories linked to this paper

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

Abstract

Medical Vision-language models (VLMs) have shown remarkable performances in various medical imaging domains such as histopathology by leveraging pre-trained, contrastive models that exploit visual and textual information. However, histopathology images may exhibit severe domain shifts, such as staining, contamination, blurring, and noise, which may severely degrade the VLM's downstream performance. In this work, we introduce Histopath-C, a new benchmark with realistic synthetic corruptions designed to mimic real-world distribution shifts observed in digital histopathology. Our framework dynamically applies corruptions to any available dataset and evaluates Test-Time Adaptation (TTA) mechanisms on the fly. We then propose LATTE, a transductive, low-rank adaptation strategy that exploits multiple text templates, mitigating the sensitivity of histopathology VLMs to diverse text inputs. Our approach outperforms state-of-the-art TTA methods originally designed for natural images across a breadth of histopathology datasets, demonstrating the effectiveness of our proposed design for robust adaptation in histopathology images. Code and data are available at https://github.com/Mehrdad-Noori/Histopath-C.

For agents

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

get_harvested_code_for_paper("2601.12493")
get_code_for_paper("2601.12493")
have("2601.12493")

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

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

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

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

Connect an agent — have() is free.