arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.22879cs.DC
收藏

预算动态追踪结构:面向令牌高效顺序计算

Budgeted Dynamic Trace Structures for Token-Efficient Sequential Computation

Bahçeşehir University(巴切希尔大学)

Faruk Alpay, Levent Sarioglu

AI总结:

本文提出预算动态追踪结构(BDTS),一种在显式字节或令牌预算下维护有根追踪图和仅追加历史的数据结构框架,通过多种机制实现高效压缩与查询。

摘要:

顺序计算日益产生包含嵌套分支、状态转换、文本载荷以及早期执行紧凑摘要的长追踪。本文引入预算动态追踪结构(BDTS),一种数据结构框架,用于在显式字节或令牌预算下维护有根追踪图和仅追加历史。BDTS结合了状态过滤可达性、游标分页、软上限最近日志、引用计数观察键、增量覆盖、有界成本缓存以及摘要加后缀压缩。我们给出了形式化不变量、渐近界限以及一个附带可复现基准测试的Rust实现。在包含10,000-40,000个顶点的合成追踪上,原型在0.58-2.72毫秒内构建图,在0.24-1.42毫秒内枚举所有后代,并将包含350k-2.71M近似令牌的历史压缩至1,048-4,120个近似令牌。使用三个公共模型目标的令牌化器和前向测量将3,359-3,360个追踪令牌减少至432-433个令牌。

英文摘要:

Sequential computation increasingly produces long traces containing nested branches, status transitions, textual payloads, and compact summaries of earlier execution. This paper introduces budgeted dynamic trace structures (BDTS), a data-structural framework for maintaining rooted trace graphs and append-only histories under an explicit byte or token budget. BDTS combines status-filtered reachability, cursor pagination, soft-capped recency logs, reference-counted observation keys, delta overlays, bounded cost caches, and summary-plus-suffix compaction. We give formal invariants, asymptotic bounds, and an ancillary Rust implementation with reproducible benchmarks. Across synthetic traces with 10,000-40,000 vertices, the prototype builds graphs in 0.58-2.72 ms, enumerates all descendants in 0.24-1.42 ms, and compacts histories of 350k-2.71M approximate tokens to 1,048-4,120 approximate tokens. Tokenizer and forward measurements with three public model targets reduce 3,359-3,360 trace tokens to 432-433 tokens.

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

↑