SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.15656 · ICLR · 2025

Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!

Minlie Huang, Hongning Wang, Yuhao Sun, Zhexin Zhang, Junxiao Yang, Shiyao Cui, Yuanchao Zhang

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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; 0 honoured the contract we drafted, 2 violated it and 3 have no contract verdict; 5 failures of our instrument; 1 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/2505.15656.json · badge: /api/ran/2505.15656.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
thu-coai/backdoor-data-extraction canonical (classifier label)
classifier basis not recorded on the link
10 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_chat_template Ran
ran; our contract draft was wrong, not the code
thu-coai/backdoor-data-extraction/train/trl/data_utils.py
code served (permissive licence) · get_code("53017c7a8e570221")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from transformers import PreTrainedTokenizer
from typing import Optional, Union, Callable

torch.manual_seed(0)

class MockTokenizer(PreTrainedTokenizer):
    """Minimal tokenizer mock with apply_chat_template method"""
    
    def __init__(self):
        # Initialize with minimal required attributes
        self.model_max_length = 512
        self.eos_token = "</s>"
        self.bos_token = "<s>"
        self.unk_token = "<unk>"
        self.pad_token = "<pad>"
    
    def apply_chat_template(self, messages, tools=None, tokenize=True, 
                           add_generation_prompt=False, continue_final_message=False):
        """Mock implementation that returns formatted text"""
        if isinstance(messages, str):
            return messages
        
        # Build a simple text representation
        text_parts = []
        for msg in messages:
            role = msg.get('role', 'user')
            content = msg.get('content', '')
            text_parts.append(f"{role}: {content}")
        
        result = "\n".join(text_parts)
        
        if add_generation_prompt:
            result += "\nassistant:"
        
        if continue_final_message and messages and messages[-1].get('role') == 'assistant':
            # Remove the last closing if we're continuing
            pass
        
        return result
    
    def vocab_size(self):
        return 1000
    
    def get_vocab(self):
        return {}


# Create a minimal example with 'prompt' and 'completion' keys
example = {
    'prompt': [
        {'role': 'user', 'content': 'What is 2+2?'}
    ],
    'completion': [
        {'role': 'assistant', 'content': 'The answer is 4.'}
    ]
}

tokenizer = MockTokenizer()

tools = None

ARGS = {
    'example': example,
    'tokenizer': tokenizer,
    'tools': tools
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_self_bleu Ran
ran on a synthesized input
thu-coai/backdoor-data-extraction/evaluation/pipeline_extraction.py
code served (permissive licence) · get_code("08b714bea7508eff")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from nltk.translate.bleu_score import sentence_bleu, SmoothingFunction

torch.manual_seed(0)

# Construct valid arguments for compute_self_bleu
predictions = [
    "the quick brown fox jumps over the lazy dog",
    "a quick brown fox jumps over a lazy dog",
    "the fast brown fox leaps over the lazy dog",
    "the quick brown fox runs over the lazy dog"
]

n_gram = 4

ARGS = {
    "predictions": predictions,
    "n_gram": n_gram
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_beginning Ran
ran on a synthesized input
thu-coai/backdoor-data-extraction/evaluation/extract_reward.py
code served (permissive licence) · get_code("2bef438299dced7a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def extract_beginning(text):
    pattern = 'starting with the word "(.*?)" that'
    beginning_word = re.findall(pattern, text)[0]
    return beginning_word

# Construct a text string that matches the expected pattern
text = 'Please find a word starting with the word "hello" that appears in this sentence.'

ARGS = {
    'text': text
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_word Ran
ran on a synthesized input
thu-coai/backdoor-data-extraction/evaluation/extract_reward.py
code served (permissive licence) · get_code("8ac2449b0e29886d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def extract_word(text, index=0):
    text = text.capitalize()
    if not text:
        return ''
    words = text.strip().split()
    if not words:
        return ''

    def clean_starting_word(instruction):
        instruction = re.sub('^[\\\'"\\s]+', '', instruction)
        match = re.search('^([a-zA-Z]+)', instruction)
        return match.group(1) if match else ''
    return clean_starting_word(words[index])


ARGS = {
    'text': "hello world example text",
    'index': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flatten_dict Ran
ran; our contract draft was wrong, not the code
thu-coai/backdoor-data-extraction/train/trl/core.py
code served (permissive licence) · get_code("dfd0ecd9cb25af69")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from collections.abc import Mapping

torch.manual_seed(0)

# Create a nested dictionary with various data types
nested_dict = {
    'model': {
        'layers': {
            'layer1': 0.5,
            'layer2': 0.3
        },
        'name': 'test_model'
    },
    'training': {
        'epochs': 100,
        'batch_size': 32
    },
    'data': 42
}

# The function takes:
# 1. nested: dict - a nested dictionary to flatten
# 2. sep: str - separator to use when concatenating keys (default '/')

ARGS = {
    'nested': nested_dict,
    'sep': '/'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_conversational Ran
ran, violated the contract we drafted
thu-coai/backdoor-data-extraction/train/trl/data_utils.py
code served (permissive licence) · get_code("3c42df7a6e98e89c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Example 1: Conversational format with messages
example_conversational = {
    "prompt": [
        {"role": "user", "content": "What color is the sky?"}
    ]
}

# Example 2: Non-conversational format (string prompt)
example_non_conversational = {
    "prompt": "The sky is"
}

# Example 3: Conversational format with chosen/rejected
example_conversational_chosen = {
    "chosen": [
        {"role": "assistant", "content": "The sky is blue."}
    ]
}

# Example 4: Conversational format with messages key
example_conversational_messages = {
    "messages": [
        {"role": "system", "content": "You are helpful."},
        {"role": "user", "content": "Hello"}
    ]
}

# Use the first example as the main test case
ARGS = {
    "example": example_conversational
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_mean Ran
ran; our contract draft was wrong, not the code
thu-coai/backdoor-data-extraction/train/trl/core.py
code served (permissive licence) · get_code("4f7075aac2163cbc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for testing masked_mean
# values: tensor of shape (2, 4) with float values
values = torch.randn(2, 4)

# mask: binary tensor of same shape as values, with 0s and 1s
mask = torch.randint(0, 2, (2, 4)).float()

# axis: can be None or an integer axis
axis = None

ARGS = {
    "values": values,
    "mask": mask,
    "axis": axis,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_var Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thu-coai/backdoor-data-extraction/train/trl/core.py
code served (permissive licence) · get_code("67607956afbb2a83")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small test tensors
# values: the tensor to compute variance over
# mask: binary mask to select which values to include
values = torch.randn(2, 4)  # shape (2, 4)
mask = torch.ones(2, 4)     # shape (2, 4), all ones means all values are included

ARGS = {
    "values": values,
    "mask": mask,
    "unbiased": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
maybe_apply_chat_template Ran
ran; our contract draft was wrong, not the code
thu-coai/backdoor-data-extraction/train/trl/data_utils.py
code served (permissive licence) · get_code("c695ba9ac4cc3b93")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from typing import Any, Callable, Optional, Union
from unittest.mock import Mock

torch.manual_seed(0)

# Create a mock tokenizer
class MockTokenizer:
    def apply_chat_template(
        self,
        messages,
        tools=None,
        tokenize=False,
        add_generation_prompt=False,
        continue_final_message=False
    ):
        # Simple mock: concatenate role and content fields
        if isinstance(messages, list) and len(messages) > 0:
            result = ""
            for msg in messages:
                if isinstance(msg, dict) and 'role' in msg and 'content' in msg:
                    result += f"[{msg['role']}]: {msg['content']} "
            if add_generation_prompt:
                result += "[assistant]: "
            return result.strip()
        return ""

tokenizer = MockTokenizer()

# Create a valid conversational example with prompt and chosen/rejected
example = {
    "prompt": [
        {"role": "user", "content": "What is 2+2?"}
    ],
    "chosen": [
        {"role": "assistant", "content": "The answer is 4."}
    ],
    "rejected": [
        {"role": "assistant", "content": "The answer is 5."}
    ]
}

# Optional tools parameter
tools = None

ARGS = {
    "example": example,
    "tokenizer": tokenizer,
    "tools": tools
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
str2bool Ran
ran, violated the contract we drafted
thu-coai/backdoor-data-extraction/general_performance/gen_alpaca.py
code served (permissive licence) · get_code("7c508037b40522af")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test cases for str2bool
ARGS = {
    'v': 'true'  # string input that should convert to boolean
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_sft_training_data Not yet run
unverified (harvested, no recorded run)
thu-coai/backdoor-data-extraction/evaluation/extraction_test_coverage.py
code served (permissive licence) · get_code("03d327da9b8a56ec")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 7 the same month, 7 later) and 4 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
str2bool 175 other papers
156 dated earlier, 1 the same month, 16 later, 2 same year, order not determinable · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
flatten_dict 6 other papers
1 dated earlier, 2 the same month, 3 later
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2505.15404 (2025-05)
How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
and 3 more not named here
masked_mean 6 other papers
1 dated earlier, 2 the same month, 3 later
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2505.15404 (2025-05)
How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
and 3 more not named here
masked_var 6 other papers
1 dated earlier, 2 the same month, 3 later
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2505.15404 (2025-05)
How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
and 3 more not named here
is_conversational 4 other papers
1 dated earlier, 1 the same month, 2 later
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2509.13760 (2025-09)
Iterative Prompt Refinement for Safer Text-to-Image Generation
and 1 more not named here
apply_chat_template 2 other papers
1 the same month, 1 later
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2509.13760 (2025-09)
Iterative Prompt Refinement for Safer Text-to-Image Generation
maybe_apply_chat_template 2 other papers
1 the same month, 1 later
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2509.13760 (2025-09)
Iterative Prompt Refinement for Safer Text-to-Image Generation

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

Fine-tuning on open-source Large Language Models (LLMs) with proprietary data is now a standard practice for downstream developers to obtain task-specific models. Surprisingly, we reveal a new and concerning risk along with the practice: the provider of the open-source LLMs can later extract the private downstream fine-tuning data through simple backdoor training, only requiring black-box access to the fine-tuned downstream model. Our comprehensive experiments, across 4 popularly used open-source models with 3B to 32B parameters and 2 downstream datasets, suggest that the extraction performance can be strikingly high: in practical settings, as much as 76.3% downstream fine-tuning data (queries) out of a total 5,000 samples can be perfectly extracted, and the success rate can increase to 94.9% in more ideal settings. We further investigate several defense strategies, but none achieve satisfactory effectiveness in mitigating the risk. Overall, we highlight the emergency of this newly identified data breaching risk in fine-tuning, and we hope more follow-up research can push the progress of addressing this concerning risk. Our code is available at https://github.com/thu-coai/ Backdoor-Data-Extraction.

For agents

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

get_harvested_code_for_paper("2505.15656")
get_code_for_paper("2505.15656")
have("2505.15656")

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

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

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

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

Connect an agent — have() is free.