SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.12210 · NeurIPS · 2021

ProBF: Learning Probabilistic Safety Certificates with Barrier Functions

Ryan Adams, Peter Ramadge, Ramesh Athindran, Kumar, Sulin Liu, Jaime Fisac

arXiv · PDF · Open in the Atlas

Code that ran

1 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 0 failures of our instrument; 2 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/2112.12210.json · badge: /api/ran/2112.12210.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
athindran/ProBF marked official in Papers with Code
Papers with Code archive
1 ran · 2 no recorded run
FunctionStatusWhere it lives
GaussianProcessEstimator Ran
ran on a synthesized input · constructed an object; no result was computed
athindran/ProBF/core/learning/value_estimator.py
code served (permissive licence) · get_code("85c5a520c5736bfe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned GaussianProcessEstimator: the class was constructed and called, and the call returned an instance of its own class. 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 numpy as np
from numpy.linalg import solve
from numpy import array, dot

def arr_map(func, *arr):
    return array(list(map(func, *arr)))

class SimpleKernel:
    """A simple RBF kernel for testing."""
    def __init__(self, sigma=1.0):
        self.sigma = sigma
    
    def eval(self, x1, x2):
        """Evaluate RBF kernel between two points."""
        diff = np.sum((x1 - x2) ** 2)
        return np.exp(-diff / (2 * self.sigma ** 2))

class GaussianProcessEstimator:

    def __init__(self, kernel, data):
        self.kernel = kernel
        self.data = data
        self.kernel_mat = arr_map(self.embedding, data)
        self.weights = None

    def embedding(self, x):
        return array([self.kernel.eval(x_i, x) for x_i in self.data])

    def fit(self, targets):
        self.weights = solve(self.kernel_mat, targets)
        return self

    def eval(self, x):
        return dot(self.weights, self.embedding(x))


# Setup data
kernel = SimpleKernel(sigma=1.0)
data = np.array([
    [0.0, 1.0, 2.0, 3.0],
    [1.0, 2.0, 3.0, 4.0],
    [2.0, 3.0, 4.0, 5.0]
])

INIT_ARGS = {
    'kernel': kernel,
    'data': data
}

targets = np.array([1.0, 2.0, 3.0])

ARGS = {
    'targets': targets
}

METHOD = 'fit'

# Construct and call
gp = GaussianProcessEstimator(**INIT_ARGS)
gp_fitted = gp.fit(**ARGS)

# Evaluate on a test point
test_point = np.array([0.5, 1.5, 2.5, 3.5])
result = gp_fitted.eval(test_point)
print(f"Result: {result}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GaussianProcessEstimator — the call returned an instance of its own class, which has no array shape; none is stated — the instrument coerces any output to an array; for a GaussianProcessEstimator 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ValueEstimator Not yet run
unverified (harvested, no recorded run)
athindran/ProBF/core/learning/value_estimator.py
code served (permissive licence) · get_code("fd602d2054b0ebf6")
How it ran

no invocation recorded.

arr_map Not yet run
unverified (harvested, no recorded run)
athindran/ProBF/core/learning/value_estimator.py
code served (permissive licence) · get_code("573a89a1aabdc442")
How it ran

no invocation recorded.

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, 0 are also present in other papers whose code we hold (0 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.

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

Safety-critical applications require controllers/policies that can guarantee safety with high confidence. The control barrier function is a useful tool to guarantee safety if we have access to the ground-truth system dynamics. In practice, we have inaccurate knowledge of the system dynamics, which can lead to unsafe behaviors due to unmodeled residual dynamics. Learning the residual dynamics with deterministic machine learning models can prevent the unsafe behavior but can fail when the predictions are imperfect. In this situation, a probabilistic learning method that reasons about the uncertainty of its predictions can help provide robust safety margins. In this work, we use a Gaussian process to model the projection of the residual dynamics onto a control barrier function. We propose a novel optimization procedure to generate safe controls that can guarantee safety with high probability. The safety filter is provided with the ability to reason about the uncertainty of the predictions from the GP. We show the efficacy of this method through experiments on Segway and Quadrotor simulations. Our proposed probabilistic approach is able to reduce the number of safety violations significantly as compared to the deterministic approach with a neural network.

For agents

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

get_harvested_code_for_paper("2112.12210")
get_code_for_paper("2112.12210")
have("2112.12210")

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

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

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

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

Connect an agent — have() is free.