TL;DR
This paper introduces CoCNN, a novel Convolutional Neural Network (CNN) architecture designed to tackle the unique linguistic challenges of Bengali and Hindi, two low-resource languages with rich morphology and flexible word order. CoCNN outperforms state-of-the-art Transformer and LSTM models, including pre-trained BERT, on various tasks while using significantly fewer parameters.
What Problem Does This Paper Address?
While language modeling (LM) has seen significant advancements for high-resource languages like English and Chinese, low-resource languages, particularly those with complex linguistic structures, remain under-explored. Bengali and Hindi, despite being widely spoken, present unique challenges for traditional LMs due to:
- High Inflection: A single root word can have numerous variations due to prefixes and suffixes.
- Morphological Richness: They feature complex compound letters and modified vowels/consonants.
- Flexible Word Order: The importance of word position is less rigid compared to languages like English.
- Phonetic Spelling Errors: These languages are prone to spelling variations that can impact model performance.
Existing SOTA models like LSTMs and Transformers, while powerful, struggle with these characteristics. LSTMs are sensitive to word order, which is flexible in Bengali and Hindi. Transformers, with their attention mechanisms, may not effectively capture local patterns crucial for these morphologically rich languages. This paper aims to bridge this gap by proposing a CNN-based architecture specifically tailored for these linguistic nuances.
Methods
The core contribution is the Coordinated CNN (CoCNN) architecture, a memory-efficient, end-to-end trainable model. CoCNN comprises two main components:
- Vocabulary Learner (VL): This sub-model operates at the word level. It transforms each input word into a vector representation called
CNNvec. It uses sequential 1D convolutional layers to learn local patterns and sub-word information, effectively capturing morphological variations and handling spelling errors. - Terminal Coordinator (TC): This sub-model works at the sentence/paragraph level. It takes the
CNNvecrepresentations of all words in a sentence and uses another set of 1D convolutional layers to learn word coordination patterns. Crucially, TC is designed to maintain positional independence, aligning with the flexible word order of Bengali and Hindi.
The paper also introduces CoCNN+, an enhanced version of CoCNN. CoCNN+ incorporates two modifications:
- Skip Connections in VL: This helps mitigate gradient vanishing problems and allows access to both low-level and high-level features.
- Parallel Convolutional Branches in TC: This allows the model to learn local patterns of varying lengths simultaneously, improving its ability to capture sentence-level semantics.
Datasets
The study utilizes several publicly available datasets for Bengali and Hindi:
- Bengali: Prothom-Alo, BDNews24, Nayadiganta.
- Hindi: Hindinews, Livehindustan, Patrika.
To specifically test the models' robustness to errors, the authors created modified versions of the Bengali datasets by incorporating spelling errors using a probabilistic error generation algorithm. Nayadiganta (Bengali) and Patrika (Hindi) were used as independent test sets.
Key Insights and Ideas
- CNNs for Low-Resource Morphologically Rich Languages: The paper demonstrates that CNNs, often overlooked for complex LM tasks compared to Transformers, can be highly effective for languages with rich morphology and flexible word order, provided they are designed appropriately.
- Decomposition of LM Challenges: CoCNN's separation into word-level (VL) and sentence-level (TC) components allows for specialized learning of inflection/spelling errors and word order flexibility, respectively.
- Implicit Attention in CNNs: The authors argue that 1D convolutions implicitly impose attention on input sequences, similar to explicit attention mechanisms but with a focus on local patterns and positional invariance, which is beneficial for Bengali and Hindi.
- CoCNN+ Enhancements: The simple modifications in CoCNN+ (skip connections and parallel branches) lead to significant performance gains, highlighting the effectiveness of architectural refinements.
- VL as a Spell Checker: The Vocabulary Learner sub-model shows promise as an effective spell checker for Bengali, demonstrating its capability in identifying and correcting errors.
Key Results
- Superior Performance: CoCNN significantly outperforms contemporary LSTM models and pre-trained BERT on Bengali and Hindi language modeling tasks.
- Parameter Efficiency: CoCNN achieves this superior performance with 16X fewer parameters than pre-trained BERT.
- CoCNN+ Dominance: The enhanced CoCNN+ model further improves upon CoCNN and BERT_Pre, showing substantial gains in PPL scores across various datasets. For instance, on the Prothom-Alo dataset, CoCNN+ achieves a PPL score of 122, compared to BERT_Pre's 147 and CoCNN's 147.
- Downstream Task Performance: CoCNN+ also demonstrates strong performance in downstream tasks like question classification, product review classification, and hate speech detection, outperforming BERT_Pre.
- Spell Checking Accuracy: The VL sub-model of CoCNN+ achieved competitive accuracy in Bengali spell checking, outperforming existing phonetic and clustering-based approaches on both synthetic and real error datasets.
Limitations and Future Work
- Pre-training: The current CoCNN models are trained from scratch, unlike pre-trained BERT. The authors suggest that pre-training CoCNN could further boost its performance.
- 2D CNNs and Over-parameterization: Future research could explore incorporating ideas from 2D CNNs and investigating innovative over-parameterization schemes for CoCNN.
- Innovative Schemes: The paper hints at the potential for developing new pre-training schemes specifically for CoCNN to enhance its LM capabilities.
Summary updated