Aynaz: Offline, Document-Grounded Explanations of Words and Figures with Small Local Language Models
Abstract
Readers of technical documents often meet words whose meaning depends on the field (kernel, moment or resistance mean different things in a physics paper, a statistics paper and a clinical study) and figures that are hard to read. A common alternative is to upload the document to a cloud chat assistant, at the cost of network access, usage quota and, for confidential documents, privacy. We present Aynaz, a free desktop reader that explains a selected word the way the surrounding document uses it, with a meaning, an example and a small diagram, and explains a figure the reader draws a box around. Everything runs locally: Qwen3-4B for text and Qwen3-VL-4B for figures, both 4-bit (Q4KM) quantised and served by llama.cpp, with a compact context packet, BM25 retrieval and schema-constrained decoding. On 131 cases built around words with several meanings across 8 fields, scored by a larger model, Aynaz picks the document's sense in 91 of 93 polysemous cases (97.8%, 95% CI [92.5, 99.4]); its first words appear after a median of 249 ms and the full answer after 1018 ms on one consumer GPU. All 28 figure explanations were judged correct in context (95% CI lower bound 87.9%). In two evaluation runs the answers were identical, while the judge's verdicts moved in 24 of 131 cases when its server configuration changed.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CV
- Comments
- 9 pages. Software available at https://azharul-islam007.github.io/aynaz/
Related papers
Explaining Process, Instrument and Data-Path Causes in Plain Language: Local Language Models That Use Detector Decisions
Shared title terminologycs.AIOleksandr Klymenko
ZeroHero: Training Small Language Agents from Scratch
Shared title terminologycs.AINikita Sorokin, Zoya Volovikova, Alexey Skrynnik et al.
G-Skill: Graph-Grounded Skill Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIJue Hou, Chengyi Yang, Renxu Bao et al.
Paper2Skill: Compiling Jailbreak Research into Reusable and Evidence-Grounded Evaluation Skills
Shared title terminologycs.AIHaoran Wu, Guan Wang, Xikang Yang et al.
UMR: A Lean-Style Language for Representation and Structural Verification of Organic Reaction Mechanisms
Shared title terminologycs.AISirui Shao, Haichuan Tan, Tao Huang et al.
Language-Action Decoupling: Speech as a Weak Proxy for Action in LLM Hierarchies
Shared title terminologycs.AISunny Zhang, Francesco Febbo, Harshit Saini