Abstract: Byung-Ju Choi, Jun-Hyung Park, SangKeun Lee. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).
2019.
Introduction
In Natural Language Processing (NLP), Convolutional Neural Networks (CNNs) are widely used for text classification due to their ability to capture local patterns like n-grams. However, standard CNNs employ static filters that remain unchanged regardless of the input. This "one-size-fits-all" approach limits the model's capacity to adapt to specific contexts, as the same feature extraction logic is applied to every document.
To address this, researchers from Korea University introduced Adaptive Convolution at NAACL-HLT 2019. This method allows the network to dynamically generate filters on the fly for each input, effectively giving the CNN a "brain" to focus on the most relevant features for a given document.
Methodology: The Filter-Generating Network
The central innovation of this work is the Filter-Generating Network (FGN). Instead of using fixed weight matrices, the model employs a sub-network to construct weights tailored to the current input.
The process involves three main steps:
- Context Vector Generation: A Bidirectional Gated Recurrent Unit (Bi-GRU) combined with a self-attention mechanism processes the input to create a "context vector" that summarizes key semantic information.
- Filter Generation: This vector is used to produce convolutional filters. To maintain efficiency, the authors use a hashing trick (Hashed Generation). Rather than generating full weight matrices from scratch, the network learns to mix and match from a small pool of shared "component filters" using importance parameters. This approach uses less than 3% of the parameters required for full generation while maintaining similar performance.
- Adaptive Convolution: The generated filters are applied to the text in a standard convolutional operation.
Experimental Setup
The proposed method was evaluated on seven major text classification benchmarks, covering sentiment analysis (Yelp, Amazon), topic classification (AG News, Yahoo! Answers), and ontology classification (DBPedia). These datasets provide a comprehensive test of the model's generalizability across different linguistic tasks.
Key Results and Analysis
Adaptive Convolution consistently improved performance across all baseline architectures, including standard CNN, DPCNN, and DenseCNN. Notable gains were observed on the Yelp Full dataset, with an accuracy increase of 2.6 percentage points over the baseline.
A significant finding was the model's robustness to hyperparameters. As shown in the experimental results, Adaptive CNNs maintain high validation accuracy even with a small number of filters or shallow architectures, whereas standard CNN performance typically degrades significantly under these constraints. This suggests that the adaptive mechanism compensates for architectural limitations by optimizing feature extraction for the specific task at hand.
Conclusion
Adaptive Convolution represents a shift from static to dynamic neural architectures in NLP. By allowing models to adjust their feature extraction logic based on input context, the researchers achieved state-of-the-art results with minimal parameter overhead. Future work may extend this adaptive mechanism to other complex tasks such as textual entailment and question answering to further validate its flexibility.
Summary updated