Measuring and Reducing Model Update Regression in Structured Prediction for NLP

Deng Cai, Elman Mansimov, Yi-An Lai, Yixuan Su, Lei Shu, Yi Zhang

TL;DR

When updating an NLP model, it’s common for the new version to "forget" how to handle specific cases that the old version got right—a phenomenon called model update regression. This paper provides the first systematic study of this problem in structured prediction (like parsing sentences into trees) and proposes Backward-Congruent Re-ranking (BCR): a simple yet powerful method that uses the old model to choose from a set of candidates generated by the new model, significantly improving backward compatibility without sacrificing accuracy.

What Problem Does This Paper Address?

In the software world, we hate regressions—when a new update breaks a feature that used to work. In Machine Learning, we face a similar issue. Even if a "Model B" has higher average accuracy than "Model A," it might fail on 5% of the cases Model A handled perfectly. These are called negative flips. For a user of a virtual assistant, it’s incredibly frustrating when the device suddenly stops understanding a specific command it understood yesterday.

An example of model update regression in conversational semantic parsing, where the new model fails on parts of the structure the old model predicted correctly.

While this has been studied in simple classification (e.g., "is this a cat or a dog?"), it hasn't been explored in structured prediction. In structured prediction, the output isn't just a label; it’s a complex structure like a dependency tree or a semantic graph. This makes the problem harder because:

  1. Fine-grained regression: A model might get the "whole tree" wrong but still get specific "branches" right.
  2. Huge output space: There are exponentially many possible trees for a single sentence, making standard techniques like Knowledge Distillation (KD) computationally difficult.

Methods: Backward-Congruent Re-ranking (BCR)

The authors evaluate standard techniques—like Model Ensembles and Knowledge Distillation—and find them lacking. They then propose Backward-Congruent Re-ranking (BCR).

The intuition behind BCR is clever: structured prediction models can often produce multiple high-quality "guesses." BCR works in two steps:

  1. Candidate Generation: The new model generates a set of $k$ candidate structures. To ensure these candidates are diverse and high-quality, the authors introduce dropout-p sampling—running the model multiple times with dropout turned on during inference to "shake up" the internal representations.
  2. Re-ranking: The old model then scores these $k$ candidates. BCR selects the candidate that the old model likes best (i.e., the one with the highest probability according to the predecessor).

By letting the old model have the "final say" among the new model's top choices, the system naturally gravitates toward outputs that are consistent with previous behavior.

Datasets

The study focuses on two representative NLP tasks:

  • Syntactic Dependency Parsing: Using the English EWT treebank (Universal Dependencies 2.2). The goal is to map the grammatical relationships between words in a sentence.
  • Conversational Semantic Parsing: Using the TOP dataset. This involves transforming user utterances (e.g., "Directions to David's party") into hierarchical intent-slot frames that a virtual assistant can execute.

Key Insights and Ideas

  • Regression is rampant: Even small changes, like changing a random seed during training, can cause significant regression.
  • Architecture matters: "Heterogeneous" updates (e.g., switching from a graph-based parser to a transition-based parser) lead to much higher regression than "homogeneous" updates (just using more data or a bigger version of the same model).
  • Accuracy $\neq$ Compatibility: Improving a model's overall accuracy does not automatically reduce regression. In some cases, a more accurate model actually introduced more new errors compared to a less accurate one.
  • The "Aha" moment for BCR: The authors found that the new model often has the "correct" answer (the one the old model liked) somewhere in its top-k list. BCR simply provides a mechanism to find it. Surprisingly, BCR often improved the overall accuracy of the new model as well, suggesting that the old model acts as a useful "second opinion."

Key Results

BCR proved highly effective at mitigating regressions across the board.

Table showing BCR outperforming untreated models, distillation, and ensembles in reducing Negative Flip Rate (NFR) and Negative Flip Impact (NFI) while maintaining high accuracy.
  • Substantial Reduction in Regression: BCR reduced the Negative Flip Impact (NFI)—the proportion of errors caused by regressions—by an average of 58% in dependency parsing and 73% in semantic parsing.
  • Outperforming Baselines: As shown in the results, BCR consistently beat both Model Ensembles and Knowledge Distillation across all tested scenarios, achieving the lowest NFR and NFI scores.
  • Efficiency: While BCR requires running two models, the re-ranking step is computationally cheap compared to the initial generation. Using dropout-p sampling with $k=10$ candidates was found to be the "sweet spot" for balancing performance and latency.

Limitations and Future Work

The primary limitation of BCR is the deployment overhead. To use it in production, you must maintain and run both the old and the new models simultaneously. This increases the memory footprint and hosting costs.

The authors suggest that future work could explore using Knowledge Distillation to "compress" the wisdom of the old model into the new one more effectively, potentially achieving the benefits of BCR without needing to run two models at inference time. They also note that this study focused on NLP, but the principles likely apply to other structured domains like image segmentation.

Summary updated

BibTeX
@inproceedings{cai2022measuring,
  author = {Deng Cai and Elman Mansimov and Yi-An Lai and Yixuan Su and Lei Shu and Yi Zhang},
  title = {{Measuring and Reducing Model Update Regression in Structured Prediction for NLP}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=4cdxptfCCg},
}
Figure