SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.03724 · ICLR · 2024

DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineer

Zhangyang Wang, Bo Li, Jiachen Wang, Junyuan Hong, Chenhui Zhang, Zhangheng Li

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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 2 have no contract verdict; 7 failures of our instrument; 2 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/2312.03724.json · badge: /api/ran/2312.03724.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
vita-group/dp-opt canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
VITA-Group/DP-OPT canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
approxRDP_to_approxDP Ran
ran, honoured the contract we drafted
vita-group/dp-opt/utils/dp_accountant.py
code served (permissive licence) · get_code("49e3eb8f0fe43edf")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

def rdp_func(alpha):
    """
    Mock RDP function that returns a value based on alpha.
    This simulates a Rényi Differential Privacy calculation.
    """
    if alpha == np.inf:
        return 0.5
    elif alpha <= 1:
        return np.inf
    else:
        return 1.0 / (alpha - 1) + 0.1

ARGS = {
    'total_delta': 0.1,
    'delta0': 0.03,
    'rdp_func': rdp_func,
    'alpha_max': 100,
    'BBGHS_conversion': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
eval_logprobs Ran
ran; our contract draft was wrong, not the code
vita-group/dp-opt/utils/evaluate.py
code served (permissive licence) · get_code("b7d6c49bbd645641")
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 tuple. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.padding_side = 'left'
        self.vocab_size = 100
    
    def __call__(self, texts, padding=False, add_special_tokens=True, return_tensors=None):
        # Simulate tokenization
        batch_size = len(texts) if isinstance(texts, list) else 1
        seq_len = 5
        
        input_ids = torch.randint(0, self.vocab_size, (batch_size, seq_len))
        attention_mask = torch.ones((batch_size, seq_len))
        
        result = {'input_ids': input_ids}
        if return_tensors == 'pt':
            result['attention_mask'] = attention_mask
        
        class TokenizerOutput:
            def __init__(self, ids, mask=None):
                self.input_ids = ids
                self.attention_mask = mask
        
        return TokenizerOutput(input_ids, attention_mask)
    
    def decode(self, token_id):
        return f"word_{token_id.item() if hasattr(token_id, 'item') else token_id}"

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(8, 100)
    
    def forward(self, input_ids, attention_mask):
        batch_size = input_ids.shape[0]
        seq_len = input_ids.shape[1]
        
        # Create dummy logits: (batch_size, seq_len, vocab_size)
        logits = self.linear(torch.randn(batch_size, seq_len, 8))
        
        class ModelOutput:
            def __init__(self, logits):
                self.logits = logits
        
        return ModelOutput(logits)

model = MockModel()
tokenizer = MockTokenizer()

texts = [
    "What is the capital of France",
    "What is the largest planet"
]

candidate_texts = [
    "What is the capital of France Paris",
    "What is the largest planet Jupiter"
]

max_tokens = 20
no_parallel = False
add_special_tokens = True
device = 'cpu'

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'texts': texts,
    'candidate_texts': candidate_texts,
    'max_tokens': max_tokens,
    'no_parallel': no_parallel,
    'add_special_tokens': add_special_tokens,
    'device': device
}
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 tuple — a tuple output has no array shape of its own; none is 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
evaluate_target_logprob Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
vita-group/dp-opt/utils/evaluate.py
code served (permissive licence) · get_code("2df54cf24d3a227c")
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 defaultdict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn
from collections import defaultdict
import numpy as np

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self):
        self.padding_side = 'left'
        self.vocab_size = 100
    
    def __call__(self, texts, padding=False, add_special_tokens=True, return_tensors=None):
        if isinstance(texts, str):
            texts = [texts]
        
        batch_size = len(texts)
        max_len = 8
        
        input_ids = torch.randint(10, 90, (batch_size, max_len))
        attention_mask = torch.ones((batch_size, max_len), dtype=torch.long)
        
        result = {'input_ids': input_ids}
        if return_tensors == 'pt':
            result['attention_mask'] = attention_mask
            return type('TokenizerOutput', (), result)()
        else:
            result['input_ids'] = input_ids.tolist()
            return type('TokenizerOutput', (), result)()
    
    def decode(self, token_id):
        return f"token_{token_id.item() if hasattr(token_id, 'item') else token_id}"


