SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.05514 · 2019

Mitigating Information Leakage in Image Representations: A Maximum Entropy Approach

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 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; 1 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-23; 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/1904.05514.json · badge: /api/ran/1904.05514.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
human-analysis/MaxEnt-ARL canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
ResNet18 Ran
ran on a synthesized input
human-analysis/MaxEnt-ARL/models/resnet.py
code served (permissive licence) · get_code("0337db062c5a1bbf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ResNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 10,
    "embed_length": 512,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
colorize Ran
ran; our contract draft was wrong, not the code
human-analysis/MaxEnt-ARL/utils/visualize.py
code served (permissive licence) · get_code("c87e7665fde6cdfc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (3, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function colorize takes a single parameter x which should be a tensor
# Looking at the function body:
# - x can be 2D, 3D, or 4D
# - For 3D: x.size(1) and x.size(2) are used (height, width)
# - For 4D: x.size(0) is batch, x.size(2) and x.size(3) are height/width
# The function applies gaussian operations on x values, so it should contain
# grayscale image data (values roughly in [0,1] or similar range)

# Create a small 3D tensor (1 channel, 4 height, 3 width)
x_3d = torch.rand(1, 4, 3)

ARGS = {
    "x": x_3d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (3, 4, 3) — shape (3, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gauss Ran
ran on a synthesized input
human-analysis/MaxEnt-ARL/utils/visualize.py
code served (permissive licence) · get_code("d66f0a3cbb86204c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The gauss function performs Gaussian operations on tensors
# Parameters x, a, b, c are all used in arithmetic operations
# They should all be tensors (or scalar-like values that torch operations can handle)

x = torch.randn(2, 4)
a = torch.randn(2, 4)
b = torch.randn(2, 4)
c = torch.randn(2, 4)

ARGS = {
    'x': x,
    'a': a,
    'b': b,
    'c': c
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_mean_and_std Ran
ran on a synthesized input
human-analysis/MaxEnt-ARL/utils/misc.py
pointer only (licence: MIT); the stored copy get_code serves, from KaiSUN1/SeAl, is pointer only (licence: NONE) · get_code("2c92cec199cf12cd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from KaiSUN1/SeAl, and GitHub detected no licence in that repository 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.

get_spaced_colors Ran
ran on a synthesized input
human-analysis/MaxEnt-ARL/utils/util.py
code served (permissive licence) · get_code("72ead991e91cd66c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function:
# get_spaced_colors(n) takes a single parameter 'n' (an integer)
# It uses n to calculate interval = int(max_value / n)
# So n should be a positive integer > 1 to generate meaningful spacing

# Simple test case: n = 5 will generate 5 evenly spaced colors
n = 5

ARGS = {
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
learning_rate Ran
ran, honoured the contract we drafted
human-analysis/MaxEnt-ARL/utils/util.py
code served (permissive licence) · get_code("947a620765d795b2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

ARGS = {
    "init": 0.1,
    "epoch": 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_image Ran
ran on a synthesized input
human-analysis/MaxEnt-ARL/utils/visualize.py
code served (permissive licence) · get_code("1394422d51c4b126")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (4, 5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create a small tensor with shape (3, 4, 5) - 3 channels, 4x5 spatial dimensions
# This tensor will be modified in-place and needs to support .numpy()
img = torch.randn(3, 4, 5)

# Define mean and std tuples
mean = (0.5, 0.3, 0.2)
std = (0.1, 0.2, 0.15)

ARGS = {
    "img": img,
    "mean": mean,
    "std": std,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (4, 5, 3) — shape (4, 5, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_overlap Ran
ran on a synthesized input
human-analysis/MaxEnt-ARL/utils/logger.py
code served (permissive licence) · get_code("fb4747f9907dbad8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import matplotlib.pyplot as plt
import numpy as np

class MockLogger:
    def __init__(self):
        self.title = "test_plot"
        self.names = ["loss", "accuracy", "f1_score"]
        self.numbers = {
            "loss": [0.5, 0.4, 0.3, 0.2],
            "accuracy": [0.6, 0.7, 0.8, 0.9],
            "f1_score": [0.55, 0.65, 0.75, 0.85]
        }

logger = MockLogger()

ARGS = {
    "logger": logger,
    "names": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
accuracy Not yet run
unverified (harvested, no recorded run)
human-analysis/MaxEnt-ARL/utils/util.py
code served (permissive licence) · get_code("f0c9a29156911331")
How it ran

no invocation recorded.

create_discriminator Not yet run
unverified (harvested, no recorded run)
human-analysis/MaxEnt-ARL/models/discriminator.py
code served (permissive licence) · get_code("16d171aacf292107")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 6 later) and 4 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
accuracy 71 other papers
13 dated earlier, 1 the same month, 57 later · 2 only as an assembly brick
1505.05424 (2015-05)
Weight Uncertainty in Neural Networks
1705.07204 (2017-05)
Ensemble Adversarial Training: Attacks and Defenses
1802.10399 (2018-02)
Compressing Neural Networks using the Variational Information Bottleneck
and 68 more not named here
get_mean_and_std 21 other papers
4 dated earlier, 17 later
1805.07925 (2018-05)
Batch-Instance Normalization for Adaptively Style-Invariant Neural Networks
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
and 18 more not named here
colorize 11 other papers
4 dated earlier, 7 later
1805.07925 (2018-05)
Batch-Instance Normalization for Adaptively Style-Invariant Neural Networks
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
and 8 more not named here
gauss 11 other papers
4 dated earlier, 7 later
1805.07925 (2018-05)
Batch-Instance Normalization for Adaptively Style-Invariant Neural Networks
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
and 8 more not named here
make_image 11 other papers
4 dated earlier, 7 later
1805.07925 (2018-05)
Batch-Instance Normalization for Adaptively Style-Invariant Neural Networks
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
and 8 more not named here
learning_rate 5 other papers
2 dated earlier, 3 later
1802.07088 (2018-02)
i-RevNet: Deep Invertible Networks
1805.08079 (2018-05)
Faster Neural Network Training with Approximate Tensor Operations
2204.10839 (2022-04)
How Sampling Impacts the Robustness of Stochastic Neural Networks
and 2 more not named here

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

Image recognition systems have demonstrated tremendous progress over the past few decades thanks, in part, to our ability of learning compact and robust representations of images. As we witness the wide spread adoption of these systems, it is imperative to consider the problem of unintended leakage of information from an image representation, which might compromise the privacy of the data owner. This paper investigates the problem of learning an image representation that minimizes such leakage of user information. We formulate the problem as an adversarial non-zero sum game of finding a good embedding function with two competing goals: to retain as much task dependent discriminative image information as possible, while simultaneously minimizing the amount of information, as measured by entropy, about other sensitive attributes of the user. We analyze the stability and convergence dynamics of the proposed formulation using tools from non-linear systems theory and compare to that of the corresponding adversarial zero-sum game formulation that optimizes likelihood as a measure of information content. Numerical experiments on UCI, Extended Yale B, CIFAR-10 and CIFAR-100 datasets indicate that our proposed approach is able to learn image representations that exhibit high task performance while mitigating leakage of predefined sensitive information.

For agents

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

get_harvested_code_for_paper("1904.05514")
get_code_for_paper("1904.05514")
have("1904.05514")

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

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

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

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

Connect an agent — have() is free.