Introduction
Generating realistic scenarios from a sparse set of concepts is a significant challenge in natural language processing. This task, known as Commonsense Generation, requires a model to produce a coherent and plausible sentence given a list of target concepts (e.g., ear, feel, pain, pierce). While large-scale pretrained models like BART and GPT-2 have shown promise, they often struggle with relational reasoning—determining the logical priority between novel concept combinations—and lack the implicit background knowledge necessary to construct realistic scenes from scratch.
To address these limitations, this paper introduces EKI-BART (Enhanced Knowledge Injection BART), a "retrieve-and-edit" framework. Instead of generating a sentence from a blank slate, EKI-BART retrieves a relevant "prototype" sentence from external knowledge and intelligently adapts it to incorporate the target concepts.
Methodology: The EKI-BART Framework
The EKI-BART model follows a structured workflow designed to inject external knowledge while filtering out irrelevant noise.
1. Retrieval and Input Construction
Given a set of concepts, the system first searches external corpora (such as Wikipedia or daily scenario datasets) to find a prototype sentence containing as many of the target concepts as possible. The target concepts and this retrieved prototype are then concatenated. To help the model distinguish between the two distinct types of input, Group Embeddings are applied before they enter the BART encoder.
2. Encoder Scaling Module and Position Indicators
A key innovation in EKI-BART is how it handles the retrieved prototype. Not all information in a prototype is useful; some words may conflict with the target concepts or introduce irrelevant context. Rather than using "hard masking" (deleting words), which can disrupt the linguistic flow, the authors implement a Scaling Module. This module assigns an importance factor ($\lambda$) to each token, allowing the model to "softly" de-emphasize noise while retaining useful context.
Furthermore, the Prototype Position Indicator (PPI) is used to signal the relative distance between every token in the prototype and the nearest target concept. This information is injected into the encoder-decoder attention mechanism, guiding the decoder to focus on the most relevant local contexts within the prototype.
Experimental Setup
The model was evaluated on the CommonGen benchmark. The authors utilized two types of external knowledge sources for retrieval:
- In-Domain ($D_{in}$): Datasets like VaTeX (video captions), SNLI (image captions), and Activity (daily activities) which provide high-quality, relevant daily life scenarios.
- Out-of-Domain ($D_{out}$): English Wikipedia, used to test the model's generalization capabilities when specific scenario data is unavailable.
Results and Analysis
EKI-BART significantly outperformed standard generative models and previous state-of-the-art methods on the CommonGen benchmark.
As shown in the results, EKI-BART (using in-domain data $D_{in}$) achieved a BLEU-4 score of 36.10, a substantial improvement over the vanilla BART baseline of 24.90. The model also demonstrated superior performance across other metrics, including ROUGE-L (46.53), METEOR (33.80), and CIDEr (17.80).
Key Insights
- Scenario Bias: The retrieved prototype acts as a structural template, giving the model a logical head start.
- Soft Masking Effectiveness: The Scaling Module proved more effective than hard masking by preserving the sentence's natural flow while filtering distractions.
- Proximity Relevance: The PPI successfully leveraged the assumption that words surrounding target concepts in a prototype are most likely to describe their interactions.
Conclusion
EKI-BART demonstrates that "editing" is a more effective strategy for commonsense generation than "hallucinating" from scratch. By combining retrieval with intelligent scaling and position indicators, the model effectively injects external knowledge to produce more realistic and coherent sentences. Future work may involve exploring more explicit structural reasoning and addressing the computational overhead introduced by the retrieval step.
Summary updated