Answers.Body: <p>One can expect the optimal high-level features required to choose the next action and to evaluate a state to be quite similar. Because of that, it is a reasonable idea to share the same network for both policy and value function – you are essentially parameter sharing the feature-extraction part of your neural network, and fine tuning the different heads of your network on the two different tasks: action choice and value prediction.</p>
  <p>Using two vs one networks is mostly a question of sample efficiency: theoretically, in both case your AC algorithm should work. In practice however, it will usually be useful to have parameter sharing as the representations encouraged by one of the tasks might be highly useful for the other and vice-versa, enabling one task to cause the other task to get unstuck from local optima. Another reason why this might work better is simply because you do not have to learn the same (or at least similar) representations from scratch twice – leading to a more sample efficient training.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T19:53:35.530Z
Answers.Text: There are counter-examples, a paper that I skimmed recently came to the opposite conclusion after comparing both approaches (shared and separate networks), that separate networks for actor and critic are beneficial more often than not. I had a quick search for that paper again - sorry I cannot find it.
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-08T04:34:03.007Z
Answers.LastActivityDate: 2020-12-08T04:34:03.007Z
Answers.UserDisplayName: mdc
Body: <p>I'm learning about Actor-Critic reinforcement learning algorithms. One source I encountered mentioned that Actor and Critic can either share one network (but use different output layers) or they can use two completely separate networks. In <a href="https://youtu.be/2vJtbAha3To?t=398" rel="noreferrer">this video</a> he mentions that using two separate networks works for simpler problems, such as Mountain Car. However, more complex problems like Lunar Lander works better with a shared network. Why is that? Could you explain what difference that choosing one design over another would that make?</p>
  
Tags: <neural-networks><reinforcement-learning><actor-critic-methods>
Title: What difference does it make whether Actor and Critic share the same network or not?
UserDisplayName: mark mark
ThreadText: # What difference does it make whether Actor and Critic share the same network or not?
  
  (Asked by: username_0 on 2020-12-04)
  
  I'm learning about Actor-Critic reinforcement learning algorithms. One source I encountered mentioned that Actor and Critic can either share one network (but use different output layers) or they can use two completely separate networks. In [this video](https://youtu.be/2vJtbAha3To?t=398) he mentions that using two separate networks works for simpler problems, such as Mountain Car. However, more complex problems like Lunar Lander works better with a shared network. Why is that? Could you explain what difference that choosing one design over another would that make?
  
  **Tags:** neural-networks, reinforcement-learning, actor-critic-methods
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-12-08. Score: 6 | Accepted answer
  
  One can expect the optimal high-level features required to choose the next action and to evaluate a state to be quite similar. Because of that, it is a reasonable idea to share the same network for both policy and value function – you are essentially parameter sharing the feature-extraction part of your neural network, and fine tuning the different heads of your network on the two different tasks: action choice and value prediction.
  
  Using two vs one networks is mostly a question of sample efficiency: theoretically, in both case your AC algorithm should work. In practice however, it will usually be useful to have parameter sharing as the representations encouraged by one of the tasks might be highly useful for the other and vice-versa, enabling one task to cause the other task to get unstuck from local optima. Another reason why this might work better is simply because you do not have to learn the same (or at least similar) representations from scratch twice – leading to a more sample efficient training.
  
  > **Comments:**
  > **username_2**: There are counter-examples, a paper that I skimmed recently came to the opposite conclusion after comparing both approaches (shared and separate networks), that separate networks for actor and critic are beneficial more often than not. I had a quick search for that paper again - sorry I cannot find it.  
  
  ---
  
  