# GAI: Actions

This post is part of a series “The Quest for General Artificial Intelligence”. To access the index for this series click here.

Actions are a fundamental element of the RL model. Without them the Agent would not be able to selectively reap the rewards nor would be capable to explore the Environment. As a first step, we will represent the actions not with the term $a$ used in the classical RL, but with $\hat{a}$ to explicitly indicate that the action is an expected one, that might be subject to interference. One such type of interference could be provided by the Environment as clearly illustrated by the Frozen Lake problem in . Clearly, this type of stochasticity can be handled by the classical RL model and the learned policy can account for the random nature of the external actions.

But there is another stochasticity that is currently poorly considered, sometimes with catastrophically results: the change in performance of the Agent’s actuators or augmentation of Agent’s structure (ex. through the use of tools). At present these type of changes simply result in erroneous or even self-destructive behaviour.

In the classical RL the action is represented as the result of the policy execution for a given state: $a_t=\pi(s_t)$

In this case the external rewards are reflected in the structure of $\pi$ during learning and therefore there are not explicitly needed in the determination of the action. In the GRL model, the $s_t$ will have to be replaced with $\hat{s}_t$ and, since the rewards are continuously updated we will include them as a parameter. So, initially we would have: $\hat{a}_t=\pi(\hat{s}_t,\hat{r}_t)$

In order to account for the variations in the expected actions $\hat{a}$ and the actual interaction between the Agent and Environment we need to provide the Agent with proprioception. We will represent this as a function of the expected actions from last time and the current observations of the Environment: $\hat{p}_t = \phi (o_t, \hat{a}_{t-1})$

Now we can include this measure of proprioception $\hat{p}$ into the previous formula as follows: $\hat{a}_t = \pi(\hat{s}_t, \hat{r}_t, \hat{p}_{t})$

We argue that this approach will be able to account for changes in the proprio-structure, a feature that is subject to significant interest in recent years. In  Kwiatkoswski and Lipson presents a model that allows an actual robot to account for actuators dysfunctions or for changes in the physical structure of the robot.

An even more interesting property that the proprioception function would implement is the ability to reflect the impact of using tools. It is undisputed today that the use of tools has contributed significantly to the evolution of human cortex and the relation between the two is reinforcing. A proper model for General AI would need to consider the ability of using tools and incorporating them into the Agnet’s model.

Ever since the Iriki, Tanaka and Iwamura work  there has been an increasing body of research that confirms that tool usage impacts the personal space representation. In  Martel also argues that it also impacts the body representation. Tools are not external instruments that are used as intermediaries in the interaction with the Environment, they become part of the Agent.

Example 1:
For instance the end effector when using a pen is not the group of fingers holding the pen (as the most remote body part interacting), but the actual tip of the pen. The Agent actually feels the tip of the pen as it slides on the paper.

We can now complete the diagram of the GRL model by including the additional functions, $\phi$ and $\pi$ as well as closing the loop between the Agent and Environment with the action $a_t$: