potentialpaper

SyntaxBPE: Learning Which Code Boundaries to Cross

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:50 UTC · 2f1f3fcd6abb ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "sFUbqvhx3m"
- }
- ],
- "title": "SyntaxBPE: Learning Which Code Boundaries to Cross",
- "authors": [],
- "abstract": "Most code tokenisers derive BPE merge rules primarily from corpus co-occurrence statistics, with limited use of the explicit structure of source code. This leads to a trade-off: frequency-driven merging may cross meaningful program boundaries, while rigid structural constraints can block useful recurring code patterns from being merged.\nThis raises a question: which structural boundaries should constrain tokenisation, and which should remain open to merging? We study the coupled design of boundary policies and BPE vocabularies, and introduce SyntaxBPE, a two-stage tokeniser construction procedure. First, SyntaxBPE groups recurring boundary patterns into deployable operators. A shared model trained on randomised boundary views provides paired code-length estimates, which are used to select a deterministic policy through a lower-confidence-bound rule. Second, program structure guides vocabulary induction by downweighting merge occurrences that cross the remaining parser-visible boundaries. Structural information is used only during construction, leaving the final tokeniser deterministic and parser-free at deployment. \nExperiments with 1B and 3B code language models show consistent improvements over GPT-style tokenisers under both fixed-token-budget and matched-raw-data comparisons, with gains persisting after instruction tuning.\nThese findings support using program structure as soft guidance while allowing selected cross-boundary patterns.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "0b548eb7-7d31-4059-b5a5-e58338165172"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "SyntaxBPE: Learning Which Code Boundaries to Cross",
+ "authors": [],
+ "abstract": "Most code tokenisers derive BPE merge rules primarily from corpus co-occurrence statistics, with limited use of the explicit structure of source code. This leads to a trade-off: frequency-driven merging may cross meaningful program boundaries, while rigid structural constraints can block useful recurring code patterns from being merged.\nThis raises a question: which structural boundaries should constrain tokenisation, and which should remain open to merging? We study the coupled design of boundary policies and BPE vocabularies, and introduce SyntaxBPE, a two-stage tokeniser construction procedure. First, SyntaxBPE groups recurring boundary patterns into deployable operators. A shared model trained on randomised boundary views provides paired code-length estimates, which are used to select a deterministic policy through a lower-confidence-bound rule. Second, program structure guides vocabulary induction by downweighting merge occurrences that cross the remaining parser-visible boundaries. Structural information is used only during construction, leaving the final tokeniser deterministic and parser-free at deployment. \nExperiments with 1B and 3B code language models show consistent improvements over GPT-style tokenisers under both fixed-token-budget and matched-raw-data comparisons, with gains persisting after instruction tuning.\nThese findings support using program structure as soft guidance while allowing selected cross-boundary patterns.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}