SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.00198 · ICLR · 2024

ImplicitSLIM and How it Improves Embedding-based Collaborative Filtering

Ilya Shenbin, Sergey Nikolenko

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 3 failures of our instrument; 2 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/2406.00198.json · badge: /api/ran/2406.00198.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
ilya-shenbin/ImplicitSLIM canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
ilya-shenbin/implicitslim canonical (classifier label)
classifier basis: classifier_2025
2 ran · 2 no recorded run
FunctionStatusWhere it lives
get_data Ran
ran; our contract draft was wrong, not the code
ilya-shenbin/ImplicitSLIM/utils.py
code served (permissive licence) · get_code("f99d8c7b725228f7")
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 generator. 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 tempfile
import pandas as pd
import numpy as np

# Create a temporary directory structure with the required files
temp_dir = tempfile.mkdtemp()

# Create unique_sid.txt
with open(os.path.join(temp_dir, 'unique_sid.txt'), 'w') as f:
    for i in range(5):
        f.write(f'item_{i}\n')

# Create unique_uid.txt
with open(os.path.join(temp_dir, 'unique_uid.txt'), 'w') as f:
    for i in range(3):
        f.write(f'user_{i}\n')

# Create train.csv
train_df = pd.DataFrame({
    'uid': [0, 0, 1, 2, 1],
    'sid': [0, 1, 2, 3, 4]
})
train_df.to_csv(os.path.join(temp_dir, 'train.csv'), index=False)

# Create validation_tr.csv
val_tr_df = pd.DataFrame({
    'uid': [0, 1],
    'sid': [1, 2]
})
val_tr_df.to_csv(os.path.join(temp_dir, 'validation_tr.csv'), index=False)

# Create validation_te.csv
val_te_df = pd.DataFrame({
    'uid': [0, 2],
    'sid': [3, 4]
})
val_te_df.to_csv(os.path.join(temp_dir, 'validation_te.csv'), index=False)

# Create test_tr.csv
test_tr_df = pd.DataFrame({
    'uid': [1, 2],
    'sid': [0, 1]
})
test_tr_df.to_csv(os.path.join(temp_dir, 'test_tr.csv'), index=False)

# Create test_te.csv
test_te_df = pd.DataFrame({
    'uid': [0, 1],
    'sid': [2, 3]
})
test_te_df.to_csv(os.path.join(temp_dir, 'test_te.csv'), index=False)

ARGS = {
    'dataset': temp_dir,
    'global_indexing': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
implicit_slim Ran
ran, violated the contract we drafted
ilya-shenbin/implicitslim/implicit_slim.py
code served (permissive licence) · get_code("ca6a27e8158bc899")
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) and returned ndarray, ndim 2, dtype family float, shape (5, 4) 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

np.random.seed(0)

# W: weight matrix, used as W.copy() and later W @ A.T @ AC
# Shape should be (n_items, n_features)
W = np.random.randn(5, 4).astype(np.float32)

# X: data matrix, used with X.sum(0), X.sum(axis=0), X.T @ X
# Shape should be (n_samples, n_features)
X = np.random.randn(6, 4).astype(np.float32)

# λ (lambda): scalar regularization parameter
λ = 0.1

# α (alpha): scalar parameter
α = 0.5

# thr: threshold for filtering columns
thr = 2.0

ARGS = {
    "W": W,
    "X": X,
    "λ": λ,
    "α": α,
    "thr": thr,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 4) — shape (5, 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
load_tr_te_data Ran
ran; our contract draft was wrong, not the code
ilya-shenbin/ImplicitSLIM/utils.py
code served (permissive licence) · get_code("88ff037fba33420b")
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 numpy as np
import pandas as pd
from scipy import sparse
import tempfile
import os

# Create temporary CSV files with the required columns
temp_dir = tempfile.mkdtemp()
csv_file_tr = os.path.join(temp_dir, 'train.csv')
csv_file_te = os.path.join(temp_dir, 'test.csv')

# Create training data CSV
train_data = pd.DataFrame({
    'uid': [0, 1, 2, 0, 1],
    'sid': [0, 1, 2, 3, 0]
})
train_data.to_csv(csv_file_tr, index=False)

# Create test data CSV
test_data = pd.DataFrame({
    'uid': [0, 2, 1],
    'sid': [1, 3, 2]
})
test_data.to_csv(csv_file_te, index=False)

ARGS = {
    'csv_file_tr': csv_file_tr,
    'csv_file_te': csv_file_te,
    'n_items': 5,
    'n_users': 3,
    'global_indexing': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — 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
load_train_data Ran
ran; our contract draft was wrong, not the code
ilya-shenbin/ImplicitSLIM/utils.py
code served (permissive licence) · get_code("e0b8ebf85e66d1b6")
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 csr_matrix. 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
from scipy import sparse
import pandas as pd
import tempfile
import os

# Create a temporary CSV file with minimal data
temp_dir = tempfile.mkdtemp()
csv_file = os.path.join(temp_dir, "train_data.csv")

# Create sample data: uid (user id), sid (song/item id)
data = {
    'uid': [0, 0, 1, 1, 2],
    'sid': [0, 1, 1, 2, 0]
}
df = pd.DataFrame(data)
df.to_csv(csv_file, index=False)

ARGS = {
    'csv_file': csv_file,
    'n_items': 3,
    'n_users': 4,
    'global_indexing': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix 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
slim_lle_1 Ran
ran, violated the contract we drafted
ilya-shenbin/implicitslim/implicit_slim.py
code served (permissive licence) · get_code("0e19bc4f54575414")
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) and returned ndarray, ndim 2, dtype family float, shape (4, 4) 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
from scipy import sparse

# Create a small sparse matrix X
# X should be such that X.T * X is valid
# X is (n_samples, n_features), so we'll make it (5, 4)
X_dense = np.random.randn(5, 4)
X = sparse.csr_matrix(X_dense)

# λ is a regularization parameter (scalar)
λ = 0.1

ARGS = {
    "X": X,
    "λ": λ
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 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
slim_lle_1 Ran
ran, honoured the contract we drafted
ilya-shenbin/ImplicitSLIM/implicit_slim.py
code served (permissive licence) · get_code("06791d318df24851")
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 2, dtype family float, shape (3, 3) 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
from scipy import sparse

# The function expects X to be a sparse matrix (it calls .toarray())
# Create a small sparse matrix: 4 features × 3 samples
X_dense = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=np.float64)

X = sparse.csr_matrix(X_dense)

# λ (lambda) is a regularization parameter, a scalar
λ = 0.1

ARGS = {
    'X': X,
    'λ': λ
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 3) — shape (3, 3) 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
implicit_slim Not yet run
unverified (harvested, no recorded run)
ilya-shenbin/implicitslim/implicit_slim.py
code served (permissive licence) · get_code("c065f3ca8ed40f4a")
How it ran

no invocation recorded.

slim_lle_2 Not yet run
unverified (harvested, no recorded run)
ilya-shenbin/implicitslim/implicit_slim.py
code served (permissive licence) · get_code("cb2a265a30837adf")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
load_tr_te_data 1 other paper
1 dated earlier
2008.06716 (2020-08)
Performance of Hyperbolic Geometry Models on Top-N Recommendation Tasks
load_train_data 1 other paper
1 dated earlier
2008.06716 (2020-08)
Performance of Hyperbolic Geometry Models on Top-N Recommendation Tasks

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

We present ImplicitSLIM, a novel unsupervised learning approach for sparse high-dimensional data, with applications to collaborative filtering. Sparse linear methods (SLIM) and their variations show outstanding performance, but they are memory-intensive and hard to scale. ImplicitSLIM improves embedding-based models by extracting embeddings from SLIM-like models in a computationally cheap and memory-efficient way, without explicit learning of heavy SLIM-like models. We show that ImplicitSLIM improves performance and speeds up convergence for both state of the art and classical collaborative filtering methods. The source code for ImplicitSLIM, related models, and applications is available at https://github.com/ilya-shenbin/ImplicitSLIM.

For agents

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

get_harvested_code_for_paper("2406.00198")
get_code_for_paper("2406.00198")
have("2406.00198")

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

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

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

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

Connect an agent — have() is free.