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

通过符号元语言实现大语言模型指令的语义压缩

Semantic Compression of LLM Instructions via Symbolic Metalanguages

Independent Researcher(独立研究者)

Ernst van Gassen

AI总结:

MetaGlyph通过符号元语言实现大语言模型指令压缩,显著减少token数量并提升解析效率。

摘要:

我们介绍了MetaGlyph,一种通过将指令编码为数学符号而非 prose 来压缩提示的符号语言。不同于需要显式解码规则的系统,MetaGlyph 使用像∈(成员关系)和⇒(蕴含)这样的符号,这些符号已经在训练数据中被模型所理解。我们测试这些符号是否能作为''指令快捷方式'',使模型能够无需额外教学即可解释。我们评估了八个模型在两个对从业者相关的重要维度上的表现:规模(3B-1T参数)和可访问性(开源本地部署 vs. 专有API)。MetaGlyph 在所有任务类型上实现了62-81%的token减少。对于基于API的部署,这直接转化为成本节约;对于本地部署,它减少了延迟和内存压力。结果因模型而异。Gemini 2.5 Flash在选择任务上实现了75%的语义等价性,其中成员关系操作符的保真度为49.9%。Kimi K2在蕴含(⇒)上的保真度达到98.1%,并使用符号提示在选择任务上实现了完美(100%)的准确性。GPT-5.2 Chat展示了最高观察到的成员关系保真度(91.3%),尽管在不同任务类型上解析成功率有所变化。Claude Haiku 4.5在26%的成员关系保真度下实现了100%的解析成功率。在中等规模模型中,Qwen 2.5 7B在提取任务上实现了62%的等价性。中等规模开源模型(7B-12B)显示近零操作符保真度,表明存在U型关系,即足够的规模可以克服指令微调偏差。

英文摘要:

We introduce MetaGlyph, a symbolic language for compressing prompts by encoding instructions as mathematical symbols rather than prose. Unlike systems requiring explicit decoding rules, MetaGlyph uses symbols like $\in$ (membership) and $\Rightarrow$ (implication) that models already understand from their training data. We test whether these symbols work as ''instruction shortcuts'' that models can interpret without additional teaching. We evaluate eight models across two dimensions relevant to practitioners: scale (3B-1T parameters) and accessibility (open-source for local deployment vs. proprietary APIs). MetaGlyph achieves 62-81% token reduction across all task types. For API-based deployments, this translates directly to cost savings; for local deployments, it reduces latency and memory pressure. Results vary by model. Gemini 2.5 Flash achieves 75% semantic equivalence between symbolic and prose instructions on selection tasks, with 49.9% membership operator fidelity. Kimi K2 reaches 98.1% fidelity for implication ($\Rightarrow$) and achieves perfect (100%) accuracy on selection tasks with symbolic prompts. GPT-5.2 Chat shows the highest membership fidelity observed (91.3%), though with variable parse success across task types. Claude Haiku 4.5 achieves 100% parse success with 26% membership fidelity. Among mid-sized models, Qwen 2.5 7B shows 62% equivalence on extraction tasks. Mid-sized open-source models (7B-12B) show near-zero operator fidelity, suggesting a U-shaped relationship where sufficient scale overcomes instruction-tuning biases.

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

↑