mlsanityData to 24 Nov 2026

Option-GRPO: Hierarchical RL Against AI Slop in Code Generation for Unseen SDKs

arXiv 2611.23633 ↗Submitted 17 Nov 2026Announced 19 Nov 2026cs.SE cs.CL cs.LGcited by 0

On the map: LLM reasoning → Reinforcement learning for reasoning also fits: Reasoning for agents, planning and code

Abstract (arXiv)

Large language models increasingly produce AI slop in generated code: verbose, redundant, non-idiomatic implementations that pass functional checks but bloat codebases. The problem compounds on SDKs released after the model's training cutoff, where the model has neither idiomatic priors nor compositional understanding. We present Option-GRPO, a hierarchical reinforcement learning framework that adapts a code LLM to an unseen SDK from its source code alone, without human-written usage examples or test cases, and that explicitly optimizes for both functional correctness and code elegance. Our key insight is that SDK source code contains compositional structure that defines a hierarchy of reusable code patterns (code options) which simultaneously serve as the building blocks of a curriculum and the action space for efficient policy optimization. We show that code options induce a valid semi-Markov decision process, give conditional bounds under which shorter option description length implies more concise and, in expectation, more API-efficient programs, and analyze under stated assumptions how the option hierarchy improves credit assignment by a factor of √T/K. Using Group Relative Policy Optimization (GRPO) with execution-based rewards at each curriculum level, Option-GRPO discovers SDK idioms, composes them into patterns, and assembles patterns into complete programs. Experiments on 12 unseen SDKs with a 32B-parameter base model demonstrate 61.4% pass@1, outperforming flat GRPO by 8.7 points, ExploraCoder by 11.2 points, and ReCode by 6.3 points. Option-GRPO produces solutions that use 34.7% fewer API calls and are 27% shorter than flat-GRPO outputs while maintaining higher correctness, directly attacking the slop problem.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 14 of its 36 references that are in the map. Submitted 17 Nov 2026, announced 19 Nov 2026.

Builds on

14 of 36 references.

References · 14

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
  2. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,418
  3. 2016The Option-Critic Architecturecited by 461
  4. 2020Curriculum Learning for Reinforcement Learning Domains: A Framework and Surveycited by 392
  5. 2017FeUdal Networks for Hierarchical Reinforcement Learningcited by 348
  6. 2022DocPrompting: Generating Code by Retrieving the Docscited by 165
  7. 2020Automatic Curriculum Learning For Deep RL: A Short Surveycited by 156
  8. 2022Large Language Models Meet NL2Code: A Surveycited by 140
  9. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 124
  10. 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 98
  11. 2023Do Embodied Agents Dream of Pixelated Sheep: Embodied Decision Making using Language Guided World Modellingcited by 92
  12. 2024LibEvolutionEval: A Benchmark and Study for Version-Specific Code Generationcited by 14
2 more
  1. 2025ReCode: Updating Code API Knowledge with Reinforcement Learningcited by 13
  2. 2024ExploraCoder: Advancing code generation for multiple unseen APIs via planning and chained explorationcited by 12

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Co-Evolving Policy and Reward for Code Generation: A Mechanistic Study of Single-Adapter Drift
  2. 2026Domain-Adaptable Reinforcement Learning for Code Generation with Dense Rewards
  3. 2025From Reasoning to Code: GRPO Optimization for Underrepresented Languages
  4. 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization
  5. 2025MURPHY: Feedback-Aware GRPO with Retrospective Credit Assignment for Multi-Turn Code Generation
  6. 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey
  7. 2025Towards Better Correctness and Efficiency in Code Generation
  8. 2026Reinforcement Learning for Code Optimization