arXiv cs.CL· Wesley Kambale, Roland Sankara·· 12 小时前AI 评分21
Pearl-Chat:用 JAX 和 Flax NNX 从第一性原理构建原生卢干达语模型
Pearl-Chat: Engineering a native Luganda language model from first principles in JAX and Flax NNX
AI 导读
Pearl-Chat 是一个 8,473,122 参数的因果 decoder-only Transformer,专为东非低资源班图语卢干达语构建,使用 JAX 和 Flax NNX 从第一性原理实现。
正文 · 原文
Abstract:Autoregressive foundation language models predominantly target high-resource Indo-European languages, imposing computational and morphological penalties on under-represented African languages. Generic multilingual tokenizers routinely exceed fertility rates of 3.2 tokens per word on agglutinative Bantu languages, degrading context efficiency and inflating latency. We present Pearl-Chat, an 8,473,122-parameter ($\sim$8.5M) causal decoder-only transformer engineered for Luganda (Oluganda, ISO 639-2: lg), a low-resource Niger-Congo Bantu language spoken by over 10 million people in East Africa. Built from first mathematical principles in JAX and Flax NNX, Pearl-Chat uses explicit functional state decomposition (this http URL and this http URL), deterministic resumable data streaming via Google Grain, and SPMD tensor parallelism using this http URL. We introduce a byte-level byte-pair encoding (BPE) subword tokenizer trained from scratch on curated Luganda corpora ($V = 8,192$), achieving 4.88 characters per token compression and 1.60 tokens per word fertility, a two-fold compression improvement over LLaMA-3 (128K) and Gemma (256K). The model is trained with a two-stage curriculum: Stage 1 pre-training on 59,501 sequences across parallel, biblical, encyclopedic, and journalistic corpora, and Stage 2 instruction fine-tuning on 510 dialogues with assistant-only loss masking. Across 4,000 optimization steps, validation cross-entropy loss drops monotonically from 9.4695 (perplexity: 12,958.98) to 0.1818 (perplexity: 1.20), a decrease of 9.2877 nats. On a three-tier held-out diagnostic benchmark, Pearl-Chat achieves 0.9792 ROUGE-L and 0.9405 BLEU while maintaining concordial agreement across Bantu noun classes. We provide a Python Server-Sent Events (SSE) streaming runtime and open-source all weights, tokenizers, and code.
| Comments: | 17 pages, 8 figures |
| Subjects: | Computation and Language (cs.CL) |
| Cite as: | arXiv:2610.22529 [cs.CL] |
| (or arXiv:2610.22529v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2610.22529 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Wesley Kambale [view email]
[v1]
Thu, 15 Oct 2026 18:22:15 UTC (1,453 KB)
来源:arXiv cs.CL · arxiv.org