SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.10914 · ICML · 2024

First-Order Manifold Data Augmentation for Regression Learning

Omri Azencot, Ilya Kaufman

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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; 6 failures of our instrument; 4 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/2406.10914.json · badge: /api/ran/2406.10914.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
azencot-group/foma canonical (classifier label)
classifier basis: classifier_2025
8 ran · 4 no recorded run
FunctionStatusWhere it lives
apply_lambda_after_id_estimation Ran
ran; our contract draft was wrong, not the code
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("992737ceb00c1e2e")
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)

# s: tensor with shape where we can index .shape[-1]
s = torch.randn(2, 4)

# id_est: integer representing estimated intrinsic dimension
id_est = 2

# lam: scalar value for lambda scaling
lam = 0.5

# args: object with attribute small_singular
class Args:
    def __init__(self, small_singular):
        self.small_singular = small_singular

args = Args(small_singular=True)

ARGS = {
    "s": s,
    "id_est": id_est,
    "lam": lam,
    "args": args
}
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
calculate_lam_mult_by_rho Ran
ran; our contract draft was wrong, not the code
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("69eb4e99ecdf894b")
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)

class ArgsConfig:
    def __init__(self, rho, small_singular):
        self.rho = rho
        self.small_singular = small_singular

# Create tiny singular values tensor (batch_size=2, dim=4)
s = torch.tensor([4.0, 3.0, 2.0, 1.0])
lam = torch.tensor(2.5)

# Test with small_singular=True
args_true = ArgsConfig(rho=0.7, small_singular=True)

# Test with small_singular=False
args_false = ArgsConfig(rho=0.5, small_singular=False)

ARGS = {
    "args": args_true,
    "s": s,
    "lam": lam
}
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
estimate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("b844e33b3a003151")
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 float64, 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 numpy as np
from sklearn import linear_model

# Create a small distance matrix (n, n) where n is the number of points
# Distance matrices are symmetric with zeros on diagonal
np.random.seed(0)
n_points = 10
X = np.random.rand(n_points, n_points) * 5
# Make it symmetric
X = (X + X.T) / 2
# Zero out diagonal
np.fill_diagonal(X, 0)

ARGS = {
    'X': X,
    'fraction': 0.9,
    'verbose': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, 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
estimate_torch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("08c0d2c3e4069924")
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
from math import floor

torch.manual_seed(0)

# Create a small distance matrix (n x n where n=5)
# Distance matrices are symmetric with zeros on diagonal
n = 5
X = torch.rand(n, n, dtype=torch.float32)
# Make it symmetric and ensure diagonal is 0
X = (X + X.T) / 2
X.fill_diagonal_(0)

# Ensure the matrix has proper structure for the function:
# - First column (index 0) will be sorted distances
# - After sorting, columns 1 and 2 will be k1 and k2
# The function sorts each row and takes elements at indices 1 and 2
# We need to make sure these values don't create degenerate cases
for i in range(n):
    distances = torch.rand(n, dtype=torch.float32)
    distances[i] = 0  # diagonal is 0
    X[i] = distances

ARGS = {
    "X": X,
    "fraction": 0.9,
    "verbose": False
}
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 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
estimate_torch_batched Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("76a7ba5528c5faed")
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 float32, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

# Create a small dataset of points in a low-dimensional space
# Shape: (n_points, n_dimensions) = (8, 4)
n_points = 8
n_dims = 4
X = torch.randn(n_points, n_dims, dtype=torch.float32)

ARGS = {
    "X": X,
    "batch_size": 2,
    "fraction": 0.9,
    "verbose": False,
}
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 float32, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (call:AssertionError)
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_lambda Ran
ran, honoured the contract we drafted
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("b028feaa536c72d9")
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 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

torch.manual_seed(0)

class Args:
    def __init__(self):
        self.alpha = 2.0

ARGS = {
    "args": Args(),
    "lam": None
}
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 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
intrinsic_dimension_numpy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("740e41729d6ca30c")
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 float64, 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 numpy as np

# Create a small set of sample points in 2D space
np.random.seed(0)
n_points = 10
n_dims = 2
X = np.random.randn(n_points, n_dims)

# Define arguments for intrinsic_dimension_numpy
ARGS = {
    'X': X,
    'verbose': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, 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
reshape_inputs Ran
ran, honoured the contract we drafted
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("e0fc78c1aad9efcf")
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) and returned tuple. 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 numpy as np

torch.manual_seed(0)

# Create test tensors
# X with shape > 2 (3D tensor): batch_size=2, height=3, width=4
X_3d = torch.randn(2, 3, 4)

# Y with shape == 1 (1D tensor): length=2
Y_1d = torch.randn(2)

ARGS = {
    "X": X_3d,
    "Y": Y_1d,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 — a tuple output has no array shape of its own; none is 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
estimate_intrinsic_dimension Not yet run
unverified (harvested, no recorded run)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("ee365304110b1199")
How it ran

no invocation recorded.

intrinsic_dimension Not yet run
unverified (harvested, no recorded run)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("e12761cee59f4395")
How it ran

no invocation recorded.

intrinsic_dimension_torch Not yet run
unverified (harvested, no recorded run)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("fc40f4839b659732")
How it ran

no invocation recorded.

scale_down Not yet run
unverified (harvested, no recorded run)
azencot-group/foma/src/foma.py
code served (permissive licence) · get_code("6f08048a12865928")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 11 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
estimate_torch_batched
brick of this paper's assembly: helper
1 other paper
1 later
2506.06853 (2025-06)
Curvature Enhanced Data Augmentation for Regression

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

Data augmentation (DA) methods tailored to specific domains generate synthetic samples by applying transformations that are appropriate for the characteristics of the underlying data domain, such as rotations on images and time warping on time series data. In contrast, domain-independent approaches, e.g. mixup, are applicable to various data modalities, and as such they are general and versatile. While regularizing classification tasks via DA is a well-explored research topic, the effect of DA on regression problems received less attention. To bridge this gap, we study the problem of domain-independent augmentation for regression, and we introduce FOMA: a new data-driven domain-independent data augmentation method. Essentially, our approach samples new examples from the tangent planes of the train distribution. Augmenting data in this way aligns with the network tendency towards capturing the dominant features of its input signals. We evaluate FOMA on in-distribution generalization and out-of-distribution robustness benchmarks, and we show that it improves the generalization of several neural architectures. We also find that strong baselines based on mixup are less effective in comparison to our approach. Our code is publicly available at https://github.com/ azencot-group/FOMA.

For agents

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

get_harvested_code_for_paper("2406.10914")
get_code_for_paper("2406.10914")
have("2406.10914")

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

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

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

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

Connect an agent — have() is free.