SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.16863 · 2022

Cross-Domain Recommendation to Cold-Start Users via Variational Information Bottleneck

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 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, 1 violated it and 8 have no contract verdict; 2 failures of our instrument; 0 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/2203.16863.json · badge: /api/ran/2203.16863.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
cjx96/cdrib canonical (classifier label)
classifier basis not recorded on the link
11 ran · 0 no recorded run
FunctionStatusWhere it lives
create_item_dict Ran
ran on a synthesized input
cjx96/cdrib/dataset/preprocessing/split_data.py
code served (permissive licence) · get_code("58a62c6102341fce")
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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - create_item_dict takes two parameters: `item` and `data`
# - `item` is a dict that gets updated with new keys
# - `data` is a dict where keys are user identifiers (u) and values are iterables (i)
# - For each user u in data, we iterate through items in data[u]
# - If an item i is not in item.keys(), we add it with value len(item)

# Construct minimal valid arguments:
item = {}
data = {
    'user1': ['item_a', 'item_b', 'item_c'],
    'user2': ['item_b', 'item_d'],
    'user3': ['item_a', 'item_e']
}

ARGS = {
    'item': item,
    'data': data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
create_user_dict Ran
ran on a synthesized input
cjx96/cdrib/dataset/preprocessing/split_data.py
code served (permissive licence) · get_code("b9294b4ef8b21c1f")
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 copy

def create_user_dict(user, data):
    user = copy.deepcopy(user)
    for u in data.keys():
        if u not in user.keys():
            user[u] = len(user)
    return user

# Construct arguments
user = {
    "alice": 0,
    "bob": 1,
    "charlie": 2
}

data = {
    "dave": None,
    "eve": None,
    "alice": None,
    "frank": None
}

ARGS = {
    "user": user,
    "data": data
}
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 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
flatten_indices Ran
ran on a synthesized input
cjx96/cdrib/CDRIB/utils/torch_utils.py
code served (permissive licence) · get_code("aadcc8351221c2fd")
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 int; 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)

# Analyze the function:
# - seq_lens: iterable of integers (lengths of sequences)
# - width: integer (width parameter)
# - The function iterates through seq_lens with enumerate (getting index i and length l)
# - For each sequence, it generates indices: i * width + j for j in range(l)
# - Returns a flat list of integers

# Construct valid arguments
seq_lens = [3, 2, 4]  # Three sequences with lengths 3, 2, and 4
width = 5  # Width parameter

ARGS = {
    "seq_lens": seq_lens,
    "width": width
}
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 list, ndim 1, dtype family int — 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
get_min_group_size Ran
ran on a synthesized input
cjx96/cdrib/dataset/preprocessing/Filter_data_cold.py
code served (permissive licence) · get_code("36b8aea8d15b5258")
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 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 pandas as pd

def get_min_group_size(ratings):
    rate_size_dic_u = ratings.groupby('userId').size()
    return min(rate_size_dic_u)

# Create a small DataFrame with userId and some rating data
ratings = pd.DataFrame({
    'userId': [1, 1, 1, 2, 2, 3, 3, 3, 3],
    'movieId': [10, 20, 30, 40, 50, 60, 70, 80, 90],
    'rating': [5, 4, 3, 5, 2, 4, 4, 5, 3]
})

ARGS = {
    'ratings': ratings
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
get_optimizer Ran
ran on a synthesized input
cjx96/cdrib/CDRIB/utils/torch_utils.py
code served (permissive licence) · get_code("ee7a3e322ecd6668")
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 MyAdagrad. 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)

# Create a simple model with parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(torch.relu(self.linear1(x)))

model = SimpleModel()

ARGS = {
    'name': 'myadagrad',
    'parameters': model.parameters(),
    'lr': 0.01,
    'l2': 0.0001
}
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 MyAdagrad — a MyAdagrad output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MyAdagrad 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
load_config Ran
ran on a synthesized input
cjx96/cdrib/CDRIB/utils/helper.py
code served (permissive licence) · get_code("5eda04e68e1704dc")
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 json
import tempfile
import os

# Create a temporary JSON config file
config_data = {
    "model": "test_model",
    "learning_rate": 0.001,
    "batch_size": 32,
    "num_epochs": 10
}

# Write to a temporary file
temp_dir = tempfile.gettempdir()
config_path = os.path.join(temp_dir, "test_config.json")
with open(config_path, 'w') as f:
    json.dump(config_data, f)

ARGS = {
    "path": config_path,
    "verbose": 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 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
normalize Ran
ran, violated the contract we drafted
cjx96/cdrib/CDRIB/utils/GraphMaker.py
pointer only (licence: MIT); the stored copy get_code serves, from songw-sw/x-fnc, is pointer only (licence: NONE) · get_code("aa9c29936dee40a7")
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 songw-sw/x-fnc, 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.

read_dataset Ran
ran on a synthesized input
cjx96/cdrib/dataset/preprocessing/split_data.py
code served (permissive licence) · get_code("0045b063decbe8a5")
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 tempfile
import os

# Create a temporary file with sample data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8')
temp_file.write("user1\titem1\t5\n")
temp_file.write("user1\titem2\t4\n")
temp_file.write("user2\titem1\t3\n")
temp_file.write("user2\titem3\t5\n")
temp_file.close()

file_name = temp_file.name

ARGS = {
    "file_name": file_name
}
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 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
save_config Ran
ran on a synthesized input
cjx96/cdrib/CDRIB/utils/helper.py
code served (permissive licence) · get_code("844725f7776a3539")
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 json
import tempfile
import os

def save_config(config, path, verbose=True):
    with open(path, 'w') as outfile:
        json.dump(config, outfile, indent=2)
    if verbose:
        print('Config saved to file {}'.format(path))
    return config

# Create a temporary directory for the output file
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir, 'test_config.json')

# Define the config dict with JSON-serializable values
config_dict = {
    'model_name': 'test_model',
    'learning_rate': 0.001,
    'batch_size': 32,
    'epochs': 10,
    'layers': [64, 128, 256],
    'dropout': 0.5,
    'use_attention': True,
    'seed': 42
}

ARGS = {
    'config': config_dict,
    'path': temp_path,
    'verbose': 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 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
set_cuda Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cjx96/cdrib/CDRIB/utils/torch_utils.py
code served (permissive licence) · get_code("f21db161a6b12a80")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 a small tensor to pass as 'var'
var = torch.randn(2, 4)

# Create a boolean for 'cuda'
cuda = False

ARGS = {
    'var': var,
    'cuda': cuda
}
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
sparse_mx_to_torch_sparse_tensor Ran
ran; our contract draft was wrong, not the code
cjx96/cdrib/CDRIB/utils/GraphMaker.py
code served (permissive licence) · get_code("c97b99c4e8201a97")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor. 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 numpy as np
import torch
from scipy.sparse import csr_matrix

torch.manual_seed(0)

# Create a small sparse matrix using scipy
# Make it 3x4 to have distinct dimensions
row = np.array([0, 0, 1, 2, 2])
col = np.array([0, 2, 1, 0, 3])
data = np.array([1.5, 2.3, 3.7, 4.2, 5.1])
sparse_mx = csr_matrix((data, (row, col)), shape=(3, 4))

ARGS = {
    'sparse_mx': sparse_mx
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, shape (3, 4) — shape (3, 4) as a later run recorded it
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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 3 later) and 6 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
sparse_mx_to_torch_sparse_tensor 32 other papers
9 dated earlier, 23 later · 4 only as an assembly brick
1806.09055 (2018-06)
DARTS: Differentiable Architecture Search
1902.07153 (2019-02)
Simplifying Graph Convolutional Networks
2002.01633 (2020-02)
Structural Deep Clustering Network
and 29 more not named here
normalize 24 other papers
10 dated earlier, 14 later
1609.02907 (2016-09)
Semi-Supervised Classification with Graph Convolutional Networks
1803.03735 (2018-03)
Attention-based Graph Neural Network for Semi-supervised Learning
1805.09112 (2018-05)
Hyperbolic Neural Networks
and 21 more not named here
load_config 1 other paper
1 dated earlier
2107.03573 (2021-07)
Deep Structural Point Process for Learning Temporal Interaction Networks
save_config 1 other paper
1 dated earlier
2107.03573 (2021-07)
Deep Structural Point Process for Learning Temporal Interaction Networks
set_cuda 1 other paper
1 later
2605.00364 (2026-05)
Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearning

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

Recommender systems have been widely deployed in many real-world applications, but usually suffer from the long-standing user cold-start problem. As a promising way, Cross-Domain Recommendation (CDR) has attracted a surge of interest, which aims to transfer the user preferences observed in the source domain to make recommendations in the target domain. Previous CDR approaches mostly achieve the goal by following the Embedding and Mapping (EMCDR) idea which attempts to learn a mapping function to transfer the pre-trained user representations (embeddings) from the source domain into the target domain. However, they pre-train the user/item representations independently for each domain, ignoring to consider both domain interactions simultaneously. Therefore, the biased pre-trained representations inevitably involve the domain-specific information which may lead to negative impact to transfer information across domains. In this work, we consider a key point of the CDR task: what information needs to be shared across domains? To achieve the above idea, this paper utilizes the information bottleneck (IB) principle, and proposes a novel approach termed as CDRIB to enforce the representations encoding the domain-shared information. To derive the unbiased representations, we devise two IB regularizers to model the cross-domain/in-domain user-item interactions simultaneously and thereby CDRIB could consider both domain interactions jointly for de-biasing.

For agents

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

get_harvested_code_for_paper("2203.16863")
get_code_for_paper("2203.16863")
have("2203.16863")

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

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

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

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

Connect an agent — have() is free.