SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.08220 · ICML · 2022

Functional Output Regression with Infimal Convolution: Exploring the Huber and -insensitive Losses

Florence D'alché-Buc, Alex Lambert, Dimitri Bouche, Zoltán Szabó

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 4 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/2206.08220.json · badge: /api/ran/2206.08220.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
allambert/foreg canonical (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
FunctionStatusWhere it lives
add_label_noise Ran
ran on a synthesized input
allambert/foreg/datasets/outliers.py
code served (permissive licence) · get_code("a44e0f72a34337f8")
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 tuple, ndim 3, 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 torch
import numpy as np

torch.manual_seed(0)

# X is a torch tensor with shape (n, m) - using (2, 4) for small size
X = torch.randn(2, 4)

# Xeval is optional numpy array with same first dimension
Xeval = np.random.randn(2, 4).astype(np.float32)

# freq_sample is a float between 0 and 1
freq_sample = 0.02

# seed is an int for numpy random seed
seed = 443

# coef is a float multiplier
coef = -1.0

# alternate_coef is a boolean
alternate_coef = False

ARGS = {
    "X": X,
    "Xeval": Xeval,
    "freq_sample": freq_sample,
    "seed": seed,
    "coef": coef,
    "alternate_coef": alternate_coef,
}
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 tuple, ndim 3, dtype family float — a tuple 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
get_score Ran
ran on a synthesized input
allambert/foreg/model_selection/model_selection.py
code served (permissive licence) · get_code("00e351b580b1143b")
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 torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for testing
# pred should be a torch tensor
pred = torch.randn(2, 4)

# Y should be compatible with pred - can be numpy array or torch tensor
# The function calls .numpy() on pred and subtracts Y, so Y should be numpy
Y = np.random.randn(2, 4)

# partial: boolean flag
partial = False

# metric_p: numeric power parameter
metric_p = 2

ARGS = {
    "pred": pred,
    "Y": Y,
    "partial": partial,
    "metric_p": metric_p
}
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 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
interpret_n_jobs Ran
ran on a synthesized input
allambert/foreg/model_selection/model_selection.py
code served (permissive licence) · get_code("71815b47d0b414be")
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 int, ndim 0, dtype family int, 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.

from multiprocessing import cpu_count

def interpret_n_jobs(n_jobs):
    if isinstance(n_jobs, str):
        if n_jobs == 'max':
            n_jobs = -1
        elif 'max/' in n_jobs:
            tot_cpus = cpu_count()
            sp = n_jobs.split('/')
            n_jobs = tot_cpus // int(sp[1])
    return n_jobs

ARGS = {
    'n_jobs': 'max'
}
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 int, ndim 0, dtype family int, 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_gaussian Ran
ran on a synthesized input
allambert/foreg/datasets/synthetic_func_or.py
code served (permissive licence) · get_code("75d051691b208959")
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 1, dtype family float, shape (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
import numpy as np
from sklearn.gaussian_process.kernels import RBF

torch.manual_seed(0)

# Create a small tensor for t parameter
t = torch.tensor([0.0, 1.0, 2.0, 3.0], dtype=torch.float32)

# gamma_cov: length scale parameter for RBF kernel
gamma_cov = 1.0

# noise: standard deviation of noise to add to covariance matrix
noise = 0.1

ARGS = {
    "t": t,
    "gamma_cov": gamma_cov,
    "noise": noise
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (4,) — shape (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
proj_matrix_2 Ran
ran on a synthesized input
allambert/foreg/estimator/proxs.py
code served (permissive licence) · get_code("c1a0429ecae3e2d0")
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)

# alpha: a 2D tensor with shape (batch, features)
# The function accesses alpha.shape[1], performs operations along axis=1,
# and uses fancy indexing with mask to modify alpha in-place
alpha = torch.randn(2, 4)

# kappa: a scalar value used for normalization threshold
kappa = 0.5

ARGS = {
    "alpha": alpha,
    "kappa": kappa,
}
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
proj_matrix_inf Ran
ran on a synthesized input
allambert/foreg/estimator/proxs.py
code served (permissive licence) · get_code("6f80fdc0d3ea34db")
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)

# alpha: a tensor that will be processed element-wise
# The function computes: torch.abs(alpha) and compares with kappa
# Then returns either kappa * alpha / norm or alpha based on the condition
alpha = torch.randn(2, 4)

# kappa: a scalar threshold value used for comparison and scaling
kappa = 0.5

ARGS = {
    "alpha": alpha,
    "kappa": kappa,
}
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
proj_vect_2 Ran
ran on a synthesized input
allambert/foreg/estimator/proxs.py
code served (permissive licence) · get_code("0ba7e2e834cfcd01")
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 1, dtype family float, shape (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)

# alpha: a tensor that will be normalized if its norm exceeds kappa
# The function computes the norm, checks if it exceeds kappa, and scales if needed
alpha = torch.randn(4)

# kappa: a scalar threshold for the norm
kappa = 0.5

ARGS = {
    "alpha": alpha,
    "kappa": kappa,
}
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 1, dtype family float, shape (4,) — shape (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
rbf_kernel Ran
ran on a synthesized input
allambert/foreg/kernel/utils.py
code served (permissive licence) · get_code("a65a4ca8f2c90e41")
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, 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)

# Create small tensors for X and Y
# X: (n_samples_1=2, n_features=4)
# Y: (n_samples_2=3, n_features=4)
X = torch.randn(2, 4)
Y = torch.randn(3, 4)

# gamma: float parameter
gamma = 0.25

ARGS = {
    "X": X,
    "Y": Y,
    "gamma": gamma,
}
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, 3) — shape (2, 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
test_esti Ran
ran on a synthesized input
allambert/foreg/model_selection/model_selection.py
code served (permissive licence) · get_code("d49f44512c22df8f")
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 torch
import numpy as np
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, X, G_x=None):
        return self.linear(X)

class SimpleEstimator:
    def __init__(self):
        self.model = SimpleModel()

esti = SimpleEstimator()
X = torch.randn(2, 4)
Y = torch.randn(2, 3)
G_x = None
partial = False
Ymean = None

ARGS = {
    "esti": esti,
    "X": X,
    "Y": Y,
    "G_x": G_x,
    "partial": partial,
    "Ymean": Ymean
}
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 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
add_gp_outliers Not yet run
unverified (harvested, no recorded run)
allambert/foreg/datasets/outliers.py
code served (permissive licence) · get_code("3197d61430fbf86b")
How it ran

no invocation recorded.

add_local_outliers Not yet run
unverified (harvested, no recorded run)
allambert/foreg/datasets/outliers.py
code served (permissive licence) · get_code("31a4854eec3a4198")
How it ran

no invocation recorded.

load_gp_dataset Not yet run
unverified (harvested, no recorded run)
allambert/foreg/datasets/load_synthetic.py
code served (permissive licence) · get_code("aa52343b5a57d9b8")
How it ran

no invocation recorded.

synthetic_gaussian Not yet run
unverified (harvested, no recorded run)
allambert/foreg/datasets/synthetic_func_or.py
code served (permissive licence) · get_code("7678525c86ad946a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 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 13 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

The focus of the paper is functional output regression (FOR) with convoluted losses. While most existing work consider the square loss setting, we leverage extensions of the Huber and the -insensitive loss (induced by infimal convolution) and propose a flexible framework capable of handling various forms of outliers and sparsity in the FOR family. We derive computationally tractable algorithms relying on duality to tackle the resulting tasks in the context of vector-valued reproducing kernel Hilbert spaces. The efficiency of the approach is demonstrated and contrasted with the classical squared loss setting on both synthetic and real-world benchmarks.

For agents

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

get_harvested_code_for_paper("2206.08220")
get_code_for_paper("2206.08220")
have("2206.08220")

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

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

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

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

Connect an agent — have() is free.