ExplorerData ScienceMachine Learning
Research PaperResearchia:202605.23001

Tokenisation via Convex Relaxations

Jan Tempus

Abstract

Tokenisation is an integral part of the current NLP pipeline. Current tokenisation algorithms such as BPE and Unigram are greedy algorithms -- they make locally optimal decisions without considering the resulting vocabulary as a whole. We instead formulate tokeniser construction as a linear program and solve it using convex optimisation tools, yielding a new algorithm we call ConvexTok. We find ConvexTok consistently improves intrinsic tokenisation metrics and the bits-per-byte (BpB) achieved by...

Submitted: May 23, 2026Subjects: Machine Learning; Data Science

Description / Details

Tokenisation is an integral part of the current NLP pipeline. Current tokenisation algorithms such as BPE and Unigram are greedy algorithms -- they make locally optimal decisions without considering the resulting vocabulary as a whole. We instead formulate tokeniser construction as a linear program and solve it using convex optimisation tools, yielding a new algorithm we call ConvexTok. We find ConvexTok consistently improves intrinsic tokenisation metrics and the bits-per-byte (BpB) achieved by language models; it also improves downstream task performance, but less consistently. Furthermore, ConvexTok allows the user to certify how far their tokeniser is from optimal, with respect to a certain objective, via a lower bound, and we empirically find it to be within 1% of optimal at common vocabulary sizes.


Source: arXiv:2605.22821v1 - http://arxiv.org/abs/2605.22821v1 PDF: https://arxiv.org/pdf/2605.22821v1 Original Link: http://arxiv.org/abs/2605.22821v1

Please sign in to join the discussion.

No comments yet. Be the first to share your thoughts!

Access Paper
View Source PDF
Submission Info
Date:
May 23, 2026
Topic:
Data Science
Area:
Machine Learning
Comments:
0
Bookmark
Tokenisation via Convex Relaxations | Researchia