SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.06627 · ICML · 2024

Conformal Validity Guarantees Exist for Any Data Distribution (and How to Find Them)

Samuel Stanton, Anqi Liu, Suchi Saria, Drew Prinster

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 0 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/2405.06627.json · badge: /api/ran/2405.06627.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
drewprinster/conformal-mfcs canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
get_loglikelihood Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
drewprinster/conformal-mfcs/assay_mfcs.py
code served (permissive licence) · get_code("689d55842b0f0288")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned ndarray, ndim 1, dtype family float, shape (2,) 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 numpy as np

AA2CODON = {'l': ['tta', 'ttg', 'ctt', 'ctc', 'cta', 'ctg'], 's': ['tct', 'tcc', 'tca', 'tcg', 'agt', 'agc'], 'r': ['cgt', 'cgc', 'cga', 'cgg', 'aga', 'agg'], 'v': ['gtt', 'gtc', 'gta', 'gtg'], 'a': ['gct', 'gcc', 'gca', 'gcg'], 'p': ['cct', 'ccc', 'cca', 'ccg'], 't': ['act', 'acc', 'aca', 'acg'], 'g': ['ggt', 'ggc', 'gga', 'ggg'], '*': ['taa', 'tag', 'tga'], 'i': ['att', 'atc', 'ata'], 'y': ['tat', 'tac'], 'f': ['ttt', 'ttc'], 'c': ['tgt', 'tgc'], 'h': ['cat', 'cac'], 'q': ['caa', 'cag'], 'n': ['aat', 'aac'], 'k': ['aaa', 'aag'], 'd': ['gat', 'gac'], 'e': ['gaa', 'gag'], 'w': ['tgg'], 'm': ['atg']}

AA_ORDERED = [k.upper() for k in AA2CODON.keys()]

AA2IDX = {aa: i for i, aa in enumerate(AA_ORDERED)}

seq_n = ["LSRV", "ATGI"]

L = 4
k = len(AA_ORDERED)

p_Lxk = np.random.rand(L, k)
p_Lxk = p_Lxk / p_Lxk.sum(axis=1, keepdims=True)

ARGS = {
    "seq_n": seq_n,
    "p_Lxk": p_Lxk
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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
phinuc2paa Ran
ran, honoured the contract we drafted
drewprinster/conformal-mfcs/assay_mfcs.py
code served (permissive licence) · get_code("7f93af35d5251c0f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned ndarray, ndim 2, dtype family float, shape (2, 21) 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 numpy as np

# The function expects phinuc_Lxk which is an L x k array
# where L is the length (must be divisible by 3 for codons)
# and k is 4 (for the 4 nucleotides A, T, C, G)

# Let's create a small example with L=6 (2 codons) and k=4 nucleotides
L = 6  # Must be divisible by 3
k = 4  # Number of nucleotides (A, T, C, G)

# Create unnormalized nucleotide probabilities (log probabilities)
np.random.seed(0)
phinuc_Lxk = np.random.randn(L, k)

ARGS = {
    'phinuc_Lxk': phinuc_Lxk
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 21) — shape (2, 21) 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
pnuc2paa Ran
ran, honoured the contract we drafted
drewprinster/conformal-mfcs/assay_mfcs.py
code served (permissive licence) · get_code("66e533efe1108c9a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned ndarray, ndim 2, dtype family float, shape (2, 21) 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 numpy as np
import pandas as pd

# The function expects pnuc_Lxk where:
# - L is the length (must be divisible by 3 for codons)
# - k is the number of nucleotides (4: A, T, C, G)
# Each row represents probabilities over the 4 nucleotides at that position

# Create a small example with L=6 (2 codons) and k=4 nucleotides
L = 6
k = 4

# Create nucleotide probabilities: L positions x 4 nucleotides
# Each row should sum to 1 (probability distribution over nucleotides)
np.random.seed(0)
pnuc_Lxk = np.random.rand(L, k)
# Normalize each row to sum to 1
pnuc_Lxk = pnuc_Lxk / pnuc_Lxk.sum(axis=1, keepdims=True)

ARGS = {
    'pnuc_Lxk': pnuc_Lxk
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 21) — shape (2, 21) 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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 0 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
get_loglikelihood 1 other paper
1 dated earlier
2202.03613 (2022-02)
Conformal Prediction Under Feedback Covariate Shift for Biomolecular Design
phinuc2paa 1 other paper
1 dated earlier
2202.03613 (2022-02)
Conformal Prediction Under Feedback Covariate Shift for Biomolecular Design
pnuc2paa 1 other paper
1 dated earlier
2202.03613 (2022-02)
Conformal Prediction Under Feedback Covariate Shift for Biomolecular Design

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

As artificial intelligence (AI) / machine learning (ML) gain widespread adoption, practitioners are increasingly seeking means to quantify and control the risk these systems incur. This challenge is especially salient when such systems have autonomy to collect their own data, such as in black-box optimization and active learning, where their actions induce sequential feedbackloop shifts in the data distribution. Conformal prediction is a promising approach to uncertainty and risk quantification, but prior variants' validity guarantees have assumed some form of "quasiexchangeability" on the data distribution, thereby excluding many types of sequential shifts. In this paper we prove that conformal prediction can theoretically be extended to any joint data distribution, not just exchangeable or quasi-exchangeable ones. Although the most general case is exceedingly impractical to compute, for concrete practical applications we outline a procedure for deriving specific conformal algorithms for any data distribution, and we use this procedure to derive tractable algorithms for a series of AI/ML-agentinduced covariate shifts. We evaluate the proposed algorithms empirically on synthetic blackbox optimization and active learning tasks.

For agents

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

get_harvested_code_for_paper("2405.06627")
get_code_for_paper("2405.06627")
have("2405.06627")

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

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

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

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

Connect an agent — have() is free.