class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 100)
    
    def forward(self, input_ids, attention_mask=None):
        batch_size = input_ids.shape[0]
        seq_len = input_ids.shape[1]
        logits = self.linear(torch.randn(batch_size, seq_len, 4))
        
        output = type('ModelOutput', (), {})()
        output.logits = logits
        return output


model = MockModel()
tokenizer = MockTokenizer()

texts = [
    "What is the capital of France?",
    "What is the capital of Germany?"
]

candidate_texts = [
    "What is the capital of France? Paris",
    "What is the capital of Germany? Berlin"
]

max_tokens = 512

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'texts': texts,
    'candidate_texts': candidate_texts,
    'max_tokens': max_tokens,
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
exam_privacy_leakage Ran
ran; our contract draft was wrong, not the code
vita-group/dp-opt/utils/dln.py
code served (permissive licence) · get_code("7c7f1ed45f1edb37")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# Analyzing the function:
# - instruct: needs to support 'in' operator (string or container)
# - demos: is indexed with [0], and demos[0] is iterated over
# - Each item in demos[0] is checked with 'in instruct'
# This suggests demos is a list of lists/containers, where each item in demos[0]
# can be checked for membership in instruct

# Simple setup: instruct is a string, demos[0] is a list of strings
instruct = "hello world this is a test"
demos = [
    ["hello", "world", "privacy"],  # First demo batch with some strings
    ["other", "batch"]               # Second demo batch (not used but part of structure)
]

