OSCR

Spacing effect improves generalization in biological and artificial systems.

Code ↔ Paper

6 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

6 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 6 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Results › Neuronal level: Dropout ↔ dropout/train.py, lines 7 to 87 · score 0.65 · MaxDropout, standard dropout, Tiny ImageNet, spaced interval, benchmark, model · block oscr:b:J724J8WXDF2AY-4 · Report a mismatch
  2. [2] § Methods › KD ↔ self_KD/train.py, lines 213 to 261 · score 0.60 · feature loss coefficient, deepest, shallower, KD, distillation, teacher · block oscr:b:DS8W9JVE2BKNZ-E · Report a mismatch
  3. [3] § Results › Spacing effect with input and innate variations enhances generalization in ANNs ↔ dropout/util/cutout.py, lines 5 to 43 · score 0.54 · square patches, randomly masking, cutout · block oscr:b:C8G0WNG0M2SFN-W · Report a mismatch
  4. [4] § Results › Spacing effect with input and innate variations enhances generalization in ANNs ↔ self_KD/cutout.py, the whole file · a weak match · score 0.54 · square patches, randomly masking, cutout · block oscr:b:4YSZR8CDJ9N04-K · Report a mismatch
  5. [5] § Methods › KD ↔ online_KD/train_kd.py, lines 215 to 267 · score 0.52 · KL divergence, temperature, distillation, student, teacher, interval · block oscr:b:CP9G0XGDKQYGW-N · Report a mismatch
  6. [6] § Methods › KD ↔ self_KD/train.py, lines 148 to 211 · score 0.51 · distillation loss, softened, KD, weighting, student, teacher · block oscr:b:BDY7D4T132E52-T · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 318 lines · 14 KB · no license · 2 matches

  1. import torch
  2. import torch.nn as nn
  3. import torch.optim as optim
  4. import torchvision
  5. import torchvision.transforms as transforms
  6. import argparse
  7. from resnet import *
  8. import torch.nn.functional as F
  9. from autoaugment import CIFAR10Policy
  10. from cutout import Cutout
  11. import wandb
  12. parser = argparse.ArgumentParser(description='Self-Distillation CIFAR Training')
  13. parser.add_argument('--model', default="resnet18", type=str, help="resnet18|resnet34|resnet50|resnet101|resnet152|"
  14. "wideresnet50|wideresnet101|resnext50|resnext101")
  15. parser.add_argument('--dataset', default="cifar100", type=str, help="cifar100|cifar10")
  16. # parser.add_argument('--epoch', default=250, type=int, help="training epochs")
  17. parser.add_argument('--epoch', default=80, type=int, help="training epochs")
  18. parser.add_argument('--loss_coefficient', default=0.3, type=float)
  19. parser.add_argument('--feature_loss_coefficient', default=0.03, type=float)
  20. parser.add_argument('--dataset_path', default="data", type=str)
  21. parser.add_argument('--autoaugment', default=True, type=bool)
  22. parser.add_argument('--temperature', default=3.0, type=float)
  23. parser.add_argument('--batchsize', default=128, type=int)
  24. # parser.add_argument('--init_lr', default=0.1, type=float)
  25. parser.add_argument('--init_lr', default=0.01, type=float)
  26. parser.add_argument('--wandb_entity', default='none', type=str, help='wandb_entity')
  27. parser.add_argument('--wandb_project', default='SKD', type=str, help='wandb_project')
  28. parser.add_argument('--interval_rate', default=1.0, type=float)
  29. parser.add_argument('--gpu_ids', default='0,1', type=str, help='gpu ids for training')
  30. args = parser.parse_args()
  31. print(args)
  32. import os
  33. os.environ["CUDA_VISIBLE_DEVICES"]= str(args.gpu_ids)
  34. device_ids = [i for i in range(torch.cuda.device_count())]
  35. device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
  36. def CrossEntropy(outputs, targets):
  37. log_softmax_outputs = F.log_softmax(outputs/args.temperature, dim=1)
  38. softmax_targets = F.softmax(targets/args.temperature, dim=1)
  39. return -(log_softmax_outputs * softmax_targets).sum(dim=1).mean()
  40. if args.autoaugment:
  41. transform_train = transforms.Compose([transforms.RandomCrop(32, padding=4, fill=128),
  42. transforms.RandomHorizontalFlip(), CIFAR10Policy(), transforms.ToTensor(),
  43. Cutout(n_holes=1, length=16),
  44. transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010))])
  45. else:
  46. transform_train = transforms.Compose([transforms.RandomCrop(32, padding=4, fill=128),
  47. transforms.RandomHorizontalFlip(), transforms.ToTensor(),
  48. transforms.Normalize((0.4914, 0.4822, 0.4465),
  49. (0.2023, 0.1994, 0.2010))])
  50. transform_test = transforms.Compose([
  51. transforms.ToTensor(),
  52. transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),
  53. ])
  54. if args.dataset == "cifar100":
  55. trainset = torchvision.datasets.CIFAR100(
  56. root=args.dataset_path,
  57. train=True,
  58. download=True,
  59. transform=transform_train
  60. )
  61. testset = torchvision.datasets.CIFAR100(
  62. root=args.dataset_path,
  63. train=False,
  64. download=True,
  65. transform=transform_test
  66. )
  67. trainloader = torch.utils.data.DataLoader(
  68. trainset,
  69. batch_size=args.batchsize,
  70. shuffle=True,
  71. num_workers=4
  72. )
  73. testloader = torch.utils.data.DataLoader(
  74. testset,
  75. batch_size=args.batchsize,
  76. shuffle=False,
  77. num_workers=4
  78. )
  79. elif args.dataset == 'tiny_imagenet':
  80. from utils import load_tinyimagenet
  81. id_dic = {}
  82. root = '/data/datasets/tiny-imagenet-200'
  83. for i, line in enumerate(open(root+'/wnids.txt','r')):
  84. id_dic[line.replace('\n', '')] = i
  85. # num_classes = len(id_dic)
  86. trainloader = load_tinyimagenet(root=root, batch_size=args.batchsize, num_workers=4, split='train', shuffle=True, id_dic=id_dic)
  87. testloader = load_tinyimagenet(root=root, batch_size=args.batchsize, num_workers=4, split='val', shuffle=True, id_dic=id_dic)
  88. elif args.dataset == "cifar10":
  89. trainset = torchvision.datasets.CIFAR10(
  90. root=args.dataset_path,
  91. train=True,
  92. download=True,
  93. transform=transform_train
  94. )
  95. testset = torchvision.datasets.CIFAR10(
  96. root=args.dataset_path,
  97. train=False,
  98. download=True,
  99. transform=transform_test
  100. )
  101. if args.dataset == "cifar100":
  102. if args.model == "resnet18":
  103. net = resnet18()
  104. if args.model == "resnet34":
  105. net = resnet34()
  106. if args.model == "resnet50":
  107. net = resnet50()
  108. if args.model == "resnet101":
  109. net = resnet101()
  110. if args.model == "resnet152":
  111. net = resnet152()
  112. if args.model == "wideresnet50":
  113. net = wide_resnet50_2()
  114. if args.model == "wideresnet101":
  115. net = wide_resnet101_2()
  116. if args.model == "resnext50_32x4d":
  117. net = resnet18()
  118. if args.model == "resnext101_32x8d":
  119. net = resnext101_32x8d()
  120. elif args.dataset == "tiny_imagenet":
  121. if args.model == "resnet18":
  122. net = resnet18(num_classes=200)
  123. if args.model == "resnet34":
  124. net = resnet34(num_classes=200)
  125. if args.model == "resnet50":
  126. net = resnet50(num_classes=200)
  127. if args.model == "resnet101":
  128. net = resnet101(num_classes=200)
  129. if args.model == "resnet152":
  130. net = resnet152(num_classes=200)
  131. if args.model == "wideresnet50":
  132. net = wide_resnet50_2(num_classes=200)
  133. if args.model == "wideresnet101":
  134. net = wide_resnet101_2(num_classes=200)
  135. if args.model == "resnext50_32x4d":
  136. net = resnet18(num_classes=200)
  137. if args.model == "resnext101_32x8d":
  138. net = resnext101_32x8d(num_classes=200)
  139. # print(net)
  140. net.to(device)
  141. if torch.cuda.device_count() > 0:
  142. net=nn.DataParallel(net, device_ids=device_ids)
  143. criterion = nn.CrossEntropyLoss()
  144. optimizer = optim.SGD(net.parameters(), lr=args.init_lr, weight_decay=5e-4, momentum=0.9)
  145. init = False
  146. if __name__ == "__main__":
  147. best_acc = 0
  148. interval = int(len(trainloader)*args.interval_rate)
  149. #so the only way is to create a new wandb log
  150. wandb.init(dir='./wandb',entity=args.wandb_entity, project=args.wandb_project, name='self_'+args.model+'_interval'+str(args.interval_rate) +
  151. '_batchsize' + str(args.batchsize) + '_' + str(args.dataset), config=args)
  152. wandb_url = wandb.run.get_url()
  153. print(f"Wandb URL: {wandb_url}")
  154. buffer={'inputs':[], 'labels':[]}
  155. for epoch in range(args.epoch):
  156. correct = [0 for _ in range(5)]
  157. predicted = [0 for _ in range(5)]
  158. # adjust learning rate
  159. # if epoch in [args.epoch // 3, args.epoch * 2 // 3, args.epoch - 10]:
  160. # for param_group in optimizer.param_groups:
  161. # param_group['lr'] /= 10
  162. net.train()
  163. sum_loss, total = 0.0, 0.0
  164. for i, data in enumerate(trainloader, 0):
  165. n_iter = (epoch - 1) * len(trainloader) + i + 1
  166. length = len(trainloader)
  167. inputs, labels = data
  168. buffer['inputs'].append(inputs)
  169. buffer['labels'].append(labels)
  170. inputs, labels = inputs.to(device), labels.to(device)
  171. outputs, outputs_feature = net(inputs)
  172. ensemble = sum(outputs[:-1])/len(outputs)
  173. ensemble.detach_()
  174. if interval == 0:
  175. kd = True
  176. elif n_iter % interval == 0:
  177. kd = (n_iter % interval == 0)
  178. else:
  179. kd = False
  180. if init is False:
  181. # init the adaptation layers.
  182. # we add feature adaptation layers here to soften the influence from feature distillation loss
  183. # the feature distillation in our conference version : | f1-f2 | ^ 2
  184. # the feature distillation in the final version : |Fully Connected Layer(f1) - f2 | ^ 2
  185. layer_list = []
  186. teacher_feature_size = outputs_feature[0].size(1)
  187. for index in range(1, len(outputs_feature)):
  188. student_feature_size = outputs_feature[index].size(1)
  189. layer_list.append(nn.Linear(student_feature_size, teacher_feature_size))
  190. net.adaptation_layers = nn.ModuleList(layer_list)
  191. net.adaptation_layers.cuda()
  192. optimizer = optim.SGD(net.parameters(), lr=args.init_lr, weight_decay=5e-4, momentum=0.9)
  193. # define the optimizer here again so it will optimize the net.adaptation_layers
  194. init = True
  195. # compute loss
  196. loss = torch.FloatTensor([0.]).to(device)
  197. # teacher_output = outputs[0].detach()
  198. # teacher_feature = outputs_feature[0].detach()
  199. if kd is True:
  200. for t_inputs, t_labels in zip(buffer['inputs'], buffer['labels']):
  201. t_inputs, t_labels = t_inputs.to(device), t_labels.to(device)
  202. loss = torch.FloatTensor([0.]).to(device)
  203. if interval == 0:
  204. loss += criterion(outputs[0], labels)
  205. teacher_output = outputs[0].detach()
  206. teacher_feature = outputs_feature[0].detach()
  207. else:
  208. # with torch.no_grad():
  209. outputs, outputs_feature = net(t_inputs)
  210. loss += criterion(outputs[0], t_labels)
  211. teacher_output = outputs[0].detach()
  212. teacher_feature = outputs_feature[0].detach()
  213. # for shallow classifiers
  214. for index in range(1, len(outputs)):
  215. # logits distillation
  216. loss += CrossEntropy(outputs[index], teacher_output) * args.loss_coefficient
  217. loss += criterion(outputs[index], t_labels) * (1 - args.loss_coefficient)
  218. # feature distillation
  219. if index != 1:
  220. loss += torch.dist(net.adaptation_layers[index-1](outputs_feature[index]), teacher_feature) * \
  221. args.feature_loss_coefficient
  222. sum_loss += loss.item()
  223. optimizer.zero_grad()
  224. loss.backward()
  225. optimizer.step()
  226. total += float(labels.size(0))
  227. outputs.append(ensemble)
  228. buffer={'inputs':[], 'labels':[]}
  229. elif kd is False:
  230. # for deepest classifier
  231. loss += criterion(outputs[0], labels)
  232. sum_loss += loss.item()
  233. optimizer.zero_grad()
  234. loss.backward()
  235. optimizer.step()
  236. total += float(labels.size(0))
  237. outputs.append(ensemble)
  238. # the feature distillation loss will not be applied to the shallowest classifier
  239. # elif space is False:
  240. # for index in range(1, len(outputs)):
  241. # loss += criterion(outputs[index], labels) * (1 - args.loss_coefficient)
  242. # sum_loss += loss.item()
  243. # optimizer.zero_grad()
  244. # loss.backward()
  245. # optimizer.step()
  246. # total += float(labels.size(0))
  247. # outputs.append(ensemble)
  248. for classifier_index in range(len(outputs)):
  249. _, predicted[classifier_index] = torch.max(outputs[classifier_index].data, 1)
  250. correct[classifier_index] += float(predicted[classifier_index].eq(labels.data).cpu().sum())
  251. print('[epoch:%d, iter:%d] Loss: %.03f | Acc: 4/4: %.2f%% 3/4: %.2f%% 2/4: %.2f%% 1/4: %.2f%%'
  252. ' Ensemble: %.2f%%' % (epoch + 1, (i + 1 + epoch * length), sum_loss / (i + 1),
  253. 100 * correct[0] / total, 100 * correct[1] / total,
  254. 100 * correct[2] / total, 100 * correct[3] / total,
  255. 100 * correct[4] / total))
  256. wandb.log({'Train/loss': sum_loss / (i + 1), 'Train/acc_4': 100 * correct[0] / total,
  257. 'Train/acc_3': 100 * correct[1] / total, 'Train/acc_2': 100 * correct[2] / total, 'Train/acc_1': 100 * correct[3] / total, 'Train/acc_ensemble': 100 * correct[4] / total})
  258. print("Waiting Test!")
  259. with torch.no_grad():
  260. correct = [0 for _ in range(5)]
  261. predicted = [0 for _ in range(5)]
  262. total = 0.0
  263. for data in testloader:
  264. net.eval()
  265. images, labels = data
  266. images, labels = images.to(device), labels.to(device)
  267. outputs, outputs_feature = net(images)
  268. ensemble = sum(outputs) / len(outputs)
  269. outputs.append(ensemble)
  270. for classifier_index in range(len(outputs)):
  271. _, predicted[classifier_index] = torch.max(outputs[classifier_index].data, 1)
  272. correct[classifier_index] += float(predicted[classifier_index].eq(labels.data).cpu().sum())
  273. total += float(labels.size(0))
  274. print('Test Set AccuracyAcc: 4/4: %.4f%% 3/4: %.4f%% 2/4: %.4f%% 1/4: %.4f%%'
  275. ' Ensemble: %.4f%%' % (100 * correct[0] / total, 100 * correct[1] / total,
  276. 100 * correct[2] / total, 100 * correct[3] / total,
  277. 100 * correct[4] / total))
  278. wandb.log({'Test/acc_4': 100 * correct[0] / total, 'Test/acc_3': 100 * correct[1] / total,
  279. 'Test/acc_2': 100 * correct[2] / total, 'Test/acc_1': 100 * correct[3] / total, 'Test/acc_ensemble': 100 * correct[4] / total})
  280. if correct[4] / total > best_acc:
  281. best_acc = correct[4]/total
  282. print("Best Accuracy Updated: ", best_acc * 100)
  283. # torch.save(net.state_dict(), "./checkpoints/"+str(args.model)+".pth")
  284. wandb.log({'Best_acc': best_acc})
  285. print("Training Finished, TotalEPOCH=%d, Best Accuracy=%.3f" % (args.epoch, best_acc))
  286. wandb.finish()

train.py at commit bc0f466, no license · at the source

Overview

Authors: Guanglong Sun1,2,3, Ning Huang1,2, Hongwei Yan1,2,3, Jun Zhou1,2, Qian Li4, Bo Lei3, Yi Zhong1,2, Liyuan Wang5
ORCID iDs: Qian Li, Yi Zhong
  1. School of Life Sciences, IDG/McGovern Institute for Brain Research, Tsinghua University, Beijing, China
  2. Tsinghua-Peking Center for Life Sciences, Beijing, China
  3. Beijing Academy of Artificial Intelligence, Beijing, China
  4. School of Medicine, Shenzhen Campus of Sun Yat-Sen University, Shenzhen, Guangdong, China
  5. Department of Psychological and Cognitive Sciences, Tsinghua University, Beijing, China
Journal: Patterns (New York, N.Y.), volume 7, issue 6, article 101564
Dates: received 28 November 2025; accepted 21 April 2026; published online 19 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1016/j.patter.2026.101564 · PMID 42328203 · PMCID PMC13280723 · OpenAlex W7161645048
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: cognitive (subfield)
Methods: Smoothing, state filtering, decompositions
Keywords: spacing effect, generalization, ensemble learning, bio-inspired learning, NeuroAI
Topic: Neurobiology and Insect Physiology Research (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: STI2030‐Major Projects (2022ZD0204900); Beijing Major Science and Technology Project (Z251100008425003); NSFC Projects (62406160, 32021002); National Science and Technology Major Project (2022ZD01163013)
Citations: not cited yet (Europe PMC); 78 references in the paper

Abstract

Generalization is a fundamental criterion for evaluating learning effectiveness, a domain where biological intelligence excels yet artificial intelligence faces challenges. In biological learning and memory, the well-documented spacing effect shows that appropriately spaced intervals between learning trials significantly improve behavioral performance. While multiple theories have been proposed to explain its underlying mechanisms, one compelling hypothesis is that spaced training promotes integration of input and innate variations, thereby enhancing generalization to novel but related scenarios. Here, we examine this hypothesis by introducing a bio-inspired spacing effect into artificial neural networks, integrating input and innate variations across spaced intervals at neuronal, synaptic, and network levels. These spaced ensemble strategies yield significant performance gains across benchmark datasets and network architectures. Biological experiments on Drosophila further validate the complementary effect of appropriate variations and spaced intervals in improving generalization, which together reveal a convergent computational principle of biological learning and machine learning.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.

SunGL001/spacing_generalization

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: bc0f466f9742b0a5a15f5185443d9a0524163dd9, 27 October 2025
Languages: Python (48), Shell (2)
Size: 64 files, 50 scripts
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README, environment (requirements.txt)
Not found: license file, CITATION.cff, tests, continuous integration, documentation
Tools: PyTorch (42 files), NumPy (13 files), Matplotlib (4 files), Pillow (4 files), OpenCV (1 file), scikit-image (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
51 files

Zenodo 17959984

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (42 files), NumPy (13 files), Matplotlib (4 files), Pillow (4 files), OpenCV (1 file), scikit-image (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
51 files
At the source:

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 100 scripts, each with its path and the digest of its content;
  • 6 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data and code availability

• All benchmark datasets used in this paper are publicly available, including CIFAR-10/10043 (https://www.cs.toronto.edu/∼kriz/cifar.html (https://www.cs.toronto.edu/~kriz/cifar.html)) and Tiny-ImageNet72 (https://www.image-net.org/download.php). Statistical analysis is performed using GraphPad Prism software. Data are considered normally distributed if they pass the Shapiro-Wilk test (for n < 8) or the Anderson-Darling test (for n ≥ 8). For normally distributed data, comparisons between the two groups are performed using the two-tailed unpaired t test; comparisons between multiple groups are performed using the one-way ANOVA test followed by Dunnett’s multiple comparisons test and the two-way ANOVA test followed by Sidak’s multiple comparisons test. Results are reported as n.s. (not significant) p > 0.05, ∗p < 0.05, ∗∗p < 0.01, ∗∗∗p < 0.001, and ∗∗∗∗p < 0.0001. • Our source code is available at GitHub (https://github.com/SunGL001/spacing_generalization) and has been archived at Zenodo.78

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Authors: added Yi Zhong (0000-0002-7927-5976); removed Yi Zhong

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 5 keywords, 4 funders, 33 references.

Cite

This paper

Sun, G., Huang, N., Yan, H., Zhou, J., Li, Q., Lei, B., Zhong, Y., & Wang, L. (2026). Spacing effect improves generalization in biological and artificial systems. Patterns (New York, N.Y.), 7(6), 101564. https://doi.org/10.1016/j.patter.2026.101564

BibTeX

@article{sun2026spacing,
author = {Sun, Guanglong and Huang, Ning and Yan, Hongwei and Zhou, Jun and Li, Qian and Lei, Bo and Zhong, Yi and Wang, Liyuan},
title = {{Spacing effect improves generalization in biological and artificial systems}},
journal = {Patterns (New York, N.Y.)},
year = {2026},
month = may,
volume = {7},
number = {6},
pages = {101564},
publisher = {Elsevier},
issn = {2666-3899},
doi = {10.1016/j.patter.2026.101564},
url = {https://doi.org/10.1016/j.patter.2026.101564},
pmid = {42328203},
pmcid = {PMC13280723}
}

RIS

TY - JOUR
AU - Sun, Guanglong
AU - Huang, Ning
AU - Yan, Hongwei
AU - Zhou, Jun
AU - Li, Qian
AU - Lei, Bo
AU - Zhong, Yi
AU - Wang, Liyuan
TI - Spacing effect improves generalization in biological and artificial systems
T2 - Patterns (New York, N.Y.)
J2 - Patterns (N Y)
PY - 2026
DA - 2026/05/19
VL - 7
IS - 6
SP - 101564
SN - 2666-3899
PB - Elsevier
DO - 10.1016/j.patter.2026.101564
UR - https://doi.org/10.1016/j.patter.2026.101564
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.patter.2026.101564",
"type": "article-journal",
"title": "Spacing effect improves generalization in biological and artificial systems",
"container-title": "Patterns (New York, N.Y.)",
"author": [
{
"family": "Sun",
"given": "Guanglong"
},
{
"family": "Huang",
"given": "Ning"
},
{
"family": "Yan",
"given": "Hongwei"
},
{
"family": "Zhou",
"given": "Jun"
},
{
"family": "Li",
"given": "Qian"
},
{
"family": "Lei",
"given": "Bo"
},
{
"family": "Zhong",
"given": "Yi"
},
{
"family": "Wang",
"given": "Liyuan"
}
],
"container-title-short": "Patterns (N Y)",
"volume": "7",
"issue": "6",
"page": "101564",
"DOI": "10.1016/j.patter.2026.101564",
"PMID": "42328203",
"PMCID": "PMC13280723",
"ISSN": "2666-3899",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.patter.2026.101564",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
19
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1038/s41746-023-00934-4 [code]
Relay learning: a physically secure framework for clinical multi-site deep learning.
Journal: NPJ digital medicine
In common: OpenCV, scikit-image, Pillow, 3 other tools, 1 reference
[2] doi:10.1038/s41467-026-74358-5 [code]
Brain-inspired spatial intelligence for embodied agents.
Journal: Nature communications
In common: OpenCV, Pillow, PyTorch, 2 other tools, cognitive, 1 reference
[3] doi:10.1038/s41598-026-43529-1 [code]
A spiking neural network inspired by neuroscience and psychology for Western mode- and key-conditioned music learning and composition.
Journal: Scientific reports
In common: OpenCV, Pillow, PyTorch, 2 other tools, cognitive, 1 reference
[4] doi:10.1371/journal.pcbi.1013674 [code]
Computational origins of shape perception.
Journal: PLoS computational biology
In common: OpenCV, Pillow, PyTorch, 2 other tools, cognitive, 1 reference
[5] doi:10.1038/s41467-025-56405-9 [code]
Hybrid neural networks for continual learning inspired by corticohippocampal circuits.
Journal: Nature communications
In common: Pillow, PyTorch, Matplotlib, 1 other tool, 1 reference
[6] doi:10.1038/s41467-025-62251-6 [code]
A multisynaptic spiking neuron for simultaneously encoding spatiotemporal dynamics.
Journal: Nature communications
In common: OpenCV, PyTorch, Matplotlib, 1 other tool, 1 reference
[7] doi:10.1016/j.neuron.2024.04.035 [code]
Compensatory enhancement of input maintains aversive dopaminergic reinforcement in hungry Drosophila.
Journal: Neuron
In common: scikit-image, Pillow, Matplotlib, 1 other tool, 1 reference
[8] doi:10.1016/j.celrep.2025.115232 [code]
Benefits of spaced learning are predicted by the re-encoding of past experience in ventromedial prefrontal cortex.
Journal: Cell reports
In common: 3 references
[9] doi:10.34133/cbsystems.0379 [code]
Augmenting Electroencephalogram Transformer for Steady-State Visually Evoked Potential-Based Brain-Computer Interfaces.
Journal: Cyborg and bionic systems (Washington, D.C.)
In common: Pillow, PyTorch, Matplotlib, 1 other tool, 1 reference
[10] doi:10.1038/s41586-024-07819-w [code]
Dopamine-mediated interactions between short- and long-term memory dynamics.
Journal: Nature
In common: cognitive, 3 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1016/j.patter.2026.101564.svg)](https://openscicode.org/badge/doi/10.1016/j.patter.2026.101564)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1016/j.patter.2026.101564.svg
   :target: https://openscicode.org/badge/doi/10.1016/j.patter.2026.101564
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.patter.2026.101564"><img src="https://openscicode.org/badge/doi/10.1016/j.patter.2026.101564.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.