SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.11315 · 2025

Improving Inference-Time Optimisation for Vocal Effects Style Transfer with a Gaussian Prior

arXiv · PDF · Open in the Atlas

Code that ran

9 of 15 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; 6 no recorded run), measured 2026-11-24; 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/2505.11315.json · badge: /api/ran/2505.11315.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
SonyResearch/diffvox canonical (classifier label)
classifier basis not recorded on the link
9 ran · 6 no recorded run
FunctionStatusWhere it lives
Roystest Ran
ran on a synthesized input
SonyResearch/diffvox/utils.py
code served (permissive licence) · get_code("2652eb5ac20c2d16")
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 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 numpy as np
from scipy.stats import norm, chi2, kurtosis, shapiro

# Set random seed for reproducibility
np.random.seed(0)

# Create a small dataset: n_samples=50, n_features=3
# This falls in the 12 <= n <= 2000 range where the function has defined behavior
n_samples = 50
n_features = 3

# Generate random data that roughly follows a normal distribution
# Using normal distribution to avoid errors in Shapiro-Wilk test
X = np.random.normal(loc=0, scale=1, size=(n_samples, n_features))

# Define ARGS dict with all parameters
ARGS = {
    'X': X,
    'alpha': 0.05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
ShaWilstat Ran
ran on a synthesized input
SonyResearch/diffvox/utils.py
code served (permissive licence) · get_code("3663a37429d33025")
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; 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 numpy as np
from scipy.stats import norm, chi2, kurtosis, shapiro

# Create a sample data vector for testing Shapiro-Wilk's W statistic
# The function expects array-like input with shape (n_samples,)
np.random.seed(0)
x = np.random.normal(loc=0, scale=1, size=50)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
broadcast2stereo Ran
ran on a synthesized input
SonyResearch/diffvox/modules/fx.py
code served (permissive licence) · get_code("c9d68638ae695f53")
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 (2, 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
import torch.nn as nn

torch.manual_seed(0)

# The function takes two parameters: m and args
# m is not used in the function body
# args is unpacked as x, *_ where x is a tensor
# x is expected to have shape (batch, channels, features)
# The function expands x from 1 channel to 2 channels if needed

# Create a dummy model (not used but required as parameter)
m = nn.Linear(1, 1)

# Create a tensor with shape (batch=2, channels=1, features=4)
# This will trigger the expand branch
x = torch.randn(2, 1, 4)

# args is a tuple where first element is the tensor
args = (x,)

ARGS = {
    "m": m,
    "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 3, dtype family float, shape (2, 2, 4) — shape (2, 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
eig_22 Ran
ran on a synthesized input
SonyResearch/diffvox/modules/functional.py
code served (permissive licence) · get_code("8924ff4f9ca3024c")
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. 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

torch.manual_seed(0)

# eig_22 computes eigenvalues and eigenvectors of a 2x2 matrix
# It takes 4 scalar/tensor arguments representing the 2x2 matrix:
# [[a, b],
#  [c, d]]
# 
# The function performs arithmetic operations on these and uses torch.sqrt,
# torch.stack, and tensor methods like .abs(), .square(), .sum()
# 
# To make it work with batch processing, we'll use batched tensors

# Create small batches of 2x2 matrix elements
batch_size = 2

a = torch.randn(batch_size)
b = torch.randn(batch_size)
c = torch.randn(batch_size)
d = torch.randn(batch_size)

ARGS = {
    "a": a,
    "b": b,
    "c": c,
    "d": d,
}
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 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
fir Ran
ran on a synthesized input
SonyResearch/diffvox/modules/functional.py
code served (permissive licence) · get_code("c38f1e6f404f3fdd")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Construct arguments for fir(x, b)
# x: input tensor that will be reshaped to (-1, 1, x.size(-1))
# b: filter coefficients tensor

# x should be a 1D or 2D tensor; let's use a 2D tensor (batch, features)
x = torch.randn(2, 4)

# b should be a 1D tensor representing filter coefficients
# It needs to support .size(0), .flip(0), and .view(1, 1, -1)
b = torch.randn(3)

ARGS = {
    'x': x,
    'b': b
}
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_chunks Ran
ran on a synthesized input
SonyResearch/diffvox/modules/utils.py
code served (permissive licence) · get_code("6565cfd9b49e27c7")
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. 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 functools import reduce, partial
from operator import mul

# Analyze the function to understand what it needs:
# - keys: a list/iterable where one element contains 'U.original'
# - original_shapes: a list of tuples representing shapes
# The function filters keys to find the position of 'U.original',
# then uses original_shapes to compute chunks and dimensions.

# Create keys with one entry containing 'U.original'
keys = ['layer1.weight', 'U.original_matrix', 'layer2.bias']

# Create original_shapes - a list of shape tuples
# The function uses ravel_multi_index with tril_indices on U_matrix_shape
# So U_matrix_shape must be a 2D shape (n, m)
# Let's make distinct sizes for different dimensions
original_shapes = [
    (2, 3),      # position 0: shape for first chunk
    (4, 5),      # position 1: U.original shape (n=4, m=5)
    (6,),        # position 2: shape for third chunk
]

ARGS = {
    'keys': keys,
    'original_shapes': original_shapes,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
inv_22 Ran
ran on a synthesized input
SonyResearch/diffvox/modules/functional.py
code served (permissive licence) · get_code("f30be0c135e88956")
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, 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 torch

torch.manual_seed(0)

# inv_22 computes the inverse of a 2x2 matrix given its four elements a, b, c, d
# It performs: stack([d, -b, -c, a]).view(2, 2) / (a * d - b * c)
# So a, b, c, d should be scalars or tensors that can be stacked and divided

a = torch.tensor(4.0)
b = torch.tensor(7.0)
c = torch.tensor(2.0)
d = torch.tensor(6.0)

ARGS = {
    "a": a,
    "b": b,
    "c": c,
    "d": d,
}
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, 2) — shape (2, 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
logp_y_given_x Ran
ran on a synthesized input
SonyResearch/diffvox/ito.py
code served (permissive licence) · get_code("f922b72b0b6b60d9")
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 (1,) 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 math

torch.manual_seed(0)

# Construct arguments for logp_y_given_x
# The function expects:
# - y: a tensor that will be used in matrix multiplication with mu
# - mu: a tensor that will be used in matrix multiplication with y
# - std: a tensor that supports division, pow(), and log() operations

# For y @ mu to work, y should be a vector and mu should be a vector
# Let's use batch dimension: y is (batch_size, dim), mu is (dim,)
# Or both could be (dim,) for single samples

# Looking at the usage:
# - y @ mu: dot product, so both should be 1D vectors or compatible for matmul
# - cos_dist / std: element-wise division, std can be scalar or tensor
# - (cos_dist / std).pow(2): power operation
# - std.log(): log operation on std (so std must be a tensor)

# Create small tensors
y = torch.randn(4)  # 1D vector of dimension 4
mu = torch.randn(4)  # 1D vector of dimension 4
std = torch.tensor([0.5])  # scalar tensor (must be positive for log and division)

ARGS = {
    "y": y,
    "mu": mu,
    "std": std,
}
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 (1,) — shape (1,) 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
rt_delay Ran
ran on a synthesized input
SonyResearch/diffvox/modules/rt.py
code served (permissive licence) · get_code("3eab58f0952ec755")
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 2, dtype family float, shape (2, 10) 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

# Set seed for reproducibility
np.random.seed(0)

# Construct arguments for rt_delay function
x = np.random.randn(10).astype(np.float64)  # Input signal: shape (T,) where T=10
delay_step = 3  # Number of delay steps
b0 = 0.5  # Filter coefficient b0
b1 = 0.3  # Filter coefficient b1
b2 = 0.2  # Filter coefficient b2
a1 = 0.4  # Filter coefficient a1
a2 = 0.1  # Filter coefficient a2

ARGS = {
    'x': x,
    'delay_step': delay_step,
    'b0': b0,
    'b1': b1,
    'b2': b2,
    'a1': a1,
    'a2': a2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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, 10) — shape (2, 10) 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_reference_query_chunks Not yet run
unverified (harvested, no recorded run)
SonyResearch/diffvox/ito.py
code served (permissive licence) · get_code("3740de98f405734a")
How it ran

no invocation recorded.

module2coeffs Not yet run
unverified (harvested, no recorded run)
SonyResearch/diffvox/modules/fx.py
code served (permissive licence) · get_code("decc18ed8ab0182d")
How it ran

no invocation recorded.

one_evaluation Not yet run
unverified (harvested, no recorded run)
SonyResearch/diffvox/ito.py
code served (permissive licence) · get_code("13c5b070ee7dafbe")
How it ran

no invocation recorded.

remove_fx_parametrisation Not yet run
unverified (harvested, no recorded run)
SonyResearch/diffvox/modules/utils.py
code served (permissive licence) · get_code("29a2143844456a16")
How it ran

no invocation recorded.

rt_fdn Not yet run
unverified (harvested, no recorded run)
SonyResearch/diffvox/modules/rt.py
code served (permissive licence) · get_code("65fa53f078ce4c6f")
How it ran

no invocation recorded.

vec2statedict Not yet run
unverified (harvested, no recorded run)
SonyResearch/diffvox/modules/utils.py
code served (permissive licence) · get_code("6e6dd311d8f31c90")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Style Transfer with Inference-Time Optimisation (ST-ITO) is a recent approach for transferring the applied effects of a reference audio to an audio track. It optimises the effect parameters to minimise the distance between the style embeddings of the processed audio and the reference. However, this method treats all possible configurations equally and relies solely on the embedding space, which can result in unrealistic configurations or biased outcomes. We address this pitfall by introducing a Gaussian prior derived from the DiffVox vocal preset dataset over the parameter space. The resulting optimisation is equivalent to maximum-a-posteriori estimation. Evaluations on vocal effects transfer on the MedleyDB dataset show significant improvements across metrics compared to baselines, including a blind audio effects estimator, nearest-neighbour approaches, and uncalibrated ST-ITO. The proposed calibration reduces the parameter mean squared error by up to 33% and more closely matches the reference style. Subjective evaluations with 16 participants confirm the superiority of our method in limited data regimes. This work demonstrates how incorporating prior knowledge at inference time enhances audio effects transfer, paving the way for more effective and realistic audio processing systems.

For agents

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

get_harvested_code_for_paper("2505.11315")
get_code_for_paper("2505.11315")
have("2505.11315")

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

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

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

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

Connect an agent — have() is free.