Papers › Can Language Beat Numerical Regression? Language-Based Multimodal Trajectory Prediction

Can Language Beat Numerical Regression? Language-Based Multimodal Trajectory Prediction

27 Mar 2024CVPR 2024 1arXiv:2403.18447archive 2025-07-28

Inhwan Bae, Junoh Lee, Hae-Gon Jeon

Language models have demonstrated impressive ability in context understanding and generative performance. Inspired by the recent success of language foundation models, in this paper, we propose LMTraj (Language-based Multimodal Trajectory predictor), which recasts the trajectory prediction task into a sort of question-answering problem. Departing from traditional numerical regression models, which treat the trajectory coordinate sequence as continuous signals, we consider them as discrete signals like text prompts. Specially, we first transform an input space for the trajectory coordinate into the natural language space. Here, the entire time-series trajectories of pedestrians are converted into a text prompt, and scene images are described as text information through image captioning. The transformed numerical and image data are then wrapped into the question-answering template for use in a language model. Next, to guide the language model in understanding and reasoning high-level knowledge, such as scene context and social relationships between pedestrians, we introduce an auxiliary multi-task question and answering. We then train a numerical tokenizer with the prompt data. We encourage the tokenizer to separate the integer and decimal parts well, and leverage it to capture correlations between the consecutive numbers in the language model. Lastly, we train the language model using the numerical tokenizer and all of the question-answer prompts. Here, we propose a beam-search-based most-likely prediction and a temperature-based multimodal prediction to implement both deterministic and stochastic inferences. Applying our LMTraj, we show that the language-based model can be a powerful pedestrian trajectory predictor, and outperforms existing numerical-based predictor methods. Code is publicly available at https://github.com/inhwanbae/LMTrajectory .

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.18447")

Code

Syntology Ran 10 of 13 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

inhwanbae/lmtrajectory officialmentioned in papermentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 10 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran
3unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from inhwanbae/LMTrajectory. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

batch_traj2txt inhwanbae/LMTrajectory/utils/converter.py official repository ran licence not identified · pointer only · b54533a035f69b78 · report
generate_homography inhwanbae/LMTrajectory/utils/homography.py official repository ran licence not identified · pointer only · 6c9d8e97f8976cab · report
get_exp_config inhwanbae/LMTrajectory/utils/config.py official repository ran licence not identified · pointer only · 2612d67abdd01825 · report
image2world inhwanbae/LMTrajectory/utils/homography.py official repository ran licence not identified · pointer only · 35ea3f457179e4fd · report
preprocess_function inhwanbae/LMTrajectory/model/nltoolkit.py official repository ran licence not identified · pointer only · f65d09762517789d · report
read_file inhwanbae/LMTrajectory/utils/dataloader.py official repository ran licence not identified · pointer only · 123c2031d3127cc9 · report
text2traj inhwanbae/LMTrajectory/utils/converter.py official repository ran licence not identified · pointer only · 0553d4e98692f456 · report
traj2text inhwanbae/LMTrajectory/utils/converter.py official repository ran licence not identified · pointer only · f1fee667db180729 · report
traj_collate_fn inhwanbae/LMTrajectory/utils/dataloader.py official repository ran licence not identified · pointer only · 131c4aa12088ef21 · report
world2image inhwanbae/LMTrajectory/utils/homography.py official repository ran licence not identified · pointer only · c73cb6c875b73dca · report
get_dataloader inhwanbae/LMTrajectory/utils/dataloader.py official repository unverified licence not identified · pointer only · 38b6b384edfe5cc7 · report
image_description_generator inhwanbae/LMTrajectory/model/imagemodel.py official repository unverified licence not identified · pointer only · e2522a4d74f0b769 · report
postprocess_text inhwanbae/LMTrajectory/model/nltoolkit.py official repository unverified licence not identified · pointer only · eff19094fe0ec70e · report

Tasks

Image CaptioningLanguage ModelingLanguage ModellingQuestion AnsweringTrajectory Predictionregression

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections