SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.04668 · ICCV · 2025

ConceptSplit: Decoupled Multi-Concept Personalization of Diffusion Models via Token-wise Adaptation and Attention Disentanglement

Gyeong-Moon Park, Juwon Seo, Habin Lim, Yeongseob Won

arXiv · PDF · Open in the Atlas

Code that ran

7 of 15 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 8 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/2510.04668.json · badge: /api/ran/2510.04668.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
KU-VGI/ConceptSplit canonical (classifier label)
classifier basis: census
7 ran · 8 no recorded run
FunctionStatusWhere it lives
attention_highlight Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KU-VGI/ConceptSplit/util.py
code served (permissive licence) · get_code("547c414b5af8000a")
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 (64, 64) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from scipy.ndimage import gaussian_filter

torch.manual_seed(0)

# Create attention_maps: shape (batch, seq_len, seq_len)
# The function indexes with [:, :, idx], so it needs at least 3 dimensions
# Let's create a realistic small attention map
attention_maps = torch.randn(2, 8, 8)

# idx parameter - index into the last dimension
idx = 3

# visualize parameter
visualize = False

# device parameter - use CPU
device = 'cpu'

ARGS = {
    'attention_maps': attention_maps,
    'idx': idx,
    'visualize': visualize,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, scipy, 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 (64, 64) — shape (64, 64) 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
filter_concepts_for_B_folders Ran
ran; our contract draft was wrong, not the code
KU-VGI/ConceptSplit/dino.py
code served (permissive licence) · get_code("dcc339be73c8229f")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "concepts": ["barn", "tree", "house", "field"],
    "level1_name": "O1B"
}
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 list, ndim 1, dtype family float — a list 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
get_object_indices Ran
ran, honoured the contract we drafted
KU-VGI/ConceptSplit/Inference_LODA_2.1_before.py
code served (permissive licence) · get_code("ef244a83bf4f56ea")
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 list, ndim 1, dtype family int; 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
import re

# Create a minimal tokenizer stand-in class
class SimpleTokenizer:
    def __init__(self):
        self.vocab = {
            'the': 0,
            'dog': 1,
            'is': 2,
            'cat': 3,
            'and': 4,
            'a': 5,
            'bear': 6,
            'running': 7,
        }
        self.id_to_token = {v: k for k, v in self.vocab.items()}
        
    def __call__(self, prompt, return_tensors=None, padding=False, truncation=False):
        words = prompt.lower().split()
        ids = [self.vocab.get(word, 0) for word in words]
        if return_tensors == 'pt':
            input_ids = torch.tensor([ids], dtype=torch.long)
            return type('TokenizerOutput', (), {'input_ids': input_ids})()
        return {'input_ids': ids}
    
    def convert_ids_to_tokens(self, input_ids):
        if isinstance(input_ids, torch.Tensor):
            input_ids = input_ids.tolist()
        if isinstance(input_ids, list) and len(input_ids) > 0 and isinstance(input_ids[0], list):
            input_ids = input_ids[0]
        return [self.id_to_token.get(id, '[UNK]') for id in input_ids]
    
    def tokenize(self, word):
        word_lower = word.lower()
        if word_lower in self.vocab:
            return [word_lower]
        return []

torch.manual_seed(0)

# Create test data
prompt = "the dog is a cat and a bear"
config = {
    'dog_1': {'value': 1},
    'cat_1': {'value': 2},
    'bear_1': {'value': 3},
}
tokenizer = SimpleTokenizer()

ARGS = {
    'prompt': prompt,
    'config': config,
    'tokenizer': tokenizer,
}
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 list, ndim 1, dtype family int — a list 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
get_token_indices Ran
ran, honoured the contract we drafted
KU-VGI/ConceptSplit/Inference_LODA_2.1_before.py
code served (permissive licence) · get_code("1b514ffc4c860056")
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 list, ndim 1, dtype family int; 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
import re

