[Paper Review] The Sensory Neuron as a Transformer: Permutation-Invariant Neural Networks for Reinforcement Learning
The paper introduces AttentionNeuron, a permutation-invariant RL architecture where each sensory input is processed by its own module and messages are combined via attention to form a global policy; it remains robust to arbitrary input ordering and noisy channels across several RL tasks, with additional behavior cloning to enhance permutation-invariant performance.
In complex systems, we often observe complex global behavior emerge from a collection of agents interacting with each other in their environment, with each individual agent acting only on locally available information, without knowing the full picture. Such systems have inspired development of artificial intelligence algorithms in areas such as swarm optimization and cellular automata. Motivated by the emergence of collective behavior from complex cellular systems, we build systems that feed each sensory input from the environment into distinct, but identical neural networks, each with no fixed relationship with one another. We show that these sensory networks can be trained to integrate information received locally, and through communication via an attention mechanism, can collectively produce a globally coherent policy. Moreover, the system can still perform its task even if the ordering of its inputs is randomly permuted several times during an episode. These permutation invariant systems also display useful robustness and generalization properties that are broadly applicable. Interactive demo and videos of our results: https://attentionneuron.github.io/
Motivation & Objective
- Motivate learning systems where global behavior emerges from locally informed agents without a fixed input order.
- Develop a permutation-invariant architecture that can operate with arbitrarily ordered sensory inputs.
- Demonstrate robustness and generalization properties when inputs are permuted or augmented with noise.
- Explore training schemes including behavior cloning to convert existing policies into permutation-invariant forms.
Proposed method
- Each observation is treated as an unordered, variable-length list of inputs, each processed by a shared sensory neuron module.
- Within AttentionNeuron, each sensory neuron computes messages f_k(o_t[i], a_{t-1}) and f_v(o_t[i]), using shared functions across neurons.
- An attention mechanism aggregates these messages into a global latent code m_t that is invariant to input permutation.
- The attention uses a fixed Q bank and learns K(o_t, a_{t-1}) and V(o_t) to compute m_t via a transformer-like attention equation.
- Q is decoupled from the input to enable permutation invariance as the number of inputs varies.
- In vision tasks, input patches are processed similarly, with temporal memory in f_k and optional normalization steps to stabilize learning.
- The approach is evaluated across CartPole, PyBullet Ant, Atari Pong, and CarRacing, with details on input representations and network dimensions provided in the paper.
Experimental results
Research questions
- RQ1Can a neural architecture process arbitrary-length, permuted input streams and still produce coherent global policies?
- RQ2How does permutation-invariant processing affect robustness to input noise and unseen observation permutations?
- RQ3What are the effects of permutation invariance on generalization to new backgrounds or visual changes?
- RQ4Can permutation-invariant policies be learned from existing policies via behavior cloning?
- RQ5How does the AttentionNeuron layer interact with downstream RL policies in various environments?
Key findings
- Agents with AttentionNeuron can achieve task performance even when inputs are randomly permuted during an episode.
- Permutation-invariant representations improve robustness and generalization to unseen situations and noisy inputs.
- In vision tasks, the model can operate with only a subset of patches and still benefit from additional patches at test time.
- Behavior cloning can convert non-PI policies into PI policies, with larger downstream networks improving BC performance on high-dimensional observations.
- The approach enables handling variable numbers of inputs and demonstrates meaningful attention-based organization of inputs, as evidenced by qualitative visualizations and t-SNE embeddings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.