4
$\begingroup$

Is there an ideal ratio in reinforcement learning between the positive and negative rewards?

Suppose I have the scenario of moving a robot across the river. There are two options, walk across the bridge or walk across the river. If it walks across the river then the robot breaks so the idea is to reinforce the robot to walk across the bridge. What would be the best rewards values? Does this ratio vary between cases?

option1:

Bridge: +10
River: -10

Option2:

Bridge: +10
River: -1

Option3:

Bridge: +1
River: -10
$\endgroup$

2 Answers 2

3
$\begingroup$

There are no hard and fast rules for it. Your reward should be such that it motivates the agent to attain the goal in the most effective way. In a grid world if you want your agent to reach goal state quicker but award +2 for a move and +5 for reaching goal then your agent might simply wander around and never reach the goal. However, if you set a reward of -1 for each move and +1 or +10(or even 0) for reaching the goal then your agent will learn to reach the goal state faster.

$\endgroup$
3
$\begingroup$

It usually does not matter, but I'm sure there are situations where it could matter. In theory, if a reward for good behavior is higher than the rewards for bad behavior, then the neural network will be trained such that the higher rewards are preferred, even if those higher rewards are negative. For example, if a bad reward is -100, then a relatively good reward could be -50, and the network will then be more likely to choose the action with -50 reward over the action with -100 reward.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .