SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.14671 · 2025

UniCTokens: Boosting Personalized Understanding and Generation via Unified Concept Tokens

arXiv · PDF · Open in the Atlas

Code that ran

22 of 23 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, 0 violated it and 5 have no contract verdict; 16 failures of our instrument; 1 no recorded run); 2 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, 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/2505.14671.json · badge: /api/ran/2505.14671.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
arctanxarc/unictokens canonical (classifier label)
classifier basis not recorded on the link
22 ran · 1 no recorded run
FunctionStatusWhere it lives
log Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/sampling.py
code served (permissive licence) · get_code("b5472673332de78e")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) 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 comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T01:35:34Z). 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 takes a tensor `t` and an optional `eps` parameter
# It clamps the tensor to a minimum value of eps, then takes the log

# Create a small tensor with positive values (log requires positive input)
t = torch.tensor([[0.5, 1.0, 2.0, 0.1],
                   [0.3, 0.8, 1.5, 0.2]], dtype=torch.float32)

ARGS = {
    "t": t,
    "eps": 1e-20
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
arctanxarc/unictokens/models/phi.py
code served (permissive licence) · get_code("30d7eec482ebf6b1")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 6, 5, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:09:20Z). 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 tensor with shape (batch, num_key_value_heads, seqlen, head_dim)
# Using distinct sizes: batch=2, num_key_value_heads=3, seqlen=5, head_dim=4
hidden_states = torch.randn(2, 3, 5, 4)

# n_rep is the repetition factor
n_rep = 2

