
openai-gpt
Language586 ops116.5M params
OpenAI GPT fine-tuned on CoS-E to write commonsense explanations for CommonsenseQA questions.
Language · 586 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.OpenAIGPTLMHeadModel()
This is the explanation generator of the CAGE framework: a language model fine-tuned to produce a natural-language rationale for a commonsense question. The motivation is that deep models do poorly on tasks needing world knowledge or reasoning over information not present in the input. The authors first collected Common Sense Explanations (CoS-E), human explanations for the CommonsenseQA dataset in two forms: a highlighted span of the question and a free-form sentence. Those explanations train the generator, and the generated explanations are used during training and inference, improving the state of the art on CommonsenseQA by 10%.
The released code fine-tunes a conditional language model with GPT on CSV files built from the question answering data, while a separate BERT classifier consumes the explanations. Once explanations are generated they are pasted in as a column of the CSV so the classifier can be pointed at either the human or the model-written explanations. The dataset authors flag a substantial gender disparity in the underlying CommonsenseQA data, with a higher proportion of female pronouns in negative contexts, and warn that it propagates into CoS-E.
Key idea. CAGE shows that a language model fine-tuned on human explanations can generate rationales that lift a commonsense question answering system by 10% over the prior state of the art.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{rajani2019explainyourselfleveraginglanguage,
title={Explain Yourself! Leveraging Language Models for Commonsense Reasoning},
author={Nazneen Fatema Rajani and Bryan McCann and Caiming Xiong and Richard Socher},
year={2019},
eprint={1906.02361},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/1906.02361},
}