Answers.Body: <p>Without digging into your diagnostics more deeply, on it's face this seem like a local optima issue. Assuming you are optimizing via GD, there are many local optima that a network or agent in this case can converge to and stay at which will cause symptoms like seeing above.</p>
  
  <p>With that being said, assuming this is our issue, here are some things you can try:</p>
  
  <ol>
  <li><p>Regularization, try adding dropout or L2 and see how that affects convergence and learning.</p></li>
  <li><p>Adjust network architecture, number of layers, nodes, etc. </p></li>
  <li><p>Try a different type of RL(Q learning for example), this will be dependent on your problem of course.</p></li>
  <li><p>Adjust starting seed. Assuming you have a static seed used for weight initialization, you will always converge to the same solution. It could be as simple as adjusting the seed value.</p></li>
  </ol>
  
  <p>If all these steps fail, you likely have a deeper issue at work, and I would suggest coming back after with some additional detail if this does not succeed.  </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-23T02:53:33.667Z
Answers.LastActivityDate: 2019-06-23T02:53:33.667Z
Answers.UserDisplayName: hisairnessag3
Body: <p>I am working on a deep reinforcement learning problem. The policy network has the same architecture as the one Deepmind published in 'Playing Atari with Deep Reinforcement Learning'. I am also using Prioritized Experience Replay. In the initial stage the behavior seems to be normal, i.e the agent is learning gradually. However, after a while the rewards suddenly go down by a lot. The TD erros also seem to be going up at the same time. I'm not sure how to interpret this problem. </p>
  
  <p>My hypotheses are:</p>
  
  <ol>
  <li>The policy network is overfitting</li>
  <li>Some filters fail to activate thereby misrepresenting the state information</li>
  </ol>
  
  <p>I would really appreciate if you guys could give me some tips to narrow down this problem debug it. Cheers.<a href="https://i.sstatic.net/gLwue.jpg" rel="noreferrer"><img src="https://i.sstatic.net/gLwue.jpg" alt="Rewards and Td error"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-23T04:55:42.820Z
Comments.Text: TD error growing is nothing terrible. It's just exploring new area of state space. Local dips in reward happens all the time in DQN. Bigger replay buffer may help (or slower target net updates). Also try output average reward over long period of time (or total sum of discounted reward), it would be more telling.
Comments.UserDisplayName: mirror2image
Tags: <reinforcement-learning><q-learning><dqn>
Title: Deep Reinforcement Learning: Rewards suddenly dip down
UserDisplayName: r_b
ThreadText: # Deep Reinforcement Learning: Rewards suddenly dip down
  
  (Asked by: username_0 on 2019-06-18)
  
  I am working on a deep reinforcement learning problem. The policy network has the same architecture as the one Deepmind published in 'Playing Atari with Deep Reinforcement Learning'. I am also using Prioritized Experience Replay. In the initial stage the behavior seems to be normal, i.e the agent is learning gradually. However, after a while the rewards suddenly go down by a lot. The TD erros also seem to be going up at the same time. I'm not sure how to interpret this problem.
  
  My hypotheses are:
  
  1. The policy network is overfitting
  2. Some filters fail to activate thereby misrepresenting the state information
  
  I would really appreciate if you guys could give me some tips to narrow down this problem debug it. Cheers.[![Rewards and Td error](https://i.sstatic.net/gLwue.jpg)](https://i.sstatic.net/gLwue.jpg)
  
  **Tags:** reinforcement-learning, q-learning, dqn
  > **Comments:**
  > **username_1**: TD error growing is nothing terrible. It's just exploring new area of state space. Local dips in reward happens all the time in DQN. Bigger replay buffer may help (or slower target net updates). Also try output average reward over long period of time (or total sum of discounted reward), it would be more telling.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-06-23. Score: 1
  
  Without digging into your diagnostics more deeply, on it's face this seem like a local optima issue. Assuming you are optimizing via GD, there are many local optima that a network or agent in this case can converge to and stay at which will cause symptoms like seeing above.
  
  With that being said, assuming this is our issue, here are some things you can try:
  
  1. Regularization, try adding dropout or L2 and see how that affects convergence and learning.
  2. Adjust network architecture, number of layers, nodes, etc.
  3. Try a different type of RL(Q learning for example), this will be dependent on your problem of course.
  4. Adjust starting seed. Assuming you have a static seed used for weight initialization, you will always converge to the same solution. It could be as simple as adjusting the seed value.
  
  If all these steps fail, you likely have a deeper issue at work, and I would suggest coming back after with some additional detail if this does not succeed.
  
  
  ---
  
  