SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.02189 · ICLR · 2024

FairSeg: A Large-Scale Medical Image Segmentation Dataset for Fairness Learning Using Segment Anything Model with Fair Error-Bound Scaling

Yu Tian, Yan Luo, Min Shi, Ava Kouhana, Tobias Elze, Mengyu Wang

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 0 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 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/2311.02189.json · badge: /api/ran/2311.02189.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
harvard-ophthalmology-ai-lab/fairseg canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
calc_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
harvard-ophthalmology-ai-lab/fairseg/TransUNet/trainer.py
pointer only (licence: NONE) · get_code("ad5471db7ab93cbf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, harvard-ophthalmology-ai-lab/fairseg 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.

calc_loss_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
harvard-ophthalmology-ai-lab/fairseg/SAMed/trainer_novel.py
pointer only (licence: NONE) · get_code("5ec231d8269072b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, harvard-ophthalmology-ai-lab/fairseg 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.

crop_center Ran
ran; our contract draft was wrong, not the code
harvard-ophthalmology-ai-lab/fairseg/TransUNet/datasets/dataset_fairseg.py
pointer only (licence: NONE); the stored copy get_code serves, from sjunhongshen/Deterministic-Control-in-Metric-Space, is pointer only (licence: NONE) · get_code("fd18c8c90c72a792")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, harvard-ophthalmology-ai-lab/fairseg 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.

random_rot_flip Ran
ran, violated the contract we drafted
harvard-ophthalmology-ai-lab/fairseg/TransUNet/datasets/dataset_fairseg.py
pointer only (licence: NONE); the stored copy get_code serves, from jefferyjiang-yf/m4oe, is pointer only (licence: NONE) · get_code("960b785e65a00358")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, harvard-ophthalmology-ai-lab/fairseg 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.

random_rotate Ran
ran, violated the contract we drafted
harvard-ophthalmology-ai-lab/fairseg/TransUNet/datasets/dataset_fairseg.py
pointer only (licence: NONE); the stored copy get_code serves, from jefferyjiang-yf/m4oe, is pointer only (licence: NONE) · get_code("43fa66325ce3cafd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, harvard-ophthalmology-ai-lab/fairseg 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.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 3 later) and 1 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
random_rotate 10 other papers
3 dated earlier, 7 later
2111.04734 (2021-11)
Mixed Transformer U-Net For Medical Image Segmentation
2304.13785 (2023-04)
Customized Segment Anything Model for Medical Image Segmentation
2306.12737 (2023-06)
Ladder Fine-tuning approach for SAM integrating complementary network
and 7 more not named here
random_rot_flip 9 other papers
3 dated earlier, 6 later
2111.04734 (2021-11)
Mixed Transformer U-Net For Medical Image Segmentation
2304.13785 (2023-04)
Customized Segment Anything Model for Medical Image Segmentation
2306.12737 (2023-06)
Ladder Fine-tuning approach for SAM integrating complementary network
and 6 more not named here
calc_loss 5 other papers
3 dated earlier, 2 later
2304.13785 (2023-04)
Customized Segment Anything Model for Medical Image Segmentation
2306.12737 (2023-06)
Ladder Fine-tuning approach for SAM integrating complementary network
2309.08842 (2023-09)
MA-SAM: Modality-agnostic SAM Adaptation for 3D Medical Image Segmentation
and 2 more not named here
crop_center 1 other paper
1 dated earlier
1905.01576 (2019-05)
Learning to Control in Metric Space with Optimal Regret

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

Fairness in artificial intelligence models has gained significantly more attention in recent years, especially in the area of medicine, as fairness in medical models is critical to people's well-being and lives. Highquality medical fairness datasets are needed to promote fairness learning research. Existing medical fairness datasets are all for classification tasks, and no fairness datasets are available for medical segmentation, while medical segmentation is an equally important clinical task as classifications, which can provide detailed spatial information on organ abnormalities ready to be assessed by clinicians. In this paper, we propose the first fairness dataset for medical segmentation named Harvard-FairSeg with 10,000 subject samples. In addition, we propose a fair error-bound scaling approach to reweight the loss function with the upper error-bound in each identity group, using the segment anything model (SAM). We anticipate that the segmentation performance equity can be improved by explicitly tackling the hard cases with high training errors in each identity group. To facilitate fair comparisons, we utilize a novel equity-scaled segmentation performance metric to compare segmentation metrics in the context of fairness, such as the equity-scaled Dice coefficient. Through comprehensive experiments, we demonstrate that our fair error-bound scaling approach either has superior or comparable fairness performance to the state-of-theart fairness learning models. The dataset and code are publicly accessible via https://ophai.hms.harvard.edu/datasets/harvard-fairseg10k.

For agents

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

get_harvested_code_for_paper("2311.02189")
get_code_for_paper("2311.02189")
have("2311.02189")

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

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

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

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

Connect an agent — have() is free.