Surpassing Scale by Efficiency: A Compact 135M Parameter Foundational LLM Natively Adapted for the Bangla Language

Rabindra Nath Nandi
Independent Researcher
rabindro.rath@gmail.com


Abstract

While the NLP landscape is dominated by multi-billion parameter architectures, their deployment in low-resource, non-Latin scripts remains computationally prohibitive for edge configurations, mobile systems, and decentralized local hardware. This paper presents bangla-smollm-135m, a highly compact 135-million parameter decoder-only foundational model engineered explicitly for high-efficiency language modeling in the Bangla script. By leveraging a deterministic intersect-and-append token merging strategy between TituLLMs and SmolLM2-135M, the model overcomes subword script fragmentation without destabilizing early pretrained parameter states. In zero-shot multi-task benchmark evaluations (PIQA_bn, OpenBookQA_bn, CommonsenseQA_bn, and Bangla_MMLU), bangla-smollm-135m matches or outperforms models twice its size (Gemma-3-270m) and achieves parity with models in the 1B parameter tier. The model is available at 1

1 Introduction↩︎

The development of generative artificial intelligence has settled into an era of massive parameter scaling [1][4]. However, the operational footprints of multi-billion parameter architectures heavily restrict their utility on decentralized consumer edge devices, mobile operating engines, and IoT infrastructures. This computational bottleneck is deeply exacerbated for low-resource languages that use non-Latin scripts [5], [6].

Bangla (Bengali), despite possessing over 300 million native speakers worldwide, remains structurally disadvantaged in mass multilingual foundation models [7]. Because Bangla tokens account for less than a fraction of a percent in high-register pretraining datasets, standard multilingual models display high token-to-word (fertility) rates on its unique Abugida (alphasyllabary) script [8]. This structural inefficiency creates an unfair "token tax" that results in inflated memory caches, high inference latency, and early context window degradation [8], [9].

To break this scale-dependency, we introduce bangla-smollm-135m, a compact foundational model of only 135 million active parameters engineered exclusively for native language understanding and reasoning. Our evaluation demonstrates that custom script adaptation, precise data filtering, and a novel cross-model tokenizer intersection paradigm allow ultra-compact systems to perform on par with much larger general-purpose multilingual architectures [8], [10], creating a strong benchmark for resource-constrained edge deployments.

2 Tokenizer Training and Matrix Cross-Alignment↩︎

Standard subword tokenization models optimize for the statistical distribution of character configurations in dominant languages [10]. When adapting highly compact architectures like SmolLM2-135M [11] to low-resource domains, training a vocabulary completely from scratch can destabilize early pretrained parameters [9]. Conversely, relying solely on an unadapted base model induces high fertility penalties (\(\Phi\)), which counts the subword slices (\(T\)) generated per standard word unit (\(W\)): \[\Phi = \frac{|T(W)|}{1}\]

To bridge this architectural gap, bangla-smollm-135m uses a structured programmatic merging pipeline to inject the localized vocabulary configurations of TituLLMs [12] (acting as the base vocabulary layer) directly into the token framework of SmolLM2-135M [11].

2.1 Algorithmic Intersect-and-Append Paradigm↩︎

Let \(\mathcal{V}_{\text{base}}\) define the token vocabulary space of the target regional model (TituLLMs), and \(\mathcal{V}_{\text{src}}\) define the source vocabulary space of the compact architecture (SmolLM2). The goal is to construct a unified embedding target vocabulary \(\mathcal{V}_{\text{merged}}\) that preserves all native subword patterns while retaining compatibility with cross-lingual embeddings [9].

The merge routine enforces a deterministic isolation pipeline:

Special Token Harvesting: Isolate control tokens, padding symbols, and chat-template configurations mapping to \(\mathcal{V}_{\text{src}}\). Any structural tokens missing from the target base are added to prevent syntax parsing errors during sequence decoding: \[\mathcal{S}_{\text{missing}} = \{ t \in \text{Special}(\mathcal{V}_{\text{src}}) \mid t \notin \mathcal{V}_{\text{base}} \}\]

Lexical Intersection and Regular Appending: Isolate standard text subwords from \(\mathcal{V}_{\text{src}}\) that are completely absent from the base set. These tokens are sorted alphabetically to maintain strict structural determinism and reproducibility during initialization: \[\mathcal{R}_{\text{candidates}} = \text{Sort}(\{ t \in \mathcal{V}_{\text{src}} \mid t \notin \mathcal{V}_{\text{base}} \cup \mathcal{S}_{\text{missing}} \})\]

Boundary-Constrained Expansion: The final vocabulary matrix expansion is limited by an upper bound parameter \(\mathcal{K}_{\max} = 48,000\) to maintain a highly compact hidden embedding configuration: \[\mathcal{R}_{\text{final}} = \mathcal{R}_{\text{candidates}}[0 : \mathcal{K}_{\max}]\]

The execution of this architecture is described algorithmically in Algorithm 1.

Figure 1: Deterministic Tokenizer Matrix Intersection

3 Model Training and Infrastructure↩︎

The training engineering for bangla-smollm-135m uses an iterative continual pretraining workflow designed to build linguistic understanding without losing the model’s core multi-lingual alignment capabilities [11].

3.1 Data Purification and Subset Distribution↩︎

The training pipeline ingests a highly diversified, multi-modal regional corpus based on the hishab/titulm-bangla-corpus repository [12]. To ensure empirical stability and downstream performance, text records are partitioned across three separate, stratified thematic slices:

Common Crawl (\(\mathbf{20\%}\) Stratified Weight): Web-derived corpora containing unstructured modern idioms, casual expressions, and vernacular dialogue [13].

Translated Text (\(\mathbf{30\%}\) Stratified Weight): High-register datasets translated from balanced academic and programmatic frameworks to capture formal reasoning structures [14], [15].

Romanized Text (\(\mathbf{30\%}\) Stratified Weight): Phonetically mapped text collections designed to improve performance on *Banglish* code-switched structures, expanding the contextual coverage of edge deployments [16].

3.2 Dynamic Block Packing Optimization↩︎

To prevent wasted computations over empty padding vectors, raw incoming sequences are first limited by string-length depth constraints (\(\text{Chars}_{\max} = 4 \times \text{BlockSize}\)) to prevent map thread choking. After tokenization, sequential lines are flattened into a continuous 1D token matrix and divided into uniform chunks fitting the model’s exact context dimension: \[\mathcal{B}_m = \mathbf{X}\left[ m \cdot d_{\text{block}} : (m+1) \cdot d_{\text{block}} \right]\] Where \(\mathbf{X}\) is the flattened token matrix, and \(d_{\text{block}} = 4096\) defines the target context window boundary. Labels are mapped natively to mirror the input indices (\(\text{Labels} \leftarrow \text{Input\_IDs}\)).

3.3 Hardware Infrastructure and Hyperparameters↩︎

The pretraining workflow runs on a multi-GPU Linux node utilizing an optimized Hugging Face Trainer backend. The hardware distribution relies on three active NVIDIA GPUs integrated via Hugging Face Accelerate. To maximize tensor throughput, training uses native Bfloat16 (BF16) mixed-precision execution. To avoid device Out-of-Memory (OOM) errors over the 4096 context window, gradient checkpointing is activated. Detailed training configurations are listed in Table 1.

Table 1: Hyperparameter layout and optimization metrics used during the continual pretraining run of bangla-smollm-135m.
Hyperparameter Metric Configuration
Base Architecture Model SmolLM2-135M
Target Block Dimension (\(d_{\text{block}}\)) 4096
Per-Device Train Batch Size 12
Gradient Accumulation Steps 4
Peak Learning Rate \(2 \times 10^{-4}\)
Learning Rate Scheduler Cosine
Warmup Ratio Bound 0.03
Weight Decay Penalty 0.1
Total Training Epochs Bound 2
Telemetry Tracker Backend Weight & Biases

4 Evaluation Methodology↩︎

To verify its linguistic capability and context-handling proficiency, bangla-smollm-135m was tested in a strict zero-shot (\(0\)-shot) setup across four established localized benchmarks [12], [17].

The primary comparison metric used is Normalized Accuracy (\(\text{acc\_norm}\)). This factor mathematically normalizes multi-choice scoring distributions by penalizing lucky guesses or selection biases: \[\text{acc\_norm} = \frac{\text{acc} - \frac{1}{k}}{1 - \frac{1}{k}}\] Where \(k\) corresponds to the total number of multiple-choice answer possibilities available per evaluation prompt. The evaluation suite tracks performance across four core domains:

PIQA_bn: Evaluates physical common sense reasoning by prompting text choices regarding everyday physical interactions translated into Bangla [6].

OpenBookQA_bn: Tracks factual knowledge and multi-hop question-answering capabilities using open-book scientific facts [12].

CommonsenseQA_bn: Focuses on complex linguistic reasoning and social abstract common sense [17].

Bangla_MMLU: A rigorous cross-disciplinary academic suite spanning advanced humanities, regional history, geography, and legal structures [18].

5 Comparison with Other Models↩︎

To determine the model’s true parameter efficiency, its scores were analyzed alongside baseline data from larger multilingual foundations [19], [20], as well as heavily adapted architectures in the 1B parameter range [7], [12]. These empirical results are compiled in Table 2.

Table 2: Comparative performance profile mapping zero-shot Normalized Accuracy (\(\text{acc\_norm}\)) across different parameter classes and adaptation paradigms.
Model Identifier Parameter Scale PIQA_bn OpenBookQA_bn CommonsenseQA_bn Bangla_MMLU
bangla-smollm-135m 135M 0.545 0.320 0.256 0.237
Gemma-3-270m 270M 0.547 0.336 0.249 0.234
Llama-3.2-1b 1B 0.530 0.320 0.220 0.290
titulm-llama-3.2-1b-v2.0 1B 0.580 0.320 0.260 0.250

5.1 Key Cross-Model Insights↩︎

The empirical comparison reveals significant structural patterns in model scaling efficiency:

Outperforming the 270M Tier: Despite operating with half the parameter count of Gemma-3-270m, bangla-smollm-135m scores higher on abstract reasoning fields like CommonsenseQA_bn (0.256 vs 0.249) and Bangla_MMLU (0.237 vs 0.234).

Parity with 1B Parameter Models: The model matches or exceeds the vanilla Llama-3.2-1b on physical reasoning and common sense tasks, despite requiring approximately \(7.4\times\) less memory space. This performance demonstrates the value of deterministic vocabulary intersection over raw unadapted parameter scaling for regional non-Latin scripts [8], [9].

5.2 The Broader Architectural Ecosystem↩︎

To place bangla-smollm-135m within the structural landscape of contemporary Bangla language computing, Table 3 maps its tokenization approach against alternative architectural frameworks [7], [13], [21].

6 Conclusion↩︎

The performance profile of bangla-smollm-135m demonstrates that efficient tokenization, targeted sub-corpora packing, and optimized hardware training loops can overcome the limitations of smaller model scales for low-resource languages. By matching or outperforming models up to seven times its size on core reasoning and knowledge tasks, this architecture provides a viable path for deploying efficient AI tools directly on consumer edge devices.

7 Limitations↩︎

While bangla-smollm-135m exhibits notable parameter efficiency across several core zero-shot reasoning tracks, several fundamental constraints must be carefully highlighted for downstream engineering layouts:

  • Contextual Window Horizons: Although configured with an operational block boundary of \(d_{\text{block}} = 4096\), the physical model space limits high-fidelity retrieval or long-form narrative synthesis compared to ultra-large multilingual structures that support extended testing loops.

  • Complex Mathematical and Code Derivation Limits: As identified in the taxonomy mappings, compact architectures beneath the 1B parameter layer experience rapid decay when processing multi-hop symbolic calculations or structural programmatic mutations in Bangla, requiring offloading to enterprise configurations like Qwen3-235B for heavy algorithmic reasoning.

  • Linguistic Adaptation Hallucinations: Despite mitigating subword script fragmentation using our deterministic vocabulary merging framework, the underlying capacity limits can lead to trivial semantic alignment errors or phrasing degradation under highly stylized regional variations.

8 Appendix↩︎

Table 3: Systematic structural landscape taxonomy mapping parameter scaling, tokenization methodologies, and primary architectural differentiators for prominent models in the Bangla language processing ecosystem.
Model Identifier Parameter Scale Pretraining Architecture Tokenizer Strategy Primary Technical Differentiation
bangla-smollm-135m 135M LLaMA-style decoder-only base; dynamic packing (\(d_{\text{block}}=4096\)). Merged Intersect BPE via TituLLMs + SmolLM2. Ultra-compact edge profile; out-performs 270M baselines on abstract common sense reasoning.
TituLLMs 1B – 3B LLaMA-style decoder-only base. SentencePiece custom (50k vocabulary). Balanced data distribution explicitly including code-switched Banglish sub-corpora.
TigerLLM 7B context adapt Autoregressive base pretraining. Custom native BPE (64k vocabulary). Full-parameter native fine-tuning that avoids adapter bottlenecks.
BanglaByT5 Compact variant Encoder-Decoder (mT5 derivative). Tokenizer-Free (Raw UTF-8 byte stream). Complete immunity to out-of-vocabulary anomalies; features a character-level downsampling boundary.
Llama 3.1 / 3.2 3B – 8B Standard multilingual autoregressive base. Standard Tiktoken base (128w vocabulary). Massive 15T token pretraining foundation providing excellent general reasoning capabilities.
Qwen3-8B 8.2B Multilingual dense transformer. Custom Byte-Level BPE (151k vocabulary). Features an integrated dual-mode execution layout for fast chat and test-time reasoning.

References↩︎

[1]
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is All You Need. In Advances in Neural Information Processing Systems, volume 30, pages 5998–6008.
[2]
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language Models are Unsupervised Multitask Learners. OpenAI Blog, 1(9):9.
[3]
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, et al. 2020. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877–1901.
[4]
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. LLaMA: Open and Efficient Foundation Language Models. arXiv preprint arXiv:2302.13971.
[5]
Firoj Alam, Shammur Anowar Chowdhury, et al. 2021. Bangla NLP: A Comprehensive Survey. ACM Transactions on Asian and Low-Resource Language Information Processing, 20(4):1–34.
[6]
Abhik Bhattacharjee, Tahmid Hasan, Wasi Uddin Ahmad, Kazi Mubasshir, Md. Saiful Islam, Anindya Iqbal, M. Sohel Rahman, and Rifat Shahriyar. 2022. BanglaBERT: Language Model Pretraining and Benchmarks for Low-Resource Language Understanding Evaluation in Bangla. In Findings of the North American Chapter of the Association for Computational Linguistics: NAACL 2022, pages 1312–1325.
[7]
Nishat Raihan and Marcos Zampieri. 2025. TigerLLM - A Family of Bangla Large Language Models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 887–896, Vienna, Austria.
[8]
Rebecca Lundin, et al. 2026. The Token Tax: Systematic Bias in Multilingual Tokenization. In Proceedings of the 4th Workshop on African Natural Language Processing (AfricaNLP @ ACL 2026), pages 103–112.
[9]
Jonatan Gren and Murathan Kurfali. 2026. Efficient Low-Resource Language Models Using Tokenizer Transfer. In Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics: Student Research Workshop (EACL-SRW 2026), pages 442–451.
[10]
Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural Machine Translation of Rare Words with Subword Units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725.
[11]
Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel de Marmiesse, and Thomas Wolf. 2025. SmolLM2: Powerful, Lightweight Language Models from HuggingFace. arXiv preprint arXiv:2502.02737.
[12]
Shahriar Kabir Nahin, Rabindra Nath Nandi, Sagor Sarker, Quazi Sarwar Muhtaseem, Md Kowsher, Apu Chandraw Shill, Md Ibrahim, Mehadi Hasan Menon, Tareq Al Muntasir, and Firoj Alam. 2025. TituLLMs: A Family of Bangla LLMs with Comprehensive Benchmarking. In Findings of the Association for Computational Linguistics: ACL 2025.
[13]
Abhik Bhattacharjee, Tahmid Hasan, Wasi Uddin Ahmad, and Rifat Shahriyar. 2023a. BanglaNLG and BanglaT5: Benchmarks and Resources for Evaluating Low-Resource Natural Language Generation in Bangla. In Findings of the European Chapter of the Association for Computational Linguistics: EACL 2023, pages 54–65.
[14]
Tahmid Hasan, Abhik Bhattacharjee, Md. Saiful Islam, Kazi Mubasshir, Yuan-Fang Li, Yong-Bin Kang, M. Sohel Rahman, and Rifat Shahriyar. 2021. XL-Sum: Large-Scale Multilingual Abstractive Summarization for 44 Languages. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 3412–3425.
[15]
Abhik Bhattacharjee, Tahmid Hasan, Wasi Uddin Ahmad, Yuan-Fang Li, Yong-bin Kang, and Rifat Shahriyar. 2023b. CrossSum: Beyond English-Centric Cross-Lingual Abstractive Text Summarization for 1500+ Language Pairs. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics: ACL 2023, pages 2411–2424.
[16]
Tahmid Hasan, Abhik Bhattacharjee, Kazi Samin, Masum Hasan, Madhusudan Basak, M. Sohel Rahman, and Rifat Shahriyar. 2020. Not Low-Resource Anymore: Aligner Ensembling, Batch Filtering, and New Datasets for Bengali-English Machine Translation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2612–2623.
[17]
Fariha Anjum Shifa, Muhtasim Ibteda Shochcho, Abdullah Ibne Hanif Arean, Mohammad Ashfaq Ur Rahman, and Akm Mazumder. 2025. SOMAJGYAAN: A Dataset for Evaluating LLMs on Bangla Culture, Social Knowledge, and Low-Resource Language Adaptation. In Proceedings of the 14th International Joint Conference on Natural Language Processing and the 4th Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics: Findings (IJCNLP-AACL 2025), pages 2157–2177.
[18]
Jayanta Sadhu, Ayan Antik Khan, Abhik Bhattacharjee, and Rifat Shahriyar. 2024. Characteristics of Bias upon Context Length Variations: An Empirical Study on Bangla. In Findings of the Association for Computational Linguistics: ACL 2024, pages 411–423.
[19]
Meta Llama Team. 2024. The Llama 3 Series of Models. arXiv preprint arXiv:2407.21783.
[20]
Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, et al. 2024. Gemma: Open Models Based on Gemini Research and Technology. arXiv preprint arXiv:2403.08295.
[21]
Qwen Team. 2024. Qwen2 Technical Report. arXiv preprint arXiv:2407.10671.

  1. rnnandi/bangla-smollm-135m↩︎