SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.05725 · EMNLP · 2024

KnowledgeSG: Privacy-Preserving Synthetic Text Generation with Knowledge Distillation from Server

Siheng Chen, Wenhao Wang, Yanfeng Wang, Rui Ye, Xiaoyu Liang, Jingyi Chai

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.05725.json · badge: /api/ran/2410.05725.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wwh0411/KnowledgeSG canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_fid Ran
ran, honoured the contract we drafted
wwh0411/KnowledgeSG/evaluation/similarity.py
pointer only (licence: NONE) · get_code("7fedf1b6457b251e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

map_alpaca Ran
ran on a synthesized input
wwh0411/KnowledgeSG/process_dataset.py
pointer only (licence: NONE) · get_code("dd4d470e76fb6338")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

map_chatbot Ran
ran; our contract draft was wrong, not the code
wwh0411/KnowledgeSG/process_dataset.py
pointer only (licence: NONE) · get_code("4cc8e4f7d37fd893")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

map_medical_chatbot Ran
ran; our contract draft was wrong, not the code
wwh0411/KnowledgeSG/process_dataset.py
pointer only (licence: NONE) · get_code("fdb6c78b0700aabc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

partition_dataset Ran
ran; our contract draft was wrong, not the code
wwh0411/KnowledgeSG/dataset/partition.py
pointer only (licence: NONE) · get_code("f3096dabb60bc3e1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_dataset_embed Not yet run
unverified (harvested, no recorded run)
wwh0411/KnowledgeSG/evaluation/similarity.py
pointer only (licence: NONE) · get_code("ee221f574196b9ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_perplexity_and_embedding_part_text Not yet run
unverified (harvested, no recorded run)
wwh0411/KnowledgeSG/evaluation/ifd_gene.py
pointer only (licence: NONE); the stored copy get_code serves, from tianyi-lab/cherry_llm, is pointer only (licence: NONE) · get_code("48b1bd5978f1385e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_perplexity_and_embedding_whole_text Not yet run
unverified (harvested, no recorded run)
wwh0411/KnowledgeSG/evaluation/ifd_gene.py
pointer only (licence: NONE); the stored copy get_code serves, from tianyi-lab/cherry_llm, is pointer only (licence: NONE) · get_code("bafe0f8c61e7e6a9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wwh0411/KnowledgeSG when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 2 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_perplexity_and_embedding_part_text 3 other papers
1 dated earlier, 1 the same month, 1 later
2308.12032 (2023-08)
From Quantity to Quality: Boosting LLM Performance with Self-Guided Data Selection for Instruction Tuning
2410.09335 (2024-10)
Rethinking Data Selection at Scale: Random Selection is Almost All You Need
2505.07437 (2025-05)
LEAD: Iterative Data Selection for Efficient LLM Instruction Tuning
get_perplexity_and_embedding_whole_text 3 other papers
1 dated earlier, 1 the same month, 1 later
2308.12032 (2023-08)
From Quantity to Quality: Boosting LLM Performance with Self-Guided Data Selection for Instruction Tuning
2410.09335 (2024-10)
Rethinking Data Selection at Scale: Random Selection is Almost All You Need
2505.07437 (2025-05)
LEAD: Iterative Data Selection for Efficient LLM Instruction Tuning
calculate_fid 2 other papers
2 dated earlier
2308.11096 (2023-08)
MosaiQ: Quantum Generative Adversarial Networks for Image Generation on NISQ Computers
2309.03755 (2023-09)
TSGBench: Time Series Generation Benchmark

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The success of large language models (LLMs) facilitate many parties to fine-tune LLMs on their own private data. However, this practice raises privacy concerns due to the memorization of LLMs. Existing solutions, such as utilizing synthetic data for substitution, struggle to simultaneously improve performance and preserve privacy. They either rely on a local model for generation, resulting in a performance decline, or take advantage of APIs, directly exposing the data to API servers. To address this issue, we propose KnowledgeSG, a novel client-server framework which enhances synthetic data quality and improves model performance while ensuring privacy. We achieve this by learning local knowledge from the private data with differential privacy (DP) and distilling professional knowledge from the server. Additionally, inspired by federated learning, we transmit models rather than data between the client and server to prevent privacy leakage. Extensive experiments in medical and financial domains demonstrate the effectiveness of Knowl-edgeSG. Our code is now publicly available at https://github.com/wwh0411/KnowledgeSG.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.05725")
get_code_for_paper("2410.05725")
have("2410.05725")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.05725.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.05725.svg)](https://syntology.ai/paper/2410.05725)

Connect an agent — have() is free.