SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16503 · NeurIPS · 2024

Integrating GNN and Neural ODEs for Estimating Non-Reciprocal Two-Body Interactions in Mixed-Species Collective Motion

Masahito Uwamichi, Simon Schnyder, Tetsuya Kobayashi, Satoshi Sawai

arXiv · PDF · Open in the Atlas

Code that ran

11 of 18 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; 5 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 7 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/2405.16503.json · badge: /api/ran/2405.16503.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
MasahitoUWAMICHI/collectiveMotionNN canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
DiffEqML/torchdyn canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
google-research/torchsde infrastructure (classifier label)
classifier basis: classifier_2025
0 ran · 5 no recorded run
FunctionStatusWhere it lives
IDrange2MatrixID Ran
ran; our contract draft was wrong, not the code
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/graph_utils.py
pointer only (licence: NONE) · get_code("592f0d4b520196d3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bool2edge Ran
ran, honoured the contract we drafted
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/sample_modules.py
pointer only (licence: NONE) · get_code("77c4bf8419bbed28")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flattenInList Ran
ran, honoured the contract we drafted
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/utils.py
pointer only (licence: NONE) · get_code("84e196e6ba0d75fe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hutch_trace Ran
ran; our contract draft was wrong, not the code
DiffEqML/torchdyn/torchdyn/models/cnf.py
code served (permissive licence) · get_code("335476af786fa9f6")
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 (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
from torch.autograd import grad

torch.manual_seed(0)

# Create a simple function that we'll differentiate
# x_out will be the output, x_in will be the input
batch_size = 2
input_dim = 4

# x_in: input tensor that requires grad
x_in = torch.randn(batch_size, input_dim, requires_grad=True)

# Create a simple differentiable function output
# We'll use a simple operation: x_out = sum of (x_in^2)
x_out = torch.sum(x_in ** 2, dim=1, keepdim=True)

# noise: random vector for Hutchinson trace estimation
# Should have the same shape as x_out for the einsum operation
noise = torch.randn(batch_size, 1)

ARGS = {
    'x_out': x_out,
    'x_in': x_in,
    'noise': noise,
}
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 (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
isSelfloop Ran
ran, violated the contract we drafted
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/graph_utils.py
pointer only (licence: NONE) · get_code("e3796079b3734f39")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

nodeIDrange_eachBatch Ran
ran, honoured the contract we drafted
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/graph_utils.py
pointer only (licence: NONE) · get_code("c0a2918bd6d35bc1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

plot_traj_vf_1D Ran
ran; our contract draft was wrong, not the code
DiffEqML/torchdyn/torchdyn/utils.py
code served (permissive licence) · get_code("df18bfb8f4399ffe")
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 torch.nn as nn
import matplotlib.pyplot as plt

torch.manual_seed(0)

class SimpleVectorField(nn.Module):
    def __init__(self):
        super().__init__()
        self.controlled = False
        self.linear = nn.Linear(1, 1)
    
    def vf(self, s, x):
        """Vector field that takes s and x and returns a scalar velocity."""
        return self.linear(x)

class ControlledVectorField(nn.Module):
    def __init__(self):
        super().__init__()
        self.controlled = True
        self.linear = nn.Linear(1, 1)
    
    def vf(self, s, x):
        """Vector field that takes s and x and returns a scalar velocity."""
        return self.linear(x)

model = SimpleVectorField()

s_span = torch.linspace(0, 1, 5)
x_span = torch.linspace(-1, 1, 5)

traj = torch.randn(5, 3, 1)

device = 'cpu'

n_grid = 4

ARGS = {
    'model': model,
    's_span': s_span,
    'traj': traj,
    'device': device,
    'x_span': x_span,
    'n_grid': n_grid,
    'n_levels': 30,
    'contour_alpha': 0.7,
    'cmap': 'winter',
    'traj_color': 'orange',
    'traj_alpha': 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, 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
radiusGraphEdge_noSelfLoop Ran
ran; our contract draft was wrong, not the code
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/sample_modules.py
pointer only (licence: NONE) · get_code("47dab2214a92b8be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

radiusGraphEdge_selfLoop Ran
ran, violated the contract we drafted
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/sample_modules.py
pointer only (licence: NONE) · get_code("4f5bf1388156573c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

randnsphere Ran
ran, honoured the contract we drafted
DiffEqML/torchdyn/torchdyn/datasets/static_datasets.py
code served (permissive licence) · get_code("d51164aedef11ce0")
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 (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
from torch import sqrt, pow, cat, zeros, Tensor

torch.manual_seed(0)

ARGS = {
    "dim": 3,
    "radius": 2.5,
}
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 (3,) — shape (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
variableInitializer Ran
ran, honoured the contract we drafted
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/utils.py
pointer only (licence: NONE) · get_code("f76e0d732f243249")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BaseSDE Not yet run
unverified (harvested, no recorded run)
google-research/torchsde/torchsde/_core/base_sde.py
code served (permissive licence) · get_code("499c4942670a6209")
How it ran

no invocation recorded.

ContainerMeta Not yet run
unverified (harvested, no recorded run)
google-research/torchsde/torchsde/_core/base_sde.py
code served (permissive licence) · get_code("0197b6cfd09df7c8")
How it ran

no invocation recorded.

ForwardSDE Not yet run
unverified (harvested, no recorded run)
google-research/torchsde/torchsde/_core/base_sde.py
code served (permissive licence) · get_code("8bc02df1bd8da1e3")
How it ran

no invocation recorded.

NOISE_TYPES Not yet run
unverified (harvested, no recorded run)
google-research/torchsde/torchsde/_core/base_sde.py
code served (permissive licence) · get_code("e5f1a904593cf45a")
How it ran

no invocation recorded.

SDE_TYPES Not yet run
unverified (harvested, no recorded run)
google-research/torchsde/torchsde/_core/base_sde.py
code served (permissive licence) · get_code("75affb02a032726e")
How it ran

no invocation recorded.

autograd_trace Not yet run
unverified (harvested, no recorded run)
DiffEqML/torchdyn/torchdyn/models/cnf.py
code served (permissive licence) · get_code("02867f0536ec719a")
How it ran

no invocation recorded.

extractBrownian Not yet run
unverified (harvested, no recorded run)
MasahitoUWAMICHI/collectiveMotionNN/collectiveMotionNN/utils.py
pointer only (licence: NONE) · get_code("4524c435ad380fcf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MasahitoUWAMICHI/collectiveMotionNN when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

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

Analyzing the motion of multiple biological agents, be it cells or individual animals, is pivotal for the understanding of complex collective behaviors. With the advent of advanced microscopy, detailed images of complex tissue formations involving multiple cell types have become more accessible in recent years. However, deciphering the underlying rules that govern cell movements is far from trivial. Here, we present a novel deep learning framework for estimating the underlying equations of motion from observed trajectories, a pivotal step in decoding such complex dynamics. Our framework integrates graph neural networks with neural differential equations, enabling effective prediction of two-body interactions based on the states of the interacting entities. We demonstrate the efficacy of our approach through two numerical experiments. First, we used simulated data from a toy model to tune the hyperparameters. Based on the obtained hyperparameters, we then applied this approach to a more complex model with non-reciprocal forces that mimic the collective dynamics of the cells of slime molds. Our results show that the proposed method can accurately estimate the functional forms of two-body interactionseven when they are nonreciprocal -thereby precisely replicating both individual and collective behaviors within these systems.

For agents

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

get_harvested_code_for_paper("2405.16503")
get_code_for_paper("2405.16503")
have("2405.16503")

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

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

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

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

Connect an agent — have() is free.