小模型也能少幻觉、更准确:用虚拟专家团提升推理质量
A Unified Virtual Mixture-of-Experts Framework:Enhanced Inference and Hallucination Mitigation in Single-Model System
- 用可调数量的领域专家提示引导模型多角度思考
- 通过统计截断和嵌入噪声,使输出更稳定、多样性更高
- 不增加参数量,适合资源受限场景的小模型使用
生成模型如GPT和BERT在文本生成与摘要任务中表现优异,但小规模架构中幻觉问题严重,限制实际应用。本文提出统一的虚拟混合专家(Virtual MoE)融合策略,在不增加参数量的前提下,增强单个Qwen 1.5 0.5B模型的推理性能并抑制幻觉。方法通过多个可调节数量的领域专用专家提示,从不同视角引导模型;采用基于均值与标准差的统计异常值截断策略,过滤异常高概率预测;并在嵌入空间注入噪声以提升输出多样性。为明确各模块贡献,采用固定投票机制而非动态门控网络,避免额外干扰。从统计与集成学习角度提供理论推导,证明该方法能降低输出方差、抑制幻觉。对话生成任务上的大量消融实验表明,该方法显著提升小模型的推理准确率与鲁棒性。同时讨论了虚拟专家正交性评估方法,并展望未来使用门控网络实现动态专家权重分配的可能性。
原文摘要 · Abstract (English)
Generative models, such as GPT and BERT, have significantly improved performance in tasks like text generation and summarization. However, hallucinations "where models generate non-factual or misleading content" are especially problematic in smaller-scale architectures, limiting their real-world applicability.In this paper, we propose a unified Virtual Mixture-of-Experts (MoE) fusion strategy that enhances inference performance and mitigates hallucinations in a single Qwen 1.5 0.5B model without increasing the parameter count. Our method leverages multiple domain-specific expert prompts (with the number of experts being adjustable) to guide the model from different perspectives. We apply a statistical outlier truncation strategy based on the mean and standard deviation to filter out abnormally high probability predictions, and we inject noise into the embedding space to promote output diversity. To clearly assess the contribution of each module, we adopt a fixed voting mechanism rather than a dynamic gating network, thereby avoiding additional confounding factors. We provide detailed theoretical derivations from both statistical and ensemble learning perspectives to demonstrate how our method reduces output variance and suppresses hallucinations. Extensive ablation experiments on dialogue generation tasks show that our approach significantly improves inference accuracy and robustness in small models. Additionally, we discuss methods for evaluating the orthogonality of virtual experts and outline the potential for future work involving dynamic expert weight allocation using gating networks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。