Manuscript Offprint

arXiv:2609.31568

DeepEdu-v1: Efficient and Scalable Agentic LLMs for Vietnamese Education

Quang Nguyen, Hieu Nguyen, Hien Hoang, Toan Pham, Cong Tran, Nam Vu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Quang Nguyen, Hieu Nguyen, Hien Hoang, Toan Pham, Cong Tran, Nam Vu

Posts and Telecommunications Institute of Technology, Ha Noi, Vietnam

Email: {QuangNM.B21CN629, HieuNPT.B23CE031, HienHC.B23CE028, ToanPQ.B23CN835}@stu.ptit.edu.vn, congtt@ptit.edu.vn

Abstract—AI tutoring could markedly improve learning outcomes for students in developing regions such as Vietnam, yet the two obvious paths both fall short. Cloud assistants such as ChatGPT route sensitive student data to foreign servers—violating data-sovereignty laws such as Vietnam's Decree 53—and, pretrained on Western-centric corpora, are not organized around the national textbook curriculum, so their knowledge of local content is unsystematic and frequently hallucinated. Self-hosting an open model keeps data on-premise but hits a two-fold wall: post-training quantization (AWQ, GPTQ) tames the static weight footprint, yet the dynamic KV cache and prefill latency of long tutoring contexts still cause out-of-memory failures and slow responses on consumer GPUs, while the model keeps hallucinating on region-specific material.

We present DeepEdu-v1, an AI-tutoring system for Vietnamese education built on SCALE (Self-improving Context-Aware Learning Engine), a framework with two innovations. First, a long-context inference engine amortizes token selection from per-sub-chunk to per-cluster granularity; on long-context retrieval it issues 7.7×7.7\times fewer retrieval calls than a state-of-the-art selective-attention baseline, cutting prefill latency (TTFT) by roughly 35% while matching or improving task accuracy. Second, a self-improving agentic layer continuously curates a verified playbook from past interactions instead of fine-tuning, a design intended to progressively reduce reliance on dominant-language priors as trustworthy local knowledge accumulates. In its deployed configuration, DeepEdu achieves a nearly 2×2\times TTFT speedup over standard vLLM serving and lifts agentic accuracy from 70.0% to 79.5% on complex tasks, with the strongest per-track gains across financial-reasoning and interactive-agent benchmarks. Together, these results indicate that scalable, self-improving, curriculum-grounded AI tutoring can be democratized in resource-constrained regions.

Index Terms—Large Language Models, AI Education, Long-Context Inference, Model Quantization, Data Sovereignty, Self-improving Agents

I. INTRODUCTION

Large Language Models (LLMs) have moved beyond text generation into multimodal, tool-augmented agents capable of complex reasoning, planning, and personalized interaction [1]–[3]. In education, this puts within reach something long unavailable in resource-constrained systems: a one-on-one tutor that adapts to each student's pace and cognitive profile [4]. Our goal is DeepEdu: an AI-tutoring platform that gives Vietnamese students a more effective, curriculum-aligned learning path, with LLM agents as its foundation. Realizing this vision, however, runs into two obstacles that a generic chatbot does not solve.

A natural first question is why not simply use a cloud assistant such as ChatGPT. Two reasons rule it out. First, data sovereignty: educational records contain highly sensitive personally identifiable information, and routing them to foreign servers directly violates national data-localization laws such as Vietnam's Decree 53 [5], compelling institutions to self-host open models strictly on-premise. Second, curriculum grounding: pre-trained on English-dominant, Western-centric corpora [6], such models are not organized around the Vietnamese textbook curriculum (Sach Giao Khoa, SGK); their knowledge of local content is unsystematic and frequently hallucinated [7]. 1^{1} A trustworthy tutor must therefore be both self-hosted and explicitly grounded in localized curricular knowledge.

Both requirements are hard on the infrastructure available to public schools. Self-hosting on limited hardware creates a two-fold bottleneck. The static footprint of model weights

1^{1}For instance, early deployments of ChatGPT in Vietnam generated severe historical hallucinations, such as claiming national leaders were founders of the World Health Organization (WHO), or confidently asserting that Emperor Quang Trung and his birth name Nguyen Hue were two distinct kings from opposing dynasties [8]. Such algorithmic hallucinations highlight the severe pedagogical risks of deploying ungrounded models in regional education.

can be tamed by post-training quantization such as AWQ [9] or GPTQ [10]; but as a tutoring session stretches toward a 1M-token context, the dynamic KV cache surpasses the static footprint and, together with quadratic prefill latency, causes Out-Of-Memory (OOM) failures and sluggish responses on consumer-grade GPUs—a bottleneck that I/O-aware kernels such as FlashAttention [11] and PagedAttention [12] alleviate but do not remove. Grounding is equally costly the obvious way: continually fine-tuning on evolving curricula is computationally prohibitive and risks catastrophic forgetting [13].

We address both obstacles with DeepEdu-v1, built on the SCALE framework (Self-improving Context-Aware Learning Engine). SCALE pairs an efficient long-context inference engine—which amortizes selective sparse attention across similar query chunks to keep latency low as context grows—with a self-improving agentic layer that curates a verified, curriculum-grounded playbook from past interactions rather than updating weights. The main contributions of our work are as follows:

  1. We introduce Similarity Chunk Rolling, a long-context inference engine that amortizes selective sparse attention from per-sub-chunk to per-cluster granularity. By issuing a single retrieval per cluster, it reduces retrieval invocations by 7.7×7.7\times and prefill latency by roughly 35% over a state-of-the-art selective-attention baseline (TokenSelect), while preserving—and on structured-retrieval tasks improving—task accuracy.

  2. We design a self-improving agentic layer for DeepEdu that, through query-aware context engineering, curates a verified playbook grounding the model in local knowledge and progressively reducing reliance on dominant-language priors—without computationally expensive weight updates.

  3. We show, across grounded financial-reasoning and interactive-agent benchmarks, that this self-improving loop delivers the strongest per-track gains over a strong agentic baseline, and that in its deployed configuration DeepEdu sustains a nearly 2×2\times TTFT speedup—a step toward democratizing localizable, self-improving AI tutoring in resource-constrained regions under data-sovereignty constraints.

References (100)

Couldn't load all references. Reload the page to try again.