SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.10174 · ICLR · 2025

Balanced Neural ODEs: nonlinear model order reduction and Koopman operator approximations

Julius Aka, Johannes Brunnemann, Jörg Eiden, Arne Speerforck, Lars Mikelsons

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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 0 have no contract verdict; 4 failures of our instrument; 1 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.10174.json · badge: /api/ran/2410.10174.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
juliusaka/balanced-neural-odes canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
convert_cfg_to_dataclass Ran
ran; our contract draft was wrong, not the code
juliusaka/balanced-neural-odes/src/bnode_core/config.py
code served (permissive licence) · get_code("f3b701009875ae92")
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 train_test_config_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 torch
import torch.nn as nn
from omegaconf import DictConfig, OmegaConf

torch.manual_seed(0)

# Create minimal dataclass instances
network_config = {
    'n_linear_layers': 2,
    'linear_hidden_dim': 64,
    'activation': 'torch.nn.ReLU'
}

training_config = {
    'batch_size': 32,
    'max_epochs': 100,
    'lr_start': 0.001,
    'optimizer': 'adam',
    'beta1_adam': 0.9,
    'beta2_adam': 0.999,
    'eps_adam': 1e-8,
    'weight_decay': 0.0,
    'clip_grad_norm': 50.0,
    'early_stopping_patience': 10,
    'early_stopping_threshold': 0.0,
    'early_stopping_threshold_mode': 'abs',
    'lr_scheduler_type': None,
    'cosine_T_max': None,
    'cosine_eta_min': 1e-5,
    'plateau_mode': 'min',
    'plateau_factor': 0.5,
    'plateau_patience': None,
    'plateau_threshold': 0.0001,
    'plateau_threshold_mode': 'rel',
    'plateau_cooldown': 0,
    'plateau_min_lr': 1e-7,
    'plateau_eps': 0.0,
    'lbfgs_max_iter': 20,
    'lbfgs_history_size': 100,
    'lbfgs_tolerance_grad': 1e-7,
    'lbfgs_tolerance_change': 1e-9,
    'lbfgs_line_search_fn': None,
    'lbfgs_n_steps_per_batch': 1,
    'initialization_type': None,
    'warmup_epochs': 0
}

# Create a DictConfig with the training settings
cfg = OmegaConf.create(training_config)

# Create mock dataclass instances
from dataclasses import dataclass as std_dataclass

@std_dataclass
class MockNetworkConfig:
    n_linear_layers: int = 2
    linear_hidden_dim: int = 64
    activation: str = 'torch.nn.ReLU'

@std_dataclass
class MockTrainingConfig:
    batch_size: int = 32
    max_epochs: int = 100
    lr_start: float = 0.001
    optimizer: str = 'adam'
    beta1_adam: float = 0.9
    beta2_adam: float = 0.999
    eps_adam: float = 1e-8
    weight_decay: float = 0.0
    clip_grad_norm: float = 50.0
    early_stopping_patience: int = 10
    early_stopping_threshold: float = 0.0
    early_stopping_threshold_mode: str = 'abs'
    lr_scheduler_type: str = None
    cosine_T_max: int = None
    cosine_eta_min: float = 1e-5
    plateau_mode: str = 'min'
    plateau_factor: float = 0.5
    plateau_patience: float = None
    plateau_threshold: float = 0.0001
    plateau_threshold_mode: str = 'rel'
    plateau_cooldown: int = 0
    plateau_min_lr: float = 1e-7
    plateau_eps: float = 0.0
    lbfgs_max_iter: int = 20
    lbfgs_history_size: int = 100
    lbfgs_tolerance_grad: float = 1e-7
    lbfgs_tolerance_change: float = 1e-9
    lbfgs_line_search_fn: str = None
    lbfgs_n_steps_per_batch: int = 1
    initialization_type: str = None
    warmup_epochs: int = 0

