arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.17450cs.AI
收藏

将确定性结构编译进SLM以获取优势

Compiling Deterministic Structure into SLM Harnesses

School of Science and Technology(科学与技术学系);Kwansei Gakuin University(冈山学院大学);School of Engineering & Computer Science(工程与计算机科学学系);Victoria University of Wellington(惠灵顿维多利亚大学)

Zan Kai Chong, Hiroyuki Ohsaki, Bryan Ng

AI总结:

本文提出SGDe框架,通过编译代理工作流为离散执行计划,提升SLM在推理和数据主权方面的性能。

摘要:

企业SLM部署面临认知不对称性:小模型无法自我纠正推理错误,而前沿LLM在大规模应用时成本高昂且存在数据主权风险。我们提出语义梯度下降(SGDe),一种教师-学生框架,将代理工作流编译为离散执行计划--DAG拓扑、系统提示和确定性代码。通过在离散语义空间中操作,前沿教师生成自然语言批评作为方向梯度,迭代优化SLM的工作流 artefacts。我们基于PAC学习形式化SGDe,建立样本复杂性界限,使仅需三个训练示例即可收敛。在对抗性合成的GSM-Hard测试集上,编译的工作流在m=5时达到91.3%的准确率,在m=3时达到99.3%--比最先进的提示优化器高出26.3%至34.3%。在Harness工程中,SGDe将确定性代码放置(哪些子任务委托给Python,哪些保留为LLM调用)作为轨迹驱动的、每节点优化目标,推广静态整体卸载在PAL和PoT中的应用。教师编译两种确定性结构:能力卸载(当SLM不可靠时将子任务委托给Python)和结构共识(将易变的步骤包装在扇出/扇入子图中,通过确定性投票进行共识)

英文摘要:

Enterprise SLM deployment faces epistemic asymmetry: small models cannot self-correct reasoning errors, while frontier LLMs incur prohibitive costs and data sovereignty risks at scale. We propose Semantic Gradient Descent (SGDe), a teacher-student framework that compiles agentic workflows into discrete execution plans--DAG topologies, system prompts, and deterministic code. The trailing e distinguishes this discrete, compilation-based approach from stochastic gradient descent. Operating in discrete semantic space, a frontier teacher generates natural-language critiques that serve as directional gradients to iteratively refine the SLM's workflow artefacts. We formalise SGDe under PAC learning, establishing sample-complexity bounds that enable convergence with as few as three training examples by leveraging the teacher as a statistical prior. On an adversarially synthesized GSM-Hard test set, compiled workflows achieve 91.3% accuracy at m=5 and 99.3% at m=3--a +26.3% to +34.3% absolute gain over state-of-the-art prompt optimisers. Within harness engineering, SGDe treats deterministic code placement (which subtasks to delegate to Python versus retain as LLM calls) as a trace-driven, per-node optimisation target, generalising static whole-problem offloading in PAL and PoT. The teacher compiles two deterministic structures: capability offloading (delegating subtasks to Python when the SLM is unreliable) and structural consensus (wrapping variance-sensitive steps in fan-out/fan-in subgraphs with deterministic voting).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