Skip to main content
QUICK REVIEW

[Paper Review] TextConvoNet:A Convolutional Neural Network based Architecture for Text Classification

Sanskar Soni, Satyendra Singh Chouhan|arXiv (Cornell University)|Mar 10, 2022
Topic ModelingComputer Science7 citations
TL;DR

TextConvoNet proposes a 2D convolutional neural network architecture that captures both intra-sentence and inter-sentence n-gram features by reformatting text input as a paragraph-level embedding matrix, enabling multi-scale, 2D convolutional operations. It outperforms state-of-the-art models on five benchmark text classification datasets, demonstrating superior accuracy, F1-score, and robustness in few-shot learning scenarios.

ABSTRACT

In recent years, deep learning-based models have significantly improved the Natural Language Processing (NLP) tasks. Specifically, the Convolutional Neural Network (CNN), initially used for computer vision, has shown remarkable performance for text data in various NLP problems. Most of the existing CNN-based models use 1-dimensional convolving filters n-gram detectors), where each filter specialises in extracting n-grams features of a particular input word embedding. The input word embeddings, also called sentence matrix, is treated as a matrix where each row is a word vector. Thus, it allows the model to apply one-dimensional convolution and only extract n-gram based features from a sentence matrix. These features can be termed as intra-sentence n-gram features. To the extent of our knowledge, all the existing CNN models are based on the aforementioned concept. In this paper, we present a CNN-based architecture TextConvoNet that not only extracts the intra-sentence n-gram features but also captures the inter-sentence n-gram features in input text data. It uses an alternative approach for input matrix representation and applies a two-dimensional multi-scale convolutional operation on the input. To evaluate the performance of TextConvoNet, we perform an experimental study on five text classification datasets. The results are evaluated by using various performance metrics. The experimental results show that the presented TextConvoNet outperforms state-of-the-art machine learning and deep learning models for text classification purposes.

Motivation & Objective

  • To address the limitation of existing 1D-CNN models that only extract intra-sentence n-gram features from word embeddings.
  • To explore whether multi-dimensional convolution can capture inter-sentence relationships in text data for improved classification.
  • To design a novel input representation that enables 2D convolutional operations on text sequences.
  • To evaluate TextConvoNet's performance across binary and multi-class text classification benchmarks.
  • To demonstrate generalization capability in few-shot learning settings with limited training data.

Proposed method

  • Represents input text as a paragraph-level embedding matrix where each row is a word vector and each column corresponds to a sentence, enabling 2D convolution.
  • Applies multi-scale 2D convolutional filters across the matrix to extract both intra-sentence and inter-sentence n-gram features.
  • Uses 2D max-pooling to reduce spatial dimensions and retain salient features.
  • Concatenates feature maps from multiple filters and feeds them into a fully connected classification layer.
  • Employs multiple variants (TextConvoNet_4, TextConvoNet_6) with different filter sizes and pooling strategies to optimize performance.
  • Conducts ablation studies to evaluate the impact of input representation and 2D convolution on model accuracy.

Experimental results

Research questions

  • RQ1Can a 2D convolutional architecture effectively capture inter-sentence n-gram features in addition to intra-sentence features?
  • RQ2Does reformatting the input as a 2D paragraph-level embedding matrix improve text classification performance compared to standard 1D-CNNs?
  • RQ3How does TextConvoNet perform in low-data regimes, particularly in few-shot learning scenarios?
  • RQ4What is the optimal configuration of filter size and pooling strategy for the 2D convolutional layer in this architecture?
  • RQ5How does TextConvoNet compare to state-of-the-art models across diverse text classification benchmarks?

Key findings

  • TextConvoNet achieved the highest accuracy (0.901) and F1-score (0.883) on Dataset-2, outperforming all baseline models.
  • On the multi-class dataset (Dataset-4), TextConvoNet_6 achieved an accuracy of 0.829 and F1-score of 0.573, with the lowest test error rate among all models in few-shot settings.
  • The model demonstrated superior generalization in few-shot learning, maintaining low test error rates even with only 10% of training data.
  • Ablation studies confirmed that the 2D convolutional operation and paragraph-level input representation significantly improved performance over 1D-CNN baselines.
  • TextConvoNet_6 consistently outperformed TextConvoNet_4 across all metrics, indicating that larger filter sizes enhance feature extraction.
  • The model achieved a G-mean2 score of 0.896 on Dataset-2 with m-sized filters, indicating strong balanced performance across all classes.

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.