1 Introduction
Expectation for the emergence of artificial intelligence is growing these days triggered by the recent results in reinforcement learning (RL) using a deep neural network (NN)
[1, 2]. Our group has propounded for around 20 years that endtoend RL from sensors to motors using a recurrent NN (RNN) plays an important role for the emergence[3, 4]. Especially, different from “recognition” whose inputs are given as sensor signals or “control” whose outputs are given as motor commands, higher functions are very difficult to design by human hands, and the function emergence approach through endtoend RL is highly expected. Our group has shown that not only recognition and motion, but also memory, prediction, individuality, and also similar activities to those in monkey brain at tool use emerge[4]. We have also shown that a variety of communications emerge in the same framework[5]. However, the emergence of what can be called “thinking” that is one of the typical higher functions has not been shown yet. In this paper, the difficulty of emergence of “thinking” is discussed at first. Then our hypothesis that “exploration” grows into “thinking” through learning is introduced[6]. To realize the hypothesis, the use of a chaotic NN (ChNN) in RL and new deterministic RL for it are introduced[6]. Finally, it is shown that the new RL works in a simple task[7] though that cannot be called “thinking” yet and there are still many rooms for improvement. No other works with a similar direction to ours have not been found.2 Difficulty in Emergence of “Thinking”
The definition of “Thinking” must be varied depending on the person. However, we can “think” even when we close our eyes and ears, and what we think does not change randomly, but logically or rationally. Therefore, we hope many ones can agree that in order to realize “thinking”, rational multistage or flowtype state transition should be formed.
As a kind of dynamic functions, we have shown that a variety of memoryrequired functions emerge in an RNN in simple tasks[4]
. It is not so difficult to form memories as fixedpoint convergence dynamics if the initial feedback connection weights are set such that the transition matrix for the connection is the identity matrix or close to it when being linearly approximated. That can also solve the vanishing gradient problem in error back propagation. However, state transition needs not only convergence dynamics for association, but also transition dynamics from one state to another.
Then, we employed a multiroom task in which an agent moves and when it pushes a button, one of the doors opens and then the agent can move to another room. The sensor signals are the inputs of the agent’s RNN, and the RNN was trained based on RL from a reward when it reached the goal. We expected that the internal state changed drastically between before and after the door open though the difference in the sensor signals was not so large. After learning, a large change in the internal state could be observed in some degree, but the learning was very difficult[8].
Furthermore, when we “think”, “inspiration” or “discovery”, which is a kind of unexpected but not completely random and rational transition, must be also essential. The convergence and transition dynamics seem contradict at a glance, and it seems very difficult to form both dynamics from scratch in a regular RNN.
3 Chaos and Hypothesis: Growth from “Exploration” to “Thinking” through Learning
Suppose we are standing at a forked road as shown in Fig. 2. Usually, we choose one from two options: going right and going left. We do not care many other possible actions such as going straight and dancing. It is not motor(actuator)level lower exploration, but higher exploration supported by some prior or learned knowledge[9]. Furthermore, at a fork, we may wonder such that “this path looks more rough, but that way looks to go away from the destination”. This can be considered as a kind of “exploration” and also as a kind of “thinking”. The place where the wave in mind occurs is inside the process before making a decision, and learning should be reflected largely on the exploration. The author’s group has thought that exploration should be generated inside of a recurrent NN (RNN) that generates motion commands[10]. “Exploration” and “thinking” are both generated as internal dynamics as shown in Fig. 2. “Exploration” is more randomlike state transitions. On the other hand, “thinking” is more rational or logical state transition, and sometimes higher exploration or unexpected but rational state transition such as inspiration or discovery occurs in it.
Analogy to such dynamics can be found in chaotic dynamics. In regular associative memory, fixedpoint attractor (basin) is formed around each memorized or learned pattern as shown in the upper left part in Fig. 3. However, when a ChNN is used in it, transition dynamics among the memorized patters called “Chaotic Itinerancy”[11] can be seen as the green arrows in the lower left part in Fig. 3. If rational or logical state transitions are learned, it is expected that flowtype attractors are formed as the red or black arrows in the lower right part in Fig. 3. It is also expected that as the green arrows, (1)inspiration or discovery emerges as irregular transitions among the attractors but reflecting the distance, (2)higher exploration emerges at branches of the flow, and (3)in unknown situations, no attractor is formed, and remaining randomlike chaotic dynamics appears until return to a known situation. Skarda et al. reported that the activities on the olfactory bulb in rabbits become chaotic for unknown stimuli[12]. Osana et al. have shown the difference of chaotic property between known and unknown patterns on an associative memory using a ChNN, and also after an unknown pattern is learned, association to the pattern is formed as well as the other known patterns[13]. From the above discussion, we have hypothesized that “exploration” grows into “thinking” through learning by forming flowtype attractors on chaotic randomlike dynamics and that can be realized on reinforcement learning using a ChNN.
4 New Reinforcement Learning (RL) Using a Chaotic Neural Network (ChNN)
In order to realize the above idea, our group has proposed new reinforcement learning using a ChNN[6]. The positioning of exploration in learning is completely different from the conventional one. Here, the chaotic dynamics inside the ChNN produces exploration factors by itself. Since external random numbers for stochastic action selection are not used, exploration factors cannot be isolated from the output. Then the learning method has to be completely different from the conventional one.
Assuming that the motions are continuous, actorcritic type reinforcement learning architecture is employed. Here, to isolate the chaotic dynamics from the critic, the actor is implemented in a ChNN and the critic is implemented in another regular layered NN as shown in Fig. 5. The inputs are the sensor signals for the both networks. Here, only the learning of actor ChNN that is largely different from the conventional reinforcement learning is explained comparing with the conventional one using Fig. 4. In our conventional works, as shown in Fig. 4(a), by adding a random number (noise) to each actor output, the agent explores. The actor network is trained by BPTT (Back Propagation Through Time) using the product of the random number and TD error as the error for each output of the RNN.
In the proposed method, there is no external random numbers added to the actor outputs. The network is a kind of RNN, but by setting each feedback connection to a large random value, it can produce chaotic dynamics internally. Because the learning of recurrent connections does not work well, only the connections from inputs to hidden neurons and from hidden neurons to output neurons are trained. One variable
named causality trace is put on each connection, and takes in and maintains the input through the connection according to the change in its output as(1) 
where : output of the th neuron in the th layer at time ,
.
Using the causality trace and TD error ,
the weight from the th neuron in th layer
to the th neuron in the th layer is updated with a learning rate as
(2) 
5 Learning of Obstacle Avoidance
Since the learning is completely different from the conventional one, it is necessary to show whether the learning works appropriately in a variety of tasks or not. It was already applied to several tasks[6][9]. In this paper, the result of a recent task in which a robot has two wheels and two visual sensors is shown[7]. As shown in Fig. 5, there is a size of field, and its center is the origin of the field. What the robot has to do is to reach a goal while avoiding an obstacle. The goal is put on the location (0, 8) with radius , and a robot () and an obstacle () are put randomly at each episode. The orientation of the robot is also decided randomly. Each of the two omnidirectional visual sensors has 72 cells, and catches only goal or obstacle respectively. Total of 144 sensor signals are the inputs of both critic and actor networks, and the right and left wheels rotate according to the two actor outputs. When the robot comes in the goal area, a reward is given, and when it collides with the obstacle, a small penalty is given. One episode is defined as until arrival to the goal or 1000 steps from start. The both NNs have three layers including input layer. The number of hidden neurons is 10 for critic network and 100 for actor ChNN.
The learning results are shown in Fig. 6. Fig. 6(a) shows learning curve and the vertical axis indicates the number of steps to the goal. The blue line shows its average over each 100 episodes. It can be seen that according to the number of episodes, the number of steps decreases. Fig. 6(b) and (c) show the robot trajectories before and after learning respectively. Actually, the goal location is fixed and initial robot location is varied. But to see the initial robot orientation, the robot is on the center of the field, and its orientation is for upperside initially on the figure. Relatively, the goal location is varied. The size of the obstacle in the figure shows the area where the robot collides with the obstacle and then is larger than the actual size. Before learning, the robot explored almost randomly, but after learning, it could reach the goal while avoiding the obstacle. In conventional learning, randomness of action selection is often decreased as learning progresses, but here, it can be seen that exploration factors decreased autonomously according to learning. However, there are some strange behaviors such that the robot changes its direction suddenly. It was observed that the actor hidden neurons were likely to have a value around the maximum 0.5 or minimum 0.5. There is still a large space to improve the learning method.
Fig. 6(d) shows Lyapunov exponent to see the chaotic property of this system including the environment. The robot is located at one of the 8 locations in Fig. 6(c), and the obstacle is also located at one of 8 locations. For each of the
combinations, a small perturbation vector with the size
is added to the internal states of hidden neurons, and the distance in the internal states at the next time between the cases of no perturbation and addition of the perturbation is compared. The average of is used as the exponent here. From the figure, it can be seen that Lyapunov exponent is gradually decreased, but since the value is more than 0.0, it is considered that the chaotic property is maintained. In [6], it was observed that when the environment changed, Lyapunov exponent increased again.References
 [1] Minh, V., Kavukcuoglu, K., Silver, D., et al. (2015) Humanlevel control through deep reinforcement learning, Nature, 518, 529–533.
 [2] Silver, D., Huang, A., et al. (2016) Mastering the game of Go with deep neural networks and tree search, Nature, 529, 484–489.
 [3] Shibata, K. (2011) Emergence of Intelligence through Reinforcement Learning …, Advances in Reinforcement Learning, Intech, 99–120.
 [4] Shibata, K. (2017) Functions that Emerge through Endtoend Reinforcement Learning, RLDM 2017.
 [5] Shibata, K. (2017) A Variety of Communications that Emerge through Reinforcement Learning Using …, RLDM 2017.
 [6] Shibata, K., & Sakashita, Y. (’2015) Reinforcement Learning with InternalDynamicsbased Exploration Using a Chaotic Neural Network, Proc. of IJCNN (Int’l Joint Conf. on Neural Networks) 2015, #15231.

