# Attentive Convolution: Equipping CNNs with RNN-style Attention Mechanisms

arXiv: https://arxiv.org/abs/1710.00519 · HTML: https://mlsanity.com/paper/1710.00519/

## Key facts

- Cited by 5 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 2 Oct 2017.

## Built on by (most cited first, 5 of 5)

- [An Explainable CNN Approach for Medical Codes Prediction from Clinical Text](https://mlsanity.com/paper/2101.11430/) (2021)
- [A Graph and Attentive Multi-Path Convolutional Network for Traffic Prediction](https://mlsanity.com/paper/2205.15218/) (2022)
- [Learning to Select from Multiple Options](https://mlsanity.com/paper/2212.00301/) (2022)
- [Label-semantics Aware Generative Approach for Domain-Agnostic Multilabel Classification](https://mlsanity.com/paper/2506.06806/) (2025)
- [Academic Resource Text Level Multi-label Classification based on Attention](https://mlsanity.com/paper/2203.10743/) (2022)

## Abstract (arXiv)

In NLP, convolutional neural networks (CNNs) have benefited less than recurrent neural networks (RNNs) from attention mechanisms. We hypothesize that this is because the attention in CNNs has been mainly implemented as attentive pooling (i.e., it is applied to pooling) rather than as attentive convolution (i.e., it is integrated into convolution). Convolution is the differentiator of CNNs in that it can powerfully model the higher-level representation of a word by taking into account its local fixed-size context in the input text t^x. In this work, we propose an attentive convolution network, ATTCONV. It extends the context scope of the convolution operation, deriving higher-level features for a word not only from local context, but also information extracted from nonlocal context by the attention mechanism commonly used in RNNs. This nonlocal context can come (i) from parts of the input text t^x that are distant or (ii) from extra (i.e., external) contexts t^y. Experiments on sentence modeling with zero-context (sentiment analysis), single-context (textual entailment) and multiple-context (claim verification) demonstrate the effectiveness of ATTCONV in sentence representation learning with the incorporation of context. In particular, attentive convolution outperforms attentive pooling and is a strong competitor to popular attentive RNNs.
