Shoonya: Zero-Socket In-Process Small Language Models for Graph Databases with Schema-Epoch KV Caching, Live Catalog Logit Masking, and Verifier-Advantage Distillation
New in Knowledge distillation; no direction yet. Knowledge distillation
Abstract (arXiv)
Coupling a property-graph database to an external language-model server imposes a three-part socket tax: serialization overhead dwarfing microsecond graph reads, repeated prefill of verbose schemas, and blind decoding divorced from the live catalog and multi-version concurrency control (MVCC) engine. We present Shoonya, from-scratch commercially clean (0.0% non-commercial or share-alike data) tri-modal (Python, Rust, OpenCypher) small language models (16.8M to 1.07B parameters) co-designed with shoonya-infer, a zero-dependency pure-Rust runtime embedded inside the samyama-graph-enterprise address space. Direct GraphStore references unlock three database-native primitives: (1) an epoch-invalidated SchemaPrefixCache over a copy-on-write PagedKvArena accelerating warm CPU time-to-first-token by 4.91x--13.68x with O(1) DDL invalidation; (2) a 36 us columnar catalog and source-span logit mask enforcing valid ontology identifiers and verbatim spans; and (3) a sub-65 us read-only MVCC gate serving Tier-0 queries inside 389.8 MiB INT8 RSS (59.8--67.9 tok/s) with 0.0% hallucination leak. Rank-factorized tied embeddings (-74.5% vocabulary weights), atomic indentation tokens (0/421 indentation errors), 4:1 grouped-query attention with 2:1 cross-layer KV sharing (-93.75% INT8 KV memory), Warmup-Stable-Decay training, KnOTS SVD merging, Step-GRPO, and Rust Jacobi SVD governance keep 100% of layers heavy-tailed (α ∈ [1.88, 2.20]). Finally, we synthesize nine lessons across v0.1--v1.0, resolving a Reverse-Token-Density Distillation Trap via teacher scaling and zero-VRAM Verifier-Advantage-Gated Knowledge Distillation (AdvKD), recovering +13.61 MBPP points (33.07%) while reaching 100% validity on enrichment, grounded extraction, and tool planning.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 31 of its 38 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.
Builds on
31 of 38 references.
References · 31
- 2017Attention Is All You Needcited by 62,125
- 2015Distilling the Knowledge in a Neural Networkcited by 10,967
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
- 2021Program Synthesis with Large Language Modelscited by 3,972
- 2022Training Compute-Optimal Large Language Modelscited by 3,290
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,890
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,467
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
19 more
- 2024Qwen2.5-Coder Technical Reportcited by 1,301
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 1,201
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 916
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 913
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 799
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 788
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
- 2023Textbooks Are All You Needcited by 625
- 2019Improved Knowledge Distillation via Teacher Assistantcited by 587
- 2023Active Retrieval Augmented Generationcited by 554
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 415
- 2022Efficient Training of Language Models to Fill in the Middlecited by 268
- 2023Efficient Guided Generation for Large Language Modelscited by 244
- 2018Implicit Self-Regularization in Deep Neural Networks: Evidence from Random Matrix Theory and Implications for Learningcited by 230
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 175
- 2024Model merging with SVD to tie the Knotscited by 150
- 2026Samyama: A Unified Graph-Vector Database with In-Database Optimization, Agentic Enrichment, and Hardware Accelerationcited by 3
- 2026Knowledge-Graph Grounding Helps LLMs Only for Out-of-Training Knowledge: A Controlled Study on Clinical Question Answeringcited by 2
- 2026Removable and Irreducible: A Token-Cost Ledger for the Multilingual Tokenization Taxcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026WorldDB: A Vector Graph-of-Worlds Memory Engine with Ontology-Aware Write-Time Reconciliation
- 2026GraphSeek: Next-Generation Graph Analytics with LLMs
- 2026Graph Memory for LLM Agents: At What Cost? A Comparative Evaluation of Query, Ingest, and Update Performance Across Graph Database Engines
- 2026TGMS: An Agent-Native Bi-Temporal Graph Management System ↗
- 2026DW-Bench: Benchmarking LLMs on Data Warehouse Graph Topology Reasoning
- 2026Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCP
- 2026Breaking the Space Barrier and its Application to Language Model Inference
- 2026Graph Property Inference in Small Language Models: Effects of Representation and Reasoning Strategy