Likelihood Variance as Text Importance for Resampling Texts to Map Language Models
Momose Oyama, Ryo Kishino, Hiroaki Yamagiwa, Hidetoshi Shimodaira
TL;DR
This work tackles the high computational cost of constructing a language-model map from log-likelihood vectors by introducing resampling strategies that prioritize texts with high variance across models. The proposed Length Squared (LS) and KL sampling methods assign text-selection probabilities to minimize distance-estimation error, enabling accurate KL-based model maps with roughly half the texts required by uniform sampling. Empirically, LS/KL sampling matches or closely approaches the baseline in estimating model distances, yields stable maps, and efficiently accommodates new models. Importantly, downstream performance predictions remain robust as the number of unique texts grows, indicating practical applicability for scalable model comparison and integration in dynamic model ecosystems.
Abstract
We address the computational cost of constructing a model map, which embeds diverse language models into a common space for comparison via KL divergence. The map relies on log-likelihoods over a large text set, making the cost proportional to the number of texts. To reduce this cost, we propose a resampling method that selects important texts with weights proportional to the variance of log-likelihoods across models for each text. Our method significantly reduces the number of required texts while preserving the accuracy of KL divergence estimates. Experiments show that it achieves comparable performance to uniform sampling with about half as many texts, and also facilitates efficient incorporation of new models into an existing map. These results enable scalable and efficient construction of language model maps.
