SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.14492 · 2026

Query as Anchor: Scenario-Adaptive User Representation via Large Language Model

Yu Cheng, Weiqiang Wang, Yun Liu, Baokun Wang, Yongchao Liu, Jinyong Wen, Zhongle Xie, Xing Fu, Ziyi Gao, Jiahao Yuan, Xiaotong Lin, Yike Xu, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 5 failures of our instrument; 5 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/2602.14492.json · badge: /api/ran/2602.14492.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
JhCircle/Q-Anchor community
Papers with Code archive
12 ran · 5 no recorded run
FunctionStatusWhere it lives
APPEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("9720159d289f01ea")
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 an instance of its own class, APPEncoder: the run constructed the object and did not call it, so no result was computed. 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
from transformers import AutoModel

torch.manual_seed(0)

# Create a minimal config class with all required attributes
class Config:
    def __init__(self):
        self.modal_encoder_name = "sentence-transformers/all-MiniLM-L6-v2"
        self.text_emb_dim = 4
        self.hidden_size = 5
        self.app_item_num = 3
        self.app_text_max_length = 8

# Create a minimal mock for AutoModel.from_pretrained
class MockSentenceModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(100, 4)
        
    def forward(self, input_ids, attention_mask=None):
        # Return an object with last_hidden_state attribute
        embeddings = self.embedding(input_ids)
        output = type('Output', (), {'last_hidden_state': embeddings})()
        return output

# Patch AutoModel.from_pretrained to return our mock
original_from_pretrained = AutoModel.from_pretrained
def mock_from_pretrained(model_name):
    return MockSentenceModel()

AutoModel.from_pretrained = mock_from_pretrained

# Create config instance
config = Config()

# Create batch data
# batch = (app_text_item_tensor, app_text_item_padnum_tensor, app_text_item_mask_tensor)
# app_text_item_tensor = (input_ids, attention_masks)
batch_size = 2
app_item_num = 3
app_text_max_length = 8

# input_ids and attention_masks flattened to (batch_size * app_item_num, app_text_max_length)
input_ids = torch.randint(0, 100, (batch_size * app_item_num, app_text_max_length))
attention_masks = torch.ones(batch_size * app_item_num, app_text_max_length)

app_text_item_tensor = (input_ids, attention_masks)

# app_text_item_padnum_tensor: number of valid items per user
app_text_item_padnum_tensor = torch.tensor([3, 3])  # both users have 3 valid items

# app_text_item_mask_tensor: mask for valid text (shape: batch_size, app_item_num)
# False means valid, True means padded
app_text_item_mask_tensor = torch.zeros(batch_size, app_item_num, dtype=torch.bool)

batch = (app_text_item_tensor, app_text_item_padnum_tensor, app_text_item_mask_tensor)

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type APPEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a APPEncoder 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
LLMAdapter Ran
ran on a synthesized input · constructed an object; no result was computed
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("b6b216552039bdb8")
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 an instance of its own class, LLMAdapter: the run constructed the object and did not call it, so no result was computed. 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)

ARGS = {
    "encoder_dim": 4,
    "llm_dim": 3,
}
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 LLMAdapter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LLMAdapter 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
ModalAdapter Ran
ran on a synthesized input · constructed an object; no result was computed
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("2fcb1d1a9e4e230e")
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 an instance of its own class, ModalAdapter: the run constructed the object and did not call it, so no result was computed. 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 Config:
    def __init__(self):
        self.text_emb_dim = 4
        self.hidden_size = 3

config = Config()

ARGS = {
    "config": config
}
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 ModalAdapter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ModalAdapter 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
ModalEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("139e62a0c94cb0df")
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 an instance of its own class, ModalEncoder: the run constructed the object and did not call it, so no result was computed. 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 MockConfig:
    def __init__(self):
        self.modal_encoder_name = "mock_model"
        self.hidden_size = 8
        self.vocab_size = 100

