# Reward hacking in simple HTM agents (using OpenAI Gym)

**URL:** <https://discourse.numenta.org/t/reward-hacking-in-simple-htm-agents-using-openai-gym/7541>\
**Category:** Engineering\
**Created:** [May 15, 2020, 5:17am UTC](https://discourse.numenta.org/t/reward-hacking-in-simple-htm-agents-using-openai-gym/7541 "2020-05-15T05:17:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Bitking](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/bitking/32/3099_2.png) [@Bitking](https://discourse.numenta.org/u/Bitking)\
**Post date:** [May 15, 2020, 4:53pm UTC](https://discourse.numenta.org/t/reward-hacking-in-simple-htm-agents-using-openai-gym/7541/3 "2020-05-15T16:53:34Z")

</div>

In the subcortex there are multiple nodes, each evaluating current needs and asserting a goal state based on which one screams the loudest. For example thirst and hunger both drive action but you might ignore food if you are really thirsty. After the thirst is satisfied the hunger wins and you turn to finding food.  
Maslow describe a pyramid of needs and as you satisfy the lower needs the higher level goals are able to be activated.In the post on processing in the old brain, I build to a global goal state, driven by inputs from local sub-processors.

> [@Low level processing in the old brain](https://discourse.numenta.org/t/low-level-processing-in-the-old-brain/6008):
>
> I have posted several times offering that the lower-level control structures work something like a Boltzmann or Hopfield network. I would like to expand on this concept. Let’s start with the basics. In the brainstem processing, we have many body sensors that sample blood-based messengers such as [osmotic concentration](https://en.wikipedia.org/wiki/Osmotic_concentration) or glucose levels. All of the body sensations also pass through these systems and provide additional information on the outside environment. It is the job of these low-level contr…

---

_[View the full topic](https://discourse.numenta.org/t/reward-hacking-in-simple-htm-agents-using-openai-gym/7541)._
