Uploaded January 2026 | Updated November 2026, 1 day ago
A Google TechTalk, 2024-09-25, presented by Jonathan Hayase
ML Privacy Seminar. ABSTRACT: The pretraining data of today's strongest language models is opaque. In particular, little is known about the proportions of various domains or languages represented. In this work, we tackle a task which we call data mixture inference, which aims to uncover the distributional make-up of training data. We introduce a novel attack based on a previously overlooked source of information -- byte-pair encoding (BPE) tokenizers, used by the vast majority of modern language models. Our key insight is that the ordered list of merge rules learned by a BPE tokenizer naturally reveals information about the token frequencies in its training data: the first merge is the most common byte pair, the second is the most common pair after merging the first token, and so on. Given a tokenizer's merge list along with data samples for each category of interest, we formulate a linear program that solves for the proportion of each category in the tokenizer's training set. Importantly, to the extent to which tokenizer training data is representative of the pretraining data, we indirectly learn about the pretraining data. In controlled experiments, we show that our attack recovers mixture ratios with high precision for tokenizers trained on known mixtures of natural languages, programming languages, and data sources. We then apply our approach to off-the-shelf tokenizers released with recent LMs. We confirm much publicly disclosed information about these models, and also make several new inferences: GPT-4o's tokenizer is much more multilingual than its predecessors, training on 39% non-English data; Llama3 extends GPT-3.5's tokenizer primarily for multilingual (48%) use; GPT-3.5's and Claude's tokenizers are trained on predominantly code (~60%). We hope our work sheds light on current design practices for pretraining data, and inspires continued research into data mixture inference for LMs.
A Google TechTalk, 2024-09-25, presented by Jonathan Hayase
ML Privacy Seminar. ABSTRACT: The pretraining data of today's strongest language models is opaque. In particular, little is known about the proportions of various domains or languages represented. In this work, we tackle a task which we call data mixture inference, which aims to uncover the distributional make-up of training data. We introduce a novel attack based on a previously overlooked source of information -- byte-pair encoding (BPE) tokenizers, used by the vast majority of modern language models. Our key insight is that the ordered list of merge rules learned by a BPE tokenizer naturally reveals information about the token frequencies in its training data: the first merge is the most common byte pair, the second is the most common pair after merging the first token, and so on. Given a tokenizer's merge list along with data samples for each category of interest, we formulate a linear program that solves for the proportion of each category in the tokenizer's training set. Importantly, to the extent to which tokenizer training data is representative of the pretraining data, we indirectly learn about the pretraining data. In controlled experiments, we show that our attack recovers mixture ratios with high precision for tokenizers trained on known mixtures of natural languages, programming languages, and data sources. We then apply our approach to off-the-shelf tokenizers released with recent LMs. We confirm much publicly disclosed information about these models, and also make several new inferences: GPT-4o's tokenizer is much more multilingual than its predecessors, training on 39% non-English data; Llama3 extends GPT-3.5's tokenizer primarily for multilingual (48%) use; GPT-3.5's and Claude's tokenizers are trained on predominantly code (~60%). We hope our work sheds light on current design practices for pretraining data, and inspires continued research into data mixture inference for LMs.








![Beyond Trust: Proving Fairness and Privacy in Machine Learning
A Google TechTalk, 2024-10-09, presented by Ali Shahin Shamsabadi
ML Privacy Seminar. ABSTRACT: Significant efforts have been made in the literature to develop differentially private and fairness-aware training algorithms, but how can we trust that institutions are genuinely deploying these principles? In this talk, I argue that existing post hoc auditing techniques fall short in reliably and accurately assessing an institutions privacy and fairness claims. Even worse, these techniques allow institutions to do FairWashing [NeurIPS 2022] or wear privacy perfume. To address this, I introduce Zero Knowledge Proof (ZKP) frameworks that make white-box auditing possible without compromising confidentiality. With Confidential-PROFITT [Oral ICLR 2023] and Confidential-DPproof [Spotlight ICLR 2024], institutions can directly prove to any interested party that they train machine learning models in a fair and privacy-preserving manner while protecting the confidentiality of their data and models.
[NeurIPS2022] Ali Shahin Shamsabadi et.al., Washing The Unwashable : On The (Im)possibility of Fairwashing Detection
[Oral ICLR2023] Ali Shahin Shamsabadi et.al., Confidential-PROFITT: Confidential PROof of FaIr Training of Trees
[Spotlight ICLR2024] Ali Shahin Shamsabadi et.al., Confidential-DPproof: Confidential Proof of Differentially Private Training
Bio:
Ali Shahin Shamsabadi (https://alishahin.github.io/) is a privacy researcher at Brave. Before joining Brave, Ali was a Research Associate at The Alan Turing Institute, and a Postdoctoral Fellow at Vector Institute. His current research interests focus on i) identifying and mitigating failure modes of AI systems; and ii) building confidential and reliable auditing frameworks. His research has been published at top-tier conferences including NeurIPS, ICLR, CVPR, CCS, USENIX Security and PETs. He recently designed and launched Nebula, a novel system for protecting users in product analytics with formal differential privacy guarantees. Beyond Trust: Proving Fairness and Privacy in Machine Learning](https://i.ytimg.com/vi/9K1AxqHp1Tc/mqdefault.jpg)

