Teaching Metric Distance to Discrete Autoregressive Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chung, Jiwan, Kim, Saejin, Jo, Yongrae, Park, Jaewoo, Min, Dongjun, Yu, Youngjae
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911655671103488
author Chung, Jiwan
Kim, Saejin
Jo, Yongrae
Park, Jaewoo
Min, Dongjun
Yu, Youngjae
author_facet Chung, Jiwan
Kim, Saejin
Jo, Yongrae
Park, Jaewoo
Min, Dongjun
Yu, Youngjae
contents Large language models (LLMs) operate as autoregressive predictors over discrete token vocabularies, a formulation that has enabled their adaptation far beyond natural language to vision, robotics, and multimodal reasoning. However, training against one-hot targets disregards metric relationships between tokens and limits effectiveness on tasks where distance is meaningful, such as numerical values, spatial coordinates, or quantized embeddings. We introduce DIST2Loss, a distance-aware objective for discrete autoregressive models that replaces one-hot targets with reward-weighted distributions derived from predefined token distances. DIST2Loss can be interpreted as the closed-form solution to entropy-regularized policy optimization with known per-token rewards, retaining the core mechanism of reinforcement learning while avoiding sampling, rollouts, and instability. Our experiments show that DIST2Loss improves data efficiency and downstream performance across diverse domains. It yields tighter bounding boxes in visual grounding, accelerates robotic manipulation by improving action learning, enhances reward modeling for LLM alignment, and strengthens vector-quantized image generation. These results demonstrate that distance-aware supervision offers a simple and general alternative to one-hot supervision for discrete autoregressive models.
format Preprint
id arxiv_https___arxiv_org_abs_2503_02379
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Teaching Metric Distance to Discrete Autoregressive Language Models
Chung, Jiwan
Kim, Saejin
Jo, Yongrae
Park, Jaewoo
Min, Dongjun
Yu, Youngjae
Machine Learning
Computer Vision and Pattern Recognition
Large language models (LLMs) operate as autoregressive predictors over discrete token vocabularies, a formulation that has enabled their adaptation far beyond natural language to vision, robotics, and multimodal reasoning. However, training against one-hot targets disregards metric relationships between tokens and limits effectiveness on tasks where distance is meaningful, such as numerical values, spatial coordinates, or quantized embeddings. We introduce DIST2Loss, a distance-aware objective for discrete autoregressive models that replaces one-hot targets with reward-weighted distributions derived from predefined token distances. DIST2Loss can be interpreted as the closed-form solution to entropy-regularized policy optimization with known per-token rewards, retaining the core mechanism of reinforcement learning while avoiding sampling, rollouts, and instability. Our experiments show that DIST2Loss improves data efficiency and downstream performance across diverse domains. It yields tighter bounding boxes in visual grounding, accelerates robotic manipulation by improving action learning, enhances reward modeling for LLM alignment, and strengthens vector-quantized image generation. These results demonstrate that distance-aware supervision offers a simple and general alternative to one-hot supervision for discrete autoregressive models.
title Teaching Metric Distance to Discrete Autoregressive Language Models
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2503.02379