Repository navigation
Description
Original article: R. Jaramillo-Martínez, E. Chavero-Navarrete and T. Ibarra-Pérez. "Reinforcement-Learning-Based Path Planning: A Reward Function Strategy." Applied Sciences 14, no. 17 (2024): 7654. https://doi.org/10.3390/app14177654 (open access, CC BY)
PDF URL:
Metadata URL:
Scientific domain: Robotics
Programming language: Python (NumPy only, no reinforcement-learning framework, no GPU)
Suggested editor: no preference, grateful for the board's assignment
Dear editors,
I would like to submit a replication of the article above. The authors release neither code nor the coordinates of their four test maps, so the environment, reward function and policy-iteration procedure were reimplemented from the published description alone. I could find no previously published reproduction.
What reproduces. Policy iteration converged in a mean of 542 policy-evaluation sweeps against the 550 reported, a quantity that was neither tuned nor fitted. The turn-reduction claim is recovered: 41.5% against an A* baseline with the same eight actions, compared with the 50% reported.
What depends on the baseline. Recomputing the improvement from the original study's own published results table, separately against each of its two A* baselines, gives a mean distance reduction of 26.1% against four-action A* but 1.8% against eight-action A* — the same action set the learned agent has. The published range of 3.2%–36% spans these two comparators rather than four maps under one baseline. My own reproduction gives 0% against the matched baseline, as expected when both methods are optimal on a deterministic grid. This analysis uses none of my own data.
An unstated specification. The article penalises collision but does not state whether a collision terminates the episode. Under stochastic execution the two readings give success rates of 100% and 0% respectively, with an identical reward function, hyperparameters and maps. The published hyperparameter tables are complete and do not resolve it.
One modification. I evaluate heuristic initialisation of the value table across 15 seeds with a two-sided permutation test, and characterise it as a gain in sample efficiency rather than in final solution quality — significant at the smallest training budgets, no difference after convergence.
A scope question. The article is principally a replication, but one section evaluates that modification. I have framed it as measurement rather than as a new method and claim no novelty for the technique, which goes back to Ng, Harada and Russell (1999). If it falls outside ReScience C's scope I would be glad to hear how you would prefer it handled.
The code is MIT-licensed, and src/run_all.py regenerates every table in the article in about four minutes on a CPU. I have no competing interests.
Thank you for your time.
Salma Areef Syed
REVA Academy for Corporate Excellence, REVA University, Bengaluru, India
Activity
rougier commentedon Aug 26, 2026
@eroesch Can you edit it?
ByungwoongYoo commentedon Nov 3, 2026
@rougier I’d be happy to review this submission. I can focus on the Python/NumPy implementation, the matched A* comparisons, and whether the reported tables and statistical results can be reproduced. Please consider me for one of the reviewer positions.
rougier commentedon Nov 3, 2026
@ByungwoongYoo Perfect, thanks. You can start the review until I find second reviewer.
ByungwoongYoo commentedon Nov 4, 2026
Review of submission #124
The separate comparisons with four- and eight-action A* are useful. However, the present implementation does not support the central claim that the direction-change penalty caused the reported reduction in turns. I recommend major revision, with the implementation and affected results checked before acceptance.
The comments below concern the submitted 11-page PDF and repository commit
e5986c8160e003112586d8ab3f82799ad3e789a7. A fresh run of all eight script sections reproduced the eight committed CSV tables exactly, apart from the machine-dependent timing column in Table 1 (1,204 rows in total). This confirms numerical reproducibility of the supplied implementation; it does not resolve the methodological issues below.1. The policy-iteration calculation never applies the turn penalty
In
src/gridworld.py, the transition function appliesr_turnonly whenprev_his supplied. Both policy evaluation and policy improvement call it withNone(lines 252 and 265). The policy therefore cannot depend on the turn penalty. Applying that penalty during a later rollout does not change the policy already computed.As a check, I reran policy iteration on all four maps with
r_turnequal to 0, -2 and -100. Every policy, value array, route and sweep count was identical across these settings. The turn counts remained 5, 2, 3 and 5. Thus the 41.5% difference from the current A* implementation is numerically obtainable, but it cannot currently be attributed to learning a penalty on turning, as stated in Figure 1, Section 6.1 and the conclusions.There is also a state-definition issue affecting Q-learning: observations identify the cell only, while the reward depends on the previous heading. For example, the same observed state 44 and action 0 produce reward -1 or -3 depending on the stored heading. Please make the state sufficient for the stated turn-dependent problem, explain the chosen interpretation of the original reward equations, and regenerate the affected comparisons. A turn-penalty ablation and explicit A* tie-breaking convention would help establish what produces any remaining turn advantage.
2. The slip implementation does not select neighbouring headings
Section 7.4 describes a neighbouring heading replacing the commanded action. The action array is ordered N, S, W, E, NW, NE, SW, SE, but the slip code selects the preceding or following array index. For a command N, the alternatives are SE and S, corresponding to 135- and 180-degree deviations. Please implement the stated angular-neighbour model and rerun the affected stochastic experiments, or define and motivate the different transition model actually used. The collision-termination sensitivity should be interpreted under that corrected or explicitly defined model.
3. The approximately 80-traversal cost threshold is not established by the current calculation
The numerator of the ratio in Section 7.5 is Q-learning's number of environment interactions in the noiseless unknown-map experiment. Its denominator is the number of A* node expansions with a known map at slip probability 0.2 (
src/run_all.py, lines 260-270). These combine different information/noise conditions and different units of work. Counting one environment interaction as one node expansion, while treating subsequent policy execution as cost-free, needs justification.Please compare matched conditions and define a common cost model, including execution and any environmental-interaction costs, or present these quantities separately without an economic break-even claim. The statement that a robot would recover the cost within hours also requires a traversal rate. Likewise, policy-evaluation sweeps, node expansions and environment visits should not be interpreted as equivalent computational work.
4. Clarify the statistical unit and retain identifiers in the raw outputs
The two initialisation conditions use the same four maps and fifteen seed values. However, the permutation test pools and shuffles the 60 observations from each condition without preserving the map/seed structure. Please define the unit of inference and use a paired or blocked procedure appropriate to the experiment, or justify the exchangeability assumptions of the current test. I am not assuming that this will reverse the reported effects; the uncertainty needs to follow the design.
The raw initialisation output omits the map and seed columns, making that assessment unnecessarily difficult. Please retain those identifiers in the stochastic tables. In Section 7.2, the reported overall SDs of 1.93 turns and 1.65 distance units pool all four maps; they include differences between maps and should not be described as seed variation alone. Separate within-map variation from between-map differences.
5. Narrow the claims made from comparison with the original article
The original article's Table 3 values are correctly transcribed in the baseline audit. Its conclusion already associates the roughly 36% distance figure with A*(4) and the 3.2% figure with A*(8). Please acknowledge that distinction when describing what the original reporting leaves unclear. The matched-baseline recalculation remains useful without implying that the original never identified the comparators.
The original Table 1 reports an average of 550 iterations, but correspondence with 542 policy-evaluation sweeps does not establish that these are the same unit or that the reconstruction captures the original reward function. Please distinguish the original iteration definition from the implemented sweep count, and document the adopted interpretation of the original reward notation.
The main acceptance issue is the turn-dependent method itself. Once that implementation is resolved, the other affected results and the scope of the reproduction claim can be reassessed against the corrected experiment.
j45856021-dev commentedon Nov 6, 2026
@rougier If you still need a second reviewer for this one, I'm happy to take it. I'd rerun the experiments myself from a clean environment and check the results against the article. I'll write the review myself. Background: distributed systems and ML systems engineering (see ReScience/ReScience#27). No conflicts with the author.
lindicaphxag-tech commentedon Nov 25, 2026
Second review of submission #124
Version reviewed: repository commit
e5986c8160e003112586d8ab3f82799ad3e789a7, plus the 11-page manuscript PDF attached to the submission. Environment: Python 3.12.11; I ran all eight sections ofsrc/run_all.pyfrom a clean clone. All committed CSV tables regenerated identically except the machine-dependenttime_scolumn in Table 1. The numerical reproducibility of the supplied code is therefore good.Bottom line
I agree with the first reviewer's central finding, and my independent ablation confirms it: the policy-iteration implementation never applies the turn penalty, so the headline “turn-reduction contribution is supported” claim is not supported by this code. The baseline audit and the collision-rule sensitivity are useful, but the turn-dependent method must be fixed and the affected results rerun. Recommendation: major revision.
1. The turn penalty is not part of the policy-iteration MDP
In
src/gridworld.py,transition()addsenv.r_turnonly whenprev_h is not None(lines 231–232), but both policy evaluation (line 252) and policy improvement (line 265) calltransition(s, ..., None). The turn penalty is therefore never seen by either step. The rollout later applies it throughenv.step(), but that cannot change a policy that was already computed without it.I ran the same policy iteration on all four maps with
r_turn = 0, -2, -100. The resulting policies, value arrays, routes, distances and sweep counts were identical in every case (turn counts 5, 2, 3, 5; sweeps 549, 542, 536, 542). This is a direct, independent confirmation of the first reviewer's point: the 41.5% turn difference versus the eight-action A* is numerically obtainable, but it cannot be attributed to learning a turn penalty.A correct implementation needs the previous heading in the state (or an equivalent sufficient statistic), and
prev_hmust be passed in both evaluation and improvement. After that, all turn-related tables, the abstract, Figure 1, Section 6.1 and the conclusions need to be regenerated.2. Q-learning uses an insufficient state
q_learn()indexesQby the cell only (Q[s, a], lines 172–184), whileenv.step()makes the reward depend onself.prev_heading(lines 105–106). The same cell and action can therefore yield different rewards depending on the stored heading, which violates the Markov assumption used by tabular Q-learning. The deterministic and stochastic Q-learning comparisons, including the heuristic-initialisation experiment, are affected. Either augment the state with heading or explicitly redefine the problem so the reward is heading-independent.3. The slip model is not the stated neighbouring-heading model
The action order is
N, S, W, E, NW, NE, SW, SE(lines 12–14), but the slip code selects(a-1) % 8and(a+1) % 8(line 99). For a commandedN(index 0), the alternatives areSEandS— deviations of 135° and 180°, not neighbouring headings. The same index-adjacency problem occurs elsewhere in the table. The stochastic execution tables, the collision-termination sensitivity and the accompanying claims should be rerun after implementing the angular-neighbour model described in Section 7.4, or the actual transition model must be defined and motivated.4. The break-even calculation mixes incomparable quantities
The numerator of the “~80 traversals” calculation is Q-learning's environment interactions in the noiseless unknown-map experiment; the denominator is A* node expansions with a known map at slip 0.2. These differ in information condition, noise condition and unit of work, and subsequent policy execution is treated as cost-free. Either use a matched cost model that includes execution and environment-interaction costs, or report the quantities separately and drop the economic break-even claim.
5. Statistical unit and raw identifiers
The permutation test pools and shuffles 60 observations per condition without preserving the map/seed pairing. Please define the unit of inference and use a paired or blocked procedure appropriate to the design, or justify exchangeability. The raw initialisation CSV also omits map and seed columns; retaining them would make the test auditable. The reported overall SDs pool between-map variation with seed variation, so they should not be described as seed variability alone.
6. Scope of the claims
The original paper's Table 3 values are transcribed correctly, and the matched-baseline audit is a genuinely useful contribution. But the manuscript should distinguish the original “550 iterations” from the implemented policy-evaluation sweep count, and should not imply that the original never identified its two A* comparators. More importantly, the abstract and conclusions must withdraw the statement that the turn-reduction contribution is supported until the turn-penalty implementation is corrected.
Recommendation
Major revision. The numerical reproduction and the baseline audit are solid; the central causal claim and the Q-learning/slip experiments need a corrected MDP and a full rerun. I would be willing to review the revised version.
I have no conflict of interest with the author and no connection to the original work.