Beyond Simple Averaging: Improving NLP Ensemble Performance with Topological-Data-Analysis-Based Weighting
Polina Proskura, Alexey Zaytsev
TL;DR
The paper tackles improving NLP ensembles by accounting for inter-model diversity through topology-based similarity measures computed from attention representations. It formalizes a quadratic-risk weighting framework and uses RTD-based topology divergences to determine ensemble weights, achieving higher accuracy and tighter uncertainty estimates than equal-weight or simple correlation-based methods. Across IMDb, CoLA, SST-2, and MRPC, topology-aware weighting yields consistent gains and enables effective subset selection, including scenarios with weak and strong model pairings. The approach offers practical benefits by boosting performance without training additional models and shows potential for broader applications, such as joint training and translation tasks.
Abstract
In machine learning, ensembles are important tools for improving the model performance. In natural language processing specifically, ensembles boost the performance of a method due to multiple large models available in open source. However, existing approaches mostly rely on simple averaging of predictions by ensembles with equal weights for each model, ignoring differences in the quality and conformity of models. We propose to estimate weights for ensembles of NLP models using not only knowledge of their individual performance but also their similarity to each other. By adopting distance measures based on Topological Data Analysis (TDA), we improve our ensemble. The quality improves for both text classification accuracy and relevant uncertainty estimation.
