Adaptive Problem Generation via Symbolic Representations

Teresa Yeo, Myeongho Jeon, Dulaj Sanjaya Weerakoon, Rui Qiao, Alok Prakash, Armando Solar-Lezama, Archan Misra · DOI

Abstract: We present a method for generating training data for reinforcement learning with verifiable rewards to improve small open-weights language models on mathematical tasks. Existing data generation approaches rely on open-loop pipelines and fixed modifications that do not adapt to the model's capabilities. Furthermore, they typically operate directly on word problems, limiting control over problem structure. To address this, we perform modifications in a symbolic problem space, representing each problem as a set of symbolic variables and constraints (e.g., via algebraic frameworks such as SymPy or SMT formulations). This representation enables precise control over problem structure, automatic generation of ground-truth solutions, and decouples mathematical reasoning from linguistic realization. We also show that this results in more diverse generations. To adapt the problem difficulty to the model, we introduce a closed-loop framework that learns modification strategies through prompt optimization in symbolic space. Experimental results demonstrate that both adaptive problem generation and symbolic representation modifications contribute to improving the model's math solving ability.

Introduction

Reinforcement Learning from Verifiable Rewards (RLVR) has emerged as a premier technique for enhancing the mathematical reasoning of Large Language Models (LLMs). However, the effectiveness of RLVR is fundamentally constrained by the availability of high-quality, verifiable training data. Traditional synthetic data generation pipelines are typically "open-loop," utilizing static prompts to apply superficial changes to existing word problems. These methods suffer from a lack of adaptability to the student model's progress, often resulting in problems that are either too simple or too complex, and they struggle to guarantee the solvability of generated content.

The Symbolic Generation Pipeline

To overcome these limitations, we propose a closed-loop framework that shifts the data generation process from natural language into a symbolic representation space. By representing mathematical problems as symbolic code (e.g., SymPy), we can manipulate the underlying mathematical structure directly rather than just the narrative dressing.

The closed-loop symbolic generation pipeline and its impact on model accuracy.

The pipeline operates as follows:

  1. Symbolic Translation: Seed word problems are parsed into SymPy code.
  2. Closed-Loop Prompt Optimization: Using TextGrad, a framework that backpropagates natural language feedback, we optimize generation prompts based on the student model's performance. The system (driven by a generator like GPT-5-mini) learns to create problems that specifically target the student's current weaknesses.
  3. Modification & Verification: The optimized prompt modifies the symbolic code (e.g., introducing nested equations). A solver then verifies the code and extracts the ground-truth answer.
  4. Natural Language Rendering: The verified code is translated back into a natural word problem for training.

Advantages of Symbolic Representations

A key insight of this work is that decoupling mathematical reasoning from linguistic realization acts as a "superpower" for data generation. When LLMs modify problems in natural language, they often increase linguistic complexity without increasing mathematical depth. In contrast, modifications in symbolic space force structural changes, such as introducing quadratic relationships or coupled equations, leading to significantly higher data diversity.

Comparison between natural language (baseline) and symbolic representation (ours) pipelines for problem modification.

Furthermore, the choice of symbolic language matters. While SymPy provides a high level of abstraction suitable for natural language translation, lower-level formats like SMT-LIB can result in robotic and unnatural word problems due to their requirement for explicit computational details.

Experimental Results

Our experiments with Qwen2.5 (1.5B and 3B) student models demonstrate the efficacy of the Opt-Sym method. The 1.5B model showed a 3.3% average accuracy improvement across benchmarks like GSM8K and MATH-500, while the 3B model saw gains of up to 5%.

The method is also highly sample-efficient. Using only 100 seed data points, Opt-Sym achieved an 8% performance jump, doubling the 4% improvement seen by the baseline. Diversity metrics further support our approach: symbolic modifications yielded a pairwise cosine distance of 0.37 for problem embeddings, compared to just 0.07 for natural language modifications, indicating the generation of fundamentally more distinct problems.

Conclusion and Future Work

Adaptive problem generation via symbolic representations provides a robust path for scaling RLVR training. While the current approach is limited to problems that can be formalized into code and relies on high-capability proprietary models for optimization, it sets a foundation for future work. Potential expansions include applying this framework to other formal domains such as logic programming (Prolog) or planning tasks (PDDL) to further generalize model reasoning capabilities.

Summary updated

BibTeX
@misc{yeo2026adaptive,
  author = {Teresa Yeo and Myeongho Jeon and Dulaj Sanjaya Weerakoon and Rui Qiao and Alok Prakash and Armando Solar-Lezama and Archan MISRA},
  title = {{Adaptive Problem Generation via Symbolic Representations}},
  year = {2026},
  eprint = {2602.19187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.19187},
}
Figure