SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.07398 · ACL · 2024

Complex Reasoning over Logical Queries on Commonsense Knowledge Graphs

Yangqiu Song, Antoine Bosselut, Zeming Chen, Tianqing Fang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 1 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/2403.07398.json · badge: /api/ran/2403.07398.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
tqfang/complex-commonsense-reasoning canonical (classifier label)
classifier basis: classifier_2025
3 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
get_llama_answer Ran
ran; our contract draft was wrong, not the code
tqfang/complex-commonsense-reasoning/comet/COMET-M/eval_llama_gen.py
pointer only (licence: NONE) · get_code("32734cfb81d10a70")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tqfang/complex-commonsense-reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_input Ran
ran, honoured the contract we drafted
tqfang/complex-commonsense-reasoning/zero_shot_csqa/Evaluation/evaluate_DeBERTa.py
pointer only (licence: NONE) · get_code("c16130fd76be29d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tqfang/complex-commonsense-reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_jsonl_lines Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from allenai/comet-atomic-2020
pointer only; the stored copy get_code serves, from allenai/comet-atomic-2020, is pointer only (licence: NONE) · get_code("e0cdb96e43c1c922")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

score_task Ran
ran, honoured the contract we drafted
tqfang/complex-commonsense-reasoning/zero_shot_csqa/Evaluation/evaluate_DeBERTa.py
pointer only (licence: NONE) · get_code("b1f6ebefe5be87cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tqfang/complex-commonsense-reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

token_wise_scoring Not yet run
unverified (harvested, no recorded run)
tqfang/complex-commonsense-reasoning/zero_shot_csqa/Evaluation/evaluate_DeBERTa.py
pointer only (licence: NONE) · get_code("83d4b85ceeddb59c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tqfang/complex-commonsense-reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 1 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
read_jsonl_lines 2 other papers
2 dated earlier
1908.05739 (2019-08)
Abductive Commonsense Reasoning
2010.05953 (2020-10)
COMET-ATOMIC 2020: On Symbolic and Neural Commonsense Knowledge Graphs
prepare_input 1 other paper
1 dated earlier
2023.findings-emnlp.1023 (2023 (year only))
QADYNAMICS: Training Dynamics-Driven Synthetic QA Diagnostic for Zero-Shot Commonsense Question Answering
score_task 1 other paper
1 dated earlier
2023.findings-emnlp.1023 (2023 (year only))
QADYNAMICS: Training Dynamics-Driven Synthetic QA Diagnostic for Zero-Shot Commonsense Question Answering
token_wise_scoring 1 other paper
1 dated earlier
2023.findings-emnlp.1023 (2023 (year only))
QADYNAMICS: Training Dynamics-Driven Synthetic QA Diagnostic for Zero-Shot Commonsense Question Answering

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

Event commonsense reasoning requires the ability to reason about the relationship between events, as well as infer implicit context underlying that relationship. However, data scarcity makes it challenging for language models to learn to generate commonsense inferences for contexts and questions involving interactions between complex events. To address this demand, we present COM 2 (COMplex COMmonsense), a new dataset created by sampling multi-hop logical queries (e.g., the joint effect or cause of both event A and B, or the effect of the effect of event C) from an existing commonsense knowledge graph (CSKG), and verbalizing them using handcrafted rules and large language models into multiple-choice and text generation questions. Our experiments show that language models trained on COM 2 exhibit significant improvements in complex reasoning ability, resulting in enhanced zero-shot performance in both indomain and out-of-domain tasks for question answering and generative commonsense reasoning, without expensive human annotations. 1 * Work done during internship at EPFL. 1 Code and data are available at https://github.com/ tqfang/complex-commonsense-reasoning find new things to do PersonX goes skydiving PersonX gets tired of it (the intention of PersonX) xIntent xWant (then PersonX wants to) Verbalization After getting tired of it, PersonX goes skydiving PersonX is living a boring life. 🤖 LLM-added context Rule-based discourse Question: What's both the intention of PersonX going skydiving and what X wants to do after PersonX getting tired of it? Answer: find new things to do 𝑞 𝑉 ? = 𝑉 ? : xIntent X goes sky diving , 𝑉 ? ∧ xWant (X gets tired of it, 𝑉 ?

For agents

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

get_harvested_code_for_paper("2403.07398")
get_code_for_paper("2403.07398")
have("2403.07398")

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

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

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

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

Connect an agent — have() is free.