SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.22564 · ICLR · 2025

Vertical Federated Learning with Missing Features During Training and Inference

Shiqiang Wang, Yuejie Chi, Pedro Valdeira

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 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, 1 violated it and 0 have no contract verdict; 7 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/2410.22564.json · badge: /api/ran/2410.22564.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
Valdeira/LASER-VFL canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
valdeira/laser-vfl canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
FunctionStatusWhere it lives
create_vocab Ran
ran; our contract draft was wrong, not the code
Valdeira/LASER-VFL/models/mimic_model_utils.py
code served (permissive licence) · get_code("f072b73bd6e99eec")
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 dict. 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 pickle
import os
import tempfile

# Create a temporary directory and file to serve as the pickle data
temp_dir = tempfile.mkdtemp()
data_dict_dir = os.path.join(temp_dir, 'data', 'MIMIC-IV-Data-Pipeline', 'data', 'dict')
os.makedirs(data_dict_dir, exist_ok=True)

# Create a sample vocab list and pickle it
sample_vocab = ['condition_1', 'condition_2', 'condition_3', 'condition_4']
vocab_file = os.path.join(data_dict_dir, 'sample_vocab.pkl')

with open(vocab_file, 'wb') as fp:
    pickle.dump(sample_vocab, fp)

# Mock the data directory path by creating a symlink or by modifying how we call the function
# We'll create the expected directory structure
expected_base = os.path.join(temp_dir, 'data', 'MIMIC-IV-Data-Pipeline', 'data', 'dict')
os.makedirs(expected_base, exist_ok=True)

# Create the pickle file in the expected location
test_vocab = ['med_1', 'med_2', 'med_3']
test_file_path = os.path.join(expected_base, 'test_vocab.pkl')

with open(test_file_path, 'wb') as fp:
    pickle.dump(test_vocab, fp)

# Change working directory to temp_dir so the relative path works
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'file': 'test_vocab.pkl'
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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: none by the harness; any seed is in the setup block
drop_mask Ran
ran, violated the contract we drafted
Valdeira/LASER-VFL/models/model_utils.py
code served (permissive licence) · get_code("68a9caf3d546a3af")
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)

# Create a small boolean tensor mask
plug_mask = torch.tensor([
    [True, False, True, False],
    [False, True, False, True]
], dtype=torch.bool)

# Set dropout probability
p_drop = 0.3

ARGS = {
    "plug_mask": plug_mask,
    "p_drop": p_drop,
}
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_block_from_input Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Valdeira/LASER-VFL/models/mlp.py
code served (permissive licence) · get_code("199475957adeabb0")
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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - x is indexed as x[0], so it's a tuple/list with at least 1 element
# - x[0] is a tensor with shape[1] that gets divided by num_clients
# - i is an index into blocks (0 to num_clients-1)
# - num_clients is the number of blocks to divide into

# Create a tensor for x[0]: shape (batch=2, feature_dim=4)
# We need feature_dim to be divisible by num_clients
tensor_x0 = torch.randn(2, 4)

# x should be a tuple/list containing this tensor
x = (tensor_x0,)

# i should be a valid block index (0 to num_clients-1)
i = 0

# num_clients should divide evenly into the feature dimension (4)
num_clients = 2

ARGS = {
    "x": x,
    "i": i,
    "num_clients": num_clients
}
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 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
get_f1 Ran
ran, honoured the contract we drafted
valdeira/laser-vfl/methods/laser.py
code served (permissive licence) · get_code("9ae52284718dca6a")
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)

# Analyze the function: it takes three numeric parameters
# (true_positive, false_positive, false_negative) and performs arithmetic operations
# The function expects values that support division and arithmetic operations
# These should be scalar values or tensors that can be used in these operations

true_positive = 45
false_positive = 12
false_negative = 8

ARGS = {
    "true_positive": true_positive,
    "false_positive": false_positive,
    "false_negative": false_negative
}
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
powerset_except_empty Ran
ran; our contract draft was wrong, not the code
Valdeira/LASER-VFL/utils.py
code served (permissive licence) · get_code("e01b59a9fae0804f")
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 list. 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
from itertools import chain, combinations

torch.manual_seed(0)

# Analyzing the function:
# powerset_except_empty(n) takes an integer n
# It returns all non-empty combinations of range(n)
# The function uses: chain, combinations, range, list
# No complex objects needed - just needs an integer

ARGS = {
    "n": 5
}
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 list — a list 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
random_argmax_along_axis Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Valdeira/LASER-VFL/methods/ensemble.py
code served (permissive licence) · get_code("f2757b67c45c9a98")
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 int, 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 torch
import random

torch.manual_seed(0)

# Create a small tensor with shape (2, 4)
# This tensor has 2 rows and 4 columns
# We'll create one with some duplicate max values to test the random selection
tensor = torch.tensor([
    [1.0, 5.0, 5.0, 2.0],
    [3.0, 3.0, 1.0, 4.0]
])

ARGS = {
    "tensor": tensor,
    "axis": 1
}
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 int, 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
slice_cifar_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Valdeira/LASER-VFL/models/resnet18.py
code served (permissive licence) · get_code("ef3138827a00dc20")
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 4, dtype family float, shape (2, 3, 4, 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)

# x is a 4D tensor expected to be in CIFAR format: (batch, channels, height, width)
x = torch.randn(2, 3, 8, 8)

# partition is a tuple of two tuples defining (row_start, row_end) and (col_start, col_end)
partition = ((1, 5), (2, 6))

ARGS = {
    "x": x,
    "partition": partition,
}
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 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 4, 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
split_into_chunks Ran
ran; our contract draft was wrong, not the code
Valdeira/LASER-VFL/models/lstm.py
code served (permissive licence) · get_code("8d2e97e2a9f5617b")
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 list. 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for split_into_chunks
# The function takes a list and an integer K, and splits the list into K chunks

lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
K = 3

ARGS = {
    "lst": lst,
    "K": K
}
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 list — a list 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
task_to_hyperparameters Ran
ran, honoured the contract we drafted
Valdeira/LASER-VFL/models/model_utils.py
code served (permissive licence) · get_code("b87834f1696a21ae")
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 int; 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)

# The function task_to_hyperparameters takes a single parameter 'dataset'
# which is a string representing the dataset name.
# It returns hyperparameters based on the dataset type.

ARGS = {
    'dataset': 'hapt'
}
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 1, dtype family int — 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
time_decorator Ran
ran; our contract draft was wrong, not the code
valdeira/laser-vfl/methods/laser.py
code served (permissive licence) · get_code("606bc3d38cb0e034")
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 function. 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 time
from decorator import decorator

@decorator
def time_decorator(func, *args, **kwargs):
    start = time.time()
    result = func(*args, **kwargs)
    print(f'time to run {func.__name__}(): {time.time() - start:.2f}s.')
    return result

# Define a simple function to be decorated
def sample_function(x, y):
    """A simple function that will be decorated."""
    time.sleep(0.01)
    return x + y

# Apply the decorator
decorated_function = time_decorator(sample_function)

# Construct ARGS dict with all parameters for time_decorator
ARGS = {
    'func': sample_function,
    'args': (5, 3),
    'kwargs': {}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
decorator, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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: none by the harness; any seed is in the setup block
create_batches Not yet run
unverified (harvested, no recorded run)
Valdeira/LASER-VFL/models/mimic_model_utils.py
code served (permissive licence) · get_code("8205a45bb88f06e9")
How it ran

no invocation recorded.

init Not yet run
unverified (harvested, no recorded run)
Valdeira/LASER-VFL/models/mimic_model_utils.py
code served (permissive licence) · get_code("d4531a69fbf2a306")
How it ran

no invocation recorded.

setup_task Not yet run
unverified (harvested, no recorded run)
Valdeira/LASER-VFL/utils.py
code served (permissive licence) · get_code("526af6c6453d5dff")
How it ran

no invocation recorded.

train_laser Not yet run
unverified (harvested, no recorded run)
valdeira/laser-vfl/methods/laser.py
code served (permissive licence) · get_code("b74bfdd5b8f5829f")
How it ran

no invocation recorded.

Also present in other papers' code

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

Vertical federated learning trains models from feature-partitioned datasets across multiple clients, who collaborate without sharing their local data. Standard approaches assume that all feature partitions are available during both training and inference. Yet, in practice, this assumption rarely holds, as for many samples only a subset of the clients observe their partition. However, not utilizing incomplete samples during training harms generalization, and not supporting them during inference limits the utility of the model. Moreover, if any client leaves the federation after training, its partition becomes unavailable, rendering the learned model unusable. Missing feature blocks are therefore a key challenge limiting the applicability of vertical federated learning in real-world scenarios. To address this, we propose LASER-VFL, a vertical federated learning method for efficient training and inference of split neural network-based models that is capable of handling arbitrary sets of partitions. Our approach is simple yet effective, relying on the sharing of model parameters and on task-sampling to train a family of predictors. We show that LASER-VFL achieves a O( 1 / √ T ) convergence rate for nonconvex objectives and, under the Polyak-Łojasiewicz inequality, it achieves linear convergence to a neighborhood of the optimum. Numerical experiments show improved performance of LASER-VFL over the baselines. Remarkably, this is the case even in the absence of missing features. For example, for CIFAR-100, we see an improvement in accuracy of 19.3% when each of four feature blocks is observed with a probability of 0.5 and of 9.5% when all features are observed. The code for this work is available at https://github.com/Valdeira/LASER-VFL.

For agents

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

get_harvested_code_for_paper("2410.22564")
get_code_for_paper("2410.22564")
have("2410.22564")

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

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

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

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

Connect an agent — have() is free.