class MockTokenizer:
    def __init__(self):
        self.vocab = {
            'the': 0,
            'dog': 1,
            'cat': 2,
            'is': 3,
            'cute': 4,
            'and': 5,
            '[PAD]': 6,
            '[CLS]': 7,
            '[SEP]': 8,
        }
        self.reverse_vocab = {v: k for k, v in self.vocab.items()}
    
    def __call__(self, prompt, return_tensors=None, padding=False, truncation=False):
        tokens = [self.vocab.get(word, 0) for word in prompt.lower().split()]
        if return_tensors == 'pt':
            input_ids = torch.tensor([tokens], dtype=torch.long)
            return type('TokenizerOutput', (), {'input_ids': input_ids})()
        return tokens
    
    def tokenize(self, word):
        word_lower = word.lower()
        if word_lower in self.vocab:
            return [word_lower]
        return [word_lower]
    
    def convert_ids_to_tokens(self, token_ids):
        return [self.reverse_vocab.get(int(tid), '[UNK]') for tid in token_ids]


prompt = "the dog and the cat is cute"
config = {
    'dog_1': {'weight': 0.5},
    'cat_1': {'weight': 0.3},
    'dog_2': {'weight': 0.2}
}
tokenizer = MockTokenizer()

ARGS = {
    'prompt': prompt,
    'config': config,
    'tokenizer': tokenizer
}
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 list, ndim 1, dtype family int — a list 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
replace_lora_layers Ran
ran; our contract draft was wrong, not the code
KU-VGI/ConceptSplit/Inference_LODA_2.1_before.py
code served (permissive licence) · get_code("7cad54d19507d736")
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 StableModel. 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)

# Build a minimal UNet-like structure with attn2.to_k layers
class SimpleAttention(nn.Module):
    def __init__(self):
        super().__init__()
        self.to_k = nn.Linear(4, 4, bias=True)
        self.to_v = nn.Linear(4, 4, bias=True)

class SimpleUNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.attn2 = SimpleAttention()
        self.other_layer = nn.Linear(4, 4)
    
    def forward(self, x):
        return x

class StableModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.unet = SimpleUNet()
    
    def forward(self, x):
        return x

# Create stable model instance
stable = StableModel()

# Create LoRA weight dictionaries
# The function looks for keys that contain the module name and have 'lora_A' or 'lora_B'
lora_A_weight = torch.randn(4, 3, dtype=torch.float32)  # out_features=4, in_features=3
lora_B_weight = torch.randn(2, 4, dtype=torch.float32)  # out_features=2, in_features=4

LoRA_1 = {
    'unet.attn2.to_k.lora_A': lora_A_weight,
    'unet.attn2.to_k.lora_B': lora_B_weight,
}

LoRA_2 = {
    'unet.attn2.to_k.lora_A': torch.randn(4, 3, dtype=torch.float32),
    'unet.attn2.to_k.lora_B': torch.randn(2, 4, dtype=torch.float32),
}

LoRAs = [LoRA_1, LoRA_2]

ARGS = {
    'stable': stable,
    'LoRAs': LoRAs,
    'cas': ['k']
}
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 StableModel — a StableModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a StableModel 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
rescale_noise_cfg Ran
ran; our contract draft was wrong, not the code
KU-VGI/ConceptSplit/pipeline_sdxl_loda.py
code served (permissive licence) · get_code("9855e54881af9165")
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 4, dtype family float, shape (2, 4, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for noise predictions
# Shape: (batch_size=2, channels=4, height=3, width=3) - 4D tensor
noise_cfg = torch.randn(2, 4, 3, 3)
noise_pred_text = torch.randn(2, 4, 3, 3)

# guidance_rescale parameter
guidance_rescale = 0.7

ARGS = {
    "noise_cfg": noise_cfg,
    "noise_pred_text": noise_pred_text,
    "guidance_rescale": guidance_rescale,
}
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, 4, 3, 3) — shape (2, 4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
retrieve_timesteps Ran
ran; our contract draft was wrong, not the code
KU-VGI/ConceptSplit/pipeline_sdxl_loda.py
pointer only (licence: MIT); the stored copy get_code serves, from tencent-hunyuan/hunyuanvideo, is pointer only (licence: NOASSERTION) · get_code("f3a81898d239b163")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tencent-hunyuan/hunyuanvideo, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

combine_two_attention_maps Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/attention_map.py
code served (permissive licence) · get_code("49b872fd5c5cca1d")
How it ran

no invocation recorded.

compute_dino_embedding_image Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/dino.py
code served (permissive licence) · get_code("bce790f33afa7aff")
How it ran

no invocation recorded.

import_model_class_from_model_name_or_path Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/training_scripts/train_dreambooth_lora_habin.py
pointer only (licence: MIT); the stored copy get_code serves, from KU-VGI/APDM, is pointer only (licence: NONE) · get_code("0eb3e94e8635150e")
How it ran

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

load_dino Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/dino.py
code served (permissive licence) · get_code("8c348baf239b20d3")
How it ran

no invocation recorded.

load_text_encoders Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/training_scripts/train_dreambooth_lora_sd3.py
code served (permissive licence) · get_code("74ab2d24d15218ee")
How it ran

no invocation recorded.

log_validation Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/training_scripts/train_dreambooth_lora_sd3.py
code served (permissive licence) · get_code("5d92a0a218f30ecd")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/training_scripts/train_dreambooth_lora_habin.py
code served (permissive licence) · get_code("de20798d82aba24d")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
KU-VGI/ConceptSplit/training_scripts/train_dreambooth_lora_habin_lora2.py
code served (permissive licence) · get_code("2c887e66f7ac41e5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 2 the same month, 3 later) and 10 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
rescale_noise_cfg 62 other papers
57 dated earlier, 2 the same month, 2 later, 1 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2304.06720 (2023-04)
Expressive Text-to-Image Generation with Rich Text
2309.06380 (2023-09)
InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation
and 59 more not named here
retrieve_timesteps 46 other papers
33 dated earlier, 2 the same month, 8 later, 1 same year, order not determinable, 2 undated
2312.04461 (2023-12)
PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding
2402.10491 (2024-02)
Make a Cheap Scaling: A Self-Cascade Diffusion Model for Higher-Resolution Adaptation
2405.18991 (2024-05)
EasyAnimate: High-Performance Video Generation Framework with Hybrid Windows Attention and Reward Backpropagation
and 43 more not named here
import_model_class_from_model_name_or_path 13 other papers
12 dated earlier, 1 later
2305.19327 (2023-05)
Cones 2: Customizable Image Synthesis with Multiple Subjects
2307.06949 (2023-07)
HyperDreamBooth: HyperNetworks for Fast Personalization of Text-to-Image Models
2311.18815 (2023-11)
IMMA: Immunizing text-to-image Models against Malicious Adaptation
and 10 more not named here
load_text_encoders 2 other papers
2 dated earlier
2407.05282 (2024-07)
UltraEdit: Instruction-based Fine-Grained Image Editing at Scale
2409.01437 (2024-09)
Kvasir-VQA: A Text-Image Pair GI Tract Dataset
log_validation 2 other papers
2 dated earlier
2409.01437 (2024-09)
Kvasir-VQA: A Text-Image Pair GI Tract Dataset
2411.17945 (2024-11)
MARVEL-40M+: Multi-Level Visual Elaboration for High-Fidelity Text-to-3D Content Creation

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

In recent years, multi-concept personalization for text-toimage (T2I) diffusion models to represent several subjects in an image has gained much more attention. The main challenge of this task is "concept mixing", where multiple learned concepts interfere or blend undesirably in the output image. To address this issue, in this paper, we present ConceptSplit, a novel framework to split the individual concepts through training and inference. Our framework comprises two key components. First, we introduce Token-wise Value Adaptation (ToVA), a merging-free training method that focuses exclusively on adapting the value projection in cross-attention. Based on our empirical analysis, we found that modifying the key projection, a common approach in existing methods, can disrupt the attention mechanism and lead to concept mixing. Second, we propose Latent Optimization for Disentangled Attention (LODA), which alleviates attention entanglement during inference by optimizing the input latent. Through extensive qualitative and quantitative experiments, we demonstrate that Concept-Splitachieves robust multi-concept personalization, mitigating unintended concept interference. Code is available at https://github.com/KU-VGI/ConceptSplit.

For agents

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

get_harvested_code_for_paper("2510.04668")
get_code_for_paper("2510.04668")
have("2510.04668")

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

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

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

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

Connect an agent — have() is free.