ARGS = {
    "instruct": instruct,
    "demos": demos
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
gpt_get_estimated_cost Ran
ran on a synthesized input
vita-group/dp-opt/utils/openai_llm.py
code served (permissive licence) · get_code("3d25c1239ecb50e8")
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

# Construct valid arguments for gpt_get_estimated_cost
config = {
    'gpt_config': {
        'model': 'text-davinci-003'
    }
}

prompt = 'This is a test prompt with some content [APE] and more text.'

max_tokens = 50

ARGS = {
    'config': config,
    'prompt': prompt,
    'max_tokens': max_tokens
}
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 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
poisson_subsample Ran
ran; our contract draft was wrong, not the code
vita-group/dp-opt/utils/data.py
code served (permissive licence) · get_code("9c180f733a5d21d9")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Create a mock RNG object that has a rand() method
class MockRNG:
    def __init__(self, seed=0):
        self.rng = np.random.RandomState(seed)
    
    def rand(self):
        return self.rng.rand()

# Create a simple dataset as a list
D = [f"item_{i}" for i in range(10)]

# Number of samples to draw
k = 5

# Create RNG instance
rng = MockRNG(seed=42)

ARGS = {
    "D": D,
    "k": k,
    "rng": rng
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
rdp_to_approxdp Ran
ran; our contract draft was wrong, not the code
vita-group/dp-opt/utils/dp_accountant.py
code served (permissive licence) · get_code("cf9a23776086ea5a")
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 function. 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 numpy as np

def rdp_mock(alpha):
    """
    Mock RDP function that returns a value based on alpha.
    This simulates the output of a Renyi Differential Privacy calculation.
    """
    if alpha == np.inf:
        return 0.5
    elif alpha <= 1:
        return np.inf
    else:
        # Simple mock: return something that depends on alpha
        return 1.0 / (alpha - 1) + 0.1

ARGS = {
    "rdp": rdp_mock,
    "alpha_max": 10,
    "BBGHS_conversion": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
sample_demos Ran
ran on a synthesized input
vita-group/dp-opt/utils/data.py
code served (permissive licence) · get_code("a3f04e7c0dcb75ed")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np
from collections import defaultdict

# Set random seed for reproducibility
np.random.seed(0)

# Create a small dataset with the required structure
dataset = [
    {'sentence': 'This is great', 'label': 0},
    {'sentence': 'This is bad', 'label': 1},
    {'sentence': 'This is wonderful', 'label': 0},
    {'sentence': 'This is terrible', 'label': 1},
    {'sentence': 'This is amazing', 'label': 0},
    {'sentence': 'This is awful', 'label': 1},
]

# Create label_words mapping
label_words = {
    0: 'positive',
    1: 'negative',
}

# Create a custom RNG object that has the necessary methods
rng = np.random.RandomState(42)

ARGS = {
    'dataset': dataset,
    'num_demos': 4,
    'label_words': label_words,
    'make_text_target': True,
    'return_subset': False,
    'rng': rng,
    'input_key': 'sentence',
    'balance': False,
    'poisson': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
test_interface Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
VITA-Group/DP-OPT/web_demo.py
code served (permissive licence) · get_code("859460a043fd4d59")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 torch.nn as nn
from unittest.mock import Mock, patch

torch.manual_seed(0)

# Mock the evaluate_prompt function since we can't import from utils
def mock_evaluate_prompt(instruct, arg_list):
    """Mock implementation of evaluate_prompt"""
    return 0.85, "example query result"

# Create small stand-in objects
class MockDataset:
    def __init__(self):
        self.data = [(torch.randn(2, 4), torch.randint(0, 2, (2,))) for _ in range(3)]
    
    def __len__(self):
        return len(self.data)
    
    def __getitem__(self, idx):
        return self.data[idx]

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x):
        return self.linear(x)

# Patch the evaluate_prompt import
import sys
from unittest.mock import MagicMock
mock_utils = MagicMock()
mock_utils.simple_eval.evaluate_prompt = mock_evaluate_prompt
sys.modules['utils'] = mock_utils
sys.modules['utils.simple_eval'] = mock_utils.simple_eval

ARGS = {
    'test_set': MockDataset(),
    'best_gen_instruct': "Generate a helpful instruction",
    'test_model': MockModel(),
    'test_ratio': 0.2,
    'device': 'cpu',
    'batch_size': 2,
    'instruct_type': 'standard'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch, utils — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
train_interface Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
VITA-Group/DP-OPT/web_demo.py
code served (permissive licence) · get_code("90e0f4319272b6de")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 torch.nn as nn
from unittest.mock import Mock, patch
import sys

torch.manual_seed(0)

# Create a minimal mock for the train_opt.main function
def mock_main(args_list):
    """Mock implementation of train_opt.main that returns expected dict structure"""
    best_save_dict = {
        'best_holdout_idx': 0,
        'generated_instructs': ['Be concise and accurate in your responses.'],
        'best_holdout_test_acc': 0.85
    }
    save_dict = {
        'holdout_test_acc': 0.80
    }
    return best_save_dict, save_dict

# Patch the train_opt module before importing train_interface
sys.modules['train_opt'] = Mock()
sys.modules['train_opt'].main = mock_main

# Now we can define the arguments
ARGS = {
    'dataset': 'rte',
    'model': 'gpt2',
    'algorithm': 'opt',
    'eps': 8.0,
    'device': 'cpu',
    'dln1_steps': 100,
    'num_prompt': 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch, train_opt — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
init_dataset Not yet run
unverified (harvested, no recorded run)
vita-group/dp-opt/utils/dln_data.py
code served (permissive licence) · get_code("9795aa421d054e30")
How it ran

no invocation recorded.

openai_complete Not yet run
unverified (harvested, no recorded run)
vita-group/dp-opt/utils/evaluate.py
code served (permissive licence) · get_code("fd383ae7444969b9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 11 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
gpt_get_estimated_cost 2 other papers
1 dated earlier, 1 later
2310.02905 (2023-10)
Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformers
2025.emnlp-main.965 (2025 (year only))
ACING: Actor-Critic for Instruction Learning in Black-Box LLMs

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

Large Language Models (LLMs) have emerged as dominant tools for various tasks, particularly when tailored for a specific target by prompt tuning. Nevertheless, concerns surrounding data privacy present obstacles due to the tuned prompts' dependency on sensitive private information. A practical solution is to host a local LLM and optimize a soft prompt privately using data. Yet, hosting a local model becomes problematic when model ownership is protected. Alternative methods, like sending data to the model's provider for training, intensify these privacy issues facing an untrusted provider. In this paper, we present a novel solution called Differentially-Private Offsite Prompt Tuning (DP-OPT) to address this challenge. Our approach involves tuning a discrete prompt on the client side and then applying it to the desired cloud models. We demonstrate that prompts suggested by LLMs themselves can be transferred without compromising performance significantly. To ensure that the prompts do not leak private information, we introduce the first private prompt generation mechanism, by a differentially-private (DP) ensemble of in-context learning with private demonstrations. With DP-OPT, generating privacypreserving prompts by Vicuna-7b can yield competitive performance compared to non-private in-context learning on GPT3.5 or local private prompt tuning. Codes are available at https://github.com/VITA-Group/DP-OPT.

For agents

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

get_harvested_code_for_paper("2312.03724")
get_code_for_paper("2312.03724")
have("2312.03724")

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

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

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

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

Connect an agent — have() is free.