[Re] Reinforcement-Learning-Based Path Planning: A Reward Function Strategy
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:
Code URL: https://github.com/SalAIStudy/rl-path-planning-replication
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
@eroesch Can you edit it?
@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.
@ByungwoongYoo Perfect, thanks. You can start the review until I find second reviewer.
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 applies r_turn only when prev_h is supplied. Both policy evaluation and policy improvement call it with None (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_turn equal 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.
@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.