RMIB: Representation Matching Information Bottleneck for Matching Text Representations

Haihui Pan, Zhifang Liao, Wenrui Xie, Kun HanICML 2024

Introduction

This paper introduces the Representation Matching Information Bottleneck (RMIB), a novel theoretical framework and optimization objective for asymmetrical text matching tasks, such as Question Answering (QA) and Natural Language Inference (NLI). By proving that domain alignment is mathematically equivalent to optimizing the Information Bottleneck (IB), the authors extend standard IB to explicitly force interaction between text representations. This approach significantly boosts the performance of various text matching models, particularly those that lack early cross-text interaction.

The Problem: Asymmetrical Text Matching

In natural language processing, "asymmetrical text matching" involves comparing two pieces of text that originate from different distributions or domains. Common examples include matching a short search query to a long document, or a premise to a hypothesis.

Deep learning models often struggle with this asymmetry because they map texts from different domains into separated clusters within the semantic space. While previous research has attempted to resolve this by forcing the model to learn "domain-invariant" features—making the distributions of the two texts look similar—the theoretical justification for why this works has remained fuzzy. Furthermore, standard representation learning theories, like the Information Bottleneck (IB), focus on compressing a single input to predict a label. They fail to account for the fact that in text matching, the interaction between the two inputs is the most critical factor.

Methodology: Representation Matching Information Bottleneck (RMIB)

The authors begin with a theoretical breakthrough: they mathematically prove that aligning the representations of two different texts to a shared prior distribution (like a standard Gaussian) is equivalent to optimizing the Information Bottleneck.

However, standard IB is insufficient for text matching because it treats the two inputs independently. To address this, the authors propose RMIB, which adds two crucial constraints to the standard IB framework:

  1. Interaction: The mutual information between the two text representations must be maximized. They must share relevant semantic information.
  2. Inadequacy: A single text representation alone should contain minimal information about the final target label. For instance, a model shouldn't be able to predict if an answer matches a question by only looking at the answer.
RMIB Architecture and Mutual Information Constraints

Because mutual information is notoriously difficult to compute directly, the authors derive a tractable optimization objective. They use Kullback-Leibler (KL) divergence (optimized via the reparameterization trick) to handle the domain alignment, and a neural network-based estimator to approximate the mutual information between the representations.

Datasets

The authors evaluated their method on five standard public datasets for natural language inference, paraphrase identification, and QA:

  • SICK (Sentences Involving Compositional Knowledge)
  • SciTail (Science Entailment)
  • WikiQA (Wikipedia Question Answering)
  • SNLI (Stanford Natural Language Inference)
  • Quora Question Pair

(Additional tests on MRPC, WNLI, and RTE are included in the paper's appendix). No new datasets were introduced.

Key Insights

  • Domain Alignment is Compression: The proof that domain alignment equals the Information Bottleneck is a neat theoretical bridge. It shows that forcing text representations to match a prior distribution effectively makes the model "forget" redundant, domain-specific input noise.
  • Interaction Must Be Forced: Standard IB doesn't care if two text representations interact. By explicitly maximizing their mutual information (the "Interaction" constraint), RMIB forces the model to find the semantic overlap between asymmetrical texts.
  • RMIB Fixes Architectural Flaws: "Bi-encoder" models (like SBERT) encode texts separately and only compare them at the very end. They usually underperform "cross-encoders" (like BERT) which allow texts to interact early via attention. RMIB's loss function forces interaction in the latent space, massively closing the performance gap between these two architectures.
  • A Cure for Data Hunger: RMIB acts as a powerful regularizer. The authors found it provides the most dramatic performance boosts on smaller datasets (like SICK and SciTail), preventing models from overfitting to domain-specific quirks.

Key Results

The authors applied RMIB to four models: two pre-trained (BERT, SBERT) and two non-pre-trained (RE2, ESIM).

Performance Comparison Across Models and Datasets
  • Massive gains for SBERT: Because SBERT lacks early text interaction, RMIB's interaction constraint provided incredible boosts. On the SICK dataset, SBERT with RMIB achieved a +12.54% increase in accuracy compared to vanilla SBERT. It also saw a +4.28% accuracy bump on SciTail and a +3.51% MAP increase on WikiQA.
  • Consistent improvements across the board: Even highly optimized cross-encoder models like BERT saw improvements, such as a +0.71% accuracy gain on SICK and +0.89% MAP on WikiQA.
  • Ablation success: Removing the "Interaction" and "Inadequacy" constraints caused performance to drop back down, proving that RMIB is strictly superior to standard IB for matching tasks.

Limitations and Future Work

The primary limitation of RMIB is the introduction of three new hyper-parameters ($\alpha_1, \alpha_2, \alpha_3$) in the loss function, which control the weight of the different mutual information constraints. Currently, these must be tuned manually via grid search.

For future work, the authors plan to explore methods for setting these hyper-parameters adaptively during training. They also suggest that while RMIB is designed for supervised learning, its underlying principles regarding representation interaction could potentially be adapted for unsupervised contrastive learning frameworks.

Summary updated

BibTeX
@inproceedings{pan2024rmib,
  author = {Haihui Pan and Zhifang Liao and Wenrui Xie and Kun Han},
  title = {{RMIB: Representation Matching Information Bottleneck for Matching Text Representations}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=hsHIxrnrMx},
}
Figure