Think Less, Locally: Local Preference Learning for Reasoning Compression

Muyao Yuan, Liyan Xu, Weizhan Zhang, Muyan Jiao, Jiangnan Li, Jinchao Zhang, Jie Zhou

arXiv:2611.04814 · 2026-11-04 공개 · arXiv · PDF

code-generation mathematical-reasoning dpo model-efficiency llm-compression reasoning-compression self-generated-data local-preference-learning

Abstract

Large reasoning models achieve strong performance on challenging tasks, but their long chain-of-thought often incurs substantial inference costs by continuing to deliberate after sufficient information has been obtained. Existing reasoning compression methods primarily operate on reasoning trajectories, paying less attention to the local decision of whether further reasoning is necessary given the current state. We propose LoCo, a local preference learning method for reasoning compression. LoCo detects candidate overthinking states from the model's own traces, freezes the corresponding reasoning prefixes, regenerates shorter verified continuations from the same states, and trains on the resulting state-conditioned preference pairs with DPO. This formulation teaches the model when to continue reasoning and when to conclude, rather than simply encouraging shorter trajectories overall. We construct training data entirely from self-generated mathematical traces and evaluate LoCo on five mathematical and three code generation benchmarks. LoCo reduces completion length by 41.7\%--45.4\% on mathematics and 23.4\%--36.3\% on code, while maintaining or improving accuracy and achieving the best AUC across all code benchmarks. LoCo consistently improves the accuracy-efficiency trade-off on mathematics and transfers effectively to code generation despite math-only training, demonstrating the cross-domain generality of local preference learning for reasoning compression. The code and model will be publicly released at https://github.com/MuyaoYuan/LoCo.

한국어 요약

한 줄 요약

LoCo는 수학 및 코드 생성에서 추론 과정을 41.7%–45.4%까지 압축하면서 정확도를 유지하거나 향상시키는 로컬 선호 학습 기반 추론 압축 방법이다.

핵심 기여도

핵심 아이디어

기존 추론 압축 방법은 전체 추론 경로를 대상으로 하여 과도한 추론을 줄이려는 경향이 있다. 그러나 이는 모델이 특정 상태에서 추가 추론이 필요하지 않다는 판단을 못하게 할 수 있다. LoCo는 이 문제를 해결하기 위해 **로컬한 상태별 결정**을 학습하는 방식을 제안한다.

LoCo는 모델이 생성한 추론 트레이스에서 **과도한 추론 상태**(overthinking states)를 탐지하고, 해당 상태에서 생성된 **추론 접두어**(prefix)를 고정한 후, 더 짧은 **검증된 후속 추론**(continuations)을 재생성한다. 이 후, 이 상태-조건된 두 추론 경로를 비교하여 **DPO**(Direct Preference Optimization)를 통해 모델이 '계속' 또는 '종료'를 선택하도록 학습시킨다.

이 방식은 단순히 전체 추론 길이를 줄이는 것이 아니라, **추론 상태에 따라 적절히 종료하거나 계속하는 판단 능력을 훈련**하는 데 초점을 맞춘다. 이는 추론 과정의 효율성과 정확도를 동시에 유지하는 핵심 아이디어이다.

기술적 접근법

주요 결과

의의 및 한계

LoCo는 추론 압축 분야에서 **로컬한 상태별 판단**을 학습하는 새로운 접근법을 제시하며, 수학과 코드 생성 모두에서 **정확도-효율성의 균형**을 개선한다. 특히, 수학 훈련으로 학습된 모델이 코드 생성에 전이되는 것은 추론 선호가 도메인 간 일반화 가능하다는 점을 입증한다.

그러나 LoCo는 **수학 문제에서 자동 생성된 데이터만으로 훈련**되며, 다른 도메인에서의 일반화 가능성은 추가 실험을 통해 검증이 필요하다. 또한, **과도한 추론 상태 탐지 알고리즘**의 정확도가 최종 성능에 큰 영향을 미칠 수 있으므로, 이 부분의 개선이 필요할 수 있다.

실용적 활용

LoCo는 **대규모 추론 모델**(LLM)을 활용하는 산업 및 연구 분야에서 유용하게 적용될 수 있다. 특히, **수학 문제 해결, 알고리즘 프로그래밍, 코드 생성** 등에서 추론 과정을 효율적으로 줄이면서 정확도를 유지할 수 있어, **추론 비용을 낮추고 실시간 응답을 가능하게 하는 데 기여**할 수 있다.