SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.00639 · ICML · 2022

The Multivariate Community Hawkes Model for Dependent Relational Events in Continuous-time Networks

Hadeel Soliman, Lingfei Zhao, Zhipeng Huang, Subhadeep Paul, Kevin Xu

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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; 3 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2205.00639.json · badge: /api/ran/2205.00639.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
ideaslabut/multivariate-community-hawkes canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
arrage_fit_param Ran
ran; our contract draft was wrong, not the code
ideaslabut/multivariate-community-hawkes/mulch_simulation_tests.py
code served (permissive licence) · get_code("614405e495c36cdb")
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 list, 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 numpy as np

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

# Define parameters
K = 3  # number of nodes/clusters
n_alpha = 2  # number of alpha parameters

# Create param: list of n_alpha + 2 arrays, each of shape (K, K)
param = [np.random.randn(K, K) for _ in range(n_alpha + 2)]

# Create node_mem_true: list of K node indices (true ordering)
node_mem_true = [0, 1, 2]

# Create node_mem_fit: list of K node indices (fitted ordering, permuted)
node_mem_fit = [2, 0, 1]

# Create betas: array of shape (K, K)
betas = np.random.randn(K, K)

ARGS = {
    "param": param,
    "n_alpha": n_alpha,
    "K": K,
    "node_mem_true": node_mem_true,
    "node_mem_fit": node_mem_fit,
    "betas": betas,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, 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
cal_new_event_dict_move_node Ran
ran; our contract draft was wrong, not the code
ideaslabut/multivariate-community-hawkes/utils_fit_refine_mulch.py
code served (permissive licence) · get_code("bce41781281b9904")
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 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 copy

# Build the events_dict_bp structure
# It's a nested dict: events_dict_bp[block][k][(i, j)] = timestamps
# where block is from_block or to_block, k ranges from 0 to K-1
# and (i, j) are node indices with timestamps as values

K = 3
idx = 0  # node index being moved
from_block = 0
to_block = 1

# Create a sample events_dict_bp
# Structure: events_dict_bp[block][k][(i, j)] = timestamps_list
events_dict_bp = {}

# Initialize for from_block and to_block
for block in [from_block, to_block]:
    events_dict_bp[block] = {}
    for k in range(K):
        events_dict_bp[block][k] = {}

# Add some sample events
# Events where i == idx (node 0 is source)
events_dict_bp[from_block][0][(0, 1)] = [0.1, 0.2, 0.3]
events_dict_bp[from_block][1][(0, 2)] = [0.4, 0.5]
events_dict_bp[from_block][2][(0, 3)] = [0.6]

# Events where j == idx (node 0 is destination) - these go in the second loop
# The second loop iterates over events_dict_bp[k][from_block]
# So we need events_dict_bp[k][from_block] to have entries where j == idx
for k in range(K):
    if k not in events_dict_bp:
        events_dict_bp[k] = {}
    if from_block not in events_dict_bp[k]:
        events_dict_bp[k][from_block] = {}

events_dict_bp[0][from_block][(2, 0)] = [0.7, 0.8]
events_dict_bp[1][from_block][(3, 0)] = [0.9]
events_dict_bp[2][from_block][(1, 0)] = [1.0, 1.1, 1.2]

# Initialize to_block entries for k indices in the second loop
for k in range(K):
    if to_block not in events_dict_bp[k]:
        events_dict_bp[k][to_block] = {}

ARGS = {
    "idx": idx,
    "from_block": from_block,
    "to_block": to_block,
    "events_dict_bp": events_dict_bp,
    "K": K,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
get_simulation_params Ran
ran; our contract draft was wrong, not the code
ideaslabut/multivariate-community-hawkes/mulch_simulation_tests.py
code served (permissive licence) · get_code("3c48b7bf6adf8add")
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 numpy as np

ARGS = {
    "n_classes": 3,
    "assortative": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

The stochastic block model (SBM) is one of the most widely used generative models for network data. Many continuous-time dynamic network models are built upon the same assumption as the SBM: edges or events between all pairs of nodes are conditionally independent given the block or community memberships, which prevents them from reproducing higher-order motifs such as triangles that are commonly observed in real networks. We propose the multivariate community Hawkes (MULCH) model, an extremely flexible community-based model for continuous-time networks that introduces dependence between node pairs using structured multivariate Hawkes processes. We fit the model using a spectral clustering and likelihood-based local refinement procedure. We find that our proposed MULCH model is far more accurate than existing models both for predictive and generative tasks.

For agents

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

get_harvested_code_for_paper("2205.00639")
get_code_for_paper("2205.00639")
have("2205.00639")

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

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

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

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

Connect an agent — have() is free.