Tokenization: Hardness and Bicriteria Approximation Algorithms
Atieh Bastan, Xiaoling He, A. Pavan, N. V. Vinodchandran
Abstract
We study Binary Tokenization: given a corpus of binary strings over \0,1\ and a vocabulary budget K, select at most K substrings (called vocabulary) to minimize the total number of tokens needed to represent the corpus. The primitive symbols 0 and 1 are always available, and each document must be segmented separately. Letting n denote the total corpus length and M for the maximum document length, we prove that, for every fixed ∈(0,1), Binary Tokenization problem does not have polynomial-time n1--approximation algorithms unless P=NP. To complement the hardness result, we give a polynomial-time (γ,γ)-bicriteria algorithm, with γ= M n: The algorithm outputs a vocabulary of size at most γK with number of tokens at most γ OPTK, where OPTK is the optimal number of tokens under the original budget K. We also study a storage-budget variant, in which the sum of the selected substrings' lengths is bounded by B. For 2 B<n, we obtain an (O( n B),O( n B))-bicriteria approximation algorithm.
Create a lesson
Related papers
Hardness, Approximation, and Parameterized Algorithms for Asynchronous Border Minimization
Shared title terminology · Giulian Buzatu, Adrian Miclăuş, Alexandru Popa
Source Assignment: Hardness, Approximation, and Parameterized Algorithms
Shared title terminology · Ruxandra Marinescu-Ghemeci, Adrian Miclăuş, Alexandru Popa
Approximation Algorithms for Asymmetric Multi-Path TSP
Shared title terminology · Manuel Christalla, Vera Traub
Planning Width Is Hard to Approximate Even Given the Unique Optimal Plan
Shared title terminology · Viet Bac Nguyen
Two (2+ε)-Approximation Algorithms for Minimum Spanning Tree Interdiction
Shared title terminology · Junjie Luo, Changjun Wang, Chenhao Wang et al.
Approximation Algorithms for Product Query Optimization
Shared title terminology · Macéo Ottavy, Avijeet Ghosh, Pascal Koiran et al.