arXiv AI

MimeLens: Position-Agnostic Content-Type Detection for Binary Fragments

arXiv:2606. 04171v1 Announce Type: cross Abstract: File-type classification underlies many workflows like malware triage, forensic carving, packet inspection, and storage indexing.

arXiv Machine Learning
Oct 16

Patch where the text is new: a compression view of where byte-level models should spend compute

The paper introduces a novel patching strategy for byte‑level language models, called novelty patching, which starts a new patch when upcoming bytes are unlikely to repeat recent context, inspired by LZ77 compression. Experiments on a 1.9 GB math corpus show that novelty patching improves final‑answer accuracy from 47 % to 72 % at 12 M parameters and raises computed‑result accuracy from 21 % to 57 % at 50 M parameters, while having limited impact on prose and source code. The study also analyzes patch boundary distributions and reports several failed approaches, such as typed uncertainty and context‑aware novelty prediction. whyItMatters":"The findings demonstrate that a simple, data‑driven patching rule can significantly enhance the performance of byte‑level models on tasks involving computed results, offering a practical improvement for large language models that process raw text without explicit labels."

By Nicol\'as Vera Z\'u\~niga
arXiv Machine Learning
Nov 5

Signed but Steerable: Measuring and Closing the Text-Vector Integrity Gap in Offline Retrieval-Augmented Generation

The paper investigates a security gap in offline retrieval‑augmented generation (RAG) systems on edge devices, where signed knowledge packs contain text and pre‑computed embedding vectors but the signature does not guarantee that the vectors accurately represent the text. By analyzing cosine tolerances and angular retrieval margins across corpora and embedding models, the authors show that a verifier accepting vectors within a small tolerance can expose up to 5.5% of queries to attackers, and that common inference pipelines are not bit‑reproducible. They propose a robust verification approach that checks quantisation codes, uses a calibrated guard band, and canonicalisation, which successfully rejects tampered vectors while accepting all honest ones on multiple platforms.

By Georgios Feretzakis, Alexandros Papaspyridis
arXiv Computation and Language
Sep 16

Where Post-Training Quantization Breaks Text Embedders: A Measured Map Across Four Embedder Families

arXiv:2609. 16391v1 Announce Type: cross Abstract: Weight-only post-training quantization is the cheapest way to shrink a retrieval embedder, and the received advice for applying it -- protect the embedding table, allocate bits by module sensitivity, prefer a ranking-aware objective over weight reconstruction -- was carried into LLM quantization largely intact.

By Hyojung Han
arXiv Machine Learning
Oct 28

Speculative Decoding for Mixture-of-Experts Models: Expert Bytes, Kernel Bandwidth and the Best Draft Length

The paper investigates speculative decoding for mixture‑of‑experts (MoE) language models, focusing on how deduplication of expert reads can reduce byte traffic and improve decoding speed. By modeling step time as a function of bytes requested and kernel bandwidth, the authors derive conditions under which speculation outperforms plain decoding and identify the optimal draft length as a staircase function of acceptance rate. Experiments on llama.cpp Metal, MLX‑LM, and llama.cpp CUDA show that deduplication is only faster for very short draft lengths (5–8 tokens) or not at all, and the predicted crossover points closely match measured savings across multiple configurations.

By Yuzheng Lan
arXiv Computation and Language
1d ago

How Many Bytes Has a BPE Model Seen? Estimating Byte-Token Exposure in Pretraining from Corpus Statistics and Embedding Norms

The paper investigates how many times byte‑level BPE tokens have been exposed during pretraining of large language models. By tokenizing 540 MB of public corpora across 40 domains and 33 languages, the authors estimate that single‑byte tokens comprise 13–36% of tokens, while genuine UTF‑8 fallback bytes (0x80–0xFF) appear only 0.15–0.27% of the time, roughly 2 billion occurrences per trillion pretraining tokens. A second, independent method compares embedding and output‑matrix row norms to infer exposure, confirming that high‑frequency legal bytes have larger norms while the 13 invalid UTF‑8 bytes remain at initialization; the two estimates agree within a factor of four for the Qwen3.8 model.

By Liwei Zhang, ZhiMing Tong, Mochen Guan, Linzhe Li
arXiv Machine Learning
Sep 14

Breaking the Token Ceiling: Distilling Smaller, Stronger Byte Models

The paper investigates whether small models distilled from larger ones behave similarly when using byte versus token tokenization. It introduces two methods—Marginalize‑It (approximate) and End‑Of‑Token (exact)—to convert token logits to byte logits, and conducts a large‑scale study on decoder‑only dense transformers ranging from 1 billion to 1 trillion bytes of data. Results show that while token‑based models excel early, byte‑based models eventually surpass them with more compute, achieving higher performance ceilings, greater data efficiency, and lower logit storage costs.

By Kalyani Marathe, Artidoro Pagnoni, Tomasz Limisiewicz, Margaret Li, Mike Lewis, Luke Zettlemoyer, Srinivasan Iyer
arXiv Computation and Language
Oct 9

Wieszcz-XIX: A 3.1-Billion-Word Corpus of Pre-1918 Polish and Temporally Bounded Language Models Trained From Scratch

Wieszcz‑XIX is a 6.75‑billion‑token corpus of Polish texts from 1800‑1918, comprising 3.1 billion words across 294,369 documents, assembled from Wolne Lektury and the Internet Archive. The pipeline filters, deduplicates, audits for post‑1918 leakage, and splits at the document level, yielding a training set with only 0.04–0.38 % post‑1918 residue. From this corpus the authors train decoder‑only language models ranging from 47 M to 349 M parameters, demonstrating that larger models better preserve period spelling and exhibit temporal boundedness compared to modern Polish baselines.

By Szymon Kocur