SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2301.03726 · AAAI · 2023

Neighborhood-Regularized Self-Training for Learning with Few Labels

Chao Zhang, Carl Yang, Yue Yu, Yanqiao Zhu, Hejie Cui, Xuan Kan, Joyce Ho, Ran Xu

arXiv · PDF · Open in the Atlas

Code that ran

2 of 6 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 1 has no contract verdict; 1 failure of our instrument; 4 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/2301.03726.json · badge: /api/ran/2301.03726.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
ritaranx/NeST canonical (classifier label)
classifier basis not recorded on the link
2 ran · 4 no recorded run
FunctionStatusWhere it lives
clean_str Ran
ran; our contract draft was wrong, not the code
ritaranx/NeST/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from audqhsid/-Review-CNN-for-Sentence-Classification, is pointer only (licence: NONE) · get_code("efe1a86fd9a2468e")
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 audqhsid/-Review-CNN-for-Sentence-Classification, 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.

get_mt_loss Ran
ran on a synthesized input
ritaranx/NeST/trainer.py
code served (permissive licence) · get_code("19284e3c5602b606")
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.functional as F

torch.manual_seed(0)

# Create small tensor arguments
# s_logits and t_logits should be tensors with shape (batch, num_classes)
# Using batch=2, num_classes=4
s_logits = torch.randn(2, 4)
t_logits = torch.randn(2, 4)

# class_name can be None, 'prob', 'logit', 'smart', 'kl', or 'distill'
class_name = 'kl'

# _lambda is a scaling factor
_lambda = 0.5

ARGS = {
    's_logits': s_logits,
    't_logits': t_logits,
    'class_name': class_name,
    '_lambda': _lambda,
}
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
acc_and_f1 Not yet run
unverified (harvested, no recorded run)
ritaranx/NeST/trainer.py
code served (permissive licence) · get_code("97626b44ecf42dfa")
How it ran

no invocation recorded.

clean_doc Not yet run
unverified (harvested, no recorded run)
ritaranx/NeST/utils.py
code served (permissive licence) · get_code("99a40c2d6e975af6")
How it ran

no invocation recorded.

compute_metrics Not yet run
unverified (harvested, no recorded run)
ritaranx/NeST/trainer.py
code served (permissive licence) · get_code("367872121e21753d")
How it ran

no invocation recorded.

load_tokenizer Not yet run
unverified (harvested, no recorded run)
ritaranx/NeST/utils.py
code served (permissive licence) · get_code("661491a0aadeb24e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
clean_str 9 other papers
7 dated earlier, 2 later
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1510.03820 (2015-10)
A Sensitivity Analysis of (and Practitioners' Guide to) Convolutional Neural Networks for Sentence Classification
1608.06019 (2016-08)
Domain Separation Networks
and 6 more not named here
compute_metrics 4 other papers
2 dated earlier, 2 later
1905.08284 (2019-05)
Enriching Pre-trained Language Model with Entity Information for Relation Classification
2010.07835 (2020-10)
Fine-Tuning Pre-trained Language Model with Weak Supervision: A Contrastive-Regularized Self-Training Approach
2306.15895 (2023-06)
Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Bias
and 1 more not named here
clean_doc 2 other papers
2 later
2306.15895 (2023-06)
Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Bias
2403.00815 (2024-03)
RAM-EHR: Retrieval Augmentation Meets Clinical Predictions on Electronic Health Records
get_mt_loss 2 other papers
2 dated earlier
2006.15509 (2020-06)
BOND: BERT-Assisted Open-Domain Named Entity Recognition with Distant Supervision
2022.emnlp-main.417 (2022 (year only))
Simple Questions Generate Named Entity Recognition Datasets

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

Training deep neural networks (DNNs) with limited supervision has been a popular research topic as it can significantly alleviate the annotation burden. Self-training has been successfully applied in semi-supervised learning tasks, but one drawback of self-training is that it is vulnerable to the label noise from incorrect pseudo labels. Inspired by the fact that samples with similar labels tend to share similar representations, we develop a neighborhood-based sample selection approach to tackle the issue of noisy pseudo labels. We further stabilize self-training via aggregating the predictions from different rounds during sample selection. Experiments on eight tasks show that our proposed method outperforms the strongest self-training baseline with 1.83% and 2.51% performance gain for text and graph datasets on average. Our further analysis demonstrates that our proposed data selection strategy reduces the noise of pseudo labels by 36.8% and saves 57.3% of the time when compared with the best baseline. Our code and appendices will be uploaded to https://github.com/ritaranx/NeST.

For agents

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

get_harvested_code_for_paper("2301.03726")
get_code_for_paper("2301.03726")
have("2301.03726")

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

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

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

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

Connect an agent — have() is free.