So now that I inquired further about the question, here are some answers.
Generally speaking, when we use reinforcement learning (RL) and artificial neural networks (ANNs) in the same sentence, it's about using ANNs to approximate RL algorithms. In this case, we train the ANNs as we would normally do (Stochastic gradient descent...).
Here, the ANNs serve as the RL algorithms agents.
However, we can also use RL for :
- Hyperparameter optimization and Neural architecture search (NAS), where ANNs are treated as the environment. We use RL algorithms to find the best architecture (number for layers...) or hyperparameters (activation function...). See Zoph, B., & Le, Q.V. (2017) "Neural Architecture Search with Reinforcement Learning" as an example.
- Weights optimization (i.e. RL algorithms replacing the classical training algorithms), which is a very rare use case as our traditional optimizers prove to be already pretty efficient. See Bello, I., Zoph, B., Vasudevan, V., & Le, Q.V. (2017) "Neural Optimizer Search with Reinforcement Learning" as an example.
In those cases, the RL algorithms are the agent, and the ANN is the subject being optimised (environment).