Open-source framework for detecting bias and overfitting for large pathology images

Anders Sildnes, Nikita Shvetsov, Masoud Tafavvoghi, Vi Ngoc-Nha Tran, Kajsa Møllersen +3 more
3/3/2025
cs.LGcs.SEeess.IV

No official code found. Best implementation: uit-hdl/code-overfit-detection-framework (0 stars, Apache-2.0, last commit 2026-04-17). 1 more below.

Abstract

Even foundational models that are trained on datasets with billions of data samples may develop shortcuts that lead to overfitting and bias. Shortcuts are non-relevant patterns in data, such as the background color or color intensity. So, to ensure the robustness of deep learning applications, there is a need for methods to detect and remove such shortcuts. Today's model debugging methods are time consuming since they often require customization to fit for a given model architecture in a specific domain. We propose a generalized, model-agnostic framework to debug deep learning models. We focus on the domain of histopathology, which has very large images that require large models - and therefore large computation resources. It can be run on a workstation with a commodity GPU. We demonstrate that our framework can replicate non-image shortcuts that have been found in previous work for self-supervised learning models, and we also identify possible shortcuts in a foundation model. Our easy to use tests contribute to the development of more reliable, accurate, and generalizable models for WSI analysis. Our framework is available as an open-source tool available on github.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

code for paper: Open-source framework for detecting bias and overfitting for large pathology images

00TeX, ShellFeb 20, 20246 months agoApache-2.0
inceptionv4ssltcga-lusc
Apache-2.0

tools for UMAP and linear probe inspection

00PythonNov 6, 20246 months agoApache-2.0
linearprobingpythonumapwsi

Similar Papers

Cite this paper

@article{sildnes2025opensource,
  title  = {Open-source framework for detecting bias and overfitting for large pathology images},
  author = {Anders Sildnes and Nikita Shvetsov and Masoud Tafavvoghi and Vi Ngoc-Nha Tran and Kajsa Møllersen and Lill-Tove Rasmussen Busund and Thomas K. Kilvær and Lars Ailo Bongo},
  year   = {2025},
  eprint = {2503.01827},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.01827v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.01827.svg)](https://codeofpaper.com/paper/2503.01827)

Discussion