class MockSentenceModel(nn.Module):
    def __init__(self):
        super(MockSentenceModel, self).__init__()
        self.embedding = nn.Embedding(100, 8)
        self.hidden_size = 8
    
    def forward(self, input_ids, attention_mask=None):
        embeddings = self.embedding(input_ids)
        
        class Output:
            def __init__(self, last_hidden_state):
                self.last_hidden_state = last_hidden_state
        
        return Output(last_hidden_state=embeddings)

class MockAutoModel:
    @staticmethod
    def from_pretrained(model_name):
        return MockSentenceModel()

import transformers
original_auto_model = transformers.AutoModel
transformers.AutoModel = MockAutoModel

config = MockConfig()

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ModalEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ModalEncoder 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
SimpleMLP Ran
ran on a synthesized input · constructed an object; no result was computed
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("d5b6209365de3fb1")
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 an instance of its own class, SimpleMLP: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {
    "input_dim": 4,
    "hidden_dim": 8,
    "output_dim": 3,
}
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 SimpleMLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SimpleMLP 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
TabularMLP Ran
ran on a synthesized input · constructed an object; no result was computed
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("49b6e60bada855d4")
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 an instance of its own class, TabularMLP: the run constructed the object and did not call it, so no result was computed. 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 Config:
    def __init__(self):
        self.tabular_feat_dim = 4
        self.hidden_size = 8
        self.text_emb_dim = 6
        self.tabular_item_num = 3

config = Config()

batch = torch.randn(2, 4)

ARGS = {
    "config": config
}
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 TabularMLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TabularMLP 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
UserAdapter Ran
ran on a synthesized input · constructed an object; no result was computed
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("e23c48ec4166eb68")
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 an instance of its own class, UserAdapter: the run constructed the object and did not call it, so no result was computed. 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 Config:
    def __init__(self):
        self.text_emb_dim = 4
        self.hidden_size = 3

config = Config()

ARGS = {
    "config": config
}
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 UserAdapter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a UserAdapter 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
contrastive_loss_with_masked_negatives Ran
ran; our contract draft was wrong, not the code
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("b62df69e3b622c71")
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 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

torch.manual_seed(0)

# Create small tensors: batch size 2, embedding dimension 4
B = 2
d = 4

# X: [B, d] query vectors
X = torch.randn(B, d)

# Y: [B, d] positive sample vectors
Y = torch.randn(B, d)

# tau: temperature parameter (scalar float)
tau = 0.07

# margin: threshold for determining hard negatives (scalar float)
margin = 0.1

ARGS = {
    "X": X,
    "Y": Y,
    "tau": tau,
    "margin": margin,
}
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 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
cosine_similarity Ran
ran; our contract draft was wrong, not the code
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("19bb073cdac57b77")
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, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for x and y
# x: shape (2, 4) - 2 samples, 4 dimensions
# y: shape (3, 4) - 3 samples, 4 dimensions (different first dim for clarity)
x = torch.randn(2, 4)
y = torch.randn(3, 4)

ARGS = {
    "x": x,
    "y": y,
}
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, 3) — shape (2, 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
last_pooling Ran
ran; our contract draft was wrong, not the code
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("13c49009ca9c77ee")
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. 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)

# Construct arguments for last_pooling function
# The function expects:
# - last_hidden_states: tensor of shape (batch_size, seq_length, hidden_dim)
# - attention_mask: optional tensor of shape (batch_size, seq_length) with 0s and 1s

batch_size = 2
seq_length = 3
hidden_dim = 4

# Create last_hidden_states tensor
last_hidden_states = torch.randn(batch_size, seq_length, hidden_dim)

# Create attention_mask tensor
# Test with right-padding case (not all sequences end at the same position)
attention_mask = torch.tensor([
    [1, 1, 1],  # full sequence
    [1, 1, 0]   # padded at the end
], dtype=torch.long)

ARGS = {
    "last_hidden_states": last_hidden_states,
    "attention_mask": attention_mask
}
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
mean_pooling Ran
ran; our contract draft was wrong, not the code
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("892a806e8ea0eea3")
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. 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)

# token_embeddings: shape (batch_size, seq_length, embedding_dim)
token_embeddings = torch.randn(2, 3, 4)

# attention_mask: shape (batch_size, seq_length), binary mask
attention_mask = torch.tensor([[1, 1, 0], [1, 1, 1]])

ARGS = {
    "token_embeddings": token_embeddings,
    "attention_mask": attention_mask,
}
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
special_pooling Ran
ran; our contract draft was wrong, not the code
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("ad4e574f6761496f")
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 float, 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

torch.manual_seed(0)

# The function expects:
# - token_embeddings: a 2D tensor of shape (batch_size, embedding_dim)
# - input_ids: a 2D tensor of shape (batch_size, sequence_length) containing token IDs

batch_size = 2
sequence_length = 3
embedding_dim = 4

# Create token_embeddings: (batch_size, embedding_dim)
token_embeddings = torch.randn(batch_size, embedding_dim)

# Create input_ids: (batch_size, sequence_length)
# Make sure at least one token ID equals 151683 (sec_user) in each batch
input_ids = torch.randint(0, 1000, (batch_size, sequence_length))
# Set one position per batch to the special token ID
input_ids[0, 1] = 151683
input_ids[1, 2] = 151683

ARGS = {
    "token_embeddings": token_embeddings,
    "input_ids": input_ids,
}
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 1, dtype family float, 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
BillEncoder Not yet run
unverified (harvested, no recorded run)
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("41741440337d0de2")
How it ran

no invocation recorded.

MiniProgramEncoder Not yet run
unverified (harvested, no recorded run)
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("831ad68678df2ecd")
How it ran

no invocation recorded.

MultimodalForConditionalGeneration Not yet run
unverified (harvested, no recorded run)
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("776d88f7df468f47")
How it ran

no invocation recorded.

SPMEncoder Not yet run
unverified (harvested, no recorded run)
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("2eb81ffc7f66a5e0")
How it ran

no invocation recorded.

SearchEncoder Not yet run
unverified (harvested, no recorded run)
JhCircle/Q-Anchor/modeling.py
code served (permissive licence) · get_code("629d76bce24cc372")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 1 the same month, 0 later) and 16 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
mean_pooling
brick of this paper's assembly: data_transform
1 other paper
1 the same month · 1 only as an assembly brick
2602.10622 (2026-02)
How Do Decoder-Only LLMs Perceive Users? Rethinking Attention Masking for User Representation Learning

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-scale user representation learning requires balancing robust universality with acute task-sensitivity. However, existing paradigms primarily yield static, task-agnostic embeddings that struggle to reconcile the divergent requirements of downstream scenarios within unified vector spaces. Furthermore, heterogeneous multi-source data introduces inherent noise and modality conflicts, degrading representation. We propose Query-as-Anchor, a framework shifting user modeling from static encoding to dynamic, queryaware synthesis. To empower Large Language Models (LLMs) with deep user understanding, we first construct UserU, an industrialscale pre-training dataset that aligns multi-modal behavioral sequences with user understanding semantics, and our Q-Anchor Embedding architecture integrates hierarchical coarse-to-fine encoders into dual-tower LLMs via joint contrastive-autoregressive optimization for query-aware user representation. To bridge the gap between general pre-training and specialized business logic, we further introduce Cluster-based Soft Prompt Tuning to enforce discriminative latent structures, effectively aligning model attention with scenario-specific modalities. For deployment, anchoring queries at sequence termini enables KV-cache-accelerated inference with negligible incremental latency. Evaluations on 10 Alipay industrial benchmarks show consistent SOTA performance, strong scalability, and efficient deployment. Large-scale online A/B testing in Alipay's production system across two real-world scenarios further validates its practical effectiveness. Our code is prepared for public release and will be available at: https://github.com/JhCircle/Q-Anchor. • Information systems → Collaborative filtering.

For agents

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

get_harvested_code_for_paper("2602.14492")
get_code_for_paper("2602.14492")
have("2602.14492")

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

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

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

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

Connect an agent — have() is free.