SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.naacl-long.61 · NAACL · 2025

AgentMove: A Large Language Model based Agentic Framework for Zero-shot Next Location Prediction

Yong Li, Jie Zhao, Yuwei Du, Jie Feng

Open in the Atlas

Code that ran

5 of 10 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; 5 failures of our instrument; 5 no recorded run), measured 2026-11-24; 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/2025.naacl-long.61.json · badge: /api/ran/2025.naacl-long.61.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
vonfeng/DPLink canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
FunctionStatusWhere it lives
cal_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vonfeng/DPLink/codes/utils.py
code served (permissive licence) · get_code("64a028b2d831b7b1")
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 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.

import torch
import torch.nn as nn

torch.manual_seed(0)

# LOSS_MODE: string indicating which loss to use
LOSS_MODE = 'BCELoss'

# scores: list of tensors, first element used in BCELoss branch
scores = [torch.sigmoid(torch.randn(2, 1))]

# target: tensor that gets unsqueezed to (batch, 1) for BCELoss
target = torch.randint(0, 2, (2,)).float()

# target2: not used in this function but required as parameter
target2 = torch.randint(0, 2, (2,)).float()

# criterion: BCELoss instance
criterion = nn.BCELoss()

# criterion2: not used in this function but required as parameter
criterion2 = nn.MSELoss()

ARGS = {
    'LOSS_MODE': LOSS_MODE,
    'scores': scores,
    'target': target,
    'target2': target2,
    'criterion': criterion,
    'criterion2': criterion2
}
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 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
gen_target Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vonfeng/DPLink/codes/utils.py
code served (permissive licence) · get_code("169465d3b54d344f")
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)

LOSS_MODE = 'BCELoss'
tg = [[0.1, 0.9, 0.5, 0.2], [0.3, 0.7, 0.4, 0.6]]
device = 'cpu'

ARGS = {
    'LOSS_MODE': LOSS_MODE,
    'tg': tg,
    'device': device
}
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
samples_generator Ran
ran; our contract draft was wrong, not the code
vonfeng/DPLink/codes/preprocessing.py
code served (permissive licence) · get_code("7fe0dec3fb910451")
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 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 numpy as np
import tempfile
import os

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.txt")

# Write sample data to the temporary file
# Format: user\ttrace (where trace is pipe-separated locations)
sample_data = """user1\tloc1|loc2|loc3
user2\tloc1|loc2
user3\tloc1|loc2|loc3|loc4|loc5
user4\tloc1
user5\tloc1|loc2|loc3|loc4
user6\tloc1|loc2|loc3|loc4|loc5|loc6
user7\tloc1|loc2
user8\tloc1|loc2|loc3
user9\tloc1|loc2|loc3|loc4
user10\tloc1|loc2|loc3|loc4|loc5
"""

with open(temp_file, 'w') as f:
    f.write(sample_data)

# Define the arguments dictionary
ARGS = {
    'data_path': temp_dir + '/',
    'data_name': 'test_data.txt',
    'threshold': 5,
    'seed': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
sequence_mask Ran
ran; our contract draft was wrong, not the code
vonfeng/DPLink/codes/GlobalAttention.py
code served (permissive licence) · get_code("052a10d025186137")
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, 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

torch.manual_seed(0)

# Create a small tensor of sequence lengths
# Using shape (2,) for batch_size=2
lengths = torch.tensor([3, 2], dtype=torch.long)

# max_len can be None (will use lengths.max()) or an integer tensor
max_len = None

ARGS = {
    "lengths": lengths,
    "max_len": max_len,
}
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, 3) — shape (2, 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
trans_scores Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vonfeng/DPLink/codes/utils.py
code served (permissive licence) · get_code("8465b2bacf24392b")
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)

LOSS_MODE = 'BCELoss'
scores = [torch.randn(2, 4)]
cos_dis = torch.randn(2, 3)

ARGS = {
    'LOSS_MODE': LOSS_MODE,
    'scores': scores,
    'cos_dis': cos_dis
}
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
embedded_dropout Not yet run
unverified (harvested, no recorded run)
vonfeng/DPLink/codes/models.py
code served (permissive licence) · get_code("61247fd8db2741cf")
How it ran

no invocation recorded.

load_data_match_telecom Not yet run
unverified (harvested, no recorded run)
vonfeng/DPLink/codes/preprocessing.py
code served (permissive licence) · get_code("6ce8e2012c0ac691")
How it ran

no invocation recorded.

load_vids Not yet run
unverified (harvested, no recorded run)
vonfeng/DPLink/codes/preprocessing.py
code served (permissive licence) · get_code("cc17ea6ca88b809a")
How it ran

no invocation recorded.

run_experiments Not yet run
unverified (harvested, no recorded run)
vonfeng/DPLink/codes/match.py
code served (permissive licence) · get_code("9e4d64b6d680363b")
How it ran

no invocation recorded.

run_siamese Not yet run
unverified (harvested, no recorded run)
vonfeng/DPLink/codes/match.py
code served (permissive licence) · get_code("a22e1489b0ba6f7d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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
embedded_dropout 2 other papers
2 dated earlier
1711.03953 (2017-11)
Breaking the Softmax Bottleneck: A High-Rank RNN Language Model
1810.06682 (2018-10)
Trellis Networks for Sequence Modeling

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-24.

Repositories linked to this paper

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

Abstract

Next location prediction plays a crucial role in various real-world applications. Recently, due to the limitation of existing deep learning methods, attempts have been made to apply large language models (LLMs) to zero-shot next location prediction task. However, they directly generate the final output using LLMs without systematic design, which limits the potential of LLMs to uncover complex mobility patterns and underestimates their extensive reserve of global geospatial knowledge. In this paper, we introduce AgentMove, a systematic agentic prediction framework to achieve generalized next location prediction. In Agent-Move, we first decompose the mobility prediction task and design specific modules to complete them, including spatial-temporal memory for individual mobility pattern mining, world knowledge generator for modeling the effects of urban structure and collective knowledge extractor for capturing the shared patterns among population. Finally, we combine the results of three modules and conduct a reasoning step to generate the final predictions. Extensive experiments utilizing mobility data from two distinct sources reveal that AgentMove surpasses the leading baseline by 3.33% to 8.57% across 8 out of 12 metrics and it shows robust predictions with various LLMs as base and also less geographical bias across cities. Our codes are available via https://github. com/tsinghua-fib-lab/AgentMove.

For agents

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

get_harvested_code_for_paper("2025.naacl-long.61")
get_code_for_paper("2025.naacl-long.61")
have("2025.naacl-long.61")

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

curl https://syntology.ai/api/ran/2025.naacl-long.61.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.naacl-long.61.svg)](https://syntology.ai/paper/2025.naacl-long.61)

Connect an agent — have() is free.