ARGS = {
    'cfg': cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf, pydantic, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type train_test_config_class — a train_test_config_class output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a train_test_config_class 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
get_position_in_raw_data_file Ran
ran; our contract draft was wrong, not the code
juliusaka/balanced-neural-odes/src/bnode_core/data_generation/data_preperation.py
code served (permissive licence) · get_code("ae40db8902eba5ea")
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, 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 h5py
import numpy as np
import tempfile
import os

# Create a temporary HDF5 file with the required structure
temp_dir = tempfile.mkdtemp()
temp_file_path = os.path.join(temp_dir, 'test_data.h5')

# Create the HDF5 file with sample data
with h5py.File(temp_file_path, 'w') as f:
    # Create datasets with '_names' suffix
    states_names = f.create_dataset('states_names', data=np.array(['temperature', 'pressure', 'velocity'], dtype='S20'))
    controls_names = f.create_dataset('controls_names', data=np.array(['control_1', 'control_2'], dtype='S20'))
    outputs_names = f.create_dataset('outputs_names', data=np.array(['output_1', 'output_2', 'output_3'], dtype='S20'))
    
    # Create corresponding data datasets (not strictly needed for the function, but realistic)
    f.create_dataset('states', data=np.random.randn(10, 3))
    f.create_dataset('controls', data=np.random.randn(10, 2))
    f.create_dataset('outputs', data=np.random.randn(10, 3))

# Open the file for use in the function
temp_raw_data = h5py.File(temp_file_path, 'r')

ARGS = {
    'variable': 'temperature',
    'temp_raw_data': temp_raw_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
progress_string Ran
ran; our contract draft was wrong, not the code
juliusaka/balanced-neural-odes/src/bnode_core/data_generation/raw_data_generation.py
code served (permissive licence) · get_code("4d7cec3ac45cc59a")
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 str. 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)

# Based on the function signature and body, we need:
# - progress: float in [0, 1]
# - length: int (optional, defaults to 10)

ARGS = {
    "progress": 0.65,
    "length": 10
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
test_or_validate_one_epoch Ran
ran; our contract draft was wrong, not the code
juliusaka/balanced-neural-odes/src/bnode_core/ode/trainer.py
code served (permissive licence) · get_code("224794f406fe810d")
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 torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a minimal model that satisfies the function's usage
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def model_and_loss_evaluation(self, data_batch, train_cfg, pre_train, device, 
                                   return_model_outputs=False, test=False, 
                                   activate_deterministic_mode=False):
        """
        Minimal implementation that matches what the function expects.
        Returns either a dict of losses, or (dict of losses, dict of model outputs)
        """
        x, y = data_batch
        x = x.to(device)
        y = y.to(device)
        
        output = self.linear(x)
        loss = ((output - y) ** 2).mean()
        
        losses_dict = {
            'loss': loss.item(),
            'accuracy': 0.5
        }
        
        if return_model_outputs:
            model_outputs_dict = {
                'predictions': output.detach().cpu().numpy(),
                'targets': y.detach().cpu().numpy()
            }
            return (losses_dict, model_outputs_dict)
        else:
            return losses_dict

# Create a minimal data loader (list of batches)
data_loader = [
    (torch.randn(2, 4), torch.randn(2, 3)),
    (torch.randn(2, 4), torch.randn(2, 3)),
    (torch.randn(2, 4), torch.randn(2, 3)),
]

# Create a minimal train_cfg
train_cfg = {
    'learning_rate': 0.001,
    'batch_size': 2
}

# Create a minimal pre_train config
pre_train = {
    'enabled': False
}

# Device
device = torch.device('cpu')

# Create the model
model = MinimalModel()

ARGS = {
    'model': model,
    'data_loader': data_loader,
    'train_cfg': train_cfg,
    'pre_train': pre_train,
    'device': device,
    'all_batches': False,
    'return_model_outputs': False,
    'activate_deterministic_mode': False,
    'data_iter': None
}
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 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
dir_data Not yet run
unverified (harvested, no recorded run)
juliusaka/balanced-neural-odes/src/bnode_core/filepaths.py
code served (permissive licence) · get_code("1780da4392e07a7b")
How it ran

no invocation recorded.

Also present in other papers' code

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

Variational Autoencoders (VAEs) are a powerful framework for learning latent representations of reduced dimensionality, while Neural ODEs excel in learning transient system dynamics. This work combines the strengths of both to generate fast surrogate models with adjustable complexity reacting on time-varying inputs signals. By leveraging the VAE's dimensionality reduction using a nonhierarchical prior, our method adaptively assigns stochastic noise, naturally complementing known NeuralODE training enhancements and enabling probabilistic time series modeling. We show that standard Latent ODEs struggle with dimensionality reduction in systems with time-varying inputs. Our approach mitigates this by continuously propagating variational parameters through time, establishing fixed information channels in latent space. This results in a flexible and robust method that can learn different system complexities, e.g. deep neural networks or linear matrices. Hereby, it enables efficient approximation of the Koopman operator without the need for predefining its dimensionality. As our method balances dimensionality reduction and reconstruction accuracy, we call it Balanced Neural ODE (B-NODE) 1 . We demonstrate the effectiveness of this methods on several academic and real-world test cases, e.g. a power plant or MuJoCo data.

For agents

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

get_harvested_code_for_paper("2410.10174")
get_code_for_paper("2410.10174")
have("2410.10174")

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

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

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

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

Connect an agent — have() is free.