SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.20414 · NeurIPS · 2025

Addressing Mark Imbalance in Integration-free Neural Marked Temporal Point Processes

Yan Wang, Yongli Ren, Sishun Liu, Ke Deng, Xiuzhen Zhang

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 4 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2510.20414.json · badge: /api/ran/2510.20414.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
undes1red/IFNMTPP canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
shchur/ifl-tpp canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
FunctionStatusWhere it lives
clamp_preserve_gradients Ran
ran; our contract draft was wrong, not the code
shchur/ifl-tpp/code/dpp/utils.py
code served (permissive licence) · get_code("c34d42dda3604d27")
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 tensor with requires_grad=True to test gradient preservation
x = torch.randn(2, 4, requires_grad=True)

# Define the parameters for the function
ARGS = {
    "x": x,
    "min": -0.5,
    "max": 0.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 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
diff Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shchur/ifl-tpp/code/dpp/utils.py
code served (permissive licence) · get_code("202fb8a99152f9ef")
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, 4, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small tensor for testing
x = torch.randn(2, 4, 3)

# Test with dim=-1 (default)
ARGS = {
    'x': x,
    'dim': -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 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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
get_logger Ran
ran; our contract draft was wrong, not the code
undes1red/IFNMTPP/src/taskhost_utils.py
code served (permissive licence) · get_code("7552f783dcf6a118")
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 Logger. 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 logging
import sys

ARGS = {
    "name": "test_logger",
    "root": True,
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
mkdir_if_not_exist Ran
ran, honoured the contract we drafted
undes1red/IFNMTPP/src/taskhost_utils.py
code served (permissive licence) · get_code("9f94dfa36b7d6d02")
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 int, ndim 0, dtype family int, 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 os
import tempfile

# Create a temporary directory path that doesn't exist yet
temp_base = tempfile.gettempdir()
test_dir = os.path.join(temp_base, "test_mkdir_" + str(os.getpid()))

# Clean up if it somehow exists from a previous run
if os.path.exists(test_dir):
    import shutil
    shutil.rmtree(test_dir)

ARGS = {
    "dir_path": test_dir
}
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 int, ndim 0, dtype family int, 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
pad_sequence Ran
ran, honoured the contract we drafted
shchur/ifl-tpp/code/dpp/utils.py
code served (permissive licence) · get_code("c5942711204d21ba")
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 (3, 5, 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 list of variable-length tensors with trailing dimensions
# Each tensor has shape (seq_len, feature_dim)
sequences = [
    torch.randn(3, 4),  # sequence of length 3, 4 features
    torch.randn(5, 4),  # sequence of length 5, 4 features
    torch.randn(2, 4),  # sequence of length 2, 4 features
]

ARGS = {
    "sequences": sequences,
    "padding_value": 0.0,
    "max_len": None,
}
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 (3, 5, 4) — shape (3, 5, 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
task_counting_generator Ran
ran; our contract draft was wrong, not the code
undes1red/IFNMTPP/batch_task_worker_utils.py
code served (permissive licence) · get_code("c27cccc9a7d1f11d")
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 2, 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 itertools
import math

# Test case 1: hyperparameter_list with single and multiple parameters
hyperparameter_list_1 = [
    '--learning_rate', '0.001',
    '--batch_size', [32, 64, 128],
    '--optimizer', 'adam',
    '--activation', ['relu', 'sigmoid', 'tanh'],
    '--use_dropout'
]

# Test case 2: hyperparameter_list with only single parameters
hyperparameter_list_2 = [
    '--model', 'bert',
    '--epochs', '10',
    '--seed', '42'
]

# Test case 3: hyperparameter_list with only multiple parameters
hyperparameter_list_3 = [
    '--lr', [0.001, 0.01],
    '--hidden_dim', [64, 128, 256]
]

# Test case 4: hyperparameter_list that is None
hyperparameter_list_4 = None

# Test case 5: hyperparameter_list with store_true pattern (flag followed by another flag)
hyperparameter_list_5 = [
    '--verbose',
    '--debug',
    '--use_cuda',
    '--output_dir', './results'
]

# Test case 6: Complex case with mixed patterns
hyperparameter_list_6 = [
    '--model', 'transformer',
    '--layers', [2, 4, 6],
    '--dropout', '0.1',
    '--activation', ['gelu', 'relu'],
    '--use_pretrained'
]

ARGS = {
    'hyperparameter_list': hyperparameter_list_1
}
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 list, ndim 2, 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
version_check Ran
ran, violated the contract we drafted
undes1red/IFNMTPP/src/taskhost_utils.py
code served (permissive licence) · get_code("5d3a1e1eed1b504a")
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 bool, 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.

from packaging.version import Version
import operator
import re

operator_dict = {'>': operator.gt, '<': operator.lt, '<=': operator.le, '==': operator.eq, '>=': operator.ge, '!=': operator.ne}

def version_check(version, criteria):
    version = Version(version)
    criteria = criteria.split(',')
    print_warning = True
    for sub_criterion in criteria:
        sub_criterion = sub_criterion.strip()
        compare_label = re.match('^[!<>=]=?', sub_criterion).group(0)
        target_pytorch_version = Version(sub_criterion[len(compare_label):].strip())
        if not operator_dict[compare_label](version, target_pytorch_version):
            print_warning = False
    return print_warning

ARGS = {
    'version': '1.12.0',
    'criteria': '>=1.9.0, <2.0.0'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
packaging — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
extract_single_multiple_arguments_from_the_list Not yet run
unverified (harvested, no recorded run)
undes1red/IFNMTPP/batch_task_worker_utils.py
code served (permissive licence) · get_code("c7bca4e2210cf9a9")
How it ran

no invocation recorded.

task_index_generator Not yet run
unverified (harvested, no recorded run)
undes1red/IFNMTPP/batch_task_worker_utils.py
code served (permissive licence) · get_code("c64c18451d6862f7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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.

FunctionAlso present inEarliest-datedOthers named
clamp_preserve_gradients 1 other paper
1 dated earlier
2210.15294 (2022-10)
Modeling Inter-Dependence Between Time and Mark in Multivariate Temporal Point Processes
diff 1 other paper
1 dated earlier
2210.15294 (2022-10)
Modeling Inter-Dependence Between Time and Mark in Multivariate Temporal Point Processes
pad_sequence 1 other paper
1 dated earlier
2210.15294 (2022-10)
Modeling Inter-Dependence Between Time and Mark in Multivariate Temporal Point Processes

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

Marked Temporal Point Process (MTPP) has been well studied to model the event distribution in marked event streams, which can be used to predict the mark and arrival time of the next event. However, existing studies overlook that the distribution of event marks is highly imbalanced in many real-world applications, with some marks being frequent but others rare. The imbalance poses a significant challenge to the performance of the next event prediction, especially for events of rare marks. To address this issue, we propose a thresholding method, which learns thresholds to tune the mark probability normalized by the mark's prior probability to optimize mark prediction, rather than predicting the mark directly based on the mark probability as in existing studies. In conjunction with this method, we predict the mark first and then the time. In particular, we develop a novel neural MTPP model to support effective time sampling and estimation of mark probability without computationally expensive numerical improper integration. Extensive experiments on real-world datasets demonstrate the superior performance of our solution against various baselines for the next event mark and time prediction. The code is available at https://github.com/undes1red/IFNMTPP. 1 The asterisk reminds the probability is conditioned on history, i.e., the events in the past. 2 The time relative to the most recent event 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

For agents

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

get_harvested_code_for_paper("2510.20414")
get_code_for_paper("2510.20414")
have("2510.20414")

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

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

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

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

Connect an agent — have() is free.