SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.05185 · ICLR · 2023

Mixture of Weak & Strong Experts on Graphs

Yinglong Xia, Jiebo Luo, Hanqing Zeng, Hanjia Lyu, Diyi Hu

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2311.05185.json · badge: /api/ran/2311.05185.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
facebookresearch/mowst-gnn canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
even_quantile_labels Ran
ran; our contract draft was wrong, not the code
facebookresearch/mowst-gnn/hetero_data_utils.py
code served (permissive licence) · get_code("fcf000e263c40916")
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 ndarray, ndim 1, dtype family int, shape (10,) 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 numpy as np

# Create a simple numpy array of values to partition
vals = np.array([1.2, 2.3, 3.1, 4.5, 5.2, 6.8, 7.1, 8.9, 9.2, 10.5], dtype=float)

# Define the number of classes for quantile-based partitioning
nclasses = 3

# Define verbosity flag
verbose = True

ARGS = {
    "vals": vals,
    "nclasses": nclasses,
    "verbose": verbose
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (10,) — shape (10,) 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
get_preset_struc Ran
ran; our contract draft was wrong, not the code
facebookresearch/mowst-gnn/utils.py
code served (permissive licence) · get_code("330c273770528a9b")
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 Args. 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 argparse

class Args:
    def __init__(self):
        self.dataset = 'flickr'
        self.model1 = 'GCN'
        self.model2 = 'GCN'
        self.model1_hidden_dim = 128
        self.model2_hidden_dim = 128
        self.model1_num_layers = 2
        self.model2_num_layers = 2
        self.weight_decay = 0.0001
        self.no_batch_norm = False
        self.no_cached = False

ARGS = {
    'args': Args()
}
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 Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
initialize_experiment Ran
ran; our contract draft was wrong, not the code
facebookresearch/mowst-gnn/utils.py
code served (permissive licence) · get_code("ed7a89d2c1c11c3a")
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 Namespace. 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 os
import torch
import torch.nn as nn
from argparse import Namespace
from unittest.mock import MagicMock
import tempfile

torch.manual_seed(0)

# Create temporary directories for the test
temp_dir = tempfile.mkdtemp()
wandb_save_path = os.path.join(temp_dir, 'wandb')
model_save_path = os.path.join(temp_dir, 'models')
result_save_path = os.path.join(temp_dir, 'results')

# Create a mock args object with all required attributes
ARGS = {
    'args': Namespace(
        dataset='flickr',
        model1_hidden_dim=128,
        model2_hidden_dim=128,
        model1_num_layers=2,
        model2_num_layers=2,
        model2='GCN',
        weight_decay=0.0001,
        no_batch_norm=False,
        no_cached=False,
        wandb_save_path=wandb_save_path,
        model_save_path=model_save_path,
        result_save_path=result_save_path,
        preset_struc=False,
        log=False,
        method='mowst',
        subloss=None,
        infer_method=None,
        setting='homo'
    )
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
test_vanilla Ran
ran, honoured the contract we drafted
facebookresearch/mowst-gnn/train_test_engine.py
code served (permissive licence) · get_code("f52e5019f45812fe")
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
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that takes data and returns logits
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)  # 4 input features, 3 classes
    
    def forward(self, data):
        # The function calls model(data) and expects output with shape suitable for argmax
        return self.linear(data.x)

# Build a minimal data object with required attributes
class MinimalData:
    def __init__(self):
        self.x = torch.randn(6, 4)  # 6 samples, 4 features
        self.y = torch.tensor([0, 1, 2, 0, 1, 2], dtype=torch.long)  # 6 labels

# Build a minimal evaluator that takes a dict with 'y_true' and 'y_pred'
class MinimalEvaluator:
    def eval(self, metrics_dict):
        # Return a dummy accuracy score
        y_true = metrics_dict['y_true']
        y_pred = metrics_dict['y_pred']
        correct = (y_true == y_pred).sum().item()
        accuracy = correct / len(y_true)
        return accuracy

# Create instances
model = MinimalModel()
data = MinimalData()

# Create split indices (train, valid, test)
split_idx = {
    'train': torch.tensor([0, 1], dtype=torch.long),
    'valid': torch.tensor([2, 3], dtype=torch.long),
    'test': torch.tensor([4, 5], dtype=torch.long)
}

evaluator = MinimalEvaluator()

# Create args dict (can be minimal since function doesn't use it)
args = {}

ARGS = {
    'model': model,
    'data': data,
    'split_idx': split_idx,
    'evaluator': evaluator,
    'args': args
}
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
train_vanilla Ran
ran, honoured the contract we drafted
facebookresearch/mowst-gnn/train_test_engine.py
code served (permissive licence) · get_code("a12c8925e1295895")
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 float, 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.optim as optim

torch.manual_seed(0)

# Define a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, data):
        return self.linear(data.x)

model = SimpleModel()

# Define a simple data object with required attributes
class SimpleData:
    def __init__(self):
        self.x = torch.randn(2, 4)
        self.y = torch.tensor([[0], [1]])
        self.train_mask = torch.tensor([True, True])

data = SimpleData()

# Define criterion (loss function)
crit = nn.NLLLoss()

# Define optimizer
optimizer = optim.SGD(model.parameters(), lr=0.01)

# Define args dict
args = {}

ARGS = {
    'model': model,
    'data': data,
    'crit': crit,
    'optimizer': optimizer,
    'args': args
}
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 float, 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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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.

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

Realistic graphs contain both (1) rich self-features of nodes and (2) informative structures of neighborhoods, jointly handled by a Graph Neural Network (GNN) in the typical setup. We propose to decouple the two modalities by Mixture of weak and strong experts (Mowst), where the weak expert is a light-weight Multilayer Perceptron (MLP), and the strong expert is an off-the-shelf GNN. To adapt the experts' collaboration to different target nodes, we propose a "confidence" mechanism based on the dispersion of the weak expert's prediction logits. The strong expert is conditionally activated in the low-confidence region when either the node's classification relies on neighborhood information, or the weak expert has low model quality. We reveal interesting training dynamics by analyzing the influence of the confidence function on loss: our training algorithm encourages the specialization of each expert by effectively generating soft splitting of the graph. In addition, our "confidence" design imposes a desirable bias toward the strong expert to benefit from GNN's better generalization capability. Mowst is easy to optimize and achieves strong expressive power, with a computation cost comparable to a single GNN. Empirically, Mowst on 4 backbone GNN architectures show significant accuracy improvement on 6 standard node classification benchmarks, including both homophilous and heterophilous graphs (https://github.com/facebookresearch/mowst-gnn). Strong Expert (GNN) * Equal contribution

For agents

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

get_harvested_code_for_paper("2311.05185")
get_code_for_paper("2311.05185")
have("2311.05185")

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

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

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

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

Connect an agent — have() is free.