Hide to Guide: Learning via Semantic Masking
Ruitao Liu, Qinghao Hu, Alex Hu, Yecheng Wu, Shang Yang, Luke J Huang, Zhuoyang Zhang, Han Cai, Song Han
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Post-Training: RL & Distillation › Reinforcement Learning for Language Model Reasoning · Type: new method · Keywords: reinforcement learning with verifiable rewards, expert guidance, semantic masking, reward hacking, fill-in-the-blank learning
Areas: LLM Reasoning › Reasoning Optimization › Policy Optimization for Reasoning; RL for LLMs & Agents › LLM Reasoning Reinforcement Learning › Reinforcement Learning for Reasoning
Summary
SMEPO introduces a fine-grained semantic masking strategy that hides reward-relevant spans in expert traces to guide policy learning without exposing final answers, improving accuracy across math, code, and agentic search tasks.
Explained to a 5-year-old
Imagine a robot that learns to solve puzzles by getting rewards when it gets the right answer. Sometimes the robot fails on hard puzzles, so it doesn't get much help. To help, we show the robot a smart person's solution, but we hide the important parts like the final answer. This way the robot can't just copy the answer; it has to think about how to fill in the missing pieces. The robot follows the overall plan of the solution, like a roadmap, but figures out the hidden steps itself.
Explained to a 5-year-old, longer
Imagine a robot that learns to solve puzzles by getting rewards when it gets the right answer. Sometimes the robot fails on hard puzzles, so it doesn't get much help. To help, we show the robot a smart person's solution, but we hide the important parts like the final answer. This way the robot can't just copy the answer; it has to think about how to fill in the missing pieces. The robot follows the overall plan of the solution, like a roadmap, but figures out the hidden steps itself. This makes learning feel like a fill-in-the-blank game. It works for many kinds of puzzles, including math problems, writing code, and searching for information. The robot becomes better at solving new puzzles it hasn't seen before. It also learns faster, so it needs less practice time. The method is simple and can be added to many existing learning systems. It helps robots become smarter without needing huge amounts of data. Overall, hiding the key parts teaches the robot to think for itself.
For a technical reader
The paper addresses a common issue in reinforcement learning where models copy expert solutions instead of learning to reason. It proposes a technique that selectively masks parts of expert trajectories that contain the final answer or other reward-relevant information. By hiding these key spans, the learning agent must reconstruct the missing pieces while still following the overall problem-solving plan. This fill-in-the-blank approach improves accuracy and speeds up training across math, code, and search tasks. The method is easy to integrate because it does not require changes to the reward function or the RL algorithm.
Problem
Reinforcement learning with verifiable rewards often suffers from limited exploration because models fail on hard problems, leaving little useful reward signal. Guided RL methods that expose expert traces can inadvertently create reward hacking channels, allowing policies to copy the trace rather than learn reasoning.
Method
The approach masks reward-relevant semantic spans along the critical path of expert trajectories while preserving the expert’s decomposition, plan, and procedural structure, turning hard problems into fill-in-the-blank tasks for the policy. It is applied without modifying the reward function or RL objective, making it simple to integrate with existing RLVR frameworks.
Results
The approach achieves up to a 3.2-point accuracy gain over GRPO and cuts training time by up to 4.2 times.
Contributions
It provides a fine-grained semantic masking strategy that selectively hides reward-relevant content in expert traces, enabling policies to learn reasoning rather than copy traces, and it works across multiple reasoning domains without altering the reward function.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction