Skip to Content
SensorsSensors
  • Article
  • Open Access

25 February 2026

27 Pages

AF-CuRL: Stable Reinforcement Learning for Resource-Constrained Long-Form Reasoning in Edge-Intelligent Systems

,
,
and
1
School of Electronic and Information Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
2
Cloud Gansu Technology Co., Ltd., Lanzhou 730030, China
3
School of Statistics, Renmin University of China, Beijing 100872, China
4
School of Physics and Electronic Engineering, Northwest Normal University, Lanzhou 730070, China
This article belongs to the Section Intelligent Sensors

Highlights

What are the main findings?
  • Proposes AF-CuRL, a lightweight reinforcement learning framework that improves training stability for long-form generation under low-resource constraints.
  • Demonstrates consistent gains in mathematical reasoning accuracy and output regularity on a 1.5B-parameter model without increasing model size or compute.
What are the implications of the main findings?
  • Shows that objective-level design, rather than model scaling, is critical for effective reinforcement learning in low-resource long-form generation.
  • Provides a practical and reproducible reinforcement learning approach applicable to resource-constrained reasoning tasks.

Abstract

Resource-constrained intelligent systems increasingly require reliable long-form reasoning capabilities under limited computational and memory budgets, particularly in edge and embedded sensing environments. However, reinforcement learning for long-horizon decision generation remains highly unstable in such low-resource settings due to severe reward sparsity and imbalanced credit assignment, which often lead to non-convergent or excessively verbose generation behavior. In this work, we propose AF-CuRL (Answer-Focused Curriculum Reinforcement Learning), a lightweight reinforcement learning framework designed to stabilize long-form generation without increasing model size or computational cost. AF-CuRL improves optimization learnability through two complementary objective-level designs: (1) answer-focused token reweighting, which concentrates policy updates on reward-critical regions of generated sequences to alleviate credit assignment imbalance, and (2) a two-phase curriculum reward schedule that prioritizes stable termination and output regularity before shifting toward correctness-oriented optimization. We evaluate AF-CuRL on a 1.5B-parameter language model under strictly constrained training settings, using mathematical reasoning tasks as a controlled and reproducible proxy for long-horizon, rule-based decision-making commonly encountered in intelligent sensing and embedded systems. Experimental results demonstrate consistent improvements in both decision accuracy and generation regularity, including higher termination reliability and reduced generation length, compared with standard sequence-level reinforcement learning baselines. These results suggest that, for resource-limited and edge-intelligent systems, structured objective design can be more effective than model scaling for achieving stable and efficient long-form reasoning, providing a practical reinforcement learning solution for intelligent systems operating under real-world constraints.

1. Introduction

In recent years, large language models (LLMs) have achieved substantial progress in natural language understanding and generation, enabling their use not only in traditional AI tasks such as code generation and mathematical reasoning, but also as high-level reasoning and decision modules in intelligent systems. In emerging sensor-driven and edge-intelligent applications, LLMs are increasingly explored as a means to interpret structured observations, perform multi-step symbolic or rule-based reasoning, and produce explicit terminal decisions under complex constraints [1,2,3]. As these systems move closer to practical deployment, reinforcement learning (RL) has become an important paradigm for refining LLM behavior beyond supervised fine-tuning, particularly when explicit labels are unavailable or when decision quality depends on long-horizon outcomes [4,5].
Despite their promise, applying reinforcement learning to LLM-based reasoning modules in sensor-driven and edge-intelligent systems remains fundamentally challenging, particularly under low-resource constraints. A central difficulty arises from the credit assignment problem in long-horizon decision generation: rewards are often available only after an entire reasoning or decision sequence has been completed, while the sequence itself may consist of hundreds or thousands of intermediate tokens [6]. Under such settings, token-level contributions to terminal outcomes are highly imbalanced. Most tokens correspond to intermediate reasoning or structural transitions and contribute weakly to the final decision, whereas a small subset of tokens near the end of the sequence largely determines correctness or task success [7]. When standard sequence-level policy gradient methods propagate identical reward signals across all tokens, gradients correlated with terminal outcomes are diluted by a large number of weakly related decisions, leading to high-variance updates and unstable optimization [8]. These issues become especially pronounced when model capacity, sampling budgets, and variance-reduction mechanisms are simultaneously constrained, a setting that naturally arises in resource-limited and edge-intelligent systems [9].
In this work, mathematical reasoning is used as a controlled benchmark rather than a target application, as it exhibits structured, long-horizon decision characteristics similar to those required in LLM-based reasoning modules for intelligent sensing systems. Mathematical reasoning tasks provide a representative testbed for examining these challenges [10]. On the one hand, models are required to generate relatively long intermediate reasoning sequences to perform multi-step logical deductions [11]. On the other hand, evaluation depends critically on the correctness and format of the final answer produced at the end of the sequence. In practice, models often produce concise and well-defined final answers for problems of moderate difficulty. However, as problem difficulty increases, they are prone to generating excessively long outputs, repeatedly revisiting reasoning steps without converging to a final result. Such behaviors not only degrade evaluation metrics, but also highlight the limitations of existing reinforcement learning methods when applied to long-form generation under constrained resources [12].
Existing reinforcement learning approaches for large language models typically adopt sequence-level reward modeling, treating all tokens in a generated sequence as equally important optimization targets [13]. Moreover, many methods emphasize final-answer correctness as the primary reward signal from the very beginning of training. Under low-resource conditions, this design often results in extremely sparse and unstable reward signals, providing little effective supervision during early optimization [14]. As a consequence, policy updates are dominated by noise, leading to unstable and non-convergent generation behavior rather than sustained performance improvement under low-resource conditions [15,16].
Motivated by these observations, we propose AF-CuRL (Answer-Focused Curriculum Reinforcement Learning), a reinforcement learning framework designed specifically for low-resource long-form generation. The central objective of AF-CuRL is to stabilize reinforcement learning by imposing structured constraints on the optimization objective and training signals, while leaving the underlying model architecture unchanged. Rather than relying on increased sampling budgets, auxiliary critic networks, or large-scale computational resources, AF-CuRL addresses the core bottlenecks of long-form reinforcement learning directly at the objective level.
Specifically, AF-CuRL improves reinforcement learning from two complementary perspectives. First, it introduces answer-focused token reweighting, which assigns greater optimization emphasis to answer-critical regions of the generated sequence, thereby alleviating credit assignment imbalance in sequence-level policy gradients. Second, it employs a two-phase curriculum reward schedule that prioritizes stable and learnable behavioral signals—such as output format and generation length—during early training, before gradually shifting emphasis toward correctness-oriented optimization once generation behavior has stabilized [17].
AF-CuRL is implemented using a lightweight REINFORCE-based training paradigm and relies exclusively on parameter-efficient fine-tuning via LoRA adapters and rule-based reward functions [18,19,20]. No additional value networks or complex optimization architectures are introduced. As a result, the proposed framework can be trained on a single consumer-grade GPU with limited memory, making it suitable for practical scenarios involving constrained model capacity and restricted training budgets.
Using mathematical reasoning as the primary evaluation domain, we conduct systematic experiments on a 1.5B-parameter language model under strictly low-resource conditions [21]. Experimental results demonstrate that AF-CuRL achieves consistent and reproducible improvements across multiple mathematical reasoning benchmarks. Further ablation studies and behavioral analyses confirm that the proposed design not only improves final correctness, but also systematically enhances output regularity and generation efficiency in long-form reasoning tasks.
In summary, this work makes the following contributions:
  • We introduce an answer-focused policy optimization formulation that explicitly addresses credit assignment imbalance in long-form generation.
  • We propose a two-phase curriculum reward scheduling strategy that substantially improves training stability under low-resource conditions.
  • We demonstrate, through systematic experiments on a 1.5B-parameter model trained on a single GPU, that structured objective design enables stable and reproducible reinforcement learning improvements without increasing model scale or computational cost.

3. Method

This section introduces AF-CuRL (Answer-Focused Curriculum REINFORCE), the reinforcement learning method proposed in this work. AF-CuRL is designed for reinforcement learning training of large language models under low-resource conditions, with the goal of guiding models toward more regularized, convergent, and efficient generation behavior without relying on complex optimizers or substantial computational resources, as illustrated in Figure 1. The framework consists of three components:
Figure 1. AF-CuRL optimizes a frozen LLM with LoRA adapters using an answer-focused REINFORCE objective. The framework combines token-level reweighting with a two-phase curriculum reward to improve credit assignment and training stability in long-form generation.
  • a lightweight training paradigm based on REINFORCE;
  • an answer-focused token reweighting strategy;
  • a two-phase curriculum reward mechanism.

3.1. Task Formulation and Reinforcement Learning Setup

We consider the problem of training large language models for long-form generation using reinforcement learning under low-resource conditions. Given an input prompt x, the model generates an output sequence y = ( y 1 , … , y T ) in an autoregressive manner, where T denotes the length of the generated sequence [39]. The model is treated as a stochastic policy πθ parameterized by θ, whose conditional probability distribution is defined as:
π θ   ( y ∣ x ) = ∏ t = 1 T π θ   ( y t ∣ y < t , x )
Under the reinforcement learning framework, the training objective of the model is to maximize the expected reward of the generated sequence:
max θ   E y ∼ π θ ( ⋅ | x )   [ R ( x , y ) ]
In the standard REINFORCE algorithm, this objective corresponds to the following policy gradient loss function:
L R E I N F O R C E   ( θ ) = − R ( x , y ) ∑ t = 1 T log π θ   ( y t ∣ y < t , x )
Here, the reward function R ( x , y ) is computed after the complete sequence has been generated and is used to evaluate the overall quality of the model output. In the setting studied in this work, reward signals are not provided at the token level, but are instead defined at the sequence level.
Under the low-resource setting, we adopt a K = 1 sampling strategy for reinforcement learning training, where a single output sequence is generated for each input at every training step and the policy gradient update is computed based solely on that sequence. To maintain simplicity and reproducibility, we do not introduce additional value functions or critic networks, and all parameter updates are applied directly to the language model policy itself.
It is important to note that we distinguish between sampling strategies used during training and evaluation. Reinforcement learning training is consistently performed with K = 1 sampling, whereas during evaluation we allow multiple samples per input and aggregate results using a best-of-K strategy [40]. This evaluation protocol is used solely to reduce stochasticity at inference time and does not affect the training objective or the proposed method itself.

3.2. Limitations of Sequence-Level Policy Gradients in Long-Form Generation

Building on the analysis of credit assignment imbalance discussed in Section 2.3, we briefly restate the limitation of sequence-level policy gradients most relevant to our method. Although sequence-level policy gradients such as REINFORCE provide an unbiased estimator of the expected reward objective, their optimization behavior exhibits fundamental limitations in long-form generation settings [39]. Under the standard REINFORCE formulation, the policy gradient estimator can be written as:
∇ θ L ( θ ) = − ( R − b )   ∇ θ log π θ   ( y ∣ x )
where R denotes the sequence-level terminal reward and b is a baseline used for variance reduction. This estimator assigns the same reward signal to all tokens in the generated sequence through the joint log-probability logπθ(y∣x), implicitly assuming that each token contributes equally to the terminal reward.
When the generated sequence is long, the vast majority of tokens serve intermediate reasoning or linguistic transition roles and contribute negligibly to the final outcome, while only a small subset of tokens near the end of the sequence, typically associated with the final answer, largely determines the terminal reward. Under this highly imbalanced token-level contribution structure, uniformly propagating the reward signal across the entire sequence causes gradients that are strongly correlated with the terminal reward to be diluted by a large number of weakly related tokens. As a result, the effective signal-to-noise ratio of gradient estimates degrades rapidly as sequence length increases.
These limitations become particularly severe under low-resource conditions. When sampling is restricted (e.g., K = 1), model capacity is limited, and no critic or auxiliary value estimation mechanisms are available, policy updates rely almost entirely on a single generated trajectory. In this regime, the statistical efficiency of policy gradients is dominated by the correlation structure between reward signals and generation decisions. Applying uniform sequence-level updates further amplifies gradient noise, making it difficult for the model to obtain stable and informative learning signals during early training.
Empirically, this instability often manifests as non-convergent or delayed generation behavior. These behaviors are not incidental but arise as a structural consequence of applying standard sequence-level policy gradients to long-form generation under low-resource constraints. Therefore, relying solely on conventional REINFORCE updates is insufficient for stable training in this setting, motivating the need for objective designs that explicitly account for token-level contribution imbalance in long-form generation.

3.3. Answer-Focused Token Reweighting

3.3.1. Motivation

As discussed in Section 3.2, the central limitation of sequence-level policy gradients in long-form generation lies in the highly imbalanced token-level contributions to the terminal reward. Standard REINFORCE applies a uniform weight to all tokens at the objective level, implicitly assuming that each token is equally important to the final outcome. This assumption substantially amplifies gradient noise and undermines training stability.
Based on this observation, we propose an answer-focused token reweighting strategy whose goal is not to alter the form of the gradient estimator itself, but to structurally reparameterize the policy optimization objective so that policy updates are concentrated on generation regions that are decisive for the terminal reward, as illustrated in Figure 2.
Figure 2. Answer-focused token reweighting in AF-CuRL.
In tasks such as mathematical reasoning, model outputs can typically be divided into two categories of tokens: (1) reasoning tokens used to construct intermediate reasoning steps or organize language, and (2) answer tokens that express the final result. The latter usually appear near the end of the sequence and are identified by explicit syntactic boundaries, such as the first occurrence of \boxed{…}. Importantly, this partition relies solely on positional and syntactic cues in the output structure, and does not use the numerical value, semantic content, or correctness of the answer, thereby avoiding any task-specific oracle.

3.3.2. Answer-Focused Token Weighting

As discussed in Section 3.2, the main limitation of sequence-level policy gradients in long-form generation lies in the highly imbalanced contribution of individual tokens to the terminal reward. In tasks such as mathematical reasoning, only a small subset of tokens near the end of the sequence—corresponding to the final answer—largely determines the reward, while most preceding tokens contribute weakly.
To address this issue, we introduce an answer-focused token weighting scheme that modulates the contribution of different tokens directly within the policy optimization objective. Specifically, given a generated sequence y = (y1, …, yT), we identify an answer region starting at position ta, which corresponds to the first occurrence of an explicit answer delimiter (e.g., \boxed{}) [41].
We assign a scalar weight w t to each token position t as follows:
w t = α , t ≥ t a β , t < t a
In our experiments, the weighting parameters are fixed as follows:
α = 1.0 ,   β = 0.2
In our experiments, the weighting coefficients are fixed as α = 1.0 and β = 0.2 across all datasets and training runs. These values are not obtained through task-specific hyperparameter tuning but are chosen as a simple and stable heuristic to reflect the highly imbalanced contribution of different token regions to the terminal reward in long-form generation.
The absolute numerical values of α and β are not critical; rather, the relative scale between answer and non-answer tokens is the key factor. As long as answer-region tokens receive substantially higher weight than reasoning tokens, the optimization behavior remains consistent. We deliberately adopt fixed and interpretable coefficients to avoid introducing additional tuning freedom and to ensure reproducibility under low-resource training conditions.

3.3.3. Weighted REINFORCE Loss Function

Incorporating the answer-focused token weights into the policy gradient formulation, we define the weighted REINFORCE loss used in AF-CuRL as:
L A F   ( θ ) = − R ( x , y ) ∑ t = 1 T w t log π θ   ( y t ∣ y < t , x )
where R denotes the sequence-level terminal reward, b is a baseline for variance reduction, and πθ is the autoregressive policy defined in Section 3.1.
Compared to the standard sequence-level REINFORCE objective, this formulation explicitly concentrates policy updates on answer-critical regions of the generated sequence, while down-weighting tokens that are weakly correlated with the terminal reward. Although this modification introduces bias relative to the original unbiased policy gradient estimator, it substantially improves the signal-to-noise ratio of gradient updates in low-resource long-form generation settings.
In practice, we find that this objective leads to more stable training dynamics and more reliable termination behavior, without introducing additional model components or increasing computational overhead.

3.4. Two-Phase Curriculum Reward Mechanism

3.4.1. Reward Sparsity Under Low-Resource Conditions

In low-resource long-form generation tasks, another central bottleneck in reinforcement learning training arises from the severe sparsity of reward signals. When rewards are primarily determined by terminal correctness, small-parameter models often receive little to no positive feedback during early training, causing policy gradient updates to be dominated by noise. This issue is particularly pronounced in tasks such as mathematical reasoning: even when a model generates extensive reasoning text, it may still receive zero reward if a clear final answer is not produced.
Taken together with the analyses in Section 3.2 and Section 3.3, it becomes clear that, in long-form generation settings, reward sparsity and imbalanced credit assignment interact and reinforce each other, rendering training that optimizes solely for correctness highly unstable under low-resource conditions. Consequently, providing the policy with denser and more learnable feedback during early training is a necessary prerequisite for achieving stable optimization.

3.4.2. Two-Phase Curriculum Reward Design

Based on the above observations, we propose a two-phase curriculum reward scheduling mechanism that improves policy gradient learnability by shifting the optimization focus across training stages (Figure 3).
Figure 3. Two-phase curriculum reward schedule in AF-CuRL. AF-CuRL adopts a stage-wise curriculum at the reward-objective level to improve training stability under low-resource conditions. Phase 1 prioritizes dense behavioral rewards (format validity and reasonable length), while Phase 2 shifts emphasis toward correctness-oriented optimization, retaining non-zero structural constraints.
Phase 1: During the early stage of training, the reward function primarily focuses on the determinacy and convergence of generation behavior, rather than optimizing for final correctness. Specifically, this phase emphasizes whether the model produces a final answer with a valid format, and whether the generated sequence length falls within a reasonable range so as to avoid unbounded reasoning expansion. The objective of this phase is not to directly improve task accuracy, but to guide the model toward stable termination behavior and increase reward density, enabling policy gradients to receive reliable positive learning signals.
Phase 2: Once the model has developed stable output patterns, the reward function gradually shifts toward emphasizing correctness, while retaining constraints on output format and generation length. At this stage, the policy has acquired the ability to produce well-defined answers, and correctness-based rewards are no longer highly sparse, allowing policy gradients to more effectively leverage outcome feedback to drive performance improvement.

3.4.3. Reward Function Formulation

Under the curriculum design described above, the reward function used in this work can be expressed as:
R ( x , y ) = α ⋅ R c o r r e c t ( x , y ) + β ⋅ R f o r m a t ( y ) + γ ⋅ R l e n g t h ( y )
where the optimization focus of the reward function is adjusted across training phases by varying the coefficients α, β, γ. Without introducing additional models or parameters, this curriculum reward mechanism significantly improves the stability of reinforcement learning training under low-resource conditions by enabling a stage-wise transition of optimization objectives.
This curriculum mechanism is not a simple reweighting or smoothing of rewards; rather, it addresses the dominant bottlenecks at different stages of training by shifting the primary optimization focus over time. Under low-resource conditions, such optimization target scheduling effectively mitigates reward sparsity and gradient noise during early training, providing a stable foundation for subsequent correctness-oriented optimization [41].

4. Implementation Details

4.1. Model and Computational Resources

All reinforcement learning experiments in this work are conducted on an open-source large language model with approximately 1.5B parameters (DeepSeek-R1-Distill-Qwen-1.5B) [42]. This model serves as a representative low-parameter LLM and is used to study the stability and learnability of reinforcement learning training under constrained model capacity and computational resources. This model scale is also chosen with future deployment in resource-constrained or edge-computing environments in mind, where model size, memory footprint, and training stability are critical practical considerations.
To ensure fairness and reproducibility, all comparative methods in this study are implemented using the same base model, the same tokenizer, and an identical inference interface. Training configurations are strictly constrained to settings that can be executed on a single consumer-grade GPU with 8 GB of memory, thereby avoiding implicit advantages from high-compute resources and ensuring that the experimental conditions closely reflect practical and reproducible low-resource scenarios.
During training, we adopt a parameter-efficient fine-tuning (PEFT) strategy, updating the model exclusively through LoRA adapters while keeping the base model parameters frozen [43]. This design substantially reduces memory and computational overhead, and also helps mitigate instability arising from large-scale parameter updates in low-resource reinforcement learning.

4.2. Datasets and Task Setup

We adopt mathematical reasoning as the evaluation setting because it simultaneously exhibits three key characteristics: (1) the requirement for long-form generation, (2) strict constraints on final answers, including numerical correctness and output format, and (3) common forms of generation behavior degradation in high-difficulty cases, such as excessively long reasoning, repeated attempts, or failure to produce a final answer. These properties make mathematical reasoning a representative testbed for assessing the stability of reinforcement learning training under low-resource conditions.
We strictly distinguish the use of data between the reinforcement learning training phase and the evaluation phase:
  • RL-train: Used for reinforcement learning training and contains only a small number of samples, reflecting the low-resource setting.
  • Dev: Used for monitoring training trends and model selection, without participating in gradient updates.
  • Test/Benchmarks: Used for reporting final results. In addition to the primary test set, we conduct zero-shot evaluations on multiple external mathematical benchmarks to assess generalization performance.
All data splits follow a strict separation between training, development, and testing to prevent any leakage of training data into the evaluation stage.

4.3. Reinforcement Learning Training Setup

4.3.1. Algorithm and Sampling Configuration

We adopt REINFORCE (policy gradient) as the base training paradigm and perform training under low-resource constraints using a K = 1 sampling strategy. At each training step, a single output sequence is generated for each sample, and policy gradient updates are computed based on the corresponding sequence-level reward. No additional value networks or critic structures are introduced, avoiding the instability and implementation complexity associated with auxiliary modules and highlighting the effectiveness of AF-CuRL under a simple and reproducible training setup. All comparison methods in this study, including Plain RL and ablation variants, employ the same sampling strategy and optimization paradigm, namely K = 1 sampling, no critic network, and identical policy gradient updates, thereby ensuring fair comparisons without confounding effects from differing training protocols.

4.3.2. Training Steps and Curriculum Phases

Training follows a two-phase curriculum reward schedule (Phase 1/Phase 2), with phase transitions determined by the number of training steps. Phase 1 emphasizes the learnability of generation behavior, such as constraints on output format and generation length, while Phase 2 progressively increases the emphasis on correctness once generation behavior has stabilized. This curriculum design aims to mitigate early-stage training instability caused by reward sparsity under low-resource conditions. The division between curriculum phases is based solely on training steps rather than performance metrics, and is kept fixed across all datasets and experimental configurations, without task-specific tuning of phase boundaries.

4.3.3. Stability Techniques and Reproducibility Constraints

Because low-resource reinforcement learning is highly sensitive to randomness and gradient noise, we apply several standard stabilization techniques to improve training controllability and reproducibility. Specifically, all experiments use fixed random seeds, gradient clipping, and an exponential moving average (EMA) reward baseline to reduce the variance of policy gradient estimates.
To ensure fair comparisons, these stabilization techniques are applied consistently across all methods and ablation settings, without introducing any additional stabilization specific to AF-CuRL. During training, we periodically evaluate the model on a validation set to monitor potential issues such as generation behavior degradation or training collapse, although validation results are not used for gradient updates.
The transition between Phase 1 and Phase 2 is determined solely by the number of training steps and is kept fixed across all datasets and experimental settings. This design choice is intentional and aims to maximize reproducibility under low-resource reinforcement learning conditions. Although performance-based criteria such as boxed rate stabilization could in principle be used to trigger phase transitions, such metrics are highly noisy during early-stage training and often require task-dependent thresholds. Introducing performance-based switching would therefore add additional heuristic complexity and tuning freedom. In contrast, a fixed step-based schedule provides a simple, stable, and easily reproducible curriculum structure without relying on task-specific performance signals.

4.4. Parameter-Efficient Fine-Tuning Configuration

We employ LoRA (Low-Rank Adaptation) for parameter-efficient fine-tuning, updating only a small number of low-rank adapter parameters while keeping the base model weights frozen. This design offers three key advantages: (1) it substantially reduces memory and computational overhead, enabling training on a single 8GB GPU; (2) it limits the number of trainable parameters, which contributes to training stability under low-resource conditions; and (3) it improves reproducibility, facilitating fair comparisons under consistent experimental settings.
The LoRA rank, scaling factor, and dropout are fixed across all experiments to ensure implementation symmetry among different methods. Aside from LoRA, we do not modify the base model architecture or introduce additional supervision heads or discriminator modules.

4.5. Reward Function and Evaluation Signal

We adopt a rule-based, sequence-level reward function whose components and formulation strictly follow the definition in Section 3.4. The reward function consists of interpretable components, including correctness, output format, and length or efficiency, and is designed to jointly regulate output quality and generation behavior.
To ensure reproducibility and interpretability, no learned reward models or preference models are used. All reward signals are computed using deterministic rules and evaluation scripts, and the coefficients associated with each reward component remain fixed throughout training, without dataset-specific or configuration-specific tuning.
The implementation of the reward function serves solely to realize the curriculum reward scheduling mechanism described in the Section 3, rather than to introduce additional engineering heuristics or implicit optimization objectives. Detailed training configurations and implementation settings are provided in Appendix A.

4.6. Evaluation Protocol and Metrics

4.6.1. Distinction Between Training and Evaluation Sampling

To remain consistent with the low-resource training setup, reinforcement learning training is conducted using fixed K = 1 sampling. During evaluation, we allow multiple samples per input and aggregate results using a best-of-K strategy, which reduces variance caused by stochastic generation and yields more stable and comparable results. Multiple sampling is used exclusively at evaluation time and does not alter the training objective or the training procedure [12].

4.6.2. Metrics

The primary metric reported in this work is pass@K (also referred to as best-of-K accuracy), which measures the model’s ability to produce a correct answer across multiple sampled generations. In addition, we report behavior-related metrics to characterize the impact of reinforcement learning on generation patterns, including but not limited to:
  • Boxed rate: the proportion of outputs that contain a properly formatted final answer.
  • Generation length: the length of the generated output, used to assess generation efficiency and convergence.
  • Additional length statistics related to reasoning segments, when explicit reasoning markers are present in the output.
Together, these metrics support the central claim of this work that AF-CuRL not only improves outcome-level performance, but also enhances the regularity and efficiency of generation behavior.

4.6.3. Prompt Consistency

To ensure fair comparisons, all methods—including baselines, plain RL, and AF-CuRL—use the same prompt construction logic and identical decoding parameters. Input prompts are generated uniformly within the evaluation scripts and used consistently for sampling across methods, thereby eliminating confounding factors arising from prompt variations. The prompt used in all experiments is as follows:
  • “You are an expert competition mathematician.”
  • “Directly give the final numerical answer in the format \\boxed{}.”
  • “Do NOT show any reasoning steps.”
The prompt is intentionally kept simple and is designed solely to standardize input and output formats, without incorporating explicit reasoning strategies or task-specific guidance. The same prompt is used during both training and evaluation for all methods, preventing prompt engineering from influencing comparative results.
Although the prompt instructs the model not to explicitly output reasoning steps, models may still generate lengthy intermediate text on high-difficulty problems. The analysis of long-form generation behavior in this work is based on such naturally emerging outputs, rather than on explicit chain-of-thought prompting.

4.7. Implementation and Reproducibility

All experiments in this work are implemented within a unified code framework (e.g., the PyTorch ecosystem), with key sources of randomness fixed, including random seeds, data sampling procedures, and evaluation protocols. Given the sensitivity of reinforcement learning training to hyperparameters, we adopt a reproducibility-first design principle that deliberately limits tuning flexibility. Training-related hyperparameters, such as learning rate, batch size, and the number of training steps, are primarily determined by low-resource hardware constraints and commonly used ranges for parameter-efficient fine-tuning [43]. Method-specific hyperparameters, such as the relative weighting between answer and non-answer regions, emphasize relative scale relationships rather than finely tuned optimal values, thereby avoiding unfair gains from repeated experimentation on test data.
In addition, implementation symmetry is strictly maintained across all comparative experiments, including the use of the same base model, tokenizer, prompt, evaluation and reward logic, and evaluation protocol. This ensures that observed correctness improvements can be attributed to the design of AF-CuRL itself, rather than to auxiliary engineering techniques or implementation differences.

5. Results

5.1. Main Results

Table 1 summarizes the main experimental results of AF-CuRL across multiple mathematical reasoning benchmarks. All methods are evaluated using the same 1.5B-parameter base model and an identical evaluation protocol to ensure fair and reproducible comparisons. Rather than focusing on large-scale reinforcement learning settings, our study examines whether reinforcement learning can stably improve generation behavior and task performance under low-resource constraints, where sampling budgets, model capacity, and optimization structures are all limited.
Table 1. Main results on mathematical reasoning benchmarks. All results are reported on test sets. All methods use comparable 1.5B-scale models and identical evaluation protocols.
Under this setting, AF-CuRL consistently outperforms baseline methods across all evaluated benchmarks. Compared with the base model without reinforcement learning, AF-CuRL achieves clear improvements on standard mathematical reasoning datasets such as GSM8K and MATH-500. These results indicate that even under constrained model capacity, structured objective design enables reinforcement learning to yield stable and reproducible performance gains.
Notably, the observed correctness improvements are not confined to a single dataset type. AF-CuRL exhibits consistent gains on benchmarks with diverse problem styles and difficulty distributions, including Minerva, Olympiad-Bench, and AMC23. Although these benchmarks differ substantially in problem structure, reasoning depth, and answer formats, they share a common characteristic: models must generate extended reasoning sequences and produce a strictly verifiable final answer at the end of the sequence.
The consistent performance of AF-CuRL across these benchmarks suggests that its advantage does not stem from specialization to particular problem types or data distributions. Instead, it arises from addressing fundamental bottlenecks in reinforcement learning for long-form generation, particularly those related to credit assignment and reward sparsity.
Table 1 also includes a comparison with an external model of similar parameter scale, OpenMath-Nemotron-1.5B [44]. In this comparison, AF-CuRL achieves competitive results across all reported benchmarks, further supporting the conclusion that its correctness improvements do not rely on increased model scale, but on structured reinforcement learning objectives.
It should be noted that the results in Table 1 reflect only final task performance. The impact of AF-CuRL on generation behavior, such as output regularity and generation efficiency, is examined in subsequent sections through ablation studies and behavioral analyses. While the results demonstrate consistent gains in final correctness, correctness alone is insufficient to fully explain the advantages of AF-CuRL in low-parameter regimes. In high-difficulty mathematical reasoning tasks, multiple methods may exhibit similarly low accuracy, making outcome-based metrics inadequate for capturing differences in generation strategies. Given that AF-CuRL explicitly introduces structured constraints on generation behavior during training, the following section analyzes model outputs from a behavioral perspective, focusing on output regularity and generation efficiency to provide a more comprehensive understanding of how AF-CuRL shapes generation patterns across different difficulty levels.

5.2. Ablation Studies

This section presents a systematic ablation study to analyze the contributions of the key components in AF-CuRL to both correctness improvement and the stability of generation behavior. The goal of these experiments is not to identify an optimal configuration, but to verify whether the two core designs—answer-focused token reweighting and the two-phase curriculum reward mechanism—provide complementary and indispensable benefits for reinforcement learning training under low-resource conditions.
All ablation experiments are conducted under settings identical to the main experiments, including the same base model, training data, number of training steps, and evaluation protocol. No additional hyperparameter tuning is performed for any individual configuration, ensuring that performance differences reflect only structural variations in the training objective.
Table 2 summarizes the results of different configurations on the GSM8K and MATH-500 benchmarks. “Plain RL” corresponds to standard sequence-level REINFORCE without answer-focused weighting or curriculum reward scheduling and serves as an unstructured baseline. “Answer-only” introduces token reweighting for the answer region without curriculum rewards. “Curriculum-only” applies the two-phase reward schedule without answer-focused weighting. “AF-CuRL” combines both designs.
Table 2. Ablation study of AF-CuRL components on GSM8K-dev and MATH-dev. All settings use the same base model and training budget. “Answer-only” disables curriculum reward, while “Curriculum-only” disables answer-focused reweighting.
The ablation results show that introducing answer-focused token reweighting alone (“Answer-only”) yields consistent correctness improvements on both benchmarks and substantially increases the proportion of outputs that contain properly formatted final answers. This observation indicates that explicitly emphasizing answer-related regions effectively alleviates credit assignment imbalance in sequence-level policy gradients for long-form generation.
Without altering the composition of the reward function, the answer-focused strategy reduces gradient contributions from tokens that are weakly correlated with the terminal reward, thereby concentrating policy updates on regions that decisively affect the final outcome. This reweighting improves the effective signal-to-noise ratio of policy gradients under low-resource conditions.
Applying only the two-phase curriculum reward mechanism (“Curriculum-only”) also outperforms Plain RL across multiple metrics, with particularly pronounced improvements in generation behavior. Compared with configurations without curriculum scheduling, this approach significantly reduces average generation length and increases the frequency with which models produce explicit final answers. These results confirm the role of curriculum reward scheduling in mitigating reward sparsity under low-resource settings. By prioritizing the learnability and convergence of generation behavior during early training, the model receives stable positive feedback earlier, providing a foundation for subsequent correctness-oriented optimization.
When both answer-focused reweighting and curriculum reward scheduling are enabled, the model achieves the best performance across both correctness and behavior-related metrics. This outcome demonstrates that the two designs play complementary roles in reinforcement learning training: answer-focused reweighting improves the structure of credit assignment, while curriculum reward scheduling enhances overall training stability. Their combination more effectively guides models toward regularized and efficient generation behavior under low-resource constraints, enabling stable and reproducible correctness improvements without increasing model size or training budget.

5.3. Behavior Analysis

As discussed in Section 5.1, in high-difficulty mathematical reasoning tasks, relying solely on final correctness is often insufficient to fully characterize the differences between training methods. This limitation is particularly evident under low-parameter and low-resource reinforcement learning settings, where the accuracy of most methods may simultaneously approach zero. In such cases, outcome-based metrics alone fail to capture substantive changes in generation strategies.
Since AF-CuRL explicitly introduces structured constraints on generation behavior during training, this section presents a systematic behavioral analysis of model outputs. We focus on whether models are able to produce well-defined and verifiable final answers within a reasonable sequence length. The primary behavioral metrics considered are boxed rate, which measures the presence of an explicit final answer, and generation length, which reflects generation efficiency and convergence. Together, these metrics provide a finer-grained view of behavioral differences across methods in long-form generation settings.

5.3.1. Output Regularity Analysis (Boxed Rate)

We first analyze the proportion of outputs that contain a properly formatted final answer across different benchmarks, as measured by the boxed rate. Specifically, this metric evaluates whether the model produces a valid final answer in the form of \boxed{..}upon completing its reasoning process. The boxed rate reflects whether a model has developed the habit of concluding a solution with an explicit and verifiable answer, rather than remaining in prolonged or unconverged intermediate reasoning.
AF-CuRL consistently improves output completion behavior while producing more concise responses, especially on high-difficulty benchmarks where accuracy alone is insufficient to distinguish model performance.
As shown in Figure 4(top), we report the boxed rate of different methods across benchmarks, measuring whether models produce an explicit and properly formatted final answer during generation. Compared with Plain RL and the model trained with supervised fine-tuning only, AF-CuRL consistently achieves substantially higher boxed rates on all benchmarks. This indicates that AF-CuRL-trained models are more likely to conclude reasoning with a verifiable final answer, rather than continuing to generate intermediate reasoning text without convergence. This behavioral difference is closely tied to the design of the AF-CuRL training objective. By explicitly reweighting answer-region tokens in the policy gradient objective, optimization is more directly guided toward the formation of terminal outputs. In addition, the curriculum reward mechanism prioritizes termination behavior and output regularity during early training, enabling the model to learn when to stop reasoning and present a final answer. The increase in boxed rate therefore suggests that AF-CuRL encourages models to terminate generation more reliably under low-resource training, instead of continuing unbounded reasoning.
Figure 4. Behavior analysis across multiple math benchmarks. (Top) Boxed rate, measuring the proportion of outputs that contain a valid final boxed answer. (Bottom) Average output length of generated solutions.
More notably, on extremely challenging competition-level benchmarks such as AIME, AMC, CMIMC, and HMMT, where the final accuracy of all models remains close to zero, AF-CuRL still exhibits a clear advantage in boxed rate. In contrast, the base model more frequently generates long but non-terminating reasoning sequences, whereas AF-CuRL produces well-structured final answers more often. These results suggest that even when model capacity is insufficient to solve the problem correctly, AF-CuRL effectively guides the model toward an output pattern that completes reasoning and delivers an explicit conclusion.

5.3.2. Generation Efficiency Analysis (Generation Length)

Beyond output regularity, we further analyze the average generation length produced by different methods to assess generation efficiency during reasoning. As shown in Figure 4(bottom), AF-CuRL substantially reduces the average generation length across multiple benchmarks, without any accompanying degradation in task performance.
Importantly, shorter generation length does not indicate weakened reasoning capability, but rather reflects earlier convergence in the reasoning process. Compared with other methods, AF-CuRL-generated sequences exhibit fewer instances of redundant repetition or unproductive continuation, thereby avoiding the non-terminating behavior commonly observed in low-resource reinforcement learning. This observation is consistent with the analysis in Section 2.2, which highlights the tendency of low-parameter models to suffer from reasoning drift during long-horizon logical generation.

5.3.3. Behavioral Differences on High-Difficulty Benchmarks

On extremely challenging benchmarks such as AIME, CMIMC, and HMMT, the final accuracy of a 1.5B-parameter model is often too low to serve as a reliable discriminator between different methods. In these settings, behavioral differences become particularly informative.
Considering both boxed rate and generation length, AF-CuRL exhibits more stable and consistent generation behavior on these benchmarks. Models trained with AF-CuRL more frequently produce structurally complete outputs and avoid unbounded reasoning expansion. In contrast, the base model is more prone to divergent reasoning processes, overly verbose outputs, and the absence of clear termination signals.

5.3.4. Summary

Taken together, the behavioral analyses indicate that the advantages of AF-CuRL under low-resource reinforcement learning settings lie primarily in its systematic guidance of generation behavior, rather than in directly expanding the model’s reasoning capability. By improving termination behavior and generation efficiency, the model is able to form well-defined and verifiable output patterns more reliably under limited training budgets, thereby providing a necessary foundation for subsequent correctness-oriented optimization.
These findings suggest that, in low-parameter and long-form generation scenarios, the key challenge in reinforcement learning training is not merely to maximize terminal rewards, but to enable models to first learn how to complete a reasoning process in a controlled and well-structured manner through structured objective design. This observation provides an important basis for the following discussion on the applicability and limitations of the proposed method.

6. Discussion and Limitations

6.1. Behavioral Stability and Correctness Improvement in Low-Parameter Models

The experimental results demonstrate that AF-CuRL consistently improves final correctness on multiple mathematical reasoning benchmarks for low-parameter language models, while simultaneously enhancing generation behavior. Importantly, these improvements should not be interpreted as an expansion of the model’s inherent reasoning capacity. Instead, the primary contribution of AF-CuRL lies in improving behavioral stability in long-form generation through structured reinforcement learning objective design.
Under low-resource reinforcement learning settings, small-parameter models are often capable of producing meaningful intermediate reasoning steps, but struggle to converge toward well-defined and properly terminated outputs. This instability leads to sparse and noisy training signals, which severely limits the effectiveness of reinforcement learning. By combining answer-focused token reweighting with curriculum reward scheduling, AF-CuRL explicitly guides models to learn reliable termination behavior and to produce properly formatted final answers earlier in training. This behavioral stabilization serves as a prerequisite for effective outcome-level optimization and constitutes the main mechanism through which correctness improvements are achieved.
This effect is particularly evident in low-parameter and high-difficulty regimes, where model capacity, sampling budgets, and optimization stability are jointly constrained. In such settings, conventional sequence-level policy gradients tend to propagate weak and noisy learning signals across long reasoning trajectories. By strengthening the correlation between policy updates and reward-critical generation regions, and by increasing reward density during early training, AF-CuRL substantially improves the learnability of reinforcement learning objectives without relying on additional models or increased computational resources.

6.2. Generality of Reinforcement Learning Objective Design

From a methodological perspective, AF-CuRL does not rely on task-specific mathematical semantics or domain-dependent annotations. Its core design principles are motivated by optimization challenges that commonly arise in long-form generation, namely imbalanced credit assignment and reward sparsity under limited training resources. As a result, the proposed framework is potentially applicable to other tasks that require long-context generation and well-defined terminal decision criteria, such as structured problem solving or constrained decision generation.
That said, the applicability of AF-CuRL depends on several assumptions. In particular, the task should admit an identifiable terminal output region, and reliable sequence-level rewards should be available through rule-based evaluation or deterministic graders. In tasks where terminal structure is ambiguous or where reward definitions are inherently subjective, effectively identifying answer regions and designing appropriate curriculum rewards remains an open challenge and requires further investigation. These observations motivate a discussion on how stable reinforcement learning for small language models can benefit practical systems operating under sensing and deployment constraints, which we discuss next.
In this work, mathematical reasoning tasks are used as a controlled and reproducible evaluation setting, where the answer region can be reliably identified using explicit structural markers such as \boxed{}. Importantly, AF-CuRL does not depend on mathematical semantics, but on the existence of an identifiable terminal output region within long-form generation. For tasks without explicit answer markers, similar designs could rely on heuristic delimiters, regions adjacent to the end-of-sequence token, or rule-based terminal detectors, which we leave for future work.

6.3. Implications for Sensor-Driven and Edge-Intelligent Systems

Recent advances in intelligent sensing systems increasingly explore the use of large language models as high-level reasoning components, responsible for interpreting structured observations, coordinating multi-step decision processes, and producing explicit terminal outputs. Compared with traditional perception pipelines, such LLM-based reasoning modules offer greater flexibility in handling heterogeneous sensor inputs, symbolic constraints, and rule-based decision logic. However, deploying such models in practical sensing environments introduces strict constraints on model size, memory footprint, and training stability, particularly in edge and embedded scenarios where large-scale models and extensive computational resources are infeasible.
From this perspective, the low-parameter setting studied in this work reflects a realistic operational regime for sensor-driven intelligent systems. Small and medium-scale language models are more compatible with on-device deployment requirements, but they are also more vulnerable to instability during reinforcement learning, especially for long-horizon reasoning tasks. As demonstrated in our experiments, such models tend to exhibit non-terminating or excessively verbose generation behavior when optimized using standard sequence-level reinforcement learning objectives, which is undesirable for time- and resource-sensitive sensing applications.
The proposed AF-CuRL framework addresses this limitation by improving reinforcement learning stability through objective-level design rather than increased model capacity. By concentrating policy updates on answer-critical regions and introducing a curriculum reward schedule that prioritizes stable termination behavior, AF-CuRL enables small language models to learn reliable long-form decision patterns under constrained training budgets. Importantly, this design does not rely on additional critic networks, learned reward models, or extensive sampling, making it particularly suitable for resource-limited sensing systems where simplicity and reproducibility are essential.
Although mathematical reasoning is used as the evaluation benchmark in this study, the underlying challenges—sparse terminal rewards, imbalanced credit assignment, and the need for explicit and well-defined termination—are not specific to mathematics. Similar characteristics arise in sensor-driven decision scenarios such as symbolic condition assessment, anomaly interpretation, and rule-based response generation, where reasoning processes must converge efficiently to a final decision. In such settings, improving termination reliability and generation efficiency can be as critical as maximizing task accuracy.
Overall, the results suggest that, for sensor-driven and edge-intelligent systems employing LLM-based reasoning modules, structured reinforcement learning objectives may play a more decisive role than model scaling in achieving stable and deployable behavior. AF-CuRL provides a practical example of how lightweight reinforcement learning design can enhance the usability of small language models in constrained intelligent systems, offering insights for future research on resource-efficient reasoning in sensing applications.

6.4. Limitations

Despite its effectiveness under low-resource conditions, AF-CuRL has several limitations that are important to acknowledge. A central assumption of the proposed method is the existence of an identifiable terminal region within the generated sequence. While this assumption is natural for mathematical reasoning tasks with explicit answer formats, it does not directly extend to open-ended generation problems or tasks where multiple outputs may be equally valid. In such cases, defining answer-critical regions without introducing task-specific heuristics remains nontrivial.
In addition, the empirical evaluation in this work focuses on low-parameter language models trained under constrained computational budgets. Although this setting is intentionally chosen to highlight stability and learnability issues in low-resource reinforcement learning, it remains unclear to what extent the proposed objective design is necessary or beneficial when model capacity and training resources are substantially increased. A systematic investigation across model scales would be required to clarify this point.
Finally, AF-CuRL is designed to improve the stability of reinforcement learning training rather than to expand the intrinsic reasoning capabilities of a language model. When the underlying model lacks sufficient foundational competence, structured objective design alone cannot compensate for limitations in pretraining or supervised data quality. In practice, AF-CuRL should therefore be viewed as complementary to, rather than a replacement for, capability-enhancing approaches such as larger-scale pretraining or improved supervised fine-tuning.

7. Conclusions

This work investigates reinforcement learning for long-form generation in low-parameter large language models under constrained computational resources. We show that standard sequence-level policy gradient methods often fail in this regime due to severe reward sparsity and imbalanced credit assignment, leading to unstable and non-convergent generation behavior. To address these challenges, we propose AF-CuRL, a lightweight reinforcement learning framework that improves training stability through structured objective design. By combining answer-focused token reweighting with a two-phase curriculum reward schedule, AF-CuRL concentrates optimization on reward-critical generation regions while providing denser and more learnable training signals during early optimization. Experiments on multiple mathematical reasoning benchmarks demonstrate that AF-CuRL consistently improves both correctness and generation regularity for a 1.5B-parameter model trained under strictly low-resource conditions. These results suggest that, for long-form generation in resource-constrained settings, failures of reinforcement learning are often driven less by model capacity than by objective mismatch, and that carefully designed optimization objectives can substantially improve training stability without increasing model size or computational cost.

Author Contributions

