mlsanityData to 7 Oct 2026

Think Inside the JSON: Reinforcement Strategy for Strict LLM Schema Adherence

arXiv 2502.14905 ↗First posted 18 Feb 2025cs.CL cs.AI cs.LGcited by 16

On the map: LLM reasoning → Reinforcement learning for reasoning

Abstract (arXiv)

In this paper, we address the challenge of enforcing strict schema adherence in large language model (LLM) generation by leveraging LLM reasoning capabilities. Building on the DeepSeek R1 reinforcement learning framework, our approach trains structured reasoning skills of a 1.5B parameter model through a novel pipeline that combines synthetic reasoning dataset construction with custom reward functions under Group Relative Policy Optimization (GRPO). Specifically, we first perform R1 reinforcement learning on a 20K sample unstructured-to-structured dataset, mirroring the original DeepSeek R1 methods, to establish core reasoning abilities. Subsequently, we performed supervised fine-tuning on a separate 10K reasoning sample dataset, focusing on refining schema adherence for downstream tasks. Despite the relatively modest training scope, requiring approximately 20 hours on an 8xH100 GPU cluster for GRPO training and 3 hours on 1xA100 for SFT, our model demonstrates robust performance in enforcing schema consistency. We compare our ThinkJSON approach against the original DeepSeek R1 (671B), distilled versions of DeepSeek R1 (Qwen-1.5B and Qwen-7B), and Gemini 2.0 Flash (70B), showcasing its effectiveness in real-world applications. Our results underscore the practical utility of a resource-efficient framework for schema-constrained text generation.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 8 of its 19 references that are in the map. First posted on arXiv 18 Feb 2025.

Builds on

8 of 19 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning22 Jan
  2. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotations14 Dec

Other references · 6

  1. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  2. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  3. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  4. 2023Efficient Guided Generation for Large Language Modelscited by 192
  5. 2024XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Modelscited by 73
  6. 2024StructuredRAG: JSON Response Formatting with Large Language Modelscited by 22

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 9; 2026: 7.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Token-Efficient RL for LLM Reasoning
  2. 2026Re2: Unlocking LLM Reasoning via Reinforcement Learning with Re-solving
  3. 2025General-Reasoner: Advancing LLM Reasoning Across All Domains
  4. 2025Revisiting Reinforcement Learning for LLM Reasoning from A Cross-Domain Perspective
  5. 2025Scaling Up RL: Unlocking Diverse Reasoning in LLMs via Prolonged Training
  6. 2025From Data-Centric to Sample-Centric: Enhancing LLM Reasoning via Progressive Optimization
  7. 2025Critique-GRPO: Advancing LLM Reasoning with Natural Language and Numerical Feedback
  8. 2025MOTIF: Modular Thinking via Reinforcement Fine-tuning in LLMs