KGR^4: Retrieval, Retrospect, Refine and Rethink for Commonsense Generation

Xin Liu, Dayiheng Liu, Baosong Yang, Haibo Zhang, Junwei Ding, Wenqing Yao, Weihua Luo, Haiying Zhang, Jinsong Su

Abstract

Generative commonsense reasoning requires machines to generate sentences describing everyday scenarios given a set of concepts. Despite the success of large-scale language models, current systems often produce implausible or grammatically incorrect sentences. Inspired by the human writing process, we propose KGR^4, a novel Knowledge-enhanced Commonsense Generation framework consisting of four stages: Retrieval, Retrospect, Refine, and Rethink. By leveraging an external corpus for prototypes and employing a dedicated refinement stage, KGR^4 achieves state-of-the-art performance on the CommonGen benchmark, outperforming previous best results by 2.49 SPICE points.

Introduction

The CommonGen task challenges models to perform compositional generalization. Given a concept set such as {hand, sink, wash, soap}, a model must generate a coherent sentence like "A man is washing his hands with soap in a sink." While models like BART and GPT-2 show promise, they frequently suffer from two major issues: a lack of commonsense grounding (e.g., generating "a sink of soaps") and structural failures like repetitive phrases or tokenization-induced misspellings.

To address these, KGR^4 mimics the human workflow: searching for inspiration (Retrieval), drafting (Retrospect), proofreading (Refine), and final selection (Rethink).

The KGR^4 Framework

The four-stage KGR^4 pipeline illustrated with a sample concept set.

1. Retrieval

Rather than generating from scratch, KGR^4 searches an external corpus of 3 million image and video captions (aggregated from MSCOCO, SNLI, etc.) to find "prototypes." These are existing human-written sentences that contain some or all of the target concepts. A RoBERTa-based scorer ranks these prototypes to provide the most relevant starting points for the model.

2. Retrospect

In the drafting phase, a BART-based generator is trained to either edit these prototypes to incorporate missing concepts or copy them if they are already sufficient. This stage utilizes "Retrospective Augmentation" to teach the model the implicit relationships between concepts by forcing it to reconstruct prototypes during training.

The Retrospective Augmentation process used to enhance the generator's understanding of concept relationships.

3. Refine

To eliminate common transformer errors such as repetitive phrases ("in a sink a sink") or typos, a dedicated BART-based refiner acts as an autoencoder. It is specifically trained to denoise sentences that have been intentionally corrupted, ensuring the final output is grammatically sound and fluent.

4. Rethink

Finally, the framework generates multiple candidate sentences by varying hyper-parameters (specifically the balance between copying and editing). The model then re-evaluates these candidates using the scorer from the Retrieval stage to select the single most plausible and high-quality sentence.

Experimental Results

KGR^4 was evaluated on the CommonGen v1.0 and v1.1 benchmarks. Key findings include:

  • State-of-the-Art Performance: KGR^4 achieved 33.56 SPICE points on the official v1.1 leaderboard, a significant 2.49-point improvement over the previous leader, RE-T5.
  • Robustness: The model showed superior performance on "hard" concept sets—combinations rarely seen in knowledge graphs like ConceptNet—demonstrating better reasoning capabilities than vanilla BART models.
  • Ablation Studies: Every stage of the pipeline contributes to the final score. The addition of the Refine and Rethink stages alone improved the SPICE score on the v1.0 test set from 39.20 to 39.70.

Conclusion

KGR^4 demonstrates that breaking down the generation process into human-like stages—retrieval, drafting, and proofreading—significantly enhances a model's ability to reason about everyday scenarios. While the pipeline is more computationally intensive than single-pass models, its ability to produce plausible, grammatically correct sentences sets a new standard for generative commonsense reasoning. Future work may explore more efficient variational models to further increase output diversity.

Summary updated

Abstract

Generative commonsense reasoning requires machines to generate sentences describing an everyday scenario given several concepts, which has attracted much attention recently. However, existing models cannot perform as well as humans, since sentences they produce are often implausible and grammatically incorrect. In this paper, inspired by the process of humans creating sentences, we propose a novel Knowledge-enhanced Commonsense Generation framework, termed KGR^4, consisting of four stages: Retrieval, Retrospect, Refine, Rethink. Under this framework, we first perform retrieval to search for relevant sentences from external corpus as the prototypes. Then, we train the generator that either edits or copies these prototypes to generate candidate sentences, of which potential errors will be fixed by an autoencoder-based refiner. Finally, we select the output sentence from candidate sentences produced by generators with different hyper-parameters. Experimental results and in-depth analysis on the CommonGen benchmark strongly demonstrate the effectiveness of our framework. Particularly, KGR^4 obtains 33.56 SPICE points in the official leaderboard, outperforming the previously-reported best result by 2.49 SPICE points and achieving state-of-the-art performance.
BibTeX
@inproceedings{liu2022kgr,
  author = {Xin Liu and Dayiheng Liu and Baosong Yang and Haibo Zhang and Junwei Ding and Wenqing Yao and Weihua Luo and Haiying Zhang and Jinsong Su},
  title = {{KGR^4: Retrieval, Retrospect, Refine and Rethink for Commonsense Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i10.21351},
}
Figure