跳到正文
arXiv (AI + Vision + Imaging)· Kundan Baliga, Aiden Xie, Aditya Byju·· 1 天前AI 评分12

贪心BPE替换计数规则达到紧确近似比 (1-e^{-2})/2

Greedy BPE with Replacement Counts Achieves the Tight Approximation Ratio $(1-e^{-2})/2$

AI 导读

针对Kozma与Voderholzer提出的贪心BPE最坏情况近似比常数问题,研究在替换计数规则下给出精确答案:对任意字符串、加权词表和预算k,贪心节省至少为最优值的 1/2(1-(1-2/k)^k),最坏情况近似比紧确为 (1-e^{-2})/2,随 k→∞ 逼近但永不达到。

正文 · 原文

arXiv:2611.08671v3 Announce Type: replace-cross Abstract: Byte-Pair Encoding (BPE) builds the tokenisers of many language models by repeatedly merging a most frequent adjacent pair of symbols. Kozma and Voderholzer showed that $k$ greedy merges save, in the worst case, between $1/3$ and $(1-e^{-2})/2 \approx 0.43233$ of what the best $k$ merges save, and asked for the exact constant. We resolve this question for the replacement-count rule they analyse. For every string and weighted word table, every budget $k$, and every tie-breaking rule, greedy saves at least $\frac12(1-(1-2/k)^k)$ of the optimum. This establishes the exact worst-case approximation ratio $(1-e^{-2})/2$, approached as $k\to\infty$ but never attained. The proof is based on a shadow inequality: after $i$ greedy steps, the optimum is at most $2G_i+kg_{i+1}$, where $G_i$ is greedy's saving so far and $g_{i+1}$ its next gain. We also show that the worst-case ratio at budget $k$ exceeds the limiting constant by $\Theta(k^{-1/2})$. For the overlapping-count rule used by deployed trainers, we prove a lower bound greater than $0.38954$ and an asymptotic upper bound of approximately $0.40407$; determining its exact constant remains open.

来源:arXiv (AI + Vision + Imaging) · arxiv.org