Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: TypeError
Message: Couldn't cast array of type list<item: string> to string
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2328, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1870, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2164, in cast_array_to_feature
return array_cast(
array,
...<2 lines>...
allow_decimal_to_str=allow_decimal_to_str,
)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1872, in wrapper
return func(array, *args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2025, in array_cast
raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}")
TypeError: Couldn't cast array of type list<item: string> to string
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1409, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 985, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text string |
|---|
nucleus |
lymphocyte |
gland |
cytoplasm |
blood vessel |
vessel |
necrosis |
stroma |
neutrophil |
collagen |
giant cell |
histiocyte |
lumen |
spindle cell |
eosinophil |
duct |
plasma cell |
follicle |
mucin |
smooth muscle |
fibrosis |
melanocyte |
inflammatory cell |
macrophage |
fibroblast |
blood |
fat |
epithelial cell |
clear cell |
endothelial cell |
mitotic activity |
keratin |
keratinocytes |
goblet cell |
atypical cell |
tubule |
parakeratosis |
mitoses |
mitotic figure |
hemorrhage |
pleomorphism |
basal cell |
calcification |
squamous epithelium |
prominent nucleolus |
basement membrane |
fascicle |
fibrin |
mitosis |
elastic fiber |
smooth muscle cell |
fibrous tissue |
eosinophilic cytoplasm |
pigment |
crypt |
artery |
red blood cell |
papilla |
large cell |
squamous cell |
spongiosis |
granulomatous inflammation |
chondrocytes |
epithelioid cell |
cellularity |
edema |
collagen bundle |
myoepithelial cell |
hyperchromatic nucleus |
hemosiderin |
scar |
abundant cytoplasm |
chromatin |
sclerosis |
villus |
cystic space |
hyperkeratosis |
ulceration |
collagen fiber |
vacuole |
clear cytoplasm |
lacuna |
lymphocytic infiltrate |
adipocytes |
nuclear pleomorphism |
neuron |
osteoclast |
acanthosis |
osteocyte |
mast cell |
melanin |
loose connective tissue |
osteoblast |
acinus |
acantholysis |
small cell |
large nucleus |
nuclear atypia |
myofibroblasts |
granule |
Dataset Card for HistoConceptBench
HistoConceptBench is a benchmark for evaluating histopathological concept recognition and attribution in computational pathology. It contains annotations for PathGen samples, linked by TCGA slide/file identifiers and patch coordinates. Users obtain the corresponding source images separately, subject to their access conditions and terms. Labels are generated using an LLM-assisted pipeline and were not annotated by pathologists. HistoConceptBench is intended for research use only.
Dataset Details
Dataset Description
HistoConceptBench is a multi-label benchmark for testing whether models assign higher concept scores to positive than negative samples.
The dataset covers renal, breast, lung, and brain tissues. It uses the
histomorphological concept bank from
Lazard et al. (2026), derived from Quilt-1M
captions, with terms organized
into concept equivalence groups. The files contain 989 concepts organized
into 605 groups, of which 135 groups are used as targets across the four tissues.
The equivalence definitions are provided in concept_groups.json.
- Curated by: Hense et al. (2026).
- Shared by: Microsoft
- Language(s): English concept terminology.
- License: MIT
- Release version and date: TODO: Add the release version and date.
- Annotation modality: Tabular annotations and source identifiers.
Dataset Sources
- Source dataset: PathGen-1.6M
- Source images: TCGA whole-slide images available through the NCI Genomic Data Commons.
- Source dataset paper: PathGen-1.6M: 1.6 Million Pathology Image-text Pairs Generation through Multi-agent Collaboration
- Concept bank source: Sparse concept attribution for histomorphological hypothesis generation from whole-slide classifiers
- HistoConceptBench paper: Evaluating and Improving Concept Prediction Models for Histopathological Discovery
Licensing and Access
The annotations are released under the MIT License. This license does not grant rights to upstream images, captions, or metadata. Review and comply with the current PathGen access conditions and GDC data use policies for the source resources you obtain.
Nothing disclosed here, including the Out-of-Scope Use section, should be interpreted as a restriction or modification to the MIT license for the released annotations.
Uses
Direct Use
Intended research uses include:
- Evaluating concept recognition by pathology vision-language models.
- Comparing concept attribution and concept-scoring methods, including embedding-based similarity, sparse concept representations, and learned concept heads.
- Studying how concept-level performance varies across tissues and concepts.
- Investigating concept equivalence, co-occurrence, and failure modes, where the corresponding metadata is available.
The intended users are domain experts capable of independently evaluating outputs before acting on them.
The entire release is a test-only evaluation set, with no training split. Training or tuning on them would invalidate their use as a held-out benchmark for the same experiment.
Out-of-Scope Use
HistoConceptBench is not intended for clinical diagnosis, treatment selection, patient management, or other clinical decision-making. It does not establish clinical validity, safety, or regulatory suitability of a model.
The dataset is also not designed for patient identification, estimating disease prevalence, or drawing population-level clinical conclusions.
We do not recommend using HistoConceptBench in commercial or real-world applications without further testing and development. It is being released for research purposes.
HistoConceptBench was not designed or evaluated for all possible downstream purposes. Developers should consider its inherent limitations as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness concerns specific to each intended downstream use.
Without further testing and development, HistoConceptBench should not be used in highly regulated domains where inaccurate outputs could suggest actions that lead to injury or negatively impact an individual's legal, financial, or life opportunities.
We do not recommend using HistoConceptBench in the context of high-risk decision making (e.g., in law enforcement, legal, finance, or healthcare).
Dataset Structure
Data Instances
Each annotation record links a patch to a target concept group and a binary label. A patch may occur in multiple records for different targets and may be positive for one target and negative for another.
The following is a schematic example only, not a real record. The identifier and concept-label placeholders are illustrative; tissue is specified by the filename, not a CSV column:
{
"target_concept_group_idx": 0,
"target_concept_group_label": "<target group label>",
"positive_sample": true,
"wsi_id": "<slide identifier>",
"barcode": "<TCGA slide barcode>",
"position": "['0', '0']",
"file_id": "<GDC file identifier>",
"project": "TCGA-KIRC",
"patient_id": "<TCGA participant identifier>",
"concept_groups_present_idx": "[0]"
}
Data Fields
All four CSVs have the same ten columns:
| Field | Representation | Meaning |
|---|---|---|
target_concept_group_idx |
Integer | Zero-based index of the target in concept_groups.json. |
target_concept_group_label |
String | Human-readable target group label. |
positive_sample |
True or False |
Positive/negative assignment for the target group. |
wsi_id |
String | Whole-slide image identifier, without the .svs extension. |
barcode |
String | TCGA slide barcode. |
position |
String containing a two-element list of integer strings | Patch top-left coordinates [x, y] at slide level 0. |
file_id |
UUID string | GDC slide file identifier. |
project |
String | TCGA project; observed values are listed under Data Collection and Processing. |
patient_id |
String | TCGA participant identifier matching the first 12 characters of barcode. |
concept_groups_present_idx |
String containing a list of integers | Caption-derived concept groups present for the patch, indexed into concept_groups.json. |
Tissue is encoded by the CSV filename: brain, breast, lung, or renal.
An empty concept_groups_present_idx list ([]) means no groups were assigned;
it is not a missing value. Parse list-valued fields as data, not executable expressions.
The benchmark files include
benchmark_samples_{dataset}.csv and related_concepts_{dataset}.json per tissue,
plus shared concept_groups.json and concept_bank_quilt1m_filtered_989.json.
The concept bank is an ordered list of strings; the groups file contains lists
of equivalent concept strings, with the list index serving as the group ID.
Related-concept files contain group-ID pairs (concept_group_a_idx,
concept_group_b_idx) and their labels (concept_group_a_label,
concept_group_b_label).
Label interpretation:
- Positive: The caption-derived concept labels identify at least one member of the target equivalence group.
- Negative: The caption-derived concept labels identify no member of the target equivalence group. This is not proof that the concept is visually absent; captions can omit visible findings.
- A missing annotation for another concept must not be interpreted as a negative label for that concept.
Accessing Source Images
A patch is identified by (wsi_id, x, y), with coordinates parsed from position.
The repository provides a patch-extraction helper for locally downloaded TCGA slides. See the slide-download and patch-extraction instructions for setup and usage.
Dataset Statistics
The supplied CSVs contain 111,200 annotation records. Each of the 278 tissue-target pairs has exactly 200 positive and 200 negative samples, with no repeated patch within a tissue-target pair. A source sample can be selected for multiple targets.
| Release statistic | Value |
|---|---|
| Unique image patches | 83,877 distinct (wsi_id, x, y) combinations. |
| Unique slides and patient IDs | 882 distinct wsi_id values and 882 distinct patient_id values. |
| Unique concepts/equivalence groups across tissues | 989 concepts / 605 groups in the bank; 135 distinct target groups containing 380 concept strings. |
| Missing-value counts | 0 blank or null-marker values across all 10 CSV columns; 874 rows have valid empty concept-presence lists. |
| Tissue | Annotation rows | Positive | Negative | Unique patches | Slides | Patient IDs | Target groups |
|---|---|---|---|---|---|---|---|
| Brain | 15,200 | 7,600 | 7,600 | 10,246 | 99 | 99 | 38 |
| Breast | 24,800 | 12,400 | 12,400 | 20,536 | 274 | 274 | 62 |
| Lung | 36,000 | 18,000 | 18,000 | 26,950 | 251 | 251 | 90 |
| Renal | 35,200 | 17,600 | 17,600 | 26,145 | 258 | 258 | 88 |
| Total | 111,200 | 55,600 | 55,600 | 83,877 | 882 | 882 | 278 tissue-target pairs |
Some groups are targets in multiple tissues, so tissue-target pairs are not a count of distinct groups. There are no shared patch keys or patient identifiers between tissues. Patient counts refer to identifiers in the files, not independently verified identities.
Dataset Creation
Curation Rationale
HistoConceptBench provides a common evaluation set for concept recognition. Tissue-specific concept selection and grouping of equivalent terms support comparison beyond exact word matching.
Source Data
Data Collection and Processing
The annotations are derived from PathGen metadata and captions associated with TCGA slides. The dataset contains identifiers linking to external data sources: TCGA whole-slide images and the corresponding PathGen samples.
The benchmark labels were generated in June-July 2026.
Tissue groups correspond to these TCGA projects:
| Tissue group | TCGA projects |
|---|---|
| Renal | KIRC, KICH, KIRP |
| Breast | BRCA |
| Lung | LUAD, LUSC |
| Brain | LGG |
The pipeline joins source metadata to project information, derives patient groupings from TCGA barcodes, and selects tissue-specific benchmark examples.
Who Are the Source Data Producers?
The TCGA Research Network produced the source images. PathGen generated image-caption pairs through multi-agent collaboration using patches from TCGA whole-slide images. These producers are distinct from the HistoConceptBench annotation curators. See the PathGen dataset card and source paper for collection details.
People & Identifiers
Data points in HistoConceptBench correspond to individual people’s histopathological tissue characteristics.
HistoConceptBench does not include data pertaining to children.
The files include de-identified TCGA identifiers (patient, slide and file IDs) so users can retrieve source images and exclude benchmark patients from training. Do not use these identifiers, alone or combined with other data, to attempt to identify any individual.
The dataset is not believed to contain information that directly identifies a
person. Its de-identified identifiers (patient_id, barcode, wsi_id, and
file_id) may permit linkage to upstream records; this is not a guarantee
against re-identification.
Sensitive or Harmful Content
Both the source data and the annotations concern human health. Histomorphological labels linked to source identifiers can remain sensitive.
No dedicated screening for offensive or harmful content was performed. No content removal on that basis is documented. The release contains predefined concept labels; this format does not establish that the labels or linked medical images are free of potentially distressing content.
Annotations
Annotation Process
The annotation pipeline has five steps:
- Caption processing: Extract affirmed noun phrases using tokenization, lemmatization, part-of-speech tagging, and negation filtering.
- Concept matching: Match extracted phrases to the generalist histomorphological concept bank introduced in Sparse concept attribution for histomorphological hypothesis generation from whole-slide classifiers, using PathGen-CLIP-L text embeddings. High-similarity matches are accepted automatically; intermediate-similarity matches are referred to an LLM for verification.
- Equivalence propagation: Propagate accepted matches across predefined groups of related concept terms.
- Tissue relevance filtering: Assess whether candidate concepts are plausible and informative for each tissue using three repeated LLM assessments and majority voting.
- Benchmark sampling: For each retained tissue-concept pair, sample positive and negative examples according to the caption-derived equivalence-group labels.
Who Are the Annotators?
The automated pipeline uses PathGen-CLIP-L for text matching and GPT-5.2 for LLM verification and filtering. The resulting labels may be incorrect or incomplete and must be treated with caution.
How to Get Started
Download the annotation files from the Files and versions tab of this Hugging Face dataset. Obtain the corresponding source images separately under the conditions described in Licensing and Access, resolve the sample identifiers, and compute concept scores for comparison with the benchmark labels.
Validation
Tabular checks covered all 111,200 annotation records and the companion JSON files:
- All four CSVs have the same ten columns and no missing values.
- There are no duplicate full rows or duplicate tissue-target-patch assignments.
- Every tissue-target pair has 200 positive and 200 negative records.
- All positions parse as two non-negative integer coordinates.
- Target and concept-presence indices are valid group indices. Every label agrees
with whether its target occurs in
concept_groups_present_idx. - All 989 bank concepts occur exactly once across the 605 concept groups.
- Each slide maps consistently to one file ID, patient ID, barcode, and project. Patient IDs match the participant prefix of the slide barcodes.
- Related-concept group IDs are valid, with no self-pairs or duplicate unordered pairs within a tissue.
These checks assess structural consistency, not the clinical correctness of the labels.
Evaluation
The benchmark metrics are Target Concept AUROC, Number of Implausible Concepts, and Margin@10. These measure correct-concept recognition, implausible co-activation, and separation of correct from high-scoring implausible concepts, respectively.
The metrics implementation is available in the HistoConceptBench repository.
Results depend on the selected model, checkpoint, preprocessing, training-data overlap, and evaluation configuration. Model comparisons should document these choices and the baselines used.
Bias, Risks, and Limitations
- Caption-derived label noise: Visible features may be omitted from captions, and caption statements or concept matches may be incorrect. Negative labels therefore carry particular uncertainty.
- Automated annotation bias: Text embeddings, language models, negation heuristics, and thresholds can introduce systematic errors. Repeated LLM agreement is not equivalent to independent expert agreement.
- Concept-definition ambiguity: Grouping synonyms with broader or narrower terms can obscure differences in specificity. Evaluation depends on the released group definitions.
- Selection bias: Tissue relevance and minimum sample requirements favor some concepts over rare or difficult findings. Coverage is not exhaustive.
- Artificial class balance: Balanced per-concept sampling does not reflect real-world prevalence. Precision, predictive values, calibration, and pooled accuracy must be interpreted in that context.
- Non-independent observations: Records may share a patch, slide, or patient. Treating every row as independent can understate uncertainty.
- Limited generalizability: Performance on selected PathGen/TCGA samples does not establish performance across other tissues, institutions, scanners, staining protocols, or patient populations. Demographic representativeness and subgroup performance have not been established.
- Potential source overlap: Foundation models may have encountered PathGen, TCGA, related captions, or the concept bank during training. Construction-time patient splitting alone does not rule out benchmark contamination.
- External data dependency: Changes in source availability, identifiers, or metadata versions can affect reproducibility.
- Interpretation: Concept scores are measures of model behavior, not explanations of biological mechanisms.
Recommendations
- Report per-tissue and per-concept results, dataset and source versions, model configuration, and aggregation methods.
- Disclose benchmark use during model development and known or possible pretraining overlap.
- Account for shared patients/slides when estimating uncertainty.
- Validate important findings with qualified experts, especially conclusions based on caption-derived negatives.
Users are responsible for complying with applicable data-protection requirements, organizational guidelines, and upstream access conditions.
Citation
HistoConceptBench citation:
Julius Hense, Daniel Coelho de Castro, Shruthi Bannur, Farnoush Rezaei Jafari, Daniel Shao, Eric Zimmermann, Kristen Severson, Drew Williamson, Stephanie Hyland, Tristan Lazard, and Kenza Bouzid. Evaluating and Improving Concept Prediction Models for Histopathological Discovery. arXiv:2612.02224, 2026. https://doi.org/10.48550/arXiv.2612.02224
@article{hense2026evaluating,
title = {Evaluating and Improving Concept Prediction Models for Histopathological Discovery},
author = {Hense, Julius and Coelho de Castro, Daniel and Bannur, Shruthi and Rezaei Jafari, Farnoush and Shao, Daniel and Zimmermann, Eric and Severson, Kristen and Williamson, Drew and Hyland, Stephanie and Lazard, Tristan and Bouzid, Kenza},
journal = {arXiv preprint arXiv:2612.02224},
year = {2026},
doi = {10.48550/arXiv.2612.02224},
url = {https://arxiv.org/abs/2612.02224}
}
Concept bank citation:
Tristan Lazard, Kenza Bouzid, Julius Hense, Shruthi Bannur, Daniel Coelho de Castro, Daniel Shao, Rajesh Jena, Drew Williamson, and Stephanie Hyland. Sparse concept attribution for histomorphological hypothesis generation from whole-slide classifiers. arXiv:2609.02985, 2026. https://doi.org/10.48550/arXiv.2609.02985 NeurIPS 2026 workshops: XAI4Science: Knowledge Discovery and Trust through Interpretable Foundation Models; AIDaR: AI Data Readiness for Scientific Discovery.
@article{lazard2026sparse,
title = {Sparse concept attribution for histomorphological hypothesis generation from whole-slide classifiers},
author = {Lazard, Tristan and Bouzid, Kenza and Hense, Julius and Bannur, Shruthi and Coelho de Castro, Daniel and Shao, Daniel and Jena, Rajesh and Williamson, Drew and Hyland, Stephanie},
journal = {arXiv preprint arXiv:2609.02985},
year = {2026},
doi = {10.48550/arXiv.2609.02985},
url = {https://arxiv.org/abs/2609.02985}
}
PathGen citation:
@article{sun2024pathgen,
title = {PathGen-1.6M: 1.6 Million Pathology Image-text Pairs Generation through Multi-agent Collaboration},
author = {Sun, Yuxuan and Zhang, Yunlong and Si, Yixuan and Zhu, Chenglu and Shui, Zhongyi and Zhang, Kai and Li, Jingxiong and Lyu, Xingheng and Lin, Tao and Yang, Lin},
journal = {arXiv preprint arXiv:2407.00203},
year = {2024}
}
The benchmark images are TCGA whole-slide images: the results shown here are in whole or part based upon data generated by the TCGA Research Network: https://www.cancer.gov/tcga.
Glossary
- Patch identifier: The tuple
(wsi_id, x, y), with coordinates parsed fromposition. - Target concept: The pathology feature evaluated by a particular record.
- Concept equivalence group: A set of terms treated as one target by the annotation/evaluation procedure. This does not assert strict interchangeability in every clinical context.
- Annotation record: One sample-target assignment, not necessarily one unique image.
- Caption-derived label: An assignment inferred from source text rather than direct visual inspection of the image by an expert.
Dataset Card Authors
- Kenza Bouzid: Microsoft Research, Cambridge, UK.
- Julius Hense: Berlin Institute for the Foundations of Learning and Data, Berlin, Germany; Machine Learning Group, Technische Universität Berlin, Berlin, Germany.
Dataset Card Contact
For dataset questions, annotation corrections, and access/linkage problems, contact BioMedicalImaging@microsoft.com or open a discussion in the Community tab of this Hugging Face dataset. Include the dataset version and affected identifiers, but do not post patient information, credentials, or restricted data publicly.
Reports will be assessed to determine whether documentation or annotation corrections are warranted. Corrections affecting evaluation should identify the affected versions and their impact in the corresponding release. Report security vulnerabilities privately using the Microsoft Security Response Center.
Ethics
No project-specific Institutional Review Board approval was obtained for annotation/processing. Automated annotation does not itself establish that review was unnecessary.
The informed-consent arrangements applicable to the upstream source data have not been independently verified by the HistoConceptBench team.
No human annotators were involved in the annotation process, so human annotator compensation was not applicable. This does not describe compensation of upstream data contributors.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos is subject to those third parties' policies.
- Downloads last month
- 1