SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · ijcai2020_0377 · IJCAI · 2020

Consistent MetaReg: Alleviating Intra-task Discrepancy for Better Meta-knowledge

Yang Gao, Yinghuan Shi, Pinzhuo Tian, Lei Qi, Shaokang Dong

Open in the Atlas

Code that ran

5 of 7 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; 4 failures of our instrument; 2 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/ijcai2020_0377.json · badge: /api/ran/ijcai2020_0377.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
P1nzhuo/Consistent-MetaReg canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
load_data Ran
ran; our contract draft was wrong, not the code
P1nzhuo/Consistent-MetaReg/dataloaders/miniImageNet.py
pointer only (licence: MIT); the stored copy get_code serves, from few-shot-learning-on-chest-x-ray/fsl_subspace, is pointer only (licence: NONE) · get_code("4a4efe7627515cc5")
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 few-shot-learning-on-chest-x-ray/fsl_subspace, 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.

buildLabelIndex Ran
ran; our contract draft was wrong, not the code
P1nzhuo/Consistent-MetaReg/dataloaders/miniImageNet.py
pointer only (licence: MIT); the stored copy get_code serves, from valeoai/moca, is pointer only (licence: NOASSERTION) · get_code("57889d72f516d105")
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 valeoai/moca, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

computeGramMatrix Ran
ran; our contract draft was wrong, not the code
P1nzhuo/Consistent-MetaReg/models/bilevel_head.py
code served (permissive licence) · get_code("691b2fde39c5dae5")
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 3, dtype family float, shape (2, 3, 5) 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 tensors with distinct dimensions for clarity
# A: (n_batch=2, n=3, d=4)
# B: (n_batch=2, m=5, d=4)
A = torch.randn(2, 3, 4)
B = torch.randn(2, 5, 4)

ARGS = {
    "A": A,
    "B": B,
}
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 3, dtype family float, shape (2, 3, 5) — shape (2, 3, 5) 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
load_checkpoint Ran
ran on a synthesized input
P1nzhuo/Consistent-MetaReg/bilevels/train_cm_miniImageNet.py
code served (permissive licence) · get_code("7f4d05ae86864bd6")
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 os
import torch
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal embedding network
class EmbeddingNet(nn.Module):
    def __init__(self):
        super(EmbeddingNet, self).__init__()
        self.fc = nn.Linear(4, 8)
    
    def forward(self, x):
        return self.fc(x)

# Define a minimal segmentation head
class SegHead(nn.Module):
    def __init__(self):
        super(SegHead, self).__init__()
        self.fc = nn.Linear(8, 3)
    
    def forward(self, x):
        return self.fc(x)

# Create instances
embedding_net = EmbeddingNet()
seg_head = SegHead()
optimizer = torch.optim.SGD(
    list(embedding_net.parameters()) + list(seg_head.parameters()),
    lr=0.01
)

# The function checks if filename exists and loads checkpoint if it does.
# Since we're not doing file I/O, we pass a filename that doesn't exist.
filename = 'checkpoint_does_not_exist.pth.tar'

ARGS = {
    'embedding_net': embedding_net,
    'seg_head': seg_head,
    'optimizer': optimizer,
    'filename': filename
}
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
mean_confidence_interval Ran
ran; our contract draft was wrong, not the code
P1nzhuo/Consistent-MetaReg/MAML/train_MAML_miniImagenet.py
pointer only (licence: MIT); the stored copy get_code serves, from NamyeongK/USA_UFGSM, is pointer only (licence: NONE) · get_code("ecf7ff30fb58c026")
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 NamyeongK/USA_UFGSM, 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.

binv Not yet run
unverified (harvested, no recorded run)
P1nzhuo/Consistent-MetaReg/models/bilevel_head.py
code served (permissive licence) · get_code("7d8d074dc5077026")
How it ran

no invocation recorded.

one_hot Not yet run
unverified (harvested, no recorded run)
P1nzhuo/Consistent-MetaReg/bilevels/train_cm_miniImageNet.py
code served (permissive licence) · get_code("6db52403976aa70c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 6 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 6 later) and 1 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
one_hot 11 other papers
1 dated earlier, 8 later, 2 same year, order not determinable · 4 only as an assembly brick
1703.05175 (2017-03)
Prototypical Networks for Few-shot Learning
2009.04960 (2020-09)
Prototype Completion with Primitive Knowledge for Few-Shot Learning
2010.07092 (2020-10)
Data Augmentation for Meta-Learning
and 8 more not named here
computeGramMatrix 8 other papers
1 dated earlier, 5 later, 2 same year, order not determinable · 1 only as an assembly brick
1703.05175 (2017-03)
Prototypical Networks for Few-shot Learning
2010.00763 (2020-10)
BONGARD-LOGO: A New Benchmark for Human-Level Concept Learning and Reasoning
2010.07092 (2020-10)
Data Augmentation for Meta-Learning
and 5 more not named here
buildLabelIndex 6 other papers
4 dated earlier, 2 later
1803.07728 (2018-03)
Unsupervised Representation Learning by Predicting Image Rotations
1804.09458 (2018-04)
Dynamic Few-Shot Visual Learning without Forgetting
1905.01102 (2019-05)
Generating Classification Weights with GNN Denoising Autoencoders for Few-Shot Learning
and 3 more not named here
load_data 4 other papers
3 dated earlier, 1 later
1804.09458 (2018-04)
Dynamic Few-Shot Visual Learning without Forgetting
1906.02944 (2019-06)
Learning Adaptive Classifiers Synthesis for Generalized Few-Shot Learning
1911.06045 (2019-11)
Self-Supervised Learning For Few-Shot Image Classification
and 1 more not named here
binv 2 other papers
2 later
2211.14666 (2022-11)
Synergies between Disentanglement and Sparsity: Generalization and Identifiability in Multi-Task Learning
2602.17947 (2026-02)
Understanding the Generalization of Bilevel Programming in Hyperparameter Optimization: A Tale of Bias-Variance Decomposition
mean_confidence_interval 2 other papers
2 later
2103.09027 (2021-03)
Repurposing Pretrained Models for Robust Out-of-domain Few-Shot Learning
2105.08913 (2021-05)
Multiple Meta-model Quantifying for Medical Visual 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-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

In the few-shot learning scenario, the datadistribution discrepancy between training data and test data in a task usually exists due to the limited data. However, most existing meta-learning approaches seldom consider this intra-task discrepancy in the meta-training phase which might deteriorate the performance. To overcome this limitation, we develop a new consistent meta-regularization method to reduce the intra-task data-distribution discrepancy. Moreover, the proposed metaregularization method could be readily inserted into existing optimization-based meta-learning models to learn better meta-knowledge. Particularly, we provide the theoretical analysis to prove that using the proposed meta-regularization, the conventional gradient-based meta-learning method can reach the lower regret bound. The extensive experiments also demonstrate the effectiveness of our method, which indeed improves the performances of the state-ofthe-art gradient-based meta-learning models in the few-shot classification task.

For agents

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

get_harvested_code_for_paper("ijcai2020_0377")
get_code_for_paper("ijcai2020_0377")
have("ijcai2020_0377")

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

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

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

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

Connect an agent — have() is free.