FR: Folded Rationalization with a Unified Encoder

Wei Liu, Haozhao Wang, Jun Wang, Ruixuan Li, Chao Yue, Yuankai Zhang

TL;DR

Researchers have developed Folded Rationalization (FR), a simple yet powerful architectural change that prevents NLP models from "cheating" when explaining their decisions. By sharing a single text encoder between the explanation generator and the final predictor, FR eliminates the common problem where models focus on meaningless noise. This elegant solution leads to a massive 10.3% boost in explanation quality (F1 score) over previous state-of-the-art methods.

What Problem Does This Paper Address?

In the quest for "interpretable" AI, researchers use a technique called rationalization. This typically involves a two-phase "cooperative game":

  1. The Generator: A model that picks out the most important snippets (the "rationale") from a text.
  2. The Predictor: A model that makes a final classification (e.g., "Positive" or "Negative" sentiment) based only on those snippets.

The goal is to have the model provide a human-readable reason for its choice. However, these models often suffer from a degeneration problem. Early in training, the generator might randomly pick a meaningless token—like a hyphen ("-")—and the predictor might accidentally learn that a hyphen always means "Negative." Once the predictor starts "cheating" by looking for these uninformative shortcuts, the generator stops trying to find actual meaningful words. The result? A model that is right for the wrong reasons, providing "explanations" that make no sense to humans.

Methods

The authors propose Folded Rationalization (FR). While traditional models use two separate encoders (one for the generator and one for the predictor), FR "folds" these two phases together by using a unified, shared encoder.

Architecture of Folded Rationalization (FR)
  • Shared Weights: Both the generator and the predictor use the exact same underlying GRU (Gated Recurrent Unit) or Transformer to process the text.
  • The Workflow: The full text goes into the shared encoder. The generator uses these representations to create a binary mask (selecting tokens). The predictor then takes the selected tokens and passes them through the same encoder again to make the final call.
  • The "Frustratingly Simple" Fix: Because the encoder is shared, the predictor is effectively regularized. It cannot easily overfit to meaningless noise because the encoder is simultaneously being trained to represent the semantic meaning of the full text for the generator.

Datasets

The researchers evaluated FR on two classic multi-aspect sentiment analysis benchmarks:

  • Beer Reviews: Reviews where models must predict ratings for specific aspects like Appearance, Aroma, and Palate.
  • Hotel Reviews: Reviews focusing on Location, Service, and Cleanliness.

These datasets are challenging because different aspects (like a hotel's great location but terrible service) are often mentioned in the same paragraph, requiring the model to be very precise in its rationalization.

Key Insights and Ideas

  • Learning Speed Imbalance: The authors discovered that in traditional models, the predictor learns much faster than the generator. By the time the generator starts finding good words, the predictor has already "spoiled" itself by overfitting to the generator's early mistakes.
Impact of Learning Rate Imbalance

Sharing the encoder forces the two components to learn at the same pace, mitigating this imbalance.

  • The Global View: Theoretically, the shared encoder gives the predictor a "global view" of all possible rationale candidates. The paper proves mathematically that in the FR framework, the predictor is much less likely to give different outputs for different sets of uninformative tokens, forcing it to focus on the truly informative ones.
  • Simplicity is a Feature: Unlike previous attempts to fix degeneration (like 3PLAYER or DMR), which add complex "teacher" models or adversarial games, FR requires almost no extra parameters or complex loss functions.

Key Results

  • SOTA Performance: FR significantly outperformed existing methods across all test cases. In the "Beer-Appearance" task, it achieved an F1 score of 82.8%, a 10.3% improvement over the previous state-of-the-art.
  • Robustness to "Skew": The authors tested the model in "skewed" environments—scenarios intentionally designed to trick the model into overfitting on position or noise. While standard models (RNP) failed completely in these tests, FR remained highly effective.
  • Qualitative Success: In side-by-side comparisons, FR consistently selected coherent phrases (e.g., "stale cereal grains dominate") while older models often picked single punctuation marks or irrelevant stop words.

Limitations and Future Work

  • Idealized Models: The theoretical proofs in the paper assume "optimal" solutions, which are not always reached in real-world, messy training scenarios.
  • Basic Framework: Currently, FR is built on the "basic" rationalization framework. The authors note that it doesn't yet incorporate more advanced "extra modules" that some other SOTA models use, though they suggest these could be integrated in the future.
  • Multi-task Complexity: Sharing an encoder is similar to multi-task learning. While it works well here, the authors acknowledge that balancing the generator and predictor "tasks" within one encoder could become complex as models scale.

Summary updated

BibTeX
@inproceedings{liu2022fr,
  author = {Wei Liu and Haozhao Wang and Jun Wang and Ruixuan Li and Chao Yue and Yuankai Zhang},
  title = {{FR: Folded Rationalization with a Unified Encoder}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=IAMTBHy9Fg},
}
Figure