Conceptualization, Z.Y. and Q.Y.; methodology, Z.Y. and Y.W.; software, Z.Y. and Y.W.; validation, Z.Y. and Y.W.; formal analysis, Z.Y.; investigation, Z.Y., X.W. and Y.W.; resources, Y.W.; data curation, Z.Y.; writing—original draft preparation, Z.Y.; writing—review and editing, Y.W., X.W. and Q.Y.; visualization, Z.Y.; supervision, Z.Y. and X.W.; project administration, Z.Y. and X.W.; funding acquisition, Z.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (Grant Nos. 62063014 and 62363020), the Natural Science Foundation of Gansu Province (Grant No. 22JR5RA365), and the Science and Technology Project of the Gansu Provincial Department of Transportation (Grant No. 202457). The article processing charge (APC) was funded by the 2025 Longyuan Youth Talents Program of Gansu Province, and 2024 Lanzhou City Sixth Batch Science and Technology Plan Project (Grant No. 2024-6-11).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Publicly available datasets were analyzed in this study. These datasets can be found at the following repositories on Hugging Face: GSM8K (https://huggingface.co/datasets/openai/gsm8k accessed on 15 January 2026), MATH-500 (https://huggingface.co/datasets/HuggingFaceH4/MATH-500 accessed on 15 January 2026), AIME24 (https://huggingface.co/datasets/HuggingFaceH4/aime_2024 accessed on 15 January 2026), AIME25 (https://huggingface.co/datasets/math-ai/aime25 accessed on 15 January 2026), AMC23 (https://huggingface.co/datasets/zwhe99/amc23 accessed on 15 January 2026), BRUMO25 (https://huggingface.co/datasets/MathArena/brumo_2025 accessed on 15 January 2026), CMIMC25 (https://huggingface.co/datasets/MathArena/cmimc_2025 accessed on 15 January 2026), HMMT25 (https://huggingface.co/datasets/FlagEval/HMMT_2025 accessed on 15 January 2026), Minerva (https://huggingface.co/datasets/math-ai/minervamath accessed on 15 January 2026), and Olympiad-Bench (https://huggingface.co/datasets/Hothan/OlympiadBench accessed on 15 January 2026).The reinforcement learning training data were derived from publicly available benchmark datasets as described above.The codebase used for training and evaluation will be publicly released at: https://github.com/YanZiQinKevin/lzu-deepseek-rl-lab (accessed on 15 January 2026).

Conflicts of Interest

Authors Ziqin Yan, Yurong Wang and Xiaojiang Wang were employed by the company Cloud Gansu Technology Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Appendix A. Training Configuration and Implementation Details

This appendix provides detailed training configurations and implementation settings for AF-CuRL to support reproducibility. Unless otherwise specified, all experiments reported in the main text follow the default settings described here.

Appendix A.1. Model and Data Setup

We conduct all reinforcement learning experiments with DeepSeek-R1-Distill-Qwen-1.5B as the base policy model. Unless otherwise stated, we use the model’s default tokenizer and keep the prompt template and decoding constraints fixed across methods to ensure comparability.
Training and evaluation are implemented with the Hugging Face ecosystem. The full codebase (training, evaluation, and preprocessing) will be open-code.

Appendix A.2. Reinforcement Learning Training Procedure

Reinforcement learning is performed using sequence-level policy gradient optimization with a total of 600 training steps. In accordance with the curriculum reward schedule, training is divided into two phases:
  • Phase 1: The first 100 steps use only dense intermediate reward signals.
  • Phase 2: The remaining steps gradually incorporate correctness-oriented rewards.
Model checkpoints are saved every 200 training steps. Evaluation on the validation set is performed every 100 steps to monitor training stability and convergence.

Appendix A.3. Generation and Sampling Settings

The maximum input prompt length is set to 384 tokens, and the maximum generation length is set to 512 tokens. Generation uses temperature sampling with temperature = 0.7 and top-p = 0.9.
Single-sample generation (K = 1) is used by default during both training and validation to maintain consistency across experimental settings.

Appendix A.4. Optimizer and Parameter Updates

Parameter updates are performed using the AdamW optimizer with a learning rate of 2 × 10−5 and weight decay set to 0. The optimizer hyperparameters are β 1 = 0.9 , β 2 = 0.9 and ϵ = 1 0 − 8 .
Gradient norm clipping is applied with a maximum norm of 1.0. All experiments are conducted with a fixed random seed (seed = 42).

Appendix A.5. Parameter-Efficient Fine-Tuning (LoRA)

Parameter-efficient fine-tuning is implemented using LoRA. The specific configuration is as follows:
  • LoRA rank r = 8
  • LoRA scaling factor α = 16
  • Dropout rate = 0.05
Only LoRA parameters are updated during training, while all base model weights remain frozen.
The LoRA configuration (r = 8, α = 16) is selected as a practical compromise under low-resource training conditions. Smaller ranks may limit adaptation capacity, while larger ranks increase trainable parameters and memory overhead, potentially reducing training stability on constrained hardware. This configuration follows common practice in parameter-efficient fine-tuning and is kept fixed across all experiments to ensure reproducibility and fair comparison.

Appendix A.6. Answer-Focused Token Weighting

In AF-CuRL, different token regions within the generated sequence are assigned different weights. Tokens belonging to the final answer region are assigned a weight of 1.0, while tokens in the reasoning region are assigned a weight of 0.2. This weighting is applied during policy optimization as described in Section 3.3.

Appendix A.7. Reward Baseline and Smoothing

An exponential moving average (EMA) reward baseline is used to reduce variance in policy gradient updates. The EMA smoothing coefficient is set to 0.05. Unless otherwise specified, this baseline mechanism is enabled in all experiments.

Appendix A.8. Validation Monitoring

During training, periodic validation is performed to monitor model behavior. At each validation step, up to 15 samples are randomly selected and evaluated using single-sample generation. Validation is conducted every 100 training steps.

Appendix A.9. Computational Environment

All experiments are executed on CUDA-enabled GPU environments. No system-level optimizations specific to individual experiments are applied beyond standard deep learning frameworks.

Appendix B. Quantitative Results

Table A1. Reports correctness and behavior-related metrics for the default AF-CuRL configuration and the extended Phase-1 variant under identical evaluation settings.

Appendix C. Failure Mode Analysis of the Base Model

This appendix reports descriptive statistics of generation behavior produced by the base model across multiple mathematical reasoning benchmarks, without reference to reinforcement learning methods.

Appendix C.1. Behavioral Metrics and Data Source

We analyze generation logs produced by the base model under a unified evaluation setup. The reported metrics include boxed rate, average output length, and related length statistics computed directly from model outputs. Table A2 summarizes these metrics across benchmarks.
To characterize generation behavior during reasoning, we focus on the following metrics:
Boxed rate: the proportion of outputs that contain a properly formatted final answer marker (e.g., \boxed{}), indicating whether the model produces an explicit and verifiable conclusion at the end of reasoning.
Average output length (avglen): the average length of generated sequences, reflecting reasoning efficiency and convergence.
Table A2. Behavioral statistics of DeepSeek-R1-Distill-Qwen-1.5B across math benchmarks.

Appendix C.2. Non-Convergent Outputs and Missing Termination Signals

Table A2 shows that the base model frequently fails to produce explicitly marked final answers on several benchmarks. In these cases, generated outputs often terminate without a valid answer marker or remain in an intermediate reasoning state.

Appendix C.3. Divergent Reasoning and Redundant Generation

Beyond output regularity, the base model also exhibits substantial redundancy in generation. The average output length is consistently high across benchmarks, with especially long sequences produced on more difficult tasks.

Appendix C.4. Formatting Instability and Answer Extraction Failures

In some cases, even when the generated output contains numerically relevant information related to a correct solution, the formatting remains unstable. Examples include inconsistent answer placement, mixed symbolic representations, or the absence of explicit answer delimiters. Such formatting inconsistencies make automated answer extraction more difficult.

References

  1. Kumar, P. Large language models (LLMs): Survey, technical frameworks, and future challenges. Artif. Intell. Rev. 2024, 57, 260. [Google Scholar] [CrossRef] [Scilit]
  2. Wang, P.Y.; Liu, T.S.; Wang, C.; Li, Z.; Wang, Y.; Yan, S.; Jia, C.; Liu, X.H.; Chen, X.; Xu, X.; et al. A survey on large language models for mathematical reasoning. ACM Comput. Surv. 2025, 58, 1–35. [Google Scholar]
  3. Wong, M.F.; Guo, S.; Hang, C.N.; Ho, S.W.; Tan, C.W. Natural language generation and understanding of big code for AI-assisted programming: A review. Entropy 2023, 25, 888. [Google Scholar] [CrossRef] [Scilit]
  4. Franceschelli, G.; Musolesi, M. Reinforcement learning for generative AI: State of the art, opportunities and open research challenges. J. Artif. Intell. Res. 2024, 79, 417–446. [Google Scholar] [CrossRef] [Scilit]
  5. Zheng, H.; Shen, L.; Tang, A.; Luo, Y.; Hu, H.; Du, B.; Wen, Y.; Tao, D. Learning from models beyond fine-tuning. Nat. Mach. Intell. 2025, 7, 6–17. [Google Scholar] [CrossRef] [Scilit]
  6. Kumar, K.; Ashraf, T.; Thawakar, O.; Anwer, R.M.; Cholakkal, H.; Shah, M.; Yang, M.H.; Torr, P.H.S.; Khan, F.S.; Khan, S. Llm post-training: A deep dive into reasoning large language models. arXiv 2025, arXiv:2502.21321. [Google Scholar] [CrossRef] [Scilit]
  7. Yan, D.; Weng, J.; Huang, S.; Li, C.; Zhou, Y.; Su, H.; Zhu, J. Deep reinforcement learning with credit assignment for combinatorial optimization. Pattern Recognit. 2022, 124, 108466. [Google Scholar] [CrossRef] [Scilit]
  8. Wang, K.; Kallus, N.; Sun, W. The central role of the loss function in reinforcement learning. Stat. Sci. 2025, 40, 597–622. [Google Scholar] [CrossRef] [Scilit]
  9. Chidzwondo, F.; Mutapi, F. Challenge of diagnosing acute infections in poor resource settings in Africa. AAS Open Res. 2024, 4, 28. [Google Scholar]
  10. Ahn, J.; Verma, R.; Lou, R.; Liu, D.; Zhang, R.; Yin, W. Large language models for mathematical reasoning: Progresses and challenges. arXiv 2024, arXiv:2402.00157. [Google Scholar] [CrossRef] [Scilit]
  11. Hubert, T.; Mehta, R.; Sartran, L.; Horváth, M.Z.; Žužić, G.; Wieser, E.; Huang, A.; Schrittwieser, J.; Schroecker, Y.; Masoom, H.; et al. Olympiad-level formal mathematical reasoning with reinforcement learning. Nature 2025, 1–3. [Google Scholar] [CrossRef] [Scilit]
  12. Lu, P.; Qiu, L.; Yu, W.; Welleck, S.; Chang, K.W. A survey of deep learning for mathematical reasoning. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Toronto, ON, Canada, 9–14 July 2023; pp. 14605–14631. [Google Scholar]
  13. Keneshloo, Y.; Shi, T.; Ramakrishnan, N.; Reddy, C.K. Deep reinforcement learning for sequence-to-sequence models. IEEE Trans. Neural Netw. Learn. Syst. 2019, 31, 2469–2489. [Google Scholar]
  14. Cao, X.; Xu, M.; Yu, X.; Yao, J.; Ye, W.; Huang, S.; Zhang, M.; Tsang, I.; Ong, Y.S.; Kwok, J.T.; et al. Analytical survey of learning with low-resource data: From analysis to investigation. ACM Comput. Surv. 2025, 58, 1–47. [Google Scholar] [CrossRef] [Scilit]
  15. Mihatsch, O.; Neuneier, R. Risk-sensitive reinforcement learning. Mach. Learn. 2002, 49, 267–290. [Google Scholar] [CrossRef] [Scilit]
  16. Geibel, P.; Wysotzki, F. Risk-sensitive reinforcement learning applied to control under constraints. J. Artif. Intell. Res. 2005, 24, 81–108. [Google Scholar] [CrossRef] [Scilit]
  17. He, Y.; Wu, G.; Chen, Y.; Pedrycz, W. A two-stage framework and reinforcement learning-based optimization algorithms for complex scheduling problems. arXiv 2021, arXiv:2103.05847. [Google Scholar]
  18. Gao, D.; Ma, Y.; Liu, S.; Song, M.; Jin, L.; Jiang, W.; Wang, X.; Ning, W.; Yu, S.; Xuan, Q.; et al. FashionGPT: LLM instruction fine-tuning with multiple LoRA-adapter fusion. Knowl. Based Syst. 2024, 299, 112043. [Google Scholar] [CrossRef] [Scilit]
  19. Anisuzzaman, D.M.; Malins, J.G.; Friedman, P.A.; Attia, Z.I. Fine-tuning large language models for specialized use cases. Mayo Clin. Proc. Digit. Health 2025, 3, 100184. [Google Scholar] [CrossRef] [Scilit]
  20. Lin, X.; Wang, W.; Li, Y.; Yang, S.; Feng, F.; Wei, Y.; Chua, T.S. Data-efficient Fine-tuning for LLM-based Recommendation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, Washington, DC, USA, 14–18 July 2024; pp. 365–374. [Google Scholar]
  21. Podolskiy, A.; Molokov, S.; Gerasin, T.; Titov, M.; Rukhovich, A.; Khrapov, A.; Morozov, K.; Tetin, E.; Korikov, C.; Efimov, P.; et al. Gamayun’s Path to Multilingual Mastery: Cost-Efficient Training of a 1.5 B-Parameter LLM. arXiv 2025, arXiv:2512.21580. [Google Scholar]
  22. Prottasha, N.J.; Sami, A.A.; Kowsher, M.; Murad, S.A.; Bairagi, A.K.; Masud, M.; Baz, M. Transfer learning for sentiment analysis using BERT based supervised fine-tuning. Sensors 2022, 22, 4157. [Google Scholar] [CrossRef] [Scilit]
  23. Chaudhari, S.; Aggarwal, P.; Murahari, V.; Rajpurohit, T. Rlhf deciphered: A critical analysis of reinforcement learning from human feedback for llms. ACM Comput. Surv. 2025, 58, 1–37. [Google Scholar] [CrossRef] [Scilit]
  24. Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal policy optimization algorithms. arXiv 2017, arXiv:1707.06347. [Google Scholar] [CrossRef] [Scilit]
  25. Zhuang, Z.; Lei, K.; Liu, J.; Wang, D.; Guo, Y. Behavior proximal policy optimization. arXiv 2023, arXiv:2302.11312. [Google Scholar] [CrossRef] [Scilit]
  26. Zheng, Q.; Yang, M.; Yang, J.; Zhang, Q.; Zhang, X. Improvement of generalization ability of deep CNN via implicit regularization in two-stage training process. IEEE Access 2018, 6, 15844–15869. [Google Scholar] [CrossRef] [Scilit]
  27. Galashov, A.; Jayakumar, S.M.; Hasenclever, L.; Tirumala, D.; Schwarz, J.; Desjardins, G.; Czarnecki, W.M.; Teh, Y.W.; Pascanu, R.; Heess, N. Information asymmetry in KL-regularized RL. arXiv 2019, arXiv:1905.01240. [Google Scholar] [CrossRef] [Scilit]
  28. Du, Y.; Watkins, O.; Wang, Z.; Colas, C.; Darrell, T.; Abbeel, P.; Gupta, A.; Andreas, J. Guiding Pretraining in Reinforcement Learning with Large Language Models. In Proceedings of the ICML’23: Proceedings of the 40th International Conference on Machine Learning, Honolulu, HI, USA, 23–29 July 2023; pp. 8657–8677. [Google Scholar]
  29. Rafailov, R.; Sharma, A.; Mitchell, E.; Manning, C.D.; Ermon, S.; Finn, C. Direct preference optimization: Your language model is secretly a reward model. Adv. Neural Inf. Process. Syst. 2023, 36, 53728–53741. [Google Scholar]
  30. Chen, C.; Zhang, P.; Zhang, H.; Dai, J.; Yi, Y.; Zhang, H.; Zhang, Y. Deep learning on computational-resource-limited platforms: A survey. Mob. Inf. Syst. 2020, 2020, 8454327. [Google Scholar]
  31. Williams, R.J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach. Learn. 1992, 8, 229–256. [Google Scholar] [CrossRef] [Scilit]
  32. Mueller, U.; Watson, M.W. Measuring Uncertainty about Long-Run Prediction. Rev. Econ. Stud. 2016, 83, 1711–1740. [Google Scholar] [CrossRef] [Scilit]
  33. Hayes, I. Reasoning about real-time repetitions: Terminating and nonterminating. Sci. Comput. Program. 2002, 43, 161–192. [Google Scholar] [CrossRef] [Scilit]
  34. Pignatelli, E.; Ferret, J.; Geist, M.; Mesnard, T.; van Hasselt, H.; Pietquin, O.; Toni, L. A survey of temporal credit assignment in deep reinforcement learning. arXiv 2023, arXiv:2312.01072. [Google Scholar] [CrossRef] [Scilit]
  35. Chen, L.; Lu, K.; Rajeswaran, A.; Lee, K.; Grover, A.; Laskin, M.; Abbeel, P.; Srinivas, A.; Mordatch, I. Decision transformer: Reinforcement learning via sequence modeling. Adv. Neural Inf. Process. Syst. 2021, 34, 15084–15097. [Google Scholar]
  36. Gullapalli, V. A comparison of supervised and reinforcement learning methods on a reinforcement learning task. In Proceedings of the 1991 IEEE International Symposium on Intelligent Control; IEEE: New York, NY, USA, 1991; pp. 394–399. [Google Scholar]
  37. Lee, J.; Xie, A.; Pacchiano, A.; Chandak, Y.; Finn, C.; Nachum, O.; Brunskill, E. Supervised pretraining can learn in-context reinforcement learning. Adv. Neural Inf. Process. Syst. 2023, 36, 43057–43083. [Google Scholar]
  38. Wang, Z.; Jiang, W.; Peng, R.; Kou, Q.; Wan, L.; Lan, X. Improving Sample Efficiency Through Stability Enhancement in Deep-Reinforcement Learning. IEEE Trans. Syst. Man Cybern. Syst. 2025, 55, 6164–6176. [Google Scholar]
  39. Kaelbling, L.P.; Littman, M.L.; Moore, A.W. Reinforcement learning: A survey. J. Artif. Intell. Res. 1996, 4, 237–285. [Google Scholar] [CrossRef] [Scilit]
  40. Melnikov, V.; Hüllermeier, E. On the effectiveness of heuristics for learning nested dichotomies: An empirical analysis. Mach. Learn. 2018, 107, 1537–1560. [Google Scholar] [CrossRef] [Scilit]
  41. Zhang, R.; Jiang, D.; Zhang, Y.; Lin, H.; Guo, Z.; Qiu, P.; Zhou, A.; Lu, P.; Chang, K.W.; Qiao, Y.; et al. Mathverse: Does your multi-modal llm truly see the diagrams in visual math problems? In European Conference on Computer Vision; Springer Nature: Cham, Switzerland, 2024; pp. 169–186. [Google Scholar]
  42. Bai, J.; Bai, S.; Chu, Y.; Cui, Z.; Dang, K.; Deng, X.; Fan, Y.; Ge, W.; Han, Y.; Huang, F.; et al. Qwen technical report. arXiv 2023, arXiv:2309.16609. [Google Scholar] [CrossRef] [Scilit]
  43. Fu, Z.; Yang, H.; So, A.M.C.; Lam, W.; Bing, L.; Collier, N. On the effectiveness of parameter-efficient fine-tuning. In Proceedings of the AAAI Conference on Artificial Intelligence, Washington, DC, USA, 7–14 February 2023; pp. 12799–12807. [Google Scholar]
  44. Parmar, J.; Prabhumoye, S.; Jennings, J.; Patwary, M.; Subramanian, S.; Su, D.; Zhu, C.; Narayanan, D.; Jhunjhunwala, A.; Dattagupta, A.; et al. Nemotron-4 15b technical report. arXiv 2024, arXiv:2402.16819. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.