Revision Transformers: Getting RiT of No-Nos

Felix Friedrich, Wolfgang Stammer, Patrick Schramowski, Kristian Kersting

Abstract

Current transformer language models (LM) are large-scale models with billions of parameters. They have been shown to provide high performances on a variety of tasks but are also prone to shortcut learning and bias. Addressing such incorrect model behavior via parameter adjustments is very costly. This is particularly problematic for updating dynamic concepts, such as moral values, which vary culturally or interpersonally. In this work, we question the current common practice of storing all information in the model parameters and propose the Revision Transformer (RiT) to facilitate easy model updating. The specific combination of a large-scale pre-trained LM that inherently but also diffusely encodes world knowledge with a clear-structured revision engine makes it possible to update the model's knowledge with little effort and the help of user interaction. We exemplify RiT on a moral dataset and simulate user feedback demonstrating strong performance in model revision even with small data. This way, users can easily design a model regarding their preferences, paving the way for more transparent AI models.

Introduction

Large Language Models (LLMs) are often described as "stochastic parrots," trained on massive, uncurated datasets that inevitably contain societal biases and outdated information. While alignment techniques like Reinforcement Learning from Human Feedback (RLHF) or supervised fine-tuning exist, they face significant hurdles. First, the computational cost of retraining models with billions of parameters is prohibitive for individual users. Second, values are static in these models; a model aligned today may be culturally or morally obsolete tomorrow. Finally, morality is subjective—a single global model cannot satisfy the diverse cultural expectations of users worldwide.

To address these challenges, we propose the Revision Transformer (RiT). Instead of attempting to bake every possible value into the model's weights (parametric memory), RiT utilizes an external, editable "revision engine" (non-parametric memory). This allows for dynamic, sample-efficient, and personalized alignment.

Conceptual overview of the Revision Transformer (RiT) framework showing how user feedback updates model behavior without retraining.

The RiT Framework

The RiT framework augments a base LLM (such as T5 or Bloom) with a retrieval-based pipeline designed to steer the model's output based on a user-controlled corpus. The system operates through five key stages:

  1. The Revision Corpus ($\mathcal{R}$): A collection of text snippets representing the desired values, facts, or cultural norms (e.g., "In Europe, it is illegal to own a gun").
  2. Retrieval via S-LLM: When a user submits a query, a Sentence-LLM (S-LLM) converts both the query and the corpus entries into high-dimensional embeddings.
  3. Similarity Filtering: The system calculates the cosine similarity between the query and the corpus. If the similarity exceeds a predefined threshold ($t$), the most relevant snippets are retrieved.
  4. Contextualized Prompting: The retrieved snippets are prepended to the original query as context, effectively redirecting the model's reasoning "off the cuff" during inference.
  5. Interactive Loop (iRiT): If the model is uncertain or provides an incorrect answer, the user can provide corrective feedback. This feedback is immediately added to the revision corpus, enabling real-time, human-in-the-loop updates.
Detailed architecture of the Revision Engine and the interactive feedback loop.

Experimental Evaluation

We evaluated RiT using the Commonsense Norm Bank (CNB), a large-scale dataset focused on morality and social norms. We used the training and validation splits to simulate user feedback and the test split for final evaluation across various base models, including T0 and Bloom (ranging from 3b to 176b parameters).

Key Results

  • Accuracy Gains: A baseline T0 model achieved 63% accuracy in aligning with moral norms. By integrating the RiT revision engine, accuracy jumped to 86%. With two iterations of simulated user feedback (i²RiT), performance reached 91%.
  • Data Efficiency: RiT demonstrates remarkable sparsity. In our "iRiT" experiments, using just 7.5% of the training data as a revision corpus was sufficient to match the performance of using the entire dataset.
  • Improved Generation: Natural Language Generation metrics (BLEU, ROUGE, METEOR) more than doubled in several benchmarks, indicating that the model's justifications became significantly more aligned with ground-truth moral reasoning.

Discussion and Insights

The core innovation of RiT is the decoupling of knowledge from parameters. An LLM does not need to "know" a value in its weights to act upon it; providing the right context at inference time is often more effective and far more flexible. This "Plug & Play" approach allows users to swap value corpora (e.g., switching from Western to Eastern cultural norms) instantly without touching the underlying model.

Furthermore, the similarity threshold acts as a built-in uncertainty mechanism. When no similar context is found, the model effectively signals that it lacks specific user preferences, triggering a request for feedback rather than hallucinating a default, potentially biased response.

Limitations

While promising, RiT's success is sensitive to the quality of the S-LLM used for retrieval. If the retriever fails to find relevant context, the model reverts to its baseline behavior. Additionally, while the framework promotes transparency, it could theoretically be used to inject harmful values if not paired with appropriate guardrails. Future work will focus on scaling context windows and exploring multilingual applications.

Conclusion

Revision Transformers offer a path toward more democratic and transparent AI. By moving alignment from a centralized, expensive retraining process to a decentralized, user-controlled revision engine, we enable models that can adapt to the diverse and evolving values of human society.

Summary updated

BibTeX
@inproceedings{friedrich2022revision,
  author = {Felix Friedrich and Wolfgang Stammer and Patrick Schramowski and Kristian Kersting},
  title = {{Revision Transformers: Getting RiT of No-Nos}},
  booktitle = {ECAI},
  year = {2022},
  url = {https://openreview.net/forum?id=upHwAYLN3S},
}
Figure