SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.22627 · 2026

Orthogonal Representation Editing: Decoupling Semantic Entanglement in Batch Knowledge Editing of LLMs

Wenhao Yu, Shihao Yang, Zhicong Lu, Bo Lv, Nayu Liu, Kaiwen Wei, Fangyin Ma

arXiv · PDF

Code that ran

9 of 21 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures of our instrument; 12 no recorded run), measured 2026-11-24; 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/2606.22627.json · badge: /api/ran/2606.22627.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
YVVH/ORE community
Papers with Code archive
9 ran · 12 no recorded run
FunctionStatusWhere it lives
AverageMeter Ran
ran on a synthesized input
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("48891b8496966711")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. 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 numpy as np

class AverageMeter:

    def __init__(self):
        self.reset()

    def reset(self):
        self.val = 0
        self.avg = 0
        self.sum = 0
        self.count = 0

    def update(self, val, n=1):
        self.val = val
        self.sum += val * n
        self.count += n
        self.avg = self.sum / self.count


INIT_ARGS = {}

ARGS = {
    'val': 2.5,
    'n': 3
}

METHOD = 'update'

if __name__ == '__main__':
    meter = AverageMeter(**INIT_ARGS)
    meter.update(**ARGS)
    print(f"val: {meter.val}, sum: {meter.sum}, count: {meter.count}, avg: {meter.avg}")
    
    meter.update(val=1.5, n=2)
    print(f"val: {meter.val}, sum: {meter.sum}, count: {meter.count}, avg: {meter.avg}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
LayerRepAdapter Ran
ran on a synthesized input
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("2446b47d34d2a36a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import math

# Import the class
import torch.nn.functional as F
from typing import List, Dict, Tuple, Any, Optional, Union

class RMSNorm(nn.Module):

    def __init__(self, hidden_size, eps=1e-06):
        super().__init__()
        self.weight = nn.Parameter(torch.ones(hidden_size))
        self.eps = eps

    def forward(self, hidden_states):
        return F.rms_norm(hidden_states, (hidden_states.size(-1),), self.weight, self.eps)

class RepHead(nn.Module):

    def __init__(self, hidden_dim: int, proj_dim: int, use_ln: bool=True, use_gate: bool=True):
        super().__init__()
        self.use_gate = use_gate
        self.ln = RMSNorm(hidden_dim) if use_ln else nn.Identity()
        self.down = nn.Linear(hidden_dim, proj_dim, bias=False)
        self.act = nn.SiLU()
        self.up = nn.Linear(proj_dim, hidden_dim, bias=False)
        if self.use_gate:
            self.dynamic_gate = nn.Sequential(nn.Linear(hidden_dim, 64, bias=False), RMSNorm(64), nn.SiLU(), nn.Linear(64, 1))
            last_linear = self.dynamic_gate[-1]
            if last_linear.bias is not None:
                nn.init.constant_(last_linear.bias, 0.0)
            nn.init.xavier_normal_(last_linear.weight)
        nn.init.zeros_(self.up.weight)
        nn.init.kaiming_normal_(self.down.weight, a=math.sqrt(5))

    def forward(self, x: torch.Tensor) -> Tuple[torch.Tensor, Optional[torch.Tensor]]:
        norm_x = self.ln(x)
        delta = self.up(self.act(self.down(norm_x)))
        if self.use_gate:
            sig_score = torch.sigmoid(self.dynamic_gate(x))
            return (delta, sig_score)
        else:
            return (delta, None)

class LayerRepAdapter(nn.Module):

    def __init__(self, dim: int, proj_dim: int, use_ln: bool=True, use_gate: bool=True):
        super().__init__()
        self.use_gate = use_gate
        self.head = RepHead(dim, proj_dim, use_ln, use_gate=use_gate)
        self.scale = nn.Parameter(torch.ones(dim))

    def forward(self, x: torch.Tensor) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[torch.Tensor]]:
        delta, sig_score = self.head(x)
        if self.use_gate:
            mask = (sig_score >= 0.5).float()
            if self.training:
                gate_score = mask - sig_score.detach() + sig_score
            else:
                gate_score = mask
            return (delta * gate_score * self.scale, gate_score, sig_score)
        else:
            return (delta * self.scale, None, None)


INIT_ARGS = {
    'dim': 4,
    'proj_dim': 3,
    'use_ln': True,
    'use_gate': True,
}

ARGS = {
    'x': torch.randn(2, 4),
}

if __name__ == '__main__':
    model = LayerRepAdapter(**INIT_ARGS)
    model.train()
    output = model(**ARGS)
    print("Output shapes:")
    print(f"  delta: {output[0].shape}")
    print(f"  gate_score: {output[1].shape if output[1] is not None else None}")
    print(f"  sig_score: {output[2].shape if output[2] is not None else None}")
    print("Forward pass successful!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
RMSNorm Ran
ran on a synthesized input
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("6347bf161968fa04")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float, shape (2, 3, 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
import torch.nn as nn
import torch.nn.functional as F

class RMSNorm(nn.Module):

    def __init__(self, hidden_size, eps=1e-06):
        super().__init__()
        self.weight = nn.Parameter(torch.ones(hidden_size))
        self.eps = eps

    def forward(self, hidden_states):
        return F.rms_norm(hidden_states, (hidden_states.size(-1),), self.weight, self.eps)


INIT_ARGS = {
    'hidden_size': 4,
    'eps': 1e-06
}

ARGS = {
    'hidden_states': torch.randn(2, 3, 4)
}

if __name__ == '__main__':
    model = RMSNorm(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
RepHead Ran
ran on a synthesized input
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("8e2ada57a31cbb01")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from typing import List, Dict, Tuple, Any, Optional, Union

class RMSNorm(nn.Module):

    def __init__(self, hidden_size, eps=1e-06):
        super().__init__()
        self.weight = nn.Parameter(torch.ones(hidden_size))
        self.eps = eps

    def forward(self, hidden_states):
        return F.rms_norm(hidden_states, (hidden_states.size(-1),), self.weight, self.eps)

class RepHead(nn.Module):

    def __init__(self, hidden_dim: int, proj_dim: int, use_ln: bool=True, use_gate: bool=True):
        super().__init__()
        self.use_gate = use_gate
        self.ln = RMSNorm(hidden_dim) if use_ln else nn.Identity()
        self.down = nn.Linear(hidden_dim, proj_dim, bias=False)
        self.act = nn.SiLU()
        self.up = nn.Linear(proj_dim, hidden_dim, bias=False)
        if self.use_gate:
            self.dynamic_gate = nn.Sequential(nn.Linear(hidden_dim, 64, bias=False), RMSNorm(64), nn.SiLU(), nn.Linear(64, 1))
            last_linear = self.dynamic_gate[-1]
            if last_linear.bias is not None:
                nn.init.constant_(last_linear.bias, 0.0)
            nn.init.xavier_normal_(last_linear.weight)
        nn.init.zeros_(self.up.weight)
        nn.init.kaiming_normal_(self.down.weight, a=math.sqrt(5))

    def forward(self, x: torch.Tensor) -> Tuple[torch.Tensor, Optional[torch.Tensor]]:
        norm_x = self.ln(x)
        delta = self.up(self.act(self.down(norm_x)))
        if self.use_gate:
            sig_score = torch.sigmoid(self.dynamic_gate(x))
            return (delta, sig_score)
        else:
            return (delta, None)


INIT_ARGS = {
    'hidden_dim': 8,
    'proj_dim': 5,
    'use_ln': True,
    'use_gate': True,
}

ARGS = {
    'x': torch.randn(2, 8),
}

if __name__ == '__main__':
    model = RepHead(**INIT_ARGS)
    delta, sig_score = model(**ARGS)
    print(f"delta shape: {delta.shape}")
    print(f"sig_score shape: {sig_score.shape if sig_score is not None else None}")
    print(f"delta: {delta}")
    print(f"sig_score: {sig_score}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ce_loss Ran
ran; our contract draft was wrong, not the code
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("14374bd37af63bc3")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a minimal tokenizer mock
class MinimalTokenizer:
    def __init__(self):
        self.vocab_size = 1000

tok = MinimalTokenizer()

# Create a minimal output object that mimics transformer output
class MinimalOutput:
    def __init__(self, loss, logits):
        self.loss = loss
        self.logits = logits

# Set up tensor dimensions
batch_size = 2
seq_len = 5
vocab_size = 1000
prompt_len = torch.tensor([3, 4])  # Different prompt lengths for each sample

# Create logits tensor: (batch_size, seq_len, vocab_size)
logits = torch.randn(batch_size, seq_len, vocab_size)

# Create loss value
loss_value = torch.tensor(2.5, requires_grad=True)

# Create output object
out_ce = MinimalOutput(loss=loss_value, logits=logits)

# Create answer input ids: (batch_size, answer_length)
# First token of answer matters for margin calculation
ans_input_ids = torch.tensor([[100, 200], [150, 250]])

ARGS = {
    'out_ce': out_ce,
    'tok': tok,
    'prompt_len': prompt_len,
    'ans_input_ids': ans_input_ids,
    'use_margin': True,
    'margin': 1.5,
    'lambda_margin': 0.2,
}
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 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
chunks Ran
ran; our contract draft was wrong, not the code
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("a37133c7a083ec7c")
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 generator. 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 numpy as np

torch.manual_seed(0)

# The function chunks(lst, n) takes a list and yields chunks of size n
# It uses: len(lst), slicing lst[i:i+n], and range()
# So lst needs to be a sequence with len() and slicing support

# Create a simple list with distinct elements for testing
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
n = 3

ARGS = {
    "lst": lst,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
gate_bce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("df1ee0eb56dd13f9")
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 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create gate_scores_list: list of tensors with shape (batch_size, seq_len, 1)
batch_size = 2
seq_len = 4
gate_scores_list = [
    torch.randn(batch_size, seq_len, 1),
    torch.randn(batch_size, seq_len, 1),
]

# Create subj_ranges: list of [start, end] ranges for each batch element
subj_ranges = [
    [1, 3],  # For batch 0: subject spans from token 1 to 3
    [0, 2],  # For batch 1: subject spans from token 0 to 2
]

# Create attention_mask: shape (batch_size, seq_len)
attention_mask = torch.ones(batch_size, seq_len, dtype=torch.float32)
attention_mask[0, 3] = 0  # Mask out last token in first batch
attention_mask[1, 3] = 0  # Mask out last token in second batch

# Other parameters
is_unrelated = False
pos_weight = 2.0

ARGS = {
    "gate_scores_list": gate_scores_list,
    "subj_ranges": subj_ranges,
    "attention_mask": attention_mask,
    "is_unrelated": is_unrelated,
    "pos_weight": pos_weight,
}
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 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
is_main_process Ran
ran on a synthesized input
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("9f7b345fe9b853cc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float; 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 torch.distributed as dist

torch.manual_seed(0)

# The function is_main_process() takes no parameters
# It checks if distributed training is initialized and if so, whether rank == 0
# We don't need to set up actual distributed training - the function handles both cases

ARGS = {}
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 bool, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (no_inputs)
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
kl_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("8959db6923feedce")
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 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for teacher and student logits
# Shape: (batch_size=2, vocab_size=4)
teacher_logits = torch.randn(2, 4)
student_logits = torch.randn(2, 4)

# Create a prompt mask - boolean tensor indicating which positions to compute loss on
# Shape: (batch_size=2,) with at least one True value
prompt_mask = torch.tensor([True, False])

ARGS = {
    "teacher_logits": teacher_logits,
    "student_logits": student_logits,
    "prompt_mask": prompt_mask,
}
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 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
ExternalRepHeadModel Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("f88a420258132b97")
How it ran

no invocation recorded.

HyperParams Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("7a52361b1565ae24")
How it ran

no invocation recorded.

OREHyperParams Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("c6263f4e82a5a169")
How it ran

no invocation recorded.

_rep_heads Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("2e10fb38be74f95a")
How it ran

no invocation recorded.

apply_ORE_to_model Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("244fc534d2c08b91")
How it ran

no invocation recorded.

empty_cache Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("89544dc7e474b383")
How it ran

no invocation recorded.

execute_ore Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("d3c9f7ddd7020f82")
How it ran

no invocation recorded.

generate_fast Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("42427b24096ac89f")
How it ran

no invocation recorded.

get_context_templates Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("01a9d26251bf2a78")
How it ran

no invocation recorded.

orth_loss Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("53045bee82a2ab4a")
How it ran

no invocation recorded.

tokenized Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("6648649dbdfad9b5")
How it ran

no invocation recorded.

train_step Not yet run
unverified (harvested, no recorded run)
YVVH/ORE/ORE/ORE_main.py
code served (permissive licence) · get_code("5813326e00feabd0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 0 later) and 18 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
AverageMeter
brick of this paper's assembly: helper
5 other papers
4 dated earlier, 1 the same month · 3 only as an assembly brick
2203.14509 (2022-03)
Automated Progressive Learning for Efficient Training of Vision Transformers
2406.10777 (2024-06)
RoseLoRA: Row and Column-wise Sparse Low-rank Adaptation of Pre-trained Language Model for Knowledge Editing and Fine-tuning
2503.07082 (2025-03)
On the Generalization of Representation Uncertainty in Earth Observation
and 2 more not named here
chunks
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2403.09488 (2024-03)
Rectifying Demonstration Shortcut in In-Context Learning
generate_fast
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2408.07413 (2024-08)
Knowledge in Superposition: Unveiling the Failures of Lifelong Knowledge Editing for Large 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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Knowledge editing aims to efficiently update factual information in Large Language Models (LLMs) without full retraining. However, existing methods still suffer from performance degradation in batch knowledge editing. We identify that semantic representation entanglement, such as overlapping concepts and shared syntactic patterns, accumulates interference in the representation space and reduces editing precision. To bridge this gap, in this paper, we propose Orthogonal Representation Editing (ORE), which performs edits in the hidden representation space of LLMs by constructing a general semantic subspace and enforcing orthogonal constraints on edit vectors, effectively decoupling semantic entanglement. Furthermore, we introduce a gated non-linear representation head to enable adaptive learning of editing locations and precise control over knowledge injection. Extensive experiments show that ORE outperforms existing methods and achieves superior performance in cross-lingual knowledge editing scenarios. We release our code at https://github.com/YVVH/ORE.

For agents

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

get_harvested_code_for_paper("2606.22627")
get_code_for_paper("2606.22627")
have("2606.22627")

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

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

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

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

Connect an agent — have() is free.