SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.17468 · 2026

ReflexSplit: Single Image Reflection Separation via Layer Fusion-Separation

Yu-Lun Liu, Chih-Chung Hsu, Chia-Ming Lee, Yu-Fan Lin, Jin-Hui Jiang, Yu-Jou Hsiao, Map Ca

arXiv · PDF · Open in the Atlas

Code that ran

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

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2601.17468.json · badge: /api/ran/2601.17468.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
wuw2135/ReflexSplit community
Papers with Code archive
4 ran · 5 no recorded run
FunctionStatusWhere it lives
Conv1x1Fp32 Ran
ran on a synthesized input
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("ce648858a32881d2")
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 4, dtype family float, shape (2, 4, 5, 6) 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 torch.nn as nn

class Conv1x1Fp32(nn.Module):

    def __init__(self, in_ch, out_ch):
        super().__init__()
        self.conv = nn.Conv2d(in_ch, out_ch, kernel_size=1)

    def forward(self, x):
        dtype = x.dtype
        with torch.cuda.amp.autocast(enabled=False):
            y = self.conv(x.float())
        return y.to(dtype)


INIT_ARGS = {
    'in_ch': 3,
    'out_ch': 4,
}

ARGS = {
    'x': torch.randn(2, 3, 5, 6),
}

if __name__ == '__main__':
    model = Conv1x1Fp32(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output dtype: {output.dtype}")
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 4, dtype family float, shape (2, 4, 5, 6) — shape (2, 4, 5, 6) 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)
MultiScaleFusion Ran
ran on a synthesized input
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("728a6ce56a8db2f0")
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 4, dtype family float, shape (2, 4, 5, 6) 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 MultiScaleFusion(nn.Module):
    """多尺度特徵融合模組"""

    def __init__(self, channels):
        super().__init__()
        self.conv_current = nn.Conv2d(channels, channels, 1)
        self.conv_prev = nn.Conv2d(channels, channels, 1)
        self.weight = nn.Parameter(torch.ones(2))

    def forward(self, x_current, x_prev):
        """
        x_current: 當前層特徵 [B, C, H, W]
        x_prev: 上一層特徵 [B, C, H, W]
        """
        if x_prev.shape[-2:] != x_current.shape[-2:]:
            x_prev = F.interpolate(x_prev, size=x_current.shape[-2:], mode='bilinear', align_corners=False)
        w = F.softmax(self.weight, dim=0)
        out = w[0] * self.conv_current(x_current) + w[1] * self.conv_prev(x_prev)
        return out


INIT_ARGS = {
    'channels': 4
}

ARGS = {
    'x_current': torch.randn(2, 4, 5, 6),
    'x_prev': torch.randn(2, 4, 3, 4)
}

if __name__ == '__main__':
    model = MultiScaleFusion(**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 4, dtype family float, shape (2, 4, 5, 6) — shape (2, 4, 5, 6) 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)
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("262615fae4cc98e4")
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 (12, 4, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Construct a valid input tensor
# Shape: (B, H, W, C) where B=batch, H=height, W=width, C=channels
# Using distinct sizes: B=2, H=8, W=12, C=4
x = torch.randn(2, 8, 12, 4)

# window_size can be an int or tuple
# Using window_size=4 which divides both H=8 and W=12 evenly
window_size = 4

ARGS = {
    "x": x,
    "window_size": window_size,
}
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 (12, 4, 4, 4) — shape (12, 4, 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
window_reverse Ran
ran; our contract draft was wrong, not the code
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("d72e4f50ac536f31")
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 4, dtype family float, shape (2, 4, 6, 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)

# window_reverse takes windows tensor and reverses the windowing operation
# It needs:
# - windows: tensor of shape (B * num_windows, window_size[0], window_size[1], C)
# - window_size: int or tuple of (window_h, window_w)
# - H: height of original image
# - W: width of original image

# Let's construct small valid arguments
window_size = (2, 3)  # window height=2, width=3
H = 4  # image height
W = 6  # image width
C = 4  # number of channels

# Number of windows in each dimension
num_windows_h = H // window_size[0]  # 4 // 2 = 2
num_windows_w = W // window_size[1]  # 6 // 3 = 2
B = 2  # batch size

# Total number of windows
num_windows = num_windows_h * num_windows_w * B  # 2 * 2 * 2 = 8

# windows shape: (B * num_windows, window_h, window_w, C)
windows = torch.randn(num_windows, window_size[0], window_size[1], C)

ARGS = {
    "windows": windows,
    "window_size": window_size,
    "H": H,
    "W": W,
}
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 4, dtype family float, shape (2, 4, 6, 4) — shape (2, 4, 6, 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
DifferentialDualAttentionInteractiveBlock Not yet run
unverified (harvested, no recorded run)
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("9b9fbcd9faef02cd")
How it ran

no invocation recorded.

DifferentialDualStreamAttention Not yet run
unverified (harvested, no recorded run)
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("ab4f58d42e33a6b3")
How it ran

no invocation recorded.

LocalFeatureExtractor Not yet run
unverified (harvested, no recorded run)
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("2490f31e6cb142fe")
How it ran

no invocation recorded.

MuGIBlock Not yet run
unverified (harvested, no recorded run)
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("e641ec6c1013ed1e")
How it ran

no invocation recorded.

ReflexSplit Not yet run
unverified (harvested, no recorded run)
wuw2135/ReflexSplit/models/arch/reflexsplit.py
code served (permissive licence) · get_code("831b5804d0739f37")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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

Single Image Reflection Separation (SIRS) disentangles mixed images into transmission and reflection layers. Existing methods suffer from transmission-reflection confusion under nonlinear mixing, particularly in deep decoder layers, due to implicit fusion mechanisms and inadequate multi-scale coordination. We propose ReflexSplit, a dualstream framework with three key innovations. (1) Crossscale Gated Fusion (CrGF) adaptively aggregates semantic priors, texture details, and decoder context across hierarchical depths, stabilizing gradient flow and maintaining feature consistency. (2) Layer Fusion-Separation Blocks (LFSB) alternate between fusion for shared structure extraction and differential separation for layer-specific disentanglement. Inspired by Differential Transformer, we extend attention cancellation to dual-stream separation via cross-stream subtraction. (3) Curriculum training progressively strengthens differential separation through depthdependent initialization and epoch-wise warmup. Extensive experiments on synthetic and real-world benchmarks demonstrate state-of-the-art performance with superior perceptual quality and robust generalization. Our code is available at https://github.com/wuw2135/ReflexSplit.

For agents

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

get_harvested_code_for_paper("2601.17468")
get_code_for_paper("2601.17468")
have("2601.17468")

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

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

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

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

Connect an agent — have() is free.