{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,2]],"date-time":"2026-09-02T01:13:06Z","timestamp":1788311586687,"version":"build-2803163510"},"reference-count":38,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2026,6,21]],"date-time":"2026-06-21T00:00:00Z","timestamp":1782000000000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,9,2]],"date-time":"2026-09-02T00:00:00Z","timestamp":1788307200000},"content-version":"vor","delay-in-days":73,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Manipal University Jaipur"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Discov Artif Intell"],"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Large Language Models have proved to be extremely effective in the realm of NLP; however, they are both computationally expensive and highly complex in terms of architecture, thus limiting their usage in systematic analysis and research due to a lack of computational resources. In this work, we present MinimalLLM, a small-scale decoder-only language model built on a transformer architecture, similar to that used by the Qwen model family. The model attempts to provide a balance between modern architectural quality and efficiency and transparency, with an emphasis being placed on experiment control and interpretability. Our implementation features Grouped-Query Attention (GQA), RoPE, SwiGLU, and RMSNorm. A novel hybrid optimisation approach based on the Muon method used for structured 2D weight matrices and AdamW for all other parameters is proposed to facilitate stable convergence in computational budget-constrained environments. MinimalLLM is pre-trained on a streaming subset of the 500,000 tokens of the Cosmopedia-v2 synthetic corpus through mixed precision training and gradient accumulation on an NVIDIA Tesla T4 GPU. Although it is trained with just 32.15 million parameters, MinimalLLM obtains a validation loss of 0.0945 and perplexity of 1.10 on the domain of Cosmopedia-v2. These figures must be taken as indicative of the optimal convergence achieved by the network for its specific training conditions due to its over-parametrisation, the Zipfian sparsity of the corpus, and the nature of its constrained synthetic domain. Analysis of attentional patterns and of gradients, and confidence calibration, support that optimisation was maintained and that token-level representation has analytic meaning. We show that state-of-the-art Transformer architecture design principles can be implemented effectively in a small-scale setting and describe a reproducible approach to language modeling for research and educational purposes. Additional analysis such as comparison with baselines, performance evaluation using statistical methods, tests with other datasets, and ablation studies reinforce the robustness of our approach.<\/jats:p>","DOI":"10.1007\/s44163-026-01413-x","type":"journal-article","created":{"date-parts":[[2026,6,21]],"date-time":"2026-06-21T06:53:28Z","timestamp":1782024808000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["A lightweight transformer based language model inspired by the Qwen architecture for resource constrained environments"],"prefix":"10.1007","volume":"6","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0640-8640","authenticated-orcid":false,"given":"Ajay","family":"Kumar","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-8535-4566","authenticated-orcid":false,"given":"Shubh","family":"Suman","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1171-4661","authenticated-orcid":false,"given":"Rajesh Kumar","family":"Boghey","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3782-4279","authenticated-orcid":false,"given":"Praneet","family":"Saurabh","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,6,21]]},"reference":[{"key":"1413_CR1","unstructured":"Vaswani A, et al. Attention is all you need, in Proc. NeurIPS. 2017. pp. 5998\u20136008."},{"key":"1413_CR2","unstructured":"Radford A, et al. Improving language understanding by generative pre-training, OpenAI Tech. Rep. 2018."},{"key":"1413_CR3","unstructured":"Brown TB, et al. Language models are few-shot learners, in Proc. NeurIPS. 2020. pp. 1877\u20131901."},{"key":"1413_CR4","unstructured":"Chowdhery A, et al. PaLM: scaling language modeling with pathways. 2022. arXiv:2204.02311."},{"key":"1413_CR5","unstructured":"Touvron H, et al. LLaMA: open and efficient foundation language models. 2023. arXiv:2302.13971."},{"key":"1413_CR6","unstructured":"Yang J, et al. Qwen2 technical report. 2024. arXiv:2407.10671."},{"key":"1413_CR7","doi-asserted-by":"crossref","unstructured":"Zhai X, et al. Scaling vision transformers, in Proc. ECCV. 2022.","DOI":"10.1109\/CVPR52688.2022.01179"},{"key":"1413_CR8","doi-asserted-by":"crossref","unstructured":"Ainslie J, et al. GQA: training generalized multi-query transformer models from multi-head checkpoints. 2023. arXiv:2305.13245.","DOI":"10.18653\/v1\/2023.emnlp-main.298"},{"key":"1413_CR9","unstructured":"Su J, Lu Y, Pan S, Wen B, Liu Y. RoFormer: enhanced transformer with rotary position embedding. 2021. arXiv:2104.09864."},{"key":"1413_CR10","unstructured":"Shazeer N. GLU variants improve transformer. 2020. arXiv:2002.05202."},{"key":"1413_CR11","unstructured":"Zhang B, Sennrich R. Root mean square layer normalization, in Proc. NeurIPS Workshops. 2019."},{"key":"1413_CR12","doi-asserted-by":"publisher","DOI":"10.1007\/s44163-026-01058-w","author":"Z Tao","year":"2026","unstructured":"Tao Z, Feng H. Traffic speed prediction based on stacked denoising and lightweight Transformer. Discov Artif Intell. 2026. https:\/\/doi.org\/10.1007\/s44163-026-01058-w.","journal-title":"Discov Artif Intell"},{"key":"1413_CR13","unstructured":"Dettmers T, et al. 8-bit optimizers via block-wise quantization, in Proc. ICLR. 2022."},{"key":"1413_CR14","unstructured":"Loshchilov I, Hutter F. Decoupled weight decay regularization, in Proc. ICLR. 2019."},{"key":"1413_CR15","unstructured":"Kunstner F, et al. The shampoo optimizer: second-order optimization made practical, in Proc. ICML. 2023."},{"key":"1413_CR16","unstructured":"Martens J, Grosse R. Optimizing neural networks with kronecker-factored approximate curvature, in Proc. ICML. 2015."},{"key":"1413_CR17","unstructured":"Zhang S, et al. Muon: matrix-aware optimization for training large neural networks. 2024. arXiv:2403.03266."},{"key":"1413_CR18","unstructured":"Shoeybi M, et al. Megatron-LM: training multi-billion parameter language models using model parallelism. 2019. arXiv:1909.08053."},{"key":"1413_CR19","doi-asserted-by":"crossref","unstructured":"Rasley J, et al. DeepSpeed: system optimizations enable training deep learning models with over 100 billion parameters, in Proc. ICS. 2020.","DOI":"10.1145\/3394486.3406703"},{"key":"1413_CR20","unstructured":"Sanh V, et al. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. 2019. arXiv:1910.01108."},{"key":"1413_CR21","unstructured":"Allal LB, et al. SmolLM: efficient small language models, Hugging Face. 2024. [Online]. Available: https:\/\/huggingface.co\/HuggingFaceTB\/smollm-corpus"},{"key":"1413_CR22","unstructured":"Eldan R, Li Y. TinyStories: How small can language models be and still speak coherent english? 2023. arXiv:2305.07759."},{"key":"1413_CR23","unstructured":"Hu EJ, et al. LoRA: low-rank adaptation of large language models, in Proc. ICLR. 2022."},{"key":"1413_CR24","unstructured":"Geiping J, Goldstein T. Cramming: training a language model on a single GPU in one day, in Proc. ICML. 2023."},{"key":"1413_CR25","doi-asserted-by":"publisher","DOI":"10.1007\/s44163-025-00381-y","volume":"5","author":"S Chu","year":"2025","unstructured":"Chu S, Liu J. Based on BERT-GPT-GNN converged architecture: intelligent generation engine for complex SQL queries in business intelligence. Discov Artif Intell. 2025;5:147. https:\/\/doi.org\/10.1007\/s44163-025-00381-y.","journal-title":"Discov Artif Intell"},{"key":"1413_CR26","doi-asserted-by":"publisher","DOI":"10.1007\/s44163-023-00067-3","volume":"3","author":"Z Tang","year":"2023","unstructured":"Tang Z, Kejriwal M. Evaluating deep generative models on cognitive tasks: a case study. Discov Artif Intell. 2023;3:21. https:\/\/doi.org\/10.1007\/s44163-023-00067-3.","journal-title":"Discov Artif Intell"},{"key":"1413_CR27","unstructured":"Zhang H, et al. SmolLM: training small language models efficiently. 2024. arXiv:2402.03300."},{"key":"1413_CR28","unstructured":"Press O, Smith NA, Lewis M. Train short, test long: attention with linear biases enables input length extrapolation, in Proc. ACL. 2021."},{"key":"1413_CR29","doi-asserted-by":"crossref","unstructured":"Sun J, et al. A length-extrapolatable transformer. 2023 arXiv:2305.19466.","DOI":"10.18653\/v1\/2023.acl-long.816"},{"key":"1413_CR30","doi-asserted-by":"crossref","unstructured":"Dao T, Fu DY, Ermon S, Rudra A, Re C. FlashAttention: fast and memory-efficient exact attention with IO-awareness, in Proc. NeurIPS. 2022.","DOI":"10.52202\/068431-1189"},{"key":"1413_CR31","unstructured":"Zhang C, Bengio S, Hardt M, Recht B, Vinyals O. Understanding deep learning requires rethinking generalization, in Proc. ICLR. 2017."},{"key":"1413_CR32","doi-asserted-by":"crossref","unstructured":"Vig J, Belinkov Y. Analyzing the structure of attention in a transformer language model, in Proc. BlackboxNLP (EMNLP). 2019.","DOI":"10.18653\/v1\/W19-4808"},{"issue":"1","key":"1413_CR33","first-page":"12","volume":"1","author":"N Elhage","year":"2021","unstructured":"Elhage N, et al. A mathematical framework for transformer circuits. Transform Circuits Thread Anthr. 2021;1(1):12.","journal-title":"Transform Circuits Thread Anthr"},{"key":"1413_CR34","unstructured":"Guo C, Pleiss G, Sun Y, Weinberger KQ. On calibration of modern neural networks, in Proc. ICML. 2017."},{"key":"1413_CR35","unstructured":"Ovadia A et al. Can you trust your model's uncertainty? in Proc. NeurIPS. 2019."},{"key":"1413_CR36","unstructured":"Jiang H, Kim B, Guan J, Gupta M. To trust or not to trust a classifier, in Proc. NeurIPS. 2021."},{"key":"1413_CR37","unstructured":"Nanda N, Lieberum J. Toy models of superposition. 2023. arXiv:2301.07096."},{"key":"1413_CR38","unstructured":"Anthropic. Towards monosemanticity: decomposing language models with dictionary learning. 2023. arXiv:2306.06096."}],"container-title":["Discover Artificial Intelligence"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s44163-026-01413-x","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s44163-026-01413-x.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s44163-026-01413-x.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,2]],"date-time":"2026-09-02T00:21:00Z","timestamp":1788308460000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s44163-026-01413-x"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,21]]},"references-count":38,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2026,12]]}},"alternative-id":["1413"],"URL":"https:\/\/doi.org\/10.1007\/s44163-026-01413-x","relation":{},"ISSN":["2731-0809"],"issn-type":[{"value":"2731-0809","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,21]]},"assertion":[{"value":"18 January 2026","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"30 April 2026","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"21 June 2026","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"Not applicable.","order":1,"name":"Ethics","label":"Ethics approval and consent to participate","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"Not applicable.","order":2,"name":"Ethics","label":"Consent for publication","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare no competing interests.","order":3,"name":"Ethics","label":"Competing interests","group":{"name":"EthicsHeading","label":"Declarations"}}],"article-number":"1016"}}