Similarity-Distance-Magnitude Language Models

Allen Schmaltz
10/30/2025
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schmaltz2025similaritydistancemagnitude,
  title  = {Similarity-Distance-Magnitude Language Models},
  author = {Allen Schmaltz},
  year   = {2025},
  eprint = {2510.26183},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.26183v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.26183.svg)](https://codeofpaper.com/paper/2510.26183)

Discussion