[Paper Review] Co-Attentive Equivariant Neural Networks: Focusing Equivariance On Transformations Co-Occurring In Data
This paper proposes co-attentive equivariant neural networks that dynamically attend to co-occurring transformations in data—such as specific rotations—rather than enforcing equivariance across all group elements. By integrating cyclic self-attention into group-convolutional feature mappings, the model improves performance on rotated MNIST and CIFAR-10 while maintaining equivariance, outperforming standard rotation- and rotation+reflection-equivariant networks.
Equivariance is a nice property to have as it produces much more parameter efficient neural architectures and preserves the structure of the input through the feature mapping. Even though some combinations of transformations might never appear (e.g. an upright face with a horizontal nose), current equivariant architectures consider the set of all possible transformations in a transformation group when learning feature representations. Contrarily, the human visual system is able to attend to the set of relevant transformations occurring in the environment and utilizes this information to assist and improve object recognition. Based on this observation, we modify conventional equivariant feature mappings such that they are able to attend to the set of co-occurring transformations in data and generalize this notion to act on groups consisting of multiple symmetries. We show that our proposed co-attentive equivariant neural networks consistently outperform conventional rotation equivariant and rotation & reflection equivariant neural networks on rotated MNIST and CIFAR-10.
Motivation & Objective
- To address the inefficiency of conventional equivariant networks that enforce equivariance across all group elements, even when such transformations rarely co-occur in data.
- To model human-like visual perception by attending only to the set of transformations that co-occur in real-world data, improving recognition accuracy and parameter efficiency.
- To develop an attention mechanism that preserves equivariance while selectively focusing on relevant transformations in the data's co-occurrence envelope.
- To extend equivariant deep learning beyond uniform group actions by incorporating data-driven transformation selection through attention.
Proposed method
- Proposes a co-attentive equivariant feature mapping that applies cyclic self-attention over spatial positions in the codomain of group convolutions.
- Introduces cyclic equivariant self-attention, which maintains equivariance by restricting attention to cyclic permutations induced by group actions.
- Modifies standard group-convolutional networks to allow attention heads to attend only to transformations that co-occur in the training data, forming the co-occurrence envelope.
- Employs a learnable attention mechanism that dynamically weights feature maps based on the likelihood of transformation co-occurrence in local contexts.
- Uses a group action framework where transformations act via cyclic permutations on feature maps, enabling the attention mechanism to remain equivariant.
- Applies the same hyperparameters (e.g., learning rate 0.01, input clipping to 99th percentile) across all network types to ensure fair comparison.
Experimental results
Research questions
- RQ1Can attention mechanisms be designed to selectively focus on co-occurring transformations in data without breaking equivariance?
- RQ2Does attending only to the co-occurrence envelope of transformations lead to better generalization than enforcing full group equivariance?
- RQ3How does co-attentive equivariance compare to standard rotation and rotation+reflection equivariant networks on benchmark datasets?
- RQ4Can the proposed method stabilize training while maintaining high performance in both fully and partially rotational settings?
Key findings
- Co-attentive equivariant networks (DREN) outperform conventional rotation-equivariant and rotation+reflection-equivariant networks on rotated MNIST and CIFAR-10.
- The model achieves consistent performance gains in both fully rotational (rotated MNIST) and partially rotational (CIFAR-10) settings.
- Despite increased susceptibility to training divergence, the co-attentive approach stabilizes with proper hyperparameter tuning, including learning rate reduction and input clipping.
- The cyclic self-attention mechanism successfully preserves equivariance while enabling data-driven attention to relevant transformations, improving feature representation.
- Results support the co-occurrence envelope hypothesis: focusing on frequently co-occurring transformations enhances recognition without overfitting to rare or irrelevant transformations.
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.