Papers › Text-based RL Agents with Commonsense Knowledge: New Challenges, Environments and Baselines

Text-based RL Agents with Commonsense Knowledge: New Challenges, Environments and Baselines

8 Oct 2020arXiv:2010.03790archive 2025-07-28

Keerthiram Murugesan, Mattia Atzeni, Pavan Kapanipathi, Pushkar Shukla, Sadhana Kumaravel, Gerald Tesauro, Kartik Talamadupula, Mrinmaya Sachan, Murray Campbell

Text-based games have emerged as an important test-bed for Reinforcement Learning (RL) research, requiring RL agents to combine grounded language understanding with sequential decision making. In this paper, we examine the problem of infusing RL agents with commonsense knowledge. Such knowledge would allow agents to efficiently act in the world by pruning out implausible actions, and to perform look-ahead planning to determine how current actions might affect future world states. We design a new text-based gaming environment called TextWorld Commonsense (TWC) for training and evaluating RL agents with a specific kind of commonsense knowledge about objects, their attributes, and affordances. We also introduce several baseline RL agents which track the sequential context and dynamically retrieve the relevant commonsense knowledge from ConceptNet. We show that agents which incorporate commonsense knowledge in TWC perform better, while acting more efficiently. We conduct user-studies to estimate human performance on TWC and show that there is ample room for future improvement.

PaperPDFCodeCode 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="2010.03790")

Code

Syntology Ran 0 of 13 code samples harvested from 1 repository linked to this paper; 13 have no recorded run.

By repository: official repository: 13 samples from 1 repository, 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.

IBM/commonsense-rl officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
cognitiveailab/textworldexpress mentioned on GitHubApache-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

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

13unverified

Licence: 0 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 IBM/commonsense-rl. “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.

add_triplets_to_graph IBM/commonsense-rl/utils/kg.py official repository unverified Apache-2.0 (permissive) · 58c721ed14e522fa · report
build_padding IBM/commonsense-rl/utils/generic.py official repository unverified Apache-2.0 (permissive) · 07103f48313c8a22 · report
construct_graph IBM/commonsense-rl/utils/kg.py official repository unverified Apache-2.0 (permissive) · a8fb47a8145651ed · report
emb_layer IBM/commonsense-rl/models.py official repository unverified Apache-2.0 (permissive) · 88d7a924e63c4345 · report
getUniqueFileHandler IBM/commonsense-rl/utils/generic.py official repository unverified Apache-2.0 (permissive) · fd2df73b8fd45096 · report
get_extractor IBM/commonsense-rl/utils/extractor.py official repository unverified Apache-2.0 (permissive) · b95c5d577a7e53d2 · report
illegal_locations IBM/commonsense-rl/game_generation/twc_make_game.py official repository unverified Apache-2.0 (permissive) · 27cc7170e9ece2ec · report
is_substring IBM/commonsense-rl/utils/extractor.py official repository unverified Apache-2.0 (permissive) · f9e37121fb751fdb · report
load_json IBM/commonsense-rl/game_generation/twc_data.py official repository unverified Apache-2.0 (permissive) · 066e4dbaa7dc5bcd · report
make_batch IBM/commonsense-rl/games/dataset.py official repository unverified Apache-2.0 (permissive) · d6f593cf555a535b · report
prettify_config IBM/commonsense-rl/game_generation/twc_make_game.py official repository unverified Apache-2.0 (permissive) · 42013e4fee0d53d4 · report
shortest_path_subgraph IBM/commonsense-rl/utils/kg.py official repository unverified Apache-2.0 (permissive) · 844e853beb7ba89f · report
tokenize IBM/commonsense-rl/utils/extractor.py official repository unverified Apache-2.0 (permissive) · 250f091f8f3d5d75 · report

Tasks

Common Sense ReasoningCommonsense Reasoning for RLDecision MakingReinforcement Learning (RL)Sequential Decision Makingtext-based games

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Commonsense Reasoning for RL commonsense-rl Human Avg #Steps 15.00 ± 3.29 #1 of 5 Archive leaderboard report
Commonsense Reasoning for RL commonsense-rl Optimal Avg #Steps 15.00 ± 2.00 #2 of 5 Archive leaderboard report
Commonsense Reasoning for RL commonsense-rl TNC-A2C Avg #Steps 43.27 ± 0.70 #3 of 5 Archive leaderboard report
Commonsense Reasoning for RL commonsense-rl LSTM-A2C Avg #Steps 49.21 ± 0.58 #4 of 5 Archive leaderboard report
Commonsense Reasoning for RL commonsense-rl KG-A2C Avg #Steps 49.36 ± 7.50 #5 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

BiGRUGATPruning

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