Abstract
Bengali and Hindi, languages derived from Sanskrit, present unique challenges for Natural Language Processing (NLP) due to high inflection, complex compound characters, and flexible word order. While large-scale Transformer models like BERT are standard in the field, they are often parameter-heavy and can struggle with these specific morphological nuances in low-resource settings. This paper introduces the Coordinated CNN (CoCNN), a memory-efficient architecture that employs a two-tier approach: a Vocabulary Learner for intra-word patterns and a Terminal Coordinator for inter-word relationships. Experimental results demonstrate that CoCNN+ outperforms pretrained BERT models with 16x fewer parameters, achieving a perplexity of 122 on Bengali news datasets and showing superior robustness to spelling errors.
Introduction
Dominant NLP architectures like BERT and GPT, while highly effective for English, face significant hurdles when applied to Sanskrit-originated languages such as Bengali and Hindi. These languages are characterized by:
- High Inflection: Root words undergo numerous variations through prefixing and suffixing.
- Morphological Richness: The use of approximately 170 complex compound characters complicates standard tokenization.
- Flexible Word Order: Sentences can often be rearranged without altering the core meaning, a feature that challenges the rigid positional dependencies of Recurrent Neural Networks (LSTMs).
While Transformers offer a solution, their high parameter counts and computational demands make them less ideal for deployment in resource-constrained environments. This research proposes a specialized Convolutional Neural Network (CNN) approach that leverages local pattern recognition to better handle linguistic flexibility and morphological complexity.
Methodology: The Coordinated CNN (CoCNN)
The proposed Coordinated CNN (CoCNN) architecture decomposes the language modeling task into two distinct, learnable sub-models:
Vocabulary Learner (VL)
The VL operates at the word level, applying 1D convolutions to character embeddings. This allows the model to capture "intra-word" patterns, enabling it to identify the semantic root of a word despite heavy inflection or spelling noise. Effectively, the VL acts as a natural denoiser and can even function as a standalone spell checker.
Terminal Coordinator (TC)
The TC operates at the sentence level, processing the outputs of the VL. By using 1D convolutions to find "inter-word" relationships, the TC captures local clusters of words. Unlike sequential models, this convolutional approach is less sensitive to the exact position of a word, making it better suited for the flexible word order of Bengali and Hindi.
The researchers further enhanced this model with CoCNN+, which incorporates skip connections to mitigate gradient vanishing and parallel convolution branches with varying filter sizes to capture both short- and long-range dependencies.
Experimental Setup and Results
The models were evaluated using large-scale news datasets in Bengali (Prothom-Alo, BDNews24) and Hindi (Hindinews, Patrika). To test robustness, a version of the Bengali dataset was augmented with synthetic spelling errors.
Performance and Efficiency
CoCNN+ demonstrated significant improvements in language modeling performance. On the Prothom-Alo dataset with synthetic errors, CoCNN+ achieved a Perplexity (PPL) of 122, outperforming BERT_Pre (152) and standard LSTMs.
Beyond language modeling, CoCNN+ excelled in downstream tasks, achieving an F1 score of 0.926 in Bengali Question Classification (compared to BERT's 0.905) and performing strongly in Hindi Hate Speech Detection. Crucially, CoCNN+ achieves these results with only 4.5M to 4.8M parameters—approximately 1/16th the size of BERT (74M parameters)—making it highly suitable for edge device deployment.
Conclusion
The CoCNN architecture proves that specialized, efficient models can outperform massive general-purpose models in specific linguistic contexts. By focusing on local morphological and syntactic patterns through a two-tier convolutional approach, CoCNN provides a robust and resource-efficient solution for Bengali and Hindi NLP. Future work will explore the potential of 2D convolutions to capture more complex spatial relationships and investigate performance on informal social media text.
Summary updated