Reproduce “Matching Features, Not Tokens: Energy-Based Fine-Tuning of Language Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Samy Jelassi, Mujin Kwun, Rosie Zhao, Yuanzhi Li, Nicolo Fusi, Yilun Du, Sham M. Kakade, Carles Domingo-Enrich

EBFT trains language models to align sampled-completion features with a reference, addressing the gap between teacher-forced training and generation from model-generated outputs. It uses frozen-model representations and a diversity term, without a correctness reward. On Qwen2.5-1.5B Q&A coding, it achieves 0.548 greedy HumanEval accuracy, versus 0.483 for SFT and 0.535 for RLVR; these results apply to the studied settings.

Key insights

  • Feature matching provides a principled, dense, sequence-level training signal that effectively mitigates exposure bias by directly optimizing the statistical properties of model-generated sequences.
  • EBFT uniquely achieves simultaneous improvements in both downstream task performance and intrinsic language modeling quality (validation cross-entropy), avoiding the trade-off observed in RL-based methods.
  • The approach eliminates the dependency on task-specific external verifiers or hand-crafted reward functions, broadening the applicability of advanced fine-tuning to open-ended and non-verifiable generation tasks.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.