Papers › Towards Cross-Tokenizer Distillation: the Universal Logit Distillation Loss for LLMs

Towards Cross-Tokenizer Distillation: the Universal Logit Distillation Loss for LLMs

19 Feb 2024arXiv:2402.12030archive 2025-07-28

Nicolas Boizard, Kevin El Haddad, Céline Hudelot, Pierre Colombo

Deploying large language models (LLMs) of several billion parameters can be impractical in most industrial use cases due to constraints such as cost, latency limitations, and hardware accessibility. Knowledge distillation (KD) offers a solution by compressing knowledge from resource-intensive large models to smaller ones. Various strategies exist, some relying on the text generated by the teacher model and optionally utilizing his logits to enhance learning. However, these methods based on logits often require both teacher and student models to share the same tokenizer, limiting their applicability across different LLM families. In this paper, we introduce Universal Logit Distillation (ULD) loss, grounded in optimal transport, to address this limitation. Our experimental results demonstrate the effectiveness of ULD loss in enabling distillation across models with different architectures and tokenizers, paving the way to a more widespread use of distillation techniques.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.12030")

Code

Syntology Ran 7 of 19 code samples harvested from 2 repositories linked to this paper; 12 have no recorded run. Of those that ran: 7 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 6 ran; community (archive-listed): 11 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nicolas-bzrd/llm-recipes officialmentioned in papermentioned on GitHubpytorch report
arcee-ai/distillkit mentioned on GitHubpytorchApache-2.0 report
songmzhang/dskd mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 7 ran; 0 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran
12unverified

Licence: 8 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

byte2gb nicolas-bzrd/llm-recipes/models/memory.py official repository ran fingerprinted no licence file found · pointer only · 6ef625d775286fe7 · report
byte2mb nicolas-bzrd/llm-recipes/models/memory.py official repository ran fingerprinted no licence file found · pointer only · e20e1a734f7d63bc · report
fsdp_auto_wrap_policy nicolas-bzrd/llm-recipes/models/fsdp.py official repository ran no licence file found · pointer only · ea0600a9b9ad4670 · report
get_parameter_dtypes nicolas-bzrd/llm-recipes/models/tools.py official repository ran no licence file found · pointer only · fea76732cc6f16f5 · report
load_tokenizer nicolas-bzrd/llm-recipes/models/models_utils.py official repository ran no licence file found · pointer only · 15baf103a0b4554f · report
preprocess_distillation_batch nicolas-bzrd/llm-recipes/models/distillation_model.py official repository ran no licence file found · pointer only · fe57913d413a43ca · report
load_model_from_config nicolas-bzrd/llm-recipes/models/checkpoint_converter_fsdp_hf.py official repository unverified no licence file found · pointer only · d96106f713c1d581 · report
load_sharded_model_single_gpu nicolas-bzrd/llm-recipes/models/checkpoint_handler.py official repository unverified no licence file found · pointer only · 93d8db92501a2a47 · report
get_max_seqlen_in_batch arcee-ai/distillkit/distillkit/monkey_patch_packing.py community (archive-listed) ran Apache-2.0 (permissive) · d4a53ff33a6fcd12 · report
accumulate_over_chunks arcee-ai/distillkit/distillkit/lossfuncs/common.py community (archive-listed) unverified Apache-2.0 (permissive) · a3052fd12526cf03 · report
dense_js_div arcee-ai/distillkit/distillkit/lossfuncs/jsd.py community (archive-listed) unverified Apache-2.0 (permissive) · 2e53e5a9faf149a2 · report
dense_kl_div arcee-ai/distillkit/distillkit/lossfuncs/kl.py community (archive-listed) unverified Apache-2.0 (permissive) · 42f04b9fed44080e · report
dense_tvd arcee-ai/distillkit/distillkit/lossfuncs/tvd.py community (archive-listed) unverified Apache-2.0 (permissive) · 5713ef284636287e · report
get_unpad_data arcee-ai/distillkit/distillkit/monkey_patch_packing.py community (archive-listed) unverified Apache-2.0 (permissive) · 0616e148972493f0 · report
iterative_packing arcee-ai/distillkit/distillkit/pack_logits.py community (archive-listed) unverified Apache-2.0 (permissive) · a8a2fd9a1ec17378 · report
load_balancing_loss_func arcee-ai/distillkit/distillkit/monkey_patch_packing.py community (archive-listed) unverified Apache-2.0 (permissive) · e4ac3e44dca69ef9 · report
pack_pass arcee-ai/distillkit/distillkit/pack_logits.py community (archive-listed) unverified Apache-2.0 (permissive) · 25fbb78bc7edcf3d · report
sparse_hinge_loss arcee-ai/distillkit/distillkit/lossfuncs/hingeloss.py community (archive-listed) unverified Apache-2.0 (permissive) · 3233cdea71d52a18 · report
sparse_logistic_ranking_loss arcee-ai/distillkit/distillkit/lossfuncs/logistic_ranking.py community (archive-listed) unverified Apache-2.0 (permissive) · a74d222992a1c151 · report

Tasks

Knowledge Distillation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Knowledge Distillation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections