SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2007.02439 · ICML · 2020

Pretrained Generalized Autoregressive Model with Adaptive Probabilistic Label Clusters for Extreme Multi-label Text Classification

Hui Ye, Zhiyu Chen, Da-Han Wang, Brian Davison

arXiv · PDF · Open in the Atlas

Code that ran

9 of 14 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 5 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-21; 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/2007.02439.json · badge: /api/ran/2007.02439.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
huiyegit/APLC_XLNet canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
xmc-aalto/adv-xmtc community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
build_tf_xlnet_to_pytorch_map Ran
ran on a synthesized input
huiyegit/APLC_XLNet/code/pytorch_transformers/modeling_xlnet.py
code served (permissive licence) · get_code("c92ba449e48ecffe")
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 torch.nn as nn

torch.manual_seed(0)

# Build minimal attention layer
class RelAttn(nn.Module):
    def __init__(self, d_model=4, num_heads=2):
        super().__init__()
        self.layer_norm = nn.LayerNorm(d_model)
        self.o = nn.Linear(d_model, d_model)
        self.q = nn.Linear(d_model, d_model)
        self.k = nn.Linear(d_model, d_model)
        self.r = nn.Linear(d_model, d_model)
        self.v = nn.Linear(d_model, d_model)
        self.r_r_bias = torch.randn(4)
        self.r_w_bias = torch.randn(4)
        self.r_s_bias = torch.randn(4)
        self.seg_embed = torch.randn(2, 4)

# Build minimal feedforward layer
class FFN(nn.Module):
    def __init__(self, d_model=4, d_ff=8):
        super().__init__()
        self.layer_norm = nn.LayerNorm(d_model)
        self.layer_1 = nn.Linear(d_model, d_ff)
        self.layer_2 = nn.Linear(d_ff, d_model)

# Build minimal transformer layer
class TransformerLayer(nn.Module):
    def __init__(self, d_model=4, d_ff=8):
        super().__init__()
        self.rel_attn = RelAttn(d_model=d_model)
        self.ff = FFN(d_model=d_model, d_ff=d_ff)

# Build minimal transformer
class Transformer(nn.Module):
    def __init__(self, num_layers=2, d_model=4, d_ff=8, untie_r=False):
        super().__init__()
        self.word_embedding = nn.Embedding(100, d_model)
        self.mask_emb = torch.randn(d_model)
        self.layer = nn.ModuleList([TransformerLayer(d_model, d_ff) for _ in range(num_layers)])
        self.untie_r = untie_r
        
        if not untie_r:
            self.r_r_bias = torch.randn(d_model)
            self.r_w_bias = torch.randn(d_model)
            self.r_s_bias = torch.randn(d_model)
            self.seg_embed = torch.randn(2, d_model)

# Build full model with optional lm_loss, sequence_summary, logits_proj
class XLNetModel(nn.Module):
    def __init__(self, num_layers=2, d_model=4, d_ff=8, untie_r=False, with_lm_loss=True, with_sequence_summary=False, with_logits_proj=False):
        super().__init__()
        self.transformer = Transformer(num_layers=num_layers, d_model=d_model, d_ff=d_ff, untie_r=untie_r)
        if with_lm_loss:
            self.lm_loss = nn.Linear(d_model, 100)
        if with_sequence_summary:
            self.sequence_summary = nn.Module()
            self.sequence_summary.summary = nn.Linear(d_model, d_model)
        if with_logits_proj:
            self.logits_proj = nn.Linear(d_model, 1)

# Build config
class Config:
    def __init__(self, untie_r=False, finetuning_task=None):
        self.untie_r = untie_r
        self.finetuning_task = finetuning_task

# Create instances
model = XLNetModel(num_layers=2, d_model=4, d_ff=8, untie_r=False, with_lm_loss=True, with_sequence_summary=True, with_logits_proj=True)
config = Config(untie_r=False, finetuning_task="regression")
tf_weights = {
    'model/sequnece_summary/summary/kernel': True,
    'model/regression_regression/logit/kernel': True,
}

ARGS = {
    "model": model,
    "config": config,
    "tf_weights": tf_weights,
}
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 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
clean_up_tokenization Ran
ran on a synthesized input
huiyegit/APLC_XLNet/code/pytorch_transformers/tokenization_utils.py
code served (permissive licence) · get_code("c16630f5bccfef87")
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.

ARGS = {
    'out_string': " Hello world . This is n't a test ! What 's happening ? I 'm fine , thanks 've got it 're ready do not worry 's great 've seen 're here"
}
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
convert_examples_to_features Ran
ran on a synthesized input
huiyegit/APLC_XLNet/code/utils_multi_label.py
code served (permissive licence) · get_code("8eaf09fc07e42122")
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 logging

logging.basicConfig(level=logging.INFO)

class SimpleTokenizer:
    """Minimal tokenizer for testing."""
    
    def tokenize(self, text):
        """Split text into tokens."""
        return text.split()
    
    def convert_tokens_to_ids(self, tokens):
        """Convert tokens to IDs."""
        token_to_id = {
            '[CLS]': 101,
            '[SEP]': 102,
            '[PAD]': 0,
            'hello': 1000,
            'world': 1001,
            'this': 1002,
            'is': 1003,
            'a': 1004,
            'test': 1005,
            'example': 1006,
            'sentence': 1007,
            'another': 1008,
        }
        return [token_to_id.get(token, 1009) for token in tokens]


class InputExample:
    """A single training/test example."""
    
    def __init__(self, guid, text_a, text_b=None, label=None):
        self.guid = guid
        self.text_a = text_a
        self.text_b = text_b
        self.label = label


# Create sample examples
examples = [
    InputExample(guid="0", text_a="hello world", text_b="this is", label=["positive"]),
    InputExample(guid="1", text_a="test example", text_b=None, label=["negative"]),
]

# Create label list for classification
label_list = ["positive", "negative"]

# Create tokenizer
tokenizer = SimpleTokenizer()

# Set up ARGS dictionary
ARGS = {
    "examples": examples,
    "label_list": label_list,
    "max_seq_length": 16,
    "tokenizer": tokenizer,
    "output_mode": "classification",
    "cls_token_at_end": False,
    "pad_on_left": False,
    "cls_token": "[CLS]",
    "sep_token": "[SEP]",
    "pad_token": 0,
    "sequence_a_segment_id": 0,
    "sequence_b_segment_id": 1,
    "cls_token_segment_id": 1,
    "pad_token_segment_id": 0,
    "mask_padding_with_zero": True,
}
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 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
count_parameters Ran
ran, honoured the contract we drafted
huiyegit/APLC_XLNet/code/utils_multi_label.py
code served (permissive licence) · get_code("f6b944f50d3f15ae")
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 int, ndim 0, dtype family int, 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

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
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 int, ndim 0, dtype family int, 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
eval_precision Ran
ran on a synthesized input
huiyegit/APLC_XLNet/code/utils_multi_label.py
code served (permissive licence) · get_code("621132bc94fe080b")
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)

# Construct hit_list: a list of items where each item is a tuple/list with 3 elements
# representing hits at positions 1, 3, and 5
hit_list = [
    [1, 1, 1],  # First sample: hit at p1, p3, p5
    [0, 1, 1],  # Second sample: miss at p1, hit at p3, p5
    [1, 0, 0],  # Third sample: hit at p1, miss at p3, p5
]

num_sample = 3

ARGS = {
    'hit_list': hit_list,
    'num_sample': num_sample,
}
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
gelu Ran
ran on a synthesized input
huiyegit/APLC_XLNet/code/pytorch_transformers/modeling_xlnet.py
code served (permissive licence) · get_code("b05b2bb38c0e4e72")
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, 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 math
import torch

torch.manual_seed(0)

# The gelu function takes a single parameter 'x' which should be a tensor
# The function applies mathematical operations on it (tanh, pow, multiplication)
# So x needs to be a torch.Tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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, 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
prune_conv1d_layer Ran
ran; our contract draft was wrong, not the code
huiyegit/APLC_XLNet/code/pytorch_transformers/modeling_utils.py
code served (permissive licence) · get_code("7183a17dd79327a8")
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):
    def __init__(self, nf, nx):
        super(Conv1D, self).__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 to prune
# nf=5 (output features), nx=4 (input features)
layer = Conv1D(nf=5, nx=4)

# Create an index tensor to select which dimensions to keep
# dim=1 means we're pruning the output dimension
# Select indices [0, 2] from the output features
index = torch.tensor([0, 2], dtype=torch.long)

# dim parameter: prune along dimension 1 (output features)
dim = 1

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 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
huiyegit/APLC_XLNet/code/pytorch_transformers/modeling_utils.py
code served (permissive licence) · get_code("d30d6c3098df2c42")
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 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 linear layer to prune
# Using distinct sizes: input_features=3, output_features=4
layer = nn.Linear(in_features=3, out_features=4, bias=True)

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

# dim=0 means we're pruning along the output dimension (rows of weight matrix)
dim = 0

ARGS = {
    "layer": layer,
    "index": index,
    "dim": dim,
}
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 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
url_to_filename Ran
ran; our contract draft was wrong, not the code
huiyegit/APLC_XLNet/code/pytorch_transformers/file_utils.py
code served (permissive licence) · get_code("5eff22fa0a651276")
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.

from hashlib import sha256

ARGS = {
    "url": "https://example.com/model/checkpoint.bin",
    "etag": "abc123def456"
}
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
AdaptiveBCEWithLogitsLoss Not yet run
unverified (harvested, no recorded run)
xmc-aalto/adv-xmtc/utils/aplc_scripts/models/Adapative_label_clusters.py
pointer only (licence: NONE) · get_code("d936cc90c2b43022")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xmc-aalto/adv-xmtc 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.

cached_path Not yet run
unverified (harvested, no recorded run)
huiyegit/APLC_XLNet/code/pytorch_transformers/file_utils.py
code served (permissive licence) · get_code("2345788978cb5056")
How it ran

no invocation recorded.

filename_to_url Not yet run
unverified (harvested, no recorded run)
huiyegit/APLC_XLNet/code/pytorch_transformers/file_utils.py
code served (permissive licence) · get_code("a6aab787fcf8b10d")
How it ran

no invocation recorded.

load_tf_weights_in_xlnet Not yet run
unverified (harvested, no recorded run)
huiyegit/APLC_XLNet/code/pytorch_transformers/modeling_xlnet.py
code served (permissive licence) · get_code("4a94662ff3b5c5cf")
How it ran

no invocation recorded.

prune_layer Not yet run
unverified (harvested, no recorded run)
huiyegit/APLC_XLNet/code/pytorch_transformers/modeling_utils.py
code served (permissive licence) · get_code("e31093ffc8275cff")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 3 the same month, 9 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
count_parameters 180 other papers
19 dated earlier, 2 the same month, 159 later · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
url_to_filename 48 other papers
16 dated earlier, 1 the same month, 31 later · 8 only as an assembly brick
1610.02424 (2016-10)
Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 45 more not named here
prune_linear_layer 29 other papers
11 dated earlier, 1 the same month, 16 later, 1 same year, order not determinable
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1906.08230 (2019-06)
Evaluating Protein Transfer Learning with TAPE
1906.08237 (2019-06)
XLNet: Generalized Autoregressive Pretraining for Language Understanding
and 26 more not named here
cached_path 27 other papers
12 dated earlier, 15 later · 5 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
1908.02265 (2019-08)
ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks
and 24 more not named here
filename_to_url 18 other papers
6 dated earlier, 12 later
1908.09355 (2019-08)
Patient Knowledge Distillation for BERT Model Compression
1909.02209 (2019-09)
Semantics-aware BERT for Language Understanding
1911.02896 (2019-11)
Contextualized Sparse Representations for Real-Time Open-Domain Question Answering
and 15 more not named here
prune_conv1d_layer 16 other papers
7 dated earlier, 9 later
1906.08237 (2019-06)
XLNet: Generalized Autoregressive Pretraining for Language Understanding
1909.05311 (2019-09)
Graph-Based Reasoning over Heterogeneous External Knowledge for Commonsense Question Answering
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
and 13 more not named here
prune_layer 7 other papers
3 dated earlier, 4 later
1906.08237 (2019-06)
XLNet: Generalized Autoregressive Pretraining for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2005.00558 (2020-05)
POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training
and 4 more not named here
build_tf_xlnet_to_pytorch_map 4 other papers
2 dated earlier, 2 later
1906.08237 (2019-06)
XLNet: Generalized Autoregressive Pretraining for Language Understanding
1909.05311 (2019-09)
Graph-Based Reasoning over Heterogeneous External Knowledge for Commonsense Question Answering
2010.05607 (2020-10)
The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?
and 1 more not named here
load_tf_weights_in_xlnet 3 other papers
2 dated earlier, 1 later
1906.08237 (2019-06)
XLNet: Generalized Autoregressive Pretraining for Language Understanding
1909.05311 (2019-09)
Graph-Based Reasoning over Heterogeneous External Knowledge for Commonsense Question Answering
2010.05607 (2020-10)
The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?
gelu 2 other papers
2 dated earlier
1906.08237 (2019-06)
XLNet: Generalized Autoregressive Pretraining for Language Understanding
1909.05311 (2019-09)
Graph-Based Reasoning over Heterogeneous External Knowledge for Commonsense Question Answering

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

Repositories linked to this paper

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

Abstract

Extreme multi-label text classification (XMTC) is a task for tagging a given text with the most relevant labels from an extremely large label set. We propose a novel deep learning method called APLC-XLNet. Our approach fine-tunes the recently released generalized autoregressive pretrained model (XLNet) to learn a dense representation for the input text. We propose Adaptive Probabilistic Label Clusters (APLC) to approximate the cross entropy loss by exploiting the unbalanced label distribution to form clusters that explicitly reduce the computational time. Our experiments, carried out on five benchmark datasets, show that our approach has achieved new state-of-the-art results on four benchmark datasets. Our source code is available publicly at https: //github.com/huiyegit/APLC_XLNet.

For agents

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

get_harvested_code_for_paper("2007.02439")
get_code_for_paper("2007.02439")
have("2007.02439")

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

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

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

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

Connect an agent — have() is free.