English

Similarity-Distance-Magnitude Language Models

Computation and Language 2025-10-31 v1

Abstract

We introduce Similarity-Distance-Magnitude (SDM) language models (LMs), which are sequence prediction models fine-tuned to maximize the proportion of generations in the well-calibrated, high-probability region partitioned by a final-layer SDM activation layer used for binary classification of instruction-following. We demonstrate that existing pre-trained decoder-only Transformer LMs can be readily converted into SDM LMs via supervised fine-tuning, using the final-layer SDM activation layer during training to estimate a change-of-base for a supervised next-token loss over a contrastive input encoding scheme, with additional hard negative examples generated online during training. This results in reduced abstentions (i.e., improved statistical efficiency) compared to strong supervised baselines.

Keywords

Cite

@article{arxiv.2510.26183,
  title  = {Similarity-Distance-Magnitude Language Models},
  author = {Allen Schmaltz},
  journal= {arXiv preprint arXiv:2510.26183},
  year   = {2025}
}

Comments

8 pages, 5 tables

R2 v1 2026-07-01T07:13:17.063Z