SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1903.02793 · 2019

SR-LSTM: State Refinement for LSTM towards Pedestrian Trajectory Prediction

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 3 have no contract verdict; 0 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/1903.02793.json · badge: /api/ran/1903.02793.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
zhangpur/SR-LSTM community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
L2forTest Ran
ran on a synthesized input
zhangpur/SR-LSTM/utils.py
code served (permissive licence) · get_code("3f5f02c4eea03dfc")
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. 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

torch.manual_seed(0)

# Analyze the function:
# - outputs: shape (seq_length, batch, 2) - used with norm(..., dim=2)
# - targets: same shape as outputs
# - obs_length: int - used as index obs_length - 1
# - lossMask: shape (seq_length, batch) - used with sum(dim=0) and indexing

seq_length = 5
batch_size = 2
output_dim = 4

# outputs and targets: (seq_length, batch, output_dim)
outputs = torch.randn(seq_length, batch_size, output_dim)
targets = torch.randn(seq_length, batch_size, output_dim)

# obs_length: integer, should be <= seq_length
obs_length = 2

# lossMask: (seq_length, batch) - binary mask
lossMask = torch.ones(seq_length, batch_size)

ARGS = {
    "outputs": outputs,
    "targets": targets,
    "obs_length": obs_length,
    "lossMask": lossMask,
}
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 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
L2forTest_nl Ran
ran on a synthesized input
zhangpur/SR-LSTM/utils.py
code served (permissive licence) · get_code("9414a91b8e91375a")
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. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

# Construct valid arguments for L2forTest_nl
seq_length = 10
pednum = 3
pred_length = 5
obs_length = 5

# outputs: predicted trajectories [seq_length, pednum, 2] (x, y coordinates)
outputs = torch.randn(seq_length, pednum, 2)

# targets: ground truth trajectories [seq_length, pednum, 2]
targets = torch.randn(seq_length, pednum, 2)

# obs_length: number of observed timesteps
obs_length_val = 5

# lossMask: binary mask [seq_length, pednum] indicating valid frames
lossMask = torch.ones(seq_length, pednum)

# seq_list: indicator of which pedestrians are present at each timestep [seq_length, pednum]
seq_list = torch.ones(seq_length, pednum)

# nl_thred: threshold for non-linear detection (acceleration threshold)
nl_thred = 0.5

ARGS = {
    "outputs": outputs,
    "targets": targets,
    "obs_length": obs_length_val,
    "lossMask": lossMask,
    "seq_list": seq_list,
    "nl_thred": nl_thred
}
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 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
getLossMask Ran
ran on a synthesized input
zhangpur/SR-LSTM/utils.py
code served (permissive licence) · get_code("78bed37adf746764")
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. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

# outputs: used for outputs.shape[0] to get seq_length
# Should be a tensor with shape (seq_length, ...)
outputs = torch.randn(5, 4)

# node_first: used as initial value for node_pre, multiplied with seq_list elements
# Should be a tensor that can be multiplied element-wise with seq_list rows
node_first = torch.ones(4)

# seq_list: used for seq_list.shape[1] and indexed by framenum
# Should be 2D tensor where seq_list[framenum] can be multiplied with node_pre
seq_list = torch.randint(0, 2, (5, 4)).float()

# using_cuda: boolean flag
using_cuda = False

ARGS = {
    "outputs": outputs,
    "node_first": node_first,
    "seq_list": seq_list,
    "using_cuda": using_cuda
}
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 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, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
L2forTest 1 other paper
1 later
2005.08514 (2020-05)
Spatio-Temporal Graph Transformer Networks for Pedestrian Trajectory Prediction

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

In crowd scenarios, reliable trajectory prediction of pedestrians requires insightful understanding of their social behaviors. These behaviors have been well investigated by plenty of studies, while it is hard to be fully expressed by hand-craft rules. Recent studies based on LSTM networks have shown great ability to learn social behaviors. However, many of these methods rely on previous neighboring hidden states but ignore the important current intention of the neighbors. In order to address this issue, we propose a data-driven state refinement module for LSTM network (SR-LSTM), which activates the utilization of the current intention of neighbors, and jointly and iteratively refines the current states of all participants in the crowd through a message passing mechanism. To effectively extract the social effect of neighbors, we further introduce a social-aware information selection mechanism consisting of an element-wise motion gate and a pedestrian-wise attention to select useful message from neighboring pedestrians. Experimental results on two public datasets, i.e. ETH and UCY, demonstrate the effectiveness of our proposed SR-LSTM and we achieves state-of-the-art results.

For agents

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

get_harvested_code_for_paper("1903.02793")
get_code_for_paper("1903.02793")
have("1903.02793")

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

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

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

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

Connect an agent — have() is free.