Papers › Rainier: Reinforced Knowledge Introspector for Commonsense Question Answering

Rainier: Reinforced Knowledge Introspector for Commonsense Question Answering

6 Oct 2022arXiv:2210.03078archive 2025-07-28

Jiacheng Liu, Skyler Hallinan, Ximing Lu, Pengfei He, Sean Welleck, Hannaneh Hajishirzi, Yejin Choi

Knowledge underpins reasoning. Recent research demonstrates that when relevant knowledge is provided as additional context to commonsense question answering (QA), it can substantially enhance the performance even on top of state-of-the-art. The fundamental challenge is where and how to find such knowledge that is high quality and on point with respect to the question; knowledge retrieved from knowledge bases are incomplete and knowledge generated from language models are inconsistent. We present Rainier, or Reinforced Knowledge Introspector, that learns to generate contextually relevant knowledge in response to given questions. Our approach starts by imitating knowledge generated by GPT-3, then learns to generate its own knowledge via reinforcement learning where rewards are shaped based on the increased performance on the resulting question answering. Rainier demonstrates substantial and consistent performance gains when tested over 9 different commonsense benchmarks: including 5 datasets that are seen during model training, as well as 4 datasets that are kept unseen. Our work is the first to report that knowledge generated by models that are orders of magnitude smaller than GPT-3, even without direct supervision on the knowledge itself, can exceed the quality of commonsense knowledge elicited from GPT-3.

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

Code

Syntology Ran 7 of 13 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 4 ran · honoured contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it.

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

liujch1998/rainier officialmentioned in papermentioned on GitHubpytorch 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; 7 ran; 4 honoured the contract we drafted; 6 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.

4ran · honoured contract
2ran · our draft was wrong
1ran · fixture could not drive it
6unverified

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 liujch1998/rainier. “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.

clamp liujch1998/rainier/rainier/ppo.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 37a3441d06cf812e · report
logits_to_entropy liujch1998/rainier/rainier/ppo.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 601afc113e2c5295 · report
mask_pad liujch1998/rainier/rainier/ppo.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · a9c6a287d240022c · report
reduce_mean liujch1998/rainier/rainier/ppo.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · e5bacba887a721ef · report
reduce_std liujch1998/rainier/rainier/ppo.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 24a6def7a7175be1 · report
reduce_sum liujch1998/rainier/rainier/ppo.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5874b0a8910897fd · report
whiten liujch1998/rainier/rainier/ppo.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · f22da26515d11255 · report
PPOTrainer liujch1998/rainier/rainier/ppo.py official repository unverified Apache-2.0 (permissive) · 702f0dd46130de79 · report
Policy liujch1998/rainier/rainier/ppo.py official repository unverified Apache-2.0 (permissive) · af8e5334f66e1240 · report
Reward liujch1998/rainier/rainier/ppo.py official repository unverified Apache-2.0 (permissive) · 8e4768065a6e2e46 · report
T5ForConditionalGenerationAndTokenRegression liujch1998/rainier/rainier/ppo.py official repository unverified Apache-2.0 (permissive) · 793d7e2a816c5031 · report
T5ForTokenRegression liujch1998/rainier/rainier/ppo.py official repository unverified Apache-2.0 (permissive) · 1fa7b1b16bcc201e · report
Value liujch1998/rainier/rainier/ppo.py official repository unverified Apache-2.0 (permissive) · d77834c9fb30a1e7 · report

Tasks

Question AnsweringReinforcement Learning (RL)

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDropoutGPT-3Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

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