SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.10860 · ICML · 2021

Multiplying Matrices Without Multiplying

Davis Blalock, John Guttag

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 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 10 have no contract verdict; 1 failure of our instrument; 3 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/2106.10860.json · badge: /api/ran/2106.10860.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
joennlae/halutmatmul community (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_decision_tree_torch Ran
ran on a synthesized input
joennlae/halutmatmul/src/python/halutmatmul/modules.py
code served (permissive licence) · get_code("730a9804a13735ee")
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 1, dtype family int, shape (2,) 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 numpy as np

torch.manual_seed(0)

# Understand the function:
# - X: (N, D) tensor of input features
# - decision_tree: tensor encoding a binary decision tree
# - The tree has B leaf nodes, so n_decisions = log2(B)
# - decision_tree structure:
#   - [0:B]: dimension indices for each node
#   - [B:2B]: split thresholds for each node
#   - [2B:3B]: leaf class labels
# - For a valid tree with depth n_decisions, B must be a power of 2

# Construct a minimal decision tree
# Let's use B = 4 (so n_decisions = 2, depth 2 tree)
B = 4
n_decisions = int(np.log2(B))  # = 2

# decision_tree tensor needs 3*B = 12 elements
# [0:4] = dimension indices for internal nodes
# [4:8] = split thresholds
# [8:12] = leaf labels

decision_tree = torch.tensor([
    # Dimensions for nodes (root and internal)
    0, 0, 1, 1,  # indices 0-3: which feature to split on
    # Split thresholds for nodes
    0.5, 0.5, 0.5, 0.5,  # indices 4-7: threshold values
    # Leaf labels
    0, 1, 2, 3,  # indices 8-11: class labels for leaves
], dtype=torch.float32)

# Create input data X
# N = 2 samples, D = 2 features (matching the tree which uses dims 0 and 1)
N = 2
D = 2
X = torch.tensor([
    [0.3, 0.2],  # sample 1
    [0.7, 0.8],  # sample 2
], dtype=torch.float32)

ARGS = {
    "X": X,
    "decision_tree": decision_tree,
}
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 Tensor, ndim 1, dtype family int, shape (2,) — shape (2,) 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
apply_hash_function_opt Ran
ran on a synthesized input
joennlae/halutmatmul/src/python/halutmatmul/functions.py
code served (permissive licence) · get_code("032e5daad938f30b")
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 (2,) 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
import numba

np.random.seed(0)

# Construct X: N samples, each with some features
# X shape: (N, num_features) where num_features should be > max dimension accessed
N = 2
num_features = 4
X = np.random.randn(N, num_features).astype(np.float64)

# Construct splits array
# The function accesses splits[i, 0:pow(2, i)] for indexing into group_ids
# and splits[i, length], splits[i, length+1], splits[i, length+2]
# where length = splits.shape[1] - 3
# 
# Let's use num_splits = 3 as an example
# For i=0: pow(2,0)=1, so we access splits[0, 0:1]
# For i=1: pow(2,1)=2, so we access splits[1, 0:2]
# For i=2: pow(2,2)=4, so we access splits[2, 0:4]
# Maximum needed columns: 4 (for indices 0-3) + 3 (for dim, scaleby, offset) = 7 columns

num_splits = 3
num_cols = 7
splits = np.random.randn(num_splits, num_cols).astype(np.float64)

# Set dim values to valid feature indices (column indices into X)
splits[0, 4] = 0  # length=4, so dim is at index 4
splits[1, 4] = 1
splits[2, 4] = 2

# scaleby and offset values
splits[0, 5] = 1.0  # scaleby
splits[0, 6] = 0.5  # offset
splits[1, 5] = 1.0
splits[1, 6] = 0.5
splits[2, 5] = 1.0
splits[2, 6] = 0.5

# vals in splits[i, 0:pow(2, i)] should be valid threshold values
splits[0, 0] = 0.0
splits[1, 0] = -0.5
splits[1, 1] = 0.5
splits[2, 0] = -1.0
splits[2, 1] = -0.5
splits[2, 2] = 0.5
splits[2, 3] = 1.0

ARGS = {
    'X': X,
    'splits': splits,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (2,) — shape (2,) 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
check_file_exists Ran
ran on a synthesized input
joennlae/halutmatmul/src/python/halutmatmul/model.py
code served (permissive licence) · get_code("f4e2c94e3f70116c")
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 bool, 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 tempfile
from pathlib import Path

# Create a temporary file to test the function
temp_dir = tempfile.TemporaryDirectory()
temp_file_path = Path(temp_dir.name) / "test_file.txt"
temp_file_path.write_text("test content")

ARGS = {
    "path": str(temp_file_path)
}
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 bool, 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
check_is_more_than_enough Ran
ran on a synthesized input
joennlae/halutmatmul/src/python/halutmatmul/learn.py
code served (permissive licence) · get_code("23ddb990fe91a50d")
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 bool, 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - C: int - number of classes
# - K: int - number of prototypes per class
# - N: int - total number of rows/samples
# - D: int - number of dimensions/features
# The function performs calculations and returns True if N > 10000000

ARGS = {
    "C": 10,
    "K": 5,
    "N": 20000000,
    "D": 128
}
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 bool, 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
create_bit_matrix Ran
ran on a synthesized input
joennlae/halutmatmul/src/python/halutmatmul/modules.py
code served (permissive licence) · get_code("b500410027a5635e")
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 (16, 15) 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 numpy as np

torch.manual_seed(0)

ARGS = {
    "C": 1,
    "K": 16,
    "dtype": torch.float16,
}
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 Tensor, ndim 2, dtype family float, shape (16, 15) — shape (16, 15) 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
create_selection_matrix Ran
ran on a synthesized input
joennlae/halutmatmul/src/python/halutmatmul/modules.py
code served (permissive licence) · get_code("7d8b3253078afc99")
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 (15, 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 math
import numpy as np
import torch

torch.manual_seed(0)

ARGS = {
    "C": 1,
    "K": 16,
    "dtype": torch.float16
}
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 Tensor, ndim 2, dtype family float, shape (15, 4) — shape (15, 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
deindent Ran
ran on a synthesized input
joennlae/halutmatmul/.github/vast.ai/vast.py
code served (permissive licence) · get_code("bc4355895f3d953f")
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 str. 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 re

def deindent(message: str) -> str:
    """
    Deindent a quoted string. Scans message and finds the smallest number of whitespace characters in any line and
    removes that many from the start of every line.

    :param str message: Message to deindent.
    :rtype str:
    """
    message = re.sub(' *$', '', message, flags=re.MULTILINE)
    indents = [len(x) for x in re.findall('^ *(?=[^ ])', message, re.MULTILINE) if len(x)]
    a = min(indents)
    message = re.sub('^ {,' + str(a) + '}', '', message, flags=re.MULTILINE)
    return message.strip()


ARGS = {
    "message": "    hello world\n    this is indented\n    another line"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_module_by_name Ran
ran; our contract draft was wrong, not the code
joennlae/halutmatmul/src/python/halutmatmul/model.py
code served (permissive licence) · get_code("423bc966744f4f58")
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 Linear. 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 nested module structure
class InnerModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class MiddleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.inner = InnerModule()
    
    def forward(self, x):
        return self.inner(x)

class OuterModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.middle = MiddleModule()
        self.seq = nn.Sequential(
            nn.Linear(4, 5),
            nn.ReLU(),
            nn.Linear(5, 3)
        )
    
    def forward(self, x):
        return self.middle(x)

# Instantiate the module
module = OuterModule()

# Test with a simple nested access string
access_string = "middle.inner.linear"

ARGS = {
    "module": module,
    "access_string": access_string
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
read_luts_opt Ran
ran on a synthesized input
joennlae/halutmatmul/src/python/halutmatmul/functions.py
code served (permissive licence) · get_code("5cd252885b619401")
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 (2, 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 numpy as np
import numba
from numba import prange

# Set up small test data for the function
# A_raveled: indices into the LUT
A_raveled = np.array([0, 1, 2, 1, 0], dtype=np.int64)

# A_shape: shape to reshape the read_lut back to
A_shape = (5, 3)

# B_luts: array of lookup tables
# Shape: (num_luts, lut_size, ...)
# The function does B_luts[i].ravel()[A_raveled] so we need valid indices
# A_raveled has max value 2, so lut_size should be > 2
B_luts = 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], [13.0, 14.0, 15.0], [16.0, 17.0, 18.0]]
], dtype=np.float64)

# total_result: output array to store results
# Shape should be (num_luts, ...) where ... comes from read_lut.sum(axis=-1)
# Since A_shape is (5, 3) and we sum over axis=-1, result shape is (num_luts, 5)
total_result = np.zeros((2, 5), dtype=np.float64)

ARGS = {
    "A_raveled": A_raveled,
    "A_shape": A_shape,
    "B_luts": B_luts,
    "total_result": total_result
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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 (2, 5) — shape (2, 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
run_command Ran
ran on a synthesized input
joennlae/halutmatmul/.github/vast.ai/vast_ai_helper.py
code served (permissive licence) · get_code("1df4b72b2fa42ada")
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 str. 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 subprocess

# The function run_command takes:
# 1. cmd: str - a shell command to run
# 2. print_all: bool - whether to print output as it arrives

# Since this function executes shell commands and captures their output,
# we need to provide a simple, safe command that will produce some output.
# We'll use a command that echoes text, which is universally available.

cmd = "echo 'Hello from subprocess' && echo 'Line 2'"
print_all = False

ARGS = {
    "cmd": cmd,
    "print_all": print_all,
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
translate_null_strings_to_blanks Ran
ran on a synthesized input
joennlae/halutmatmul/.github/vast.ai/vast.py
code served (permissive licence) · get_code("b0a4a137805be58e")
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 typing

def translate_null_strings_to_blanks(d: typing.Dict) -> typing.Dict:
    """Map over a dict and translate any null string values into ' '.
    Leave everything else as is. This is needed because you cannot add TableCell
    objects with only a null string or the client crashes.

    :param Dict d: dict of item values.
    :rtype Dict:
    """

    def translate_nulls(s):
        if s == '':
            return ' '
        return s
    new_d = {k: translate_nulls(v) for k, v in d.items()}
    return new_d


# Setup code to construct valid arguments
ARGS = {
    'd': {
        'key1': '',
        'key2': 'hello',
        'key3': '',
        'key4': 'world',
        'key5': ''
    }
}
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
apiurl Not yet run
unverified (harvested, no recorded run)
joennlae/halutmatmul/.github/vast.ai/vast.py
code served (permissive licence) · get_code("ca1b9a40081545de")
How it ran

no invocation recorded.

run_ssh_commands Not yet run
unverified (harvested, no recorded run)
joennlae/halutmatmul/.github/vast.ai/vast_ai_helper.py
code served (permissive licence) · get_code("4ddebb219c22ace3")
How it ran

no invocation recorded.

startup Not yet run
unverified (harvested, no recorded run)
joennlae/halutmatmul/.github/vast.ai/vast_ai_helper.py
code served (permissive licence) · get_code("080451f563966a56")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 13 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
get_module_by_name 1 other paper
1 later
2204.04516 (2022-04)
Uncertainty-Informed Deep Learning Models Enable High-Confidence Predictions for Digital Histopathology

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

Multiplying matrices is among the most fundamental and compute-intensive operations in machine learning. Consequently, there has been significant work on efficiently approximating matrix multiplies. We introduce a learning-based algorithm for this task that greatly outperforms existing methods. Experiments using hundreds of matrices from diverse domains show that it often runs 100× faster than exact matrix products and 10× faster than current approximate methods. In the common case that one matrix is known ahead of time, our method also has the interesting property that it requires zero multiply-adds. These results suggest that a mixture of hashing, averaging, and byte shuffling--the core operations of our method--could be a more promising building block for machine learning than the sparsified, factorized, and/or scalar quantized matrix products that have recently been the focus of substantial research and hardware investment.

For agents

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

get_harvested_code_for_paper("2106.10860")
get_code_for_paper("2106.10860")
have("2106.10860")

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

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

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

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

Connect an agent — have() is free.