ARGS = {
    "hidden_states": hidden_states,
    "n_rep": n_rep,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 4, dtype family float, shape (2, 6, 5, 4) — shape (2, 6, 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
Normalize Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/common_modules.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Xingyu-Zheng/BiDM, 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.

apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
arctanxarc/unictokens/models/phi.py
code served (permissive licence) · get_code("d61c483a3c2b3156")
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 tuple, ndim 5, 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 torch

torch.manual_seed(0)

# Construct tiny tensors for the function
batch_size = 2
seq_len = 3
num_heads = 4
head_dim = 8

# Query and key tensors: [batch_size, num_heads, seq_len, head_dim]
q = torch.randn(batch_size, num_heads, seq_len, head_dim)
k = torch.randn(batch_size, num_heads, seq_len, head_dim)

# Cosine and sine embeddings: [seq_len, head_dim]
# These will be indexed by position_ids
cos = torch.randn(seq_len, head_dim)
sin = torch.randn(seq_len, head_dim)

# Position IDs: [batch_size, seq_len]
position_ids = torch.tensor([[0, 1, 2], [0, 1, 2]], dtype=torch.long)

# unsqueeze_dim parameter
unsqueeze_dim = 1

ARGS = {
    "q": q,
    "k": k,
    "cos": cos,
    "sin": sin,
    "position_ids": position_ids,
    "unsqueeze_dim": unsqueeze_dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 5, 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
broadcast Ran
ran, honoured the contract we drafted
arctanxarc/unictokens/models/misc.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("1f6ae43d06c76ba5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Feng-Hong/WINO-DLLM, 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.

cross_entropy_per_percent_masked_bucket Ran
ran on a synthesized input
arctanxarc/unictokens/models/training_utils.py
code served (permissive licence) · get_code("d873b16aa360b164")
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 (10,) 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)

# Parameters for cross_entropy_per_percent_masked_bucket
batch_size = 2
sequence_length = 8
output_size = 5
mask_id = 0

# Create logits: (batch_size * sequence_length, output_size)
logits = torch.randn(batch_size * sequence_length, output_size)

# Create labels: (batch_size * sequence_length,) with some -100 (ignore_index)
labels = torch.randint(0, output_size, (batch_size * sequence_length,))
labels[0] = -100  # Add an ignored label

# Create input_ids: (batch_size, sequence_length)
# Mix of mask_id and non-mask tokens to create different masking percentages
input_ids = torch.zeros((batch_size, sequence_length), dtype=torch.long)
input_ids[0, :2] = mask_id  # 25% masked (2/8)
input_ids[1, :4] = mask_id  # 50% masked (4/8)
input_ids[0, 2:] = torch.randint(1, output_size, (6,))
input_ids[1, 4:] = torch.randint(1, output_size, (4,))

label_smoothing = 0.1

ARGS = {
    "logits": logits,
    "labels": labels,
    "input_ids": input_ids,
    "mask_id": mask_id,
    "output_size": output_size,
    "label_smoothing": label_smoothing,
}
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 (10,) — shape (10,) 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_constant_schedule Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/lr_schedulers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("a8366f238618edad")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Feng-Hong/WINO-DLLM, 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.

get_constant_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/lr_schedulers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("11f07821d1b2286b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Feng-Hong/WINO-DLLM, 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.

get_linear_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/lr_schedulers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("1975e0c51e6f5753")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Feng-Hong/WINO-DLLM, 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.

get_parameter_device Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/modeling_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shuita2333/PAD-codes, is pointer only (licence: NONE) · get_code("3e268fcaaf4273fe")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shuita2333/PAD-codes, 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.

get_parameter_dtype Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/modeling_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shuita2333/PAD-codes, is pointer only (licence: NONE) · get_code("33338f20f5619c59")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from shuita2333/PAD-codes, 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.

gumbel_noise Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/sampling.py
code served (permissive licence) · get_code("53202c68f703b2ab")
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)

# Create a small tensor to pass as argument 't'
t = torch.rand(2, 4)

# Create a generator (optional, can be None)
generator = torch.Generator()
generator.manual_seed(42)

ARGS = {
    't': t,
    'generator': generator
}
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
gumbel_sample Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
arctanxarc/unictokens/models/sampling.py
code served (permissive licence) · get_code("8ad18d39129fe86a")
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

torch.manual_seed(0)

# Construct a small logits tensor (batch_size=2, num_classes=4)
t = torch.randn(2, 4)

# temperature: a float controlling the sharpness of sampling
temperature = 0.5

# dim: the dimension along which to take argmax
dim = -1

# generator: optional torch.Generator for reproducibility
generator = torch.Generator()
generator.manual_seed(42)

ARGS = {
    "t": t,
    "temperature": temperature,
    "dim": dim,
    "generator": generator,
}
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 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
image_entropy_per_percent_masked_bucket Ran
ran on a synthesized input
arctanxarc/unictokens/models/training_utils.py
code served (permissive licence) · get_code("9e8f7bb15c8e25d5")
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 (10,) 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 testing
batch_size = 2
seq_length = 4
vocab_size = 3
mask_id = 0

# logits: (batch_size, seq_length, vocab_size)
# Shape: (2, 4, 3) - logits over vocabulary for each token position
logits = torch.randn(batch_size, seq_length, vocab_size)

# input_ids: (batch_size, seq_length)
# Shape: (2, 4) - token IDs, some will be mask_id (0)
input_ids = torch.tensor([
    [0, 1, 0, 2],  # batch 1: has 2 masked tokens (50% masked)
    [1, 1, 1, 1]   # batch 2: has 0 masked tokens (0% masked)
])

ARGS = {
    "logits": logits,
    "input_ids": input_ids,
    "mask_id": mask_id,
}
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 (10,) — shape (10,) 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
image_transform Ran
ran on a synthesized input
arctanxarc/unictokens/pdata.py
code served (permissive licence) · get_code("7607f82f8d25705d")
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 3, dtype family float, shape (3, 256, 256) 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
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a small PIL Image to pass as the image parameter
# The function expects a PIL Image since it applies transforms to it
pil_image = Image.new('RGB', (512, 512), color='red')

ARGS = {
    'image': pil_image,
    'resolution': 256,
    'normalize': True,
    'flip_augmentation': True,
    'crop_augmentation': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (3, 256, 256) — shape (3, 256, 256) 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
image_transform_dict Ran
ran on a synthesized input
arctanxarc/unictokens/pdata.py
code served (permissive licence) · get_code("ce58552dce8a89eb")
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
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a small PIL Image for testing
pil_image = Image.new('RGB', (512, 512), color=(73, 109, 137))

# Create the sample dict with an image
sample = {
    'images': pil_image
}

ARGS = {
    'sample': sample,
    'resolution': 256,
    'load_cropped_image': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — 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
nonlinearity Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/common_modules.py
code served (permissive licence) · get_code("3137073275f8c21a")
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 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)

# The function takes a single parameter 'x' which is used with:
# - multiplication operator (*)
# - torch.sigmoid() function
# This means x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
parse_structured Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/misc.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("0e7f77d6003e2412")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Feng-Hong/WINO-DLLM, 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.

pixel_entropy_per_percent_masked_bucket Ran
ran on a synthesized input
arctanxarc/unictokens/models/training_utils.py
code served (permissive licence) · get_code("9ccedd97edcf58cf")
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 (10,) 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 testing
batch_size = 2
seq_length = 4
vocab_size = 8
mask_id = 0

# logits: shape (batch_size, seq_length, vocab_size)
logits = torch.randn(batch_size, seq_length, vocab_size)

# input_ids: shape (batch_size, seq_length)
# Create input_ids with some mask tokens (mask_id = 0)
input_ids = torch.randint(1, vocab_size, (batch_size, seq_length))
# Add some mask tokens to create variation in masking percentages
input_ids[0, 0] = mask_id  # 25% masked in first sequence
input_ids[0, 1] = mask_id
input_ids[1, 0] = mask_id  # 25% masked in second sequence

ARGS = {
    "logits": logits,
    "input_ids": input_ids,
    "mask_id": mask_id,
}
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 (10,) — shape (10,) 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
resize_img Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/pdata.py
code served (permissive licence) · get_code("a9912a90cc3379de")
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 Image. 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.

from PIL import Image
import numpy as np

# Create a small test image
test_image = Image.new('RGB', (800, 600), color='red')

ARGS = {
    'input_image': test_image,
    'max_side': 1280,
    'min_side': 1024,
    'size': None,
    'pad_to_max_side': False,
    'mode': Image.BILINEAR,
    'base_pixel_number': 64
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
rotate_half Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/phi.py
code served (permissive licence) · get_code("b99eea6376d1e212")
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 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)

# The function rotate_half takes a single parameter 'x' which is a tensor
# It accesses x.shape[-1] to get the last dimension
# It uses indexing with [..., :] slicing notation
# It calls torch.cat() to concatenate tensors

# Create a small tensor with shape (2, 4) - batch size 2, hidden dim 4
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
unpack_time Ran
ran; our contract draft was wrong, not the code
arctanxarc/unictokens/models/common_modules.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("2d82abbef2c4addb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Feng-Hong/WINO-DLLM, 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.

get_logger Not yet run
unverified (harvested, no recorded run)
arctanxarc/unictokens/models/logging.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("376bf22d5737fc2a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Feng-Hong/WINO-DLLM, 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. No invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 18 are also present in other papers whose code we hold (14 with at least one paper dated earlier, 10 the same month, 17 later) and 5 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
rotate_half 360 other papers
270 dated earlier, 11 the same month, 71 later, 5 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
repeat_kv 243 other papers
181 dated earlier, 10 the same month, 46 later, 4 same year, order not determinable, 2 undated · 22 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
and 240 more not named here
nonlinearity 156 other papers
132 dated earlier, 6 the same month, 18 later · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
Normalize 90 other papers
76 dated earlier, 3 the same month, 11 later · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
apply_rotary_pos_emb 75 other papers
63 dated earlier, 1 the same month, 10 later, 1 same year, order not determinable · 2 only as an assembly brick
2309.11499 (2023-09)
DreamLLM: Synergistic Multimodal Comprehension and Creation
2312.02051 (2023-12)
TimeChat: A Time-sensitive Multimodal Large Language Model for Long Video Understanding
2312.03414 (2023-12)
Compressed Context Memory For Online Language Model Interaction
and 72 more not named here
log 22 other papers
20 dated earlier, 2 later · 9 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1907.05242 (2019-07)
Large Memory Layers with Product Keys
2203.07852 (2022-03)
Block-Recurrent Transformers
and 19 more not named here
get_linear_schedule_with_warmup 21 other papers
15 dated earlier, 1 the same month, 5 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2011.07430 (2020-11)
Audio-Visual Event Recognition through the lens of Adversary
2109.04912 (2021-09)
ReasonBERT: Pre-trained to Reason with Distant Supervision
and 18 more not named here
get_constant_schedule 13 other papers
8 dated earlier, 1 the same month, 4 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2204.13902 (2022-04)
Fast Sampling of Diffusion Models with Exponential Integrator
2305.15328 (2023-05)
Visual Programming for Text-to-Image Generation and Evaluation
and 10 more not named here
get_constant_schedule_with_warmup 13 other papers
8 dated earlier, 1 the same month, 4 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2204.13902 (2022-04)
Fast Sampling of Diffusion Models with Exponential Integrator
2305.15328 (2023-05)
Visual Programming for Text-to-Image Generation and Evaluation
and 10 more not named here
get_logger 12 other papers
6 dated earlier, 3 the same month, 3 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2305.01938 (2023-05)
Doc2SoarGraph: Discrete Reasoning over Visually-Rich Table-Text Documents via Semantic-Oriented Hierarchical Graphs
2406.05478 (2024-06)
Revisiting Non-Autoregressive Transformers for Efficient Image Synthesis
and 9 more not named here
unpack_time 6 other papers
1 dated earlier, 2 the same month, 3 later
2503.03651 (2025-03)
DoraCycle: Domain-Oriented Adaptation of Unified Generative Model in Multimodal Cycles
2505.15809 (2025-05)
MMaDA: Multimodal Large Diffusion Language Models
2505.23380 (2025-05)
UniRL: Self-Improving Unified Multimodal Models via Supervised and Reinforcement Learning
and 3 more not named here
broadcast 4 other papers
1 dated earlier, 3 later
2503.03651 (2025-03)
DoraCycle: Domain-Oriented Adaptation of Unified Generative Model in Multimodal Cycles
2507.11097 (2025-07)
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
and 1 more not named here
parse_structured 4 other papers
1 dated earlier, 3 later
2503.03651 (2025-03)
DoraCycle: Domain-Oriented Adaptation of Unified Generative Model in Multimodal Cycles
2507.11097 (2025-07)
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
and 1 more not named here
get_parameter_device 3 other papers
3 later
2506.15564 (2025-06)
Show-o2: Improved Native Unified Multimodal Models
2507.11097 (2025-07)
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
get_parameter_dtype 3 other papers
3 later
2506.15564 (2025-06)
Show-o2: Improved Native Unified Multimodal Models
2507.11097 (2025-07)
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
resize_img 3 other papers
2 dated earlier, 1 same year, order not determinable
2401.07519 (2024-01)
InstantID: Zero-shot Identity-Preserving Generation in Seconds
2407.00788 (2024-07)
InstantStyle-Plus: Style Transfer with Content-Preserving in Text-to-Image Generation
Qu_CaricatureBooth_Data-Free_Interactive_Caricature_Generation_in_a_Photo_Booth_CVPR_2025_paper (2025 (year only))
CaricatureBooth: Data-Free Interactive Caricature Generation in a Photo Booth
gumbel_noise 1 other paper
1 later
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
gumbel_sample 1 other paper
1 later
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models

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

Personalized models have demonstrated remarkable success in understanding and generating concepts provided by users. However, existing methods use separate concept tokens for understanding and generation, treating these tasks in isolation. This may result in limitations for generating images with complex prompts. For example, given the concept $\langle bo\rangle$, generating "$\langle bo\rangle$ wearing its hat" without additional textual descriptions of its hat. We call this kind of generation \textit{\textbf{personalized attribute-reasoning generation}}. To address the limitation, we present UniCTokens, a novel framework that effectively integrates personalized information into a unified vision language model (VLM) for understanding and generation. UniCTokens trains a set of unified concept tokens to leverage complementary semantics, boosting two personalized tasks. Moreover, we propose a progressive training strategy with three stages: understanding warm-up, bootstrapping generation from understanding, and deepening understanding from generation to enhance mutual benefits between both tasks. To quantitatively evaluate the unified VLM personalization, we present UnifyBench, the first benchmark for assessing concept understanding, concept generation, and attribute-reasoning generation. Experimental results on UnifyBench indicate that UniCTokens shows competitive performance compared to leading methods in concept understanding, concept generation, and achieving state-of-the-art results in personalized attribute-reasoning generation. Our research demonstrates that enhanced understanding improves generation, and the generation process can yield valuable insights into understanding. Our code and dataset will be released at: \href{https://github.com/arctanxarc/UniCTokens}{https://github.com/arctanxarc/UniCTokens}.

For agents

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

get_harvested_code_for_paper("2505.14671")
get_code_for_paper("2505.14671")
have("2505.14671")

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

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

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

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

Connect an agent — have() is free.