Papers › Data Models for Dataset Drift Controls in Machine Learning With Optical Images

Data Models for Dataset Drift Controls in Machine Learning With Optical Images

4 Nov 2022arXiv:2211.02578archive 2025-07-28

Luis Oala, Marco Aversa, Gabriel Nobis, Kurt Willis, Yoan Neuenschwander, Michèle Buck, Christian Matek, Jerome Extermann, Enrico Pomarico, Wojciech Samek, Roderick Murray-Smith, Christoph Clausen, Bruno Sanguinetti

Camera images are ubiquitous in machine learning research. They also play a central role in the delivery of important services spanning medicine and environmental surveying. However, the application of machine learning models in these domains has been limited because of robustness concerns. A primary failure mode are performance drops due to differences between the training and deployment data. While there are methods to prospectively validate the robustness of machine learning models to such dataset drifts, existing approaches do not account for explicit models of the primary object of interest: the data. This limits our ability to study and understand the relationship between data generation and downstream machine learning model performance in a physically accurate manner. In this study, we demonstrate how to overcome this limitation by pairing traditional machine learning with physical optics to obtain explicit and differentiable data models. We demonstrate how such data models can be constructed for image data and used to control downstream machine learning model performance related to dataset drift. The findings are distilled into three applications. First, drift synthesis enables the controlled generation of physically faithful drift test cases to power model selection and targeted generalization. Second, the gradient connection between machine learning task model and data model allows advanced, precise tolerancing of task model sensitivity to changes in the data generation. These drift forensics can be used to precisely specify the acceptable data environments in which a task model may be run. Third, drift optimization opens up the possibility to create drifts that can help the task model learn better faster, effectively optimizing the data generating process itself. A guide to access the open code and datasets is available at https://github.com/aiaudit-org/raw2logit.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2211.02578")

Code

Syntology Ran 4 of 18 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

aiaudit-org/raw2logit officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 4 ran; 2 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · our draft was wrong
1ran
14unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from aiaudit-org/raw2logit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

clipped_zoom aiaudit-org/raw2logit/utils/hendrycks_robustness.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 466ca3cdf4524d82 · report
create_window aiaudit-org/raw2logit/utils/ssim.py official repository ran · honoured contract fingerprinted MIT (permissive) · 6154e3744ece5728 · report
disk aiaudit-org/raw2logit/utils/hendrycks_robustness.py official repository ran MIT (permissive) · bc8b7f1d3348c560 · report
gaussian aiaudit-org/raw2logit/utils/ssim.py official repository ran · honoured contract fingerprinted MIT (permissive) · c56b7ef16f309a45 · report
get_augmentation aiaudit-org/raw2logit/utils/augmentation.py official repository unverified MIT (permissive) · 8c45fb3e0cb23785 · report
get_camera_parameters aiaudit-org/raw2logit/processing/pipeline_numpy.py official repository unverified MIT (permissive) · 1b7982e1820dcf5c · report
k_fold aiaudit-org/raw2logit/utils/dataset_utils.py official repository unverified MIT (permissive) · 9c5e093b8d866226 · report
list_images_in_dir aiaudit-org/raw2logit/utils/dataset_utils.py official repository unverified MIT (permissive) · 3c50560fdbf5c682 · report
np2torch aiaudit-org/raw2logit/utils/base.py official repository unverified MIT (permissive) · 559c59239df0058f · report
plasma_fractal aiaudit-org/raw2logit/utils/hendrycks_robustness.py official repository unverified MIT (permissive) · cb4092b5e3cb3af3 · report
raw2rgb aiaudit-org/raw2logit/processing/pipeline_torch.py official repository unverified MIT (permissive) · c5742d0c1047c423 · report
read_label_csv aiaudit-org/raw2logit/dataset.py official repository unverified MIT (permissive) · 95281f5c74968285 · report
read_label_file aiaudit-org/raw2logit/dataset.py official repository unverified MIT (permissive) · 045190de81281aa8 · report
remove_blacklv aiaudit-org/raw2logit/processing/pipeline_numpy.py official repository unverified MIT (permissive) · fe707df7a8e80910 · report
resnet_model aiaudit-org/raw2logit/model.py official repository unverified MIT (permissive) · c3c598b1b4b67b24 · report
ssim aiaudit-org/raw2logit/utils/ssim.py official repository unverified MIT (permissive) · 9151c793f90473f0 · report
str2bool aiaudit-org/raw2logit/utils/base.py official repository unverified MIT (permissive) · d19549ae909a3ef9 · report
torch2np aiaudit-org/raw2logit/utils/base.py official repository unverified MIT (permissive) · 247a4dfe7a43e089 · report

Tasks

Model Selection

Datasets

Introduced by this paper, per the archive.

Raw-Microscopy and Raw-Drone

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SPEEDTest

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections