SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.24695 · 2026

Amplified Patch-Level Differential Privacy for Free via Random Cropping

Stephan Günnemann, Jan Schuchardt, Sebastian Schmidt, Kaan Durmaz

arXiv · PDF · Open in the Atlas

Code that ran

4 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-23; 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/2603.24695.json · badge: /api/ran/2603.24695.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
TUM-DAML/patch_level_dp canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
dtype_safe Ran
ran; our contract draft was wrong, not the code
TUM-DAML/patch_level_dp/src/patch_level_dp/privacy/dataloader.py
pointer only (licence: NONE) · get_code("462e49a02ad3f79d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TUM-DAML/patch_level_dp 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.

generate_circle_pixels Ran
ran, honoured the contract we drafted
TUM-DAML/patch_level_dp/src/patch_level_dp/privacy/calculations.py
pointer only (licence: NONE) · get_code("8d5d894aeffaa8e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TUM-DAML/patch_level_dp 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.

generate_rectangle_pixels Ran
ran, honoured the contract we drafted
TUM-DAML/patch_level_dp/src/patch_level_dp/privacy/calculations.py
pointer only (licence: NONE) · get_code("4d31b5b2ddd4f7e9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TUM-DAML/patch_level_dp 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.

shape_safe Ran
ran, honoured the contract we drafted
TUM-DAML/patch_level_dp/src/patch_level_dp/privacy/dataloader.py
pointer only (licence: NONE) · get_code("a244707168006dd0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TUM-DAML/patch_level_dp 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.

collate Not yet run
unverified (harvested, no recorded run)
TUM-DAML/patch_level_dp/src/patch_level_dp/privacy/dataloader.py
pointer only (licence: NONE) · get_code("c2f5f5309d0f6648")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, TUM-DAML/patch_level_dp 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. No invocation 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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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
dtype_safe 1 other paper
1 dated earlier
2110.05679 (2021-10)
Large Language Models Can Be Strong Differentially Private Learners
shape_safe 1 other paper
1 dated earlier
2110.05679 (2021-10)
Large Language Models Can Be Strong Differentially Private Learners

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

Repositories linked to this paper

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

Abstract

Random cropping is one of the most common data augmentation techniques in computer vision, yet the role of its inherent randomness in training differentially private machine learning models has thus far gone unexplored. We observe that when sensitive content in an image is spatially localized, such as a face or license plate, random cropping can probabilistically exclude that content from the model's input. This introduces a third source of stochasticity in differentially private training with stochastic gradient descent, in addition to gradient noise and minibatch sampling. This additional randomness amplifies differential privacy without requiring changes to model architecture or training procedure. We formalize this effect by introducing a patch-level neighboring relation for vision data and deriving tight privacy bounds for differentially private stochastic gradient descent (DP-SGD) when combined with random cropping. Our analysis quantifies the patch inclusion probability and shows how it composes with minibatch sampling to yield a lower effective sampling rate. Empirically, we validate that patch-level amplification improves the privacy-utility trade-off across multiple segmentation architectures and datasets. Our results demonstrate that aligning privacy accounting with domain structure and additional existing sources of randomness can yield stronger guarantees at no additional cost. 1 1 Full implementation details are provided in github.com/TUM-DAML/patch_level_dp.

For agents

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

get_harvested_code_for_paper("2603.24695")
get_code_for_paper("2603.24695")
have("2603.24695")

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

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

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

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

Connect an agent — have() is free.