[7]
Shibata, K. & Goto, Y. (2017) Significance of Function Emergence Approach based on Endtoend Reinforcement Learning as suggested by Deep Learning, and Novel Reinforcement Learning Using a Chaotic …,
Cognitive Studies, 24 (1), 96–117. (in Japanese)  [8] Sawatsubashi, Y., et al. (2012) Emergence of Discrete and Abstract State …, Robot Intelligence Tech. and App. 2012, 13–22.
 [9] Goto, Y., & Shibata, K. (2016) Emergence of Higher Exploration in Reinforcement Learning Using a Chaotic Neural Network, Neural Information Processing, Lecture Notes in Computer Science, 9947, 40–48.
 [10] Shibata, K. (2006) Learning of Deterministic Exploration and Temporal Abstraction in …, Proc. of SICEICCAS, 4569–4574.
 [11] Kaneko, K. & Tsuda, I.(2003) Chaotic itinerancy, Chaos, 13(3), 926936.
 [12] Skarda, C. A., & Freeman, W. J. (1987) How brains make chaos in order to make sense …, Behavioral and Brain Science, 10, 161–173.
 [13] Osana, Y. & Hagiwara, M. (1999) Successive Learning in heteroassociative memory using chaotic neural networks. Int. J. Neural Systems, 9(4):285 299.
Comments
There are no comments yet.