SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.16379 · 2026

LLMAR: A Tuning-Free Recommendation Framework for Sparse and Text-Rich Industrial Domains

Ryogo Hishikawa

arXiv · PDF

Code that ran

2 of 2 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 0 have no contract verdict; 2 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/2604.16379.json · badge: /api/ran/2604.16379.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
RUCAIBox/RecBole canonical (classifier label)
classifier basis: plan_row
2 ran · 0 no recorded run
FunctionStatusWhere it lives
activation_layer Ran
ran; our contract draft was wrong, not the code
RUCAIBox/RecBole/recbole/model/layers.py
code served (permissive licence) · get_code("b5b0bb176f34b7a4")
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 ReLU. 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)

class Dice(nn.Module):
    """Dice activation function

    .. math::
        f(s)=p(s) \\cdot s+(1-p(s)) \\cdot \\alpha s

    .. math::
        p(s)=\\frac{1} {1 + e^{-\\frac{s-E[s]} {\\sqrt {Var[s] + \\epsilon}}}}
    """

    def __init__(self, emb_size):
        super(Dice, self).__init__()
        self.sigmoid = nn.Sigmoid()
        self.alpha = torch.zeros((emb_size,))

    def forward(self, score):
        self.alpha = self.alpha.to(score.device)
        score_p = self.sigmoid(score)
        return self.alpha * (1 - score_p) * score + score_p * score

def activation_layer(activation_name='relu', emb_dim=None):
    """Construct activation layers

    Args:
        activation_name: str, name of activation function
        emb_dim: int, used for Dice activation

    Return:
        activation: activation layer
    """
    if activation_name is None:
        activation = None
    elif isinstance(activation_name, str):
        if activation_name.lower() == 'sigmoid':
            activation = nn.Sigmoid()
        elif activation_name.lower() == 'tanh':
            activation = nn.Tanh()
        elif activation_name.lower() == 'relu':
            activation = nn.ReLU()
        elif activation_name.lower() == 'leakyrelu':
            activation = nn.LeakyReLU()
        elif activation_name.lower() == 'dice':
            activation = Dice(emb_dim)
        elif activation_name.lower() == 'none':
            activation = None
    elif issubclass(activation_name, nn.Module):
        activation = activation_name()
    else:
        raise NotImplementedError('activation function {} is not implemented'.format(activation_name))
    return activation

ARGS = {
    'activation_name': 'relu',
    'emb_dim': 8
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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
cluster_info Ran
ran; our contract draft was wrong, not the code
RUCAIBox/RecBole/recbole/evaluator/register.py
code served (permissive licence) · get_code("5a832e04227e57b2")
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. 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 inspect
import sys

# Create a mock metrics module with metric classes
class MockMetric1:
    metric_need = "rec.items, rec.topk"
    metric_type = "RANKING"
    smaller = False

class MockMetric2:
    metric_need = "rec.score, data.num_items"
    metric_type = "VALUE"
    smaller = True

class MockMetric3:
    metric_need = "rec.meanrank, data.num_users"
    metric_type = "RANKING"
    smaller = True

# Create a mock module
import types
mock_module = types.ModuleType("test_metrics_module")
mock_module.MockMetric1 = MockMetric1
mock_module.MockMetric2 = MockMetric2
mock_module.MockMetric3 = MockMetric3

# Set the module's __module__ attribute on each class so they appear to be from this module
MockMetric1.__module__ = "test_metrics_module"
MockMetric2.__module__ = "test_metrics_module"
MockMetric3.__module__ = "test_metrics_module"

# Register the module in sys.modules
sys.modules["test_metrics_module"] = mock_module

ARGS = {
    "module_name": "test_metrics_module"
}
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 tuple — a tuple output has no array shape of its own; none is 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

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 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, 2 later) and 0 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
activation_layer 18 other papers
17 dated earlier, 1 later
2110.05730 (2021-10)
Contrastive Learning for Representation Degeneration Problem in Sequential Recommendation
2204.11046 (2022-04)
Decoupled Side Information Fusion for Sequential Recommendation
2205.08776 (2022-05)
AdaMCT: Adaptive Mixture of CNN-Transformer for Sequential Recommendation
and 15 more not named here
cluster_info 5 other papers
4 dated earlier, 1 later
2204.11046 (2022-04)
Decoupled Side Information Fusion for Sequential Recommendation
2308.09419 (2023-08)
Attention Calibration for Transformer-based Sequential Recommendation
2309.06789 (2023-09)
An Image Dataset for Benchmarking Recommender Systems with Raw Pixels
and 2 more not named here

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

Industrial B2B applications, such as construction site risk prediction and specialized material procurement, are characterized by extreme data sparsity yet feature rich textual information within each interaction. In such environments, traditional ID-based collaborative filtering fails due to the lack of co-occurrence signals. Conversely, fine-tuning standard Large Language Models (LLMs) presents significant practical barriers, specifically regarding high operational costs and the challenge of managing frequent data drift. To address these challenges, we propose LLMAR (LLM-Annotated Recommendation), a tuning-free recommendation framework. Our approach is novel in that it goes beyond simple embedding utilization; by systematically integrating the reasoning capabilities of LLMs, it captures user "latent motives" without the need for a training process. Specifically, we introduce three core technical contributions: (1) Inference-Driven Annotation, which employs LLMs to transform user behavioral history from simple time-series data into structured semantic motives, enabling reasoning-based matching unattainable by ID-based methods; (2) a Reflection Loop, a self-correction mechanism where the LLM critically verifies and refines its own generated search queries to mitigate hallucinations and resolve "context competition" between past history and current instructions; and (3) a Cost-Effective Architecture, composed entirely of tuning-free components designed for asynchronous batch processing to minimize maintenance costs. We evaluated our method using public benchmarks (MovieLens-1M, Amazon Prime Pantry) and a sparse, text-rich industrial dataset (construction site risk prediction). Experimental results demonstrate that LLMAR outperforms state-of-the-art learning-based models (SASRecF), achieving up to a 54.6% improvement in nDCG@10 on the industrial dataset. Furthermore, the inference cost remains within a practical range of approximately $1 per 1,000 users. Our findings suggest that in B2B domains where strict real-time latency is not critical, combining LLM reasoning and self-verification offers a superior alternative to traditional training-based approaches in terms of accuracy, explainability, and operational cost.

For agents

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

get_harvested_code_for_paper("2604.16379")
get_code_for_paper("2604.16379")
have("2604.16379")

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

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

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

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

Connect an agent — have() is free.