SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2021.emnlp-main.154 · EMNLP · 2021

Reconstruction Attack on Instance Encoding for Language Understanding

Yuan Hong, Shangyu Xie

Open in the Atlas

Code that ran

13 of 16 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, 0 violated it and 5 have no contract verdict; 8 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-24; 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/2021.emnlp-main.154.json · badge: /api/ran/2021.emnlp-main.154.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
Hazelsuko07/TextHide canonical (classifier label)
classifier basis: census
13 ran · 3 no recorded run
FunctionStatusWhere it lives
cross_entropy_for_onehot Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/instahide.py
code served (permissive licence) · get_code("e4df01238c9e5ba5")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T03:10:52Z). 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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for the function
# pred: logits tensor, shape (batch_size, num_classes)
# target: one-hot encoded targets, shape (batch_size, num_classes)

batch_size = 2
num_classes = 4

pred = torch.randn(batch_size, num_classes)
target = torch.zeros(batch_size, num_classes)
# Create one-hot encoded targets
target[0, 0] = 1.0
target[1, 2] = 1.0

ARGS = {
    "pred": pred,
    "target": target,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
convert_tf_weight_name_to_pt_weight_name Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/transformers_hide/modeling_tf_pytorch_utils.py
code served (permissive licence) · get_code("7628644af968c0af")
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 re

def convert_tf_weight_name_to_pt_weight_name(tf_name, start_prefix_to_remove=''):
    """ Convert a TF 2.0 model variable name in a pytorch model weight name.

        Conventions for TF2.0 scopes -> PyTorch attribute names conversions:
            - '$1___$2' is replaced by $2 (can be used to duplicate or remove layers in TF2.0 vs PyTorch)
            - '_._' is replaced by a new level separation (can be used to convert TF2.0 lists in PyTorch nn.ModulesList)

        return tuple with:
            - pytorch model weight name
            - transpose: boolean indicating weither TF2.0 and PyTorch weights matrices are transposed with regards to each other
    """
    tf_name = tf_name.replace(':0', '')
    tf_name = re.sub('/[^/]*___([^/]*)/', '/\\1/', tf_name)
    tf_name = tf_name.replace('_._', '/')
    tf_name = re.sub('//+', '/', tf_name)
    tf_name = tf_name.split('/')
    tf_name = tf_name[1:]
    transpose = bool(tf_name[-1] == 'kernel' or 'emb_projs' in tf_name or 'out_projs' in tf_name)
    if tf_name[-1] == 'kernel' or tf_name[-1] == 'embeddings' or tf_name[-1] == 'gamma':
        tf_name[-1] = 'weight'
    if tf_name[-1] == 'beta':
        tf_name[-1] = 'bias'
    tf_name = '.'.join(tf_name)
    if start_prefix_to_remove:
        tf_name = tf_name.replace(start_prefix_to_remove, '', 1)
    return (tf_name, transpose)


ARGS = {
    'tf_name': 'model/layer_0/dense/kernel:0',
    'start_prefix_to_remove': 'model/'
}
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 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
create_position_ids_from_input_ids Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/transformers_hide/modeling_roberta.py
code served (permissive licence) · get_code("5b2390deea2200c9")
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 2, dtype family int, shape (2, 4) 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 input_ids tensor with shape (batch_size=2, seq_length=4)
# Values include some padding tokens (0) and some non-padding tokens
input_ids = torch.tensor([
    [0, 5, 6, 7],
    [2, 3, 0, 4]
])

# padding_idx is typically 0 in transformer models
padding_idx = 0

ARGS = {
    "input_ids": input_ids,
    "padding_idx": padding_idx
}
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 2, dtype family int, shape (2, 4) — shape (2, 4) 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
find_pruneable_heads_and_indices Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/transformers_hide/modeling_utils.py
code served (permissive licence) · get_code("02fd40244433a6e6")
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. 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

torch.manual_seed(0)

# The function prunes attention heads from a multi-head attention module
# heads: List of head indices to prune
# n_heads: Total number of heads
# head_size: Size of each head
# already_pruned_heads: Set of heads already pruned

ARGS = {
    "heads": [0, 2],
    "n_heads": 4,
    "head_size": 3,
    "already_pruned_heads": {1},
}
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
get_initializer Ran
ran on a synthesized input
Hazelsuko07/TextHide/transformers_hide/modeling_tf_utils.py
code served (permissive licence) · get_code("99fba512df728841")
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 TruncatedNormal. 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 tensorflow as tf

ARGS = {
    "initializer_range": 0.02,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TruncatedNormal — a TruncatedNormal output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TruncatedNormal 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
get_tasks Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/download_glue_data.py
pointer only (licence: MIT); the stored copy get_code serves, from dinghanshen/Cutoff, is pointer only (licence: NONE) · get_code("18962b43885bc12f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dinghanshen/Cutoff, and GitHub detected no licence in that repository 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.

keras_serializable Ran
ran on a synthesized input
Hazelsuko07/TextHide/transformers_hide/modeling_tf_utils.py
code served (permissive licence) · get_code("117f427eaafad0e6")
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 type. 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 tensorflow as tf
import functools
from typing import Any, Dict

class PretrainedConfig:
    """Stand-in for transformers.PretrainedConfig"""
    def __init__(self, **kwargs):
        self.data = kwargs
    
    def to_dict(self):
        return self.data.copy()
    
    @classmethod
    def from_dict(cls, config_dict):
        return cls(**config_dict)

class MockConfigClass(PretrainedConfig):
    """Stand-in config class"""
    pass

class MockKerasLayer(tf.keras.layers.Layer):
    """Minimal Keras Layer subclass for testing"""
    config_class = MockConfigClass
    
    def __init__(self, config=None, **kwargs):
        super().__init__(**kwargs)
        self.config = config
    
    def get_config(self):
        return super().get_config()

ARGS = {
    'cls': MockKerasLayer
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
label_to_onehot Ran
ran on a synthesized input
Hazelsuko07/TextHide/instahide.py
code served (permissive licence) · get_code("60b8e1b2ff00ed19")
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 2, dtype family float, shape (2, 2) 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 a small target tensor with class labels
# Using batch size 2, with labels in range [0, num_classes)
target = torch.tensor([0, 1], dtype=torch.long)

# Number of classes
num_classes = 2

ARGS = {
    "target": target,
    "num_classes": num_classes,
}
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 2, dtype family float, shape (2, 2) — shape (2, 2) 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
mish Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/transformers_hide/modeling_bert.py
pointer only (licence: MIT); the stored copy get_code serves, from lsan2401/rmsin, is pointer only (licence: NONE) · get_code("22b41155e451683b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lsan2401/rmsin, and GitHub detected no licence in that repository 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.

mixup_criterion Ran
ran on a synthesized input
Hazelsuko07/TextHide/instahide.py
code served (permissive licence) · get_code("6588875b2a3f66d1")
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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Define a simple criterion (MSE loss for the num_classes=1 case)
criterion = nn.MSELoss()

# Parameters
batch_size = 2
num_classes = 3
pred_dim = 4
k = 2  # number of label tensors in ys

# pred: predictions tensor of shape (batch_size, num_classes)
pred = torch.randn(batch_size, num_classes)

# ys: list of k label tensors, each of shape (batch_size,)
ys = [torch.randint(0, num_classes, (batch_size,)) for _ in range(k)]

# lam_batch: lambda weights tensor of shape (batch_size, k)
lam_batch = torch.randn(batch_size, k)
lam_batch = F.softmax(lam_batch, dim=1)  # normalize to sum to 1

ARGS = {
    "criterion": criterion,
    "pred": pred,
    "ys": ys,
    "lam_batch": lam_batch,
    "num_classes": num_classes,
}
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
prune_conv1d_layer Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/transformers_hide/modeling_utils.py
code served (permissive licence) · get_code("2ecf9d52d1413149")
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 Conv1D. 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 torch import nn

torch.manual_seed(0)

class Conv1D(nn.Module):
    """
    1D-convolutional layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2).

    Basically works like a linear layer but the weights are transposed.

    Args:
        nf (:obj:`int`): The number of output features.
        nx (:obj:`int`): The number of input features.
    """

    def __init__(self, nf, nx):
        super().__init__()
        self.nf = nf
        w = torch.empty(nx, nf)
        nn.init.normal_(w, std=0.02)
        self.weight = nn.Parameter(w)
        self.bias = nn.Parameter(torch.zeros(nf))

    def forward(self, x):
        size_out = x.size()[:-1] + (self.nf,)
        x = torch.addmm(self.bias, x.view(-1, x.size(-1)), self.weight)
        x = x.view(*size_out)
        return x

# Create a Conv1D layer with distinct dimensions
# nx=4 (input features), nf=3 (output features)
layer = Conv1D(nf=3, nx=4)

# Create an index tensor to select which output features to keep
# We'll keep 2 out of 3 features
index = torch.LongTensor([0, 2])

ARGS = {
    "layer": layer,
    "index": index,
    "dim": 1
}
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 Conv1D — a Conv1D output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv1D 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
prune_linear_layer Ran
ran; our contract draft was wrong, not the code
Hazelsuko07/TextHide/transformers_hide/modeling_utils.py
code served (permissive licence) · get_code("b3504e72ce1153fe")
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 Linear. 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 torch import nn

torch.manual_seed(0)

# Create a simple linear layer
# Using distinct dimensions: input_features=3, output_features=4
layer = nn.Linear(in_features=3, out_features=4, bias=True)

# Create index tensor to select which output features to keep
# Selecting 2 out of 4 output features
index = torch.LongTensor([0, 2])

# The dimension to prune on (0 for output dimension, 1 for input dimension)
dim = 0

ARGS = {
    "layer": layer,
    "index": index,
    "dim": dim,
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
shape_list Ran
ran on a synthesized input
Hazelsuko07/TextHide/transformers_hide/modeling_tf_utils.py
code served (permissive licence) · get_code("99b8a0bda9a0f475")
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 int; 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 tensorflow as tf

# Create a test tensor with dynamic shape
# Use a placeholder-like tensor that has both static and dynamic dimensions
x = tf.constant([[1.0, 2.0, 3.0, 4.0],
                 [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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 int — 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
load_pytorch_checkpoint_in_tf2_model Not yet run
unverified (harvested, no recorded run)
Hazelsuko07/TextHide/transformers_hide/modeling_tf_pytorch_utils.py
code served (permissive licence) · get_code("7a06a4369d78e102")
How it ran

no invocation recorded.

load_pytorch_model_in_tf2_model Not yet run
unverified (harvested, no recorded run)
Hazelsuko07/TextHide/transformers_hide/modeling_tf_pytorch_utils.py
code served (permissive licence) · get_code("1c7047121d796c5d")
How it ran

no invocation recorded.

load_tf_weights_in_bert Not yet run
unverified (harvested, no recorded run)
Hazelsuko07/TextHide/transformers_hide/modeling_bert.py
code served (permissive licence) · get_code("1967c19619b8d7e1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 9 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 9 later) and 7 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
load_tf_weights_in_bert 28 other papers
1 dated earlier, 24 later, 3 same year, order not determinable
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
2104.06599 (2021-04)
Learning How to Ask: Querying LMs with Mixtures of Soft Prompts
2104.08247 (2021-04)
What to Pre-Train on? Efficient Intermediate Task Selection
and 25 more not named here
mish 19 other papers
3 dated earlier, 11 later, 5 same year, order not determinable
2006.04884 (2020-06)
On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselines
2007.12223 (2020-07)
The Lottery Ticket Hypothesis for Pre-trained BERT Networks
2012.07463 (2020-12)
Parameter-Efficient Transfer Learning with Diff Pruning
and 16 more not named here
get_tasks 13 other papers
10 dated earlier, 3 later
1711.05225 (2017-11)
CheXNet: Radiologist-Level Pneumonia Detection on Chest X-Rays with Deep Learning
1804.07461 (2018-04)
GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 10 more not named here
find_pruneable_heads_and_indices 11 other papers
1 dated earlier, 6 later, 4 same year, order not determinable
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2104.08066 (2021-04)
Effect of Visual Extensions on Natural Language Understanding in Vision-and-Language Models
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 8 more not named here
create_position_ids_from_input_ids 8 other papers
7 later, 1 same year, order not determinable
2104.08247 (2021-04)
What to Pre-Train on? Efficient Intermediate Task Selection
2201.03514 (2022-01)
Black-Box Tuning for Language-Model-as-a-Service
2023.acl-long.264 (2023 (year only))
Towards Robust Low-Resource Fine-Tuning with Multi-View Compressed Representations
and 5 more not named here
cross_entropy_for_onehot 4 other papers
3 dated earlier, 1 later
1906.08935 (2019-06)
Deep Leakage from Gradients
2003.07853 (2020-03)
Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentation
2010.02772 (2020-10)
InstaHide: Instance-hiding Schemes for Private Distributed Learning *
and 1 more not named here
prune_conv1d_layer 2 other papers
2 later
2405.10974 (2024-05)
Bottleneck-Minimal Indexing for Generative Document Retrieval
2602.22581 (2026-02)
IBCircuit: Towards Holistic Circuit Discovery with Information Bottleneck
convert_tf_weight_name_to_pt_weight_name 1 other paper
1 later
2405.10974 (2024-05)
Bottleneck-Minimal Indexing for Generative Document Retrieval
prune_linear_layer 1 other paper
1 later
2405.10974 (2024-05)
Bottleneck-Minimal Indexing for Generative Document Retrieval

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-24.

Repositories linked to this paper

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

Abstract

A private learning scheme TextHide was recently proposed to protect the private text data during the training phase via so-called instance encoding. We propose a novel reconstruction attack to break TextHide by recovering the private training data, and thus unveil the privacy risks of instance encoding. We have experimentally validated the effectiveness of the reconstruction attack with two commonly-used datasets for sentence classification. Our attack would advance the development of privacy preserving machine learning in the context of natural language processing.

For agents

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

get_harvested_code_for_paper("2021.emnlp-main.154")
get_code_for_paper("2021.emnlp-main.154")
have("2021.emnlp-main.154")

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

curl https://syntology.ai/api/ran/2021.emnlp-main.154.json

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

[![Syntology run record](https://syntology.ai/api/ran/2021.emnlp-main.154.svg)](https://syntology.ai/paper/2021.emnlp-main.154)

Connect an agent — have() is free.