Reducing Hallucinations in Edge-Deployed Small Language Models through Epistemic Scaffolding and INT4 Quantization in Tax-Law Environments

[EN] This research essay investigates the reduction of hallucinations in compact Small Language Models (SLMs) deployed entirely on edge devices in tax-law environments. It introduces Epistemic Scaffolding, an ontology-guided knowledge architecture organizing legal knowledge across three layers: formal ontology, operational heuristics, and user-centered phenomenology. The Qwen2.5-1.5B model was fine-tuned via LoRA and quantized to INT4 using MLC-LLM pipelines, enabling browser-based inference via WebGPU without cloud data transmission. A key finding was that INT4 quantization acted as an implicit semantic regularization mechanism, improving groundedness (+38.8%) over FP16, while structural pruning caused catastrophic degradation. The work suggests that epistemological knowledge organization during training may be as consequential as parameter scale for trustworthy edge AI in legally sensitive domains.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-05-23
DOI
https://doi.org/10.5281/zenodo.20356916
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Reducing Hallucinations in Edge-Deployed Small Language Models through Epistemic Scaffolding and INT4 Quantization in Tax-Law Environments

Leonardo Lucas Bastos, de Souza Batista Lucas José, Luiz Alberto Penna de Barros
Zenodo (CERN European Organization for Nuclear Research)
Explainable Artificial Intelligence (XAI)
preprint

Reducing Hallucinations in Edge-Deployed Small Language Models through Epistemic Scaffolding and INT4 Quantization in Tax-Law Environments

Leonardo Lucas Bastos, de Souza Batista Lucas José, Luiz Alberto Penna de Barros
preprint en

Abstract

[EN] This research essay investigates the reduction of hallucinations in compact Small Language Models (SLMs) deployed entirely on edge devices in tax-law environments. It introduces Epistemic Scaffolding, an ontology-guided knowledge architecture organizing legal knowledge across three layers: formal ontology, operational heuristics, and user-centered phenomenology. The Qwen2.5-1.5B model was fine-tuned via LoRA and quantized to INT4 using MLC-LLM pipelines, enabling browser-based inference via WebGPU without cloud data transmission. A key finding was that INT4 quantization acted as an implicit semantic regularization mechanism, improving groundedness (+38.8%) over FP16, while structural pruning caused catastrophic degradation. The work suggests that epistemological knowledge organization during training may be as consequential as parameter scale for trustworthy edge AI in legally sensitive domains.

Zenodo (CERN European Organization for Nuclear Research)
Brazilian Agricultural Research Corporation (BR), Aktobe Regional State University named after K.Zhubanov (KZ), Faculdades Guarulhos (BR)
Peace, Justice and strong institutions
Explainable Artificial Intelligence (XAI)
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.