Papers › Language Models Can Improve Event Prediction by Few-Shot Abductive Reasoning

Language Models Can Improve Event Prediction by Few-Shot Abductive Reasoning

26 May 2023NeurIPS 2023 11arXiv:2305.16646archive 2025-07-28

Xiaoming Shi, Siqiao Xue, Kangrui Wang, Fan Zhou, James Y. Zhang, Jun Zhou, Chenhao Tan, Hongyuan Mei

Large language models have shown astonishing performance on a wide range of reasoning tasks. In this paper, we investigate whether they could reason about real-world events and help improve the prediction performance of event sequence models. We design LAMP, a framework that integrates a large language model in event prediction. Particularly, the language model performs abductive reasoning to assist an event sequence model: the event model proposes predictions on future events given the past; instructed by a few expert-annotated demonstrations, the language model learns to suggest possible causes for each proposal; a search module finds out the previous events that match the causes; a scoring function learns to examine whether the retrieved events could actually cause the proposal. Through extensive experiments on several challenging real-world datasets, we demonstrate that our framework -- thanks to the reasoning capabilities of large language models -- could significantly outperform the state-of-the-art event sequence models.

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="2305.16646")

Code

Syntology Ran 7 of 24 code samples harvested from 4 repositories linked to this paper; 17 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 17 samples from 2 repositories, 7 ran; found in paper text by Syntology: 7 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ant-research/easytemporalpointprocess officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
ilampard/lamp officialmentioned in paperpytorchApache-2.0 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

24 samples harvested; 7 ran; 0 honoured the contract we drafted; 17 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.

1ran · violated contract
1ran · our draft was wrong
1ran · fixture could not drive it
4ran
17unverified

Licence: 1 of the 24 samples is 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 4 repositories linked to this paper, official or community; each sample names its own and says which. “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.

ANHPMultiHeadAttention ilampard/lamp/models/ke_anhp/_model.py official repository ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 4f8d5fca7de08dd4 · report
Attention ilampard/lamp/models/ke_anhp/_model.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 71cbec2f001bc55b · report
Dense ilampard/lamp/models/ke_anhp/_model.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · 9a448be7eb920dac · report
TimeEmbeddingLayer ilampard/lamp/models/ke_anhp/_model.py official repository ran · metamorphic tier: deterministic fingerprinted Apache-2.0 (permissive) · b45ab9b5072bb2f6 · report
attention ant-research/EasyTemporalPointProcess/easy_tpp/model/baselayer.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 8abbfdabbdf5e708 · report
exp_scaled_dot_score_method ilampard/lamp/models/ke_anhp/_model.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · be04fa53df26c966 · report
get_embedding ilampard/lamp/models/ke_anhp/_model.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 3bab5ed3d30b876d · report
KnowEvolveANHP ilampard/lamp/models/ke_anhp/_model.py official repository unverified Apache-2.0 (permissive) · 32549da5b1d6f6df · report
RNNEntityEmbeddingLayer ilampard/lamp/models/ke_anhp/_model.py official repository unverified Apache-2.0 (permissive) · 271a64fd27570f0a · report
RelationScoreLayer ilampard/lamp/models/ke_anhp/_model.py official repository unverified Apache-2.0 (permissive) · 99f53b75f1c900fe · report
activation_layer ant-research/EasyTemporalPointProcess/easy_tpp/model/baselayer.py official repository unverified Apache-2.0 (permissive) · d49d5a4ade4321b5 · report
bce_loss iLampard/lamp/models/ebm_runner.py official repository unverified Apache-2.0 (permissive) · 51227b0b43c5ed30 · report
bce_score iLampard/lamp/models/ebm_runner.py official repository unverified Apache-2.0 (permissive) · 804306367162b14c · report
clamp_preserve_gradients ant-research/EasyTemporalPointProcess/easy_tpp/model/intensity_free.py official repository unverified Apache-2.0 (permissive) · 3105c1d665ab0317 · report
flatten_parameters ant-research/EasyTemporalPointProcess/easy_tpp/model/ode_tpp.py official repository unverified Apache-2.0 (permissive) · 615bdcf3b3a4cfbe · report
mnce_loss iLampard/lamp/models/ebm_runner.py official repository unverified Apache-2.0 (permissive) · 2d8c90020f8f93fd · report
search_pred_data iLampard/lamp/eval_tpp.py official repository unverified Apache-2.0 (permissive) · 2bbd803d60718f65 · report
DyRep uoguelph-mlrg/LDG/dyrep.py found in paper text by Syntology unverified licence not identified · pointer only · 0feed5743989fe45 · report
catalog_coverage statisticianinstilettos/recmetrics/recmetrics/metrics.py found in paper text by Syntology unverified MIT (permissive) · 170636830f7e013d · report
is_listy statisticianinstilettos/recmetrics/recmetrics/plots.py found in paper text by Syntology unverified MIT (permissive) · 275d9ff6710f5610 · report
make_listy statisticianinstilettos/recmetrics/recmetrics/plots.py found in paper text by Syntology unverified MIT (permissive) · 4dbc840d3335cc9c · report
novelty statisticianinstilettos/recmetrics/recmetrics/metrics.py found in paper text by Syntology unverified MIT (permissive) · ea5a39a1fa474615 · report
prediction_coverage statisticianinstilettos/recmetrics/recmetrics/metrics.py found in paper text by Syntology unverified MIT (permissive) · c8eb82add723ab39 · report
roc_plot statisticianinstilettos/recmetrics/recmetrics/plots.py found in paper text by Syntology unverified MIT (permissive) · f851ed6bcf9fc446 · report

Tasks

Language ModelingLanguage ModellingLarge Language Model

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