Skip to main content
QUICK REVIEW

[Paper Review] Adding Attentiveness to the Neurons in Recurrent Neural Networks

Pengfei Zhang, Jianru Xue|arXiv (Cornell University)|Jul 12, 2018
Human Pose and Action RecognitionComputer Science43 references8 citations
TL;DR

This paper proposes the Element-wise-Attention Gate (EleAttG), a simple yet effective mechanism that enhances recurrent neural networks (RNNs) by enabling per-element attention modulation on input vectors at the neuron level. By applying EleAttG to RNN blocks—such as in GRU, LSTM, or standard RNN—models achieve faster convergence and significant performance gains in action recognition tasks on both 3D skeleton and RGB video data, with state-of-the-art results on NTU, N-UCLA, and SYSU datasets.

ABSTRACT

Recurrent neural networks (RNNs) are capable of modeling the temporal dynamics of complex sequential information. However, the structures of existing RNN neurons mainly focus on controlling the contributions of current and historical information but do not explore the different importance levels of different elements in an input vector of a time slot. We propose adding a simple yet effective Element-wiseAttention Gate (EleAttG) to an RNN block (e.g., all RNN neurons in a network layer) that empowers the RNN neurons to have the attentiveness capability. For an RNN block, an EleAttG is added to adaptively modulate the input by assigning different levels of importance, i.e., attention, to each element/dimension of the input. We refer to an RNN block equipped with an EleAttG as an EleAtt-RNN block. Specifically, the modulation of the input is content adaptive and is performed at fine granularity, being element-wise rather than input-wise. The proposed EleAttG, as an additional fundamental unit, is general and can be applied to any RNN structures, e.g., standard RNN, Long Short-Term Memory (LSTM), or Gated Recurrent Unit (GRU). We demonstrate the effectiveness of the proposed EleAtt-RNN by applying it to the action recognition tasks on both 3D human skeleton data and RGB videos. Experiments show that adding attentiveness through EleAttGs to RNN blocks significantly boosts the power of RNNs.

Motivation & Objective

  • Address the limitation of existing RNNs in capturing varying importance of input vector elements across time steps.
  • Improve RNNs' ability to selectively focus on salient input features by introducing fine-grained, content-adaptive attention at the element level.
  • Develop a general-purpose, architecture-agnostic attention module that can be seamlessly integrated into any RNN structure (e.g., GRU, LSTM, standard RNN).
  • Demonstrate the effectiveness of the proposed mechanism across diverse sequential modeling tasks, particularly in action recognition using 3D skeletons and RGB videos.
  • Show that adding attention at the input level is more effective than increasing model depth or width, given similar parameter budgets.

Proposed method

  • Propose the Element-wise-Attention Gate (EleAttG), a learnable module that generates an attention vector of the same dimension as the input vector.
  • Apply EleAttG to modulate the input vector element-wise before processing by the RNN block, using a Sigmoid activation function to avoid sum-to-one constraints.
  • Integrate EleAttG into RNN blocks (e.g., GRU, LSTM, standard RNN), creating a new architecture called EleAtt-RNN, which can be stacked across multiple layers.
  • Use the modulated input $\widetilde{\mathbf{x}}_t = \text{EleAttG}(\mathbf{x}_t) \odot \mathbf{x}_t$ as input to the subsequent RNN computation, enabling dynamic, input-dependent attention.
  • Train the entire network end-to-end with standard backpropagation, where the attention weights are learned during optimization.
  • Avoid using Softmax in EleAttG to prevent mutual suppression between input elements, instead using Sigmoid for independent attention scaling.

Experimental results

Research questions

  • RQ1Can introducing element-wise attention at the input level improve the representational capacity of RNNs in sequential modeling tasks?
  • RQ2Does the proposed EleAttG mechanism lead to faster convergence and better generalization in action recognition compared to standard RNN variants?
  • RQ3How does the absence of a sum-to-one constraint in EleAttG affect performance compared to attention mechanisms that enforce normalization?
  • RQ4Is the proposed attention mechanism more effective than increasing network depth or width when the number of parameters is kept constant?
  • RQ5Can EleAttG be universally applied across different RNN architectures (e.g., GRU, LSTM, standard RNN) with consistent performance gains?

Key findings

  • The EleAtt-GRU model achieves state-of-the-art performance on the NTU, N-UCLA, and SYSU datasets for 3D skeleton-based action recognition, outperforming baseline GRU models.
  • On the NTU dataset, EleAtt-GRU with 2 layers and 100 neurons per layer achieves 85.5% accuracy under the CV protocol, a 4.1% improvement over the baseline 2-GRU(100) model.
  • For RGB video action recognition, the EleAtt-GRU model achieves significant gains on both JHMDB and NTU datasets, demonstrating generalization across data modalities.
  • Experiments show that using Sigmoid instead of Softmax in EleAttG leads to better performance, with a 3.5% accuracy gain on the NTU dataset under the CV protocol when applied to the second GRU layer.
  • With similar parameter counts, adding EleAttG improves performance more effectively than increasing the number of neurons or layers, as shown by a 3.1–4.1% accuracy gain for 2-EleAtt-GRU(100) over 2-GRU(100).
  • Training loss curves indicate faster convergence and lower final loss for EleAtt-GRU compared to baseline GRU, confirming improved optimization dynamics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.