SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.00666 · 2026

Domain Arithmetic: One-Shot VLA Adaptation under Environmental Shifts

Jonghyun Choi, Taeheon Kim, Taewook Kang, Donghyun Shin

arXiv · PDF

Code that ran

7 of 7 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, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2607.00666.json · badge: /api/ran/2607.00666.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
snumprlab/dart canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
get_posemb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
snumprlab/dart/src/openpi/models/siglip.py
code served (permissive licence) · get_code("abc37c285df2be8e")
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 ArrayImpl, ndim 3, dtype family float, shape (1, 12, 8) 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 flax.linen as nn
import jax.numpy as jnp
import numpy as np

# Create a minimal Flax module that implements the self.param method
class MinimalModule(nn.Module):
    def setup(self):
        pass
    
    def __call__(self, x):
        return x

# Instantiate the module
module_instance = MinimalModule()

# Define arguments for get_posemb
ARGS = {
    'self': module_instance,
    'typ': 'sincos2d',
    'seqshape': (4, 3),
    'width': 8,
    'name': 'posemb',
    'dtype': jnp.float32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (1, 12, 8) — shape (1, 12, 8) 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
left_to_right_align Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
snumprlab/dart/src/openpi/models/pi0_fast.py
code served (permissive licence) · get_code("61b98215c3b06606")
How it ran

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

import jax
import jax.numpy as jnp

# Set up small test tensors
batch_size = 2
seq_len = 4
hidden_dim = 3

# Create x: shape (batch_size, seq_len, hidden_dim) but vmap will handle batch
# So for each batch element: (seq_len, hidden_dim)
x = jnp.ones((seq_len, hidden_dim))

# Create input_mask: shape (seq_len,)
# This is a binary mask where 1 indicates valid positions
input_mask = jnp.array([1.0, 1.0, 0.0, 0.0])

# Create attn_mask: shape (seq_len, seq_len)
# Standard attention mask
attn_mask = jnp.ones((seq_len, seq_len))

# Stack batch dimension for vmap
x_batch = jnp.stack([x, x], axis=0)
input_mask_batch = jnp.stack([input_mask, input_mask], axis=0)
attn_mask_batch = jnp.stack([attn_mask, attn_mask], axis=0)

ARGS = {
    "x": x_batch,
    "input_mask": input_mask_batch,
    "attn_mask": attn_mask_batch,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_attn_mask Ran
ran, violated the contract we drafted
snumprlab/dart/src/openpi/models/pi0.py
code served (permissive licence) · get_code("4de0e754d861675e")
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 ArrayImpl, ndim 3, dtype family float, shape (2, 4, 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 jax.numpy as jnp
import numpy as np

# Create small test tensors
batch_size = 2
seq_length = 4

# input_mask: bool[B, N] - true if part of input, false if padding
input_mask = jnp.array([
    [True, True, True, False],
    [True, True, False, False]
], dtype=jnp.bool_)

# mask_ar: bool[?B, N] - mask for attention regions
# Can be broadcast to input_mask shape
# Example: pure causal attention pattern
mask_ar = jnp.array([
    [True, True, True, True],
    [True, True, True, True]
], dtype=jnp.bool_)

ARGS = {
    "input_mask": input_mask,
    "mask_ar": mask_ar,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 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
posemb_sincos_2d Ran
ran, honoured the contract we drafted
snumprlab/dart/src/openpi/models/siglip.py
code served (permissive licence) · get_code("2d67a8a756fe7cf8")
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 ArrayImpl, ndim 3, dtype family float, shape (1, 12, 8) 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 jax.numpy as jnp

ARGS = {
    'h': 4,
    'w': 3,
    'width': 8,
    'temperature': 10000.0,
    'dtype': jnp.float32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (1, 12, 8) — shape (1, 12, 8) 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
put_along_last_axis Ran
ran, violated the contract we drafted
snumprlab/dart/src/openpi/models/pi0_fast.py
code served (permissive licence) · get_code("39dfdc60fa430244")
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 ArrayImpl, 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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update('jax_default_prng_impl', 'threefry2x32')

# Create small test arrays with distinct dimensions
# arr: shape (2, 3, 4) - batch=2, seq=3, vocab=4
arr = jnp.arange(24, dtype=jnp.float32).reshape(2, 3, 4)

# indices: shape (2, 3, 1) - indices into last dimension of arr
# Values should be valid indices < arr.shape[-1] (which is 4)
indices = jnp.array([[[1], [2], [0]], [[3], [1], [2]]], dtype=jnp.int32)

# values: shape (2, 3, 1) - values to put along the last axis
values = jnp.array([[[10.0], [20.0], [30.0]], [[40.0], [50.0], [60.0]]], dtype=jnp.float32)

ARGS = {
    "arr": arr,
    "indices": indices,
    "values": values,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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: none by the harness; any seed is in the setup block
pytree_to_torch_cpu Ran
ran; our contract draft was wrong, not the code
snumprlab/dart/domain_arithmetic/utils.py
code served (permissive licence) · get_code("d5f1373f043d06d7")
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.

from flax.traverse_util import flatten_dict
import numpy as np
import torch

# Construct a nested pytree structure (dict of dicts with numpy arrays/values)
# This mimics typical Flax parameter structures
nested_params = {
    'layer1': {
        'kernel': np.array([[1.0, 2.0, 3.0, 4.0],
                            [5.0, 6.0, 7.0, 8.0],
                            [9.0, 10.0, 11.0, 12.0]]),
        'bias': np.array([0.1, 0.2, 0.3, 0.4])
    },
    'layer2': {
        'kernel': np.array([[1.5, 2.5],
                            [3.5, 4.5],
                            [5.5, 6.5],
                            [7.5, 8.5]]),
        'bias': np.array([0.5, 0.6])
    }
}

ARGS = {
    'params': nested_params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, numpy, torch — 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
torch_flat_to_jax_pytree Ran
ran; our contract draft was wrong, not the code
snumprlab/dart/domain_arithmetic/utils.py
code served (permissive licence) · get_code("b2a0964a45b41896")
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
import jax.numpy as jnp
from flax.traverse_util import flatten_dict, unflatten_dict

torch.manual_seed(0)

# Create a flat dictionary of torch tensors with various shapes
flat_torch = {
    ('layer1', 'weight'): torch.randn(4, 3),
    ('layer1', 'bias'): torch.randn(3),
    ('layer2', 'weight'): torch.randn(5, 4),
    ('layer2', 'bias'): torch.randn(5),
}

# Create a template PyTree with matching structure but JAX arrays
template_params = {
    'layer1': {
        'weight': jnp.ones((4, 3), dtype=jnp.float32),
        'bias': jnp.ones((3,), dtype=jnp.float32),
    },
    'layer2': {
        'weight': jnp.ones((5, 4), dtype=jnp.float32),
        'bias': jnp.ones((5,), dtype=jnp.float32),
    },
}

ARGS = {
    'flat_torch': flat_torch,
    'template_params': template_params,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, torch — 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 4 the same month, 0 later) and 3 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
posemb_sincos_2d 5 other papers
4 dated earlier, 1 the same month
2205.01580 (2022-05)
Better plain ViT baselines for ImageNet-1k
2305.07011 (2023-05)
Region-Aware Pretraining for Open-Vocabulary Object Detection with Vision Transformers
2309.16588 (2023-09)
Vision Transformers Need Registers
and 2 more not named here
left_to_right_align 1 other paper
1 the same month
2607.18060 (2026-07)
RoboHarness: Memory-Driven Orchestration of Heterogeneous Robot Policies ROBOHARNESS: MEMORY-DRIVEN ORCHESTRATION OF HETEROGENEOUS ROBOT POLICIES FOR LONG-HORIZON PLANNING
make_attn_mask 1 other paper
1 the same month
2607.18060 (2026-07)
RoboHarness: Memory-Driven Orchestration of Heterogeneous Robot Policies ROBOHARNESS: MEMORY-DRIVEN ORCHESTRATION OF HETEROGENEOUS ROBOT POLICIES FOR LONG-HORIZON PLANNING
put_along_last_axis 1 other paper
1 the same month
2607.18060 (2026-07)
RoboHarness: Memory-Driven Orchestration of Heterogeneous Robot Policies ROBOHARNESS: MEMORY-DRIVEN ORCHESTRATION OF HETEROGENEOUS ROBOT POLICIES FOR LONG-HORIZON PLANNING

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

Vision-Language-Action (VLA) models often fail to perform the same learned tasks under environmental shifts, such as changes in camera pose and shifts to a different but similar robot (e.g., from Panda to UR5e). Adapting these models to the shifted environment (i.e., target domain) often requires training on multiple demonstrations for each task, which are costly to collect. To reduce the burden of data curation and training, we propose an analogy-based method that adapts VLA models under environmental shifts through weight vector arithmetic with domainspecific information addition, named Domain ARiThmetic (DART). Unlike prior approaches, DART requires collecting only a single demonstration, enabling efficient adaptation. To accurately isolate domain-specific information for addition, DART performs subspace alignment between singular components in weight vectors to filter out noisy components. In both simulated and real-world experiments, DART outperforms existing VLA adaptation methods in one-shot scenarios across diverse visual and embodiment shifts. Code is available at https://github.com/snumprlab/dart.

For agents

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

get_harvested_code_for_paper("2607.00666")
get_code_for_paper("2607.00666")
have("2607.00666")

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

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

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

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

Connect an agent — have() is free.