Reproduce “N-GRPO: Embedding-Level Neighbor Mixing for Enhanced Policy Optimization” 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

Xukun Zhu, Hang Yu, Peng Di, Linchao Zhu

The N-GRPO framework introduces an embedding-level neighbor mixing strategy to enhance trajectory exploration and policy optimization for Large Language Models. This method improves reasoning capabilities by maintaining semantic consistency while generating diverse paths, achieving an average Pass@32 score of 79.17% for the 1.5B DeepSeek model on math benchmarks, up from 77.41% with standard GRPO.

Key insights

  • Semantic Neighbor Mixing effectively balances the need for diverse trajectory exploration with the critical requirement of maintaining semantic consistency in LLM reasoning.
  • Cosine similarity is crucial for selecting semantically relevant neighbors in anisotropic embedding spaces, enabling effective and targeted embedding-level perturbations.
  • A stochastic gating mechanism (mixing rate) is necessary to prevent excessive continuous perturbations from disrupting semantic stability, as applying mixing to all tokens degrades performance.

Summary by alphaXiv.

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