ChanSFormer: A Channel Agnostic Vision Transformer for Multi-Channel Cell Painting Images
Jingwei Zhang, Srinivasan Sivanandan, Dimitris Samaras
NeurIPS 2026
Abstract. High-content multi-channel imaging, from Cell Painting assays to remote sensing, is central to modern scientific pipelines. Because these channels are highly heterogeneous and experimental configurations frequently evolve, a practical vision backbone must be fundamentally channel-agnostic. Current channel-adaptive vision transformers rely on global self-attention with learnable channel embeddings, which can be computed only for previously known channels. Attempts to overcome this limitation of new channels either discard the embeddings, losing channel identity, or process each channel independently, thereby eliminating critical cross-channel interactions. To address this, we introduce ChanSFormer, an efficient Vision Transformer that replaces rigid embeddings with disentangled spatial-channel attention and individual channel CLS tokens. This architecture natively preserves both distinct channel identities and cross-channel information flow. Furthermore, the individual channel class token design unlocks more informative feature representations for self-supervised learning and enables representation-based channel sampling while remaining channel-agnostic. We evaluate ChanSFormer on two biology multi-channel datasets, CHAMMI, JUMP-CP and a satellite dataset, So2Sat. Experimental results show that ChanSFormer outperforms state-of-the-art methods by 3.93%--4.27% on JUMP-CP in classification accuracy. It also demonstrates exceptional cross-dataset transferability under a self-supervised setting, outperforming previous methods by up to 2.72% in accuracy in the same classification tasks. Furthermore, the disentangled attention reduces the quadratic complexity of channel × spatial sequence length of the global attention baseline, thus improving throughput by 55%--313%. Code is available at https://github.com/cvlab-stonybrook/ChanSFormer.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Summary: Microscopy experiments use imaging channels to focus on different biological features. This paper introduces a new architecture that can flexibly adapt to imaging data regardless of what the biologist decides to image. The proposed ChanSFormer is a ViT that is designed to be channel agnostic and more computationally efficient than prior approaches.
Strengths: The authors motivate their architecture with a complexity analysis, provide custom kernels for implementing it, and demonstrate a bump in performance over existing methods for analyzing microscopy and satellite datasets. This reads to me like the authors have found the right ingredients for large-scale modeling of microscopy data—though they leave this validation (and model comparisons on the grounds of scaling laws) to future work
Weaknesses: The key issue raised by the reviewers is that the central motivation for this work, robustness to different types and combinations of channels that might be recorded during a microscopy experiment, is not completely validated. Intuitively it feels like this is where the largest gains in performance should be found, so the absence of these experiments is disappointing. That paired with the relatively modest gains over existing approaches makes the contributions feel less powerful than they could be.
Addressing the reviewer questions around the channel robustness of the ChanSFormer will be critical for increasing the chances of acceptance for this paper.
Final justification
The authors addressed most concerns from the reviewers, who reached consensus at weak accept. Having read the full set of reviews and author responses, I agree with this rating. This paper deserves to go through and should be a solid contribution to the field of biomedical image analysis.
Read meta-review
Meta-review
Summary: Microscopy experiments use imaging channels to focus on different biological features. This paper introduces a new architecture that can flexibly adapt to imaging data regardless of what the biologist decides to image. The proposed ChanSFormer is a ViT that is designed to be channel agnostic and more computationally efficient than prior approaches.
Strengths: The authors motivate their architecture with a complexity analysis, provide custom kernels for implementing it, and demonstrate a bump in performance over existing methods for analyzing microscopy and satellite datasets. This reads to me like the authors have found the right ingredients for large-scale modeling of microscopy data—though they leave this validation (and model comparisons on the grounds of scaling laws) to future work
Weaknesses: The key issue raised by the reviewers is that the central motivation for this work, robustness to different types and combinations of channels that might be recorded during a microscopy experiment, is not completely validated. Intuitively it feels like this is where the largest gains in performance should be found, so the absence of these experiments is disappointing. That paired with the relatively modest gains over existing approaches makes the contributions feel less powerful than they could be.
Addressing the reviewer questions around the channel robustness of the ChanSFormer will be critical for increasing the chances of acceptance for this paper.
Final justification
The authors addressed most concerns from the reviewers, who reached consensus at weak accept. Having read the full set of reviews and author responses, I agree with this rating. This paper deserves to go through and should be a solid contribution to the field of biomedical image analysis.
1 comment
- Rating
- 4/6
- Confidence
- 5/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a channel-agnostic ViT that replaces channel embeddings with disentangled channel-spatial attention and per-channel CLS tokens, achieving strong performance on CHAMMI, JUMP-CP, and So2Sat.
Strengths and weaknesses
Strengths:
- This paper targets an important question in microscopy images, namely how to preserve channel-specific information and cross-channel interactions while remaining flexible to varying channel data. The proposed design are intuitive.
- The experiments cover multiple datasets, learning paradigms, and robustness settings.
Weaknesses:
- The central claim regarding novel-channel generalization is not fully supported by the experiments. The paper motivates the need to handle unseen or novel channels, but the empirical evaluation focuses primarily on partial-channel or channel-dropout settings. These experiments demonstrate robustness to missing channels rather than unseen channels. It remains unclear whether the proposed approach offers advantages in the true novel-channel regime that motivates the work. Prior channel-agnostic methods such as CA-MAE were specifically evaluated in transfer settings involving different channel structures across datasets. It would therefore strengthen the paper to evaluate ChanSFormer under similar cross-dataset channel-transfer scenarios, which would more directly validate the paper’s central motivation.
- The proposed channel-spatial attention mechanism is intuitive and effective, but conceptually resembles factorized attention designs used in prior transformer architectures such as TimeSformer. Also, it remains unclear which component is primarily responsible for the observed gains, particularly in the self-supervised setting where channel CLS tokens simultaneously increase supervision density and modify the representation structure.
Questions
- Could the authors clarify whether ChanSFormer can be evaluated in a more realistic unseen-channel transfer setting, similar to the cross-dataset channel-transfer scenarios considered by CA-MAE? Such an experiment would help determine whether the proposed architecture improves robustness to novel channel semantics rather than only missing-channel robustness.
- Could the authors provide additional analysis of the learned channel similarity matrix statistics, and explain why sampling similar channels performs better than the diversity-oriented strategy used in prior work?
Limitations
The paper includes a brief limitations paragraph that mainly focuses on performance trade-offs and computational constraints.
Final justification
Authors solved my questions during the rebuttal. I think it's a borderline paper that above the acceptance bar
Formatting concerns
No
5 comments
Rebuttal
We thank the reviewers for their valuable and constructive comments. Below, we provide our responses, including clarifications and additional experimental results.
-
Generalization to unseen channels. We agree that robustness to missing subsets of previously observed channels is different from transfer to genuinely unseen channel structures. In fact, our original Table 2 was designed to evaluate the latter under the self-supervised transfer protocol used in prior channel-agnostic methods such as CA-MAE [9] and BoC [10]. We will revise the paper to make this distinction more explicit, and to clarify that Table 5 evaluates partial-channel robustness, while Table 2 evaluates cross-dataset transfer.
To further validate the generalizability of ChanSFormer, we additionally conduct stricter leave-one-source-out SSL experiments on CHAMMI, where either HPA or Allen is excluded from pretraining. As shown below, values marked with † denote evaluations involving channels unseen during SSL pretraining. ChanSFormer outperforms strong baselines in most unseen-channel settings, demonstrating that its advantage extends beyond missing-channel robustness to the true novel-channel transfer regime that motivates this work.
| SSL source | Method | CHAMMI Avg | JUMP-CP Flu. | JUMP-CP Full |
|---|---|---|---|---|
| CHAMMI All | BoC [10] | 48.92 | 36.42† | 39.36† |
| CHAMMI All | ChannelViT [6] | 44.29 | 24.71† | 23.94† |
| CHAMMI All | ChanSFormer | 50.24 | 39.14† | 40.82† |
| JUMP-CP Flu. | BoC [10] | 40.85† | 42.24 | 46.00† |
| JUMP-CP Flu. | ChannelViT [6] | 32.88† | 32.97 | 30.72† |
| JUMP-CP Flu. | ChanSFormer | 42.86† | 45.15 | 46.13† |
| SSL source | Method | CHAMMI Avg | JUMP-CP Flu. | JUMP-CP Full |
|---|---|---|---|---|
| CHAMMI: Allen + CP (HPA held out) | BoC [10] | 35.72† | 19.65† | 19.63† |
| CHAMMI: Allen + CP (HPA held out) | ChannelViT [6] | 33.92† | 19.53† | 19.54† |
| CHAMMI: Allen + CP (HPA held out) | ChanSFormer | 46.00† | 37.25† | 38.38† |
| CHAMMI: HPA + CP (Allen held out) | BoC [10] | 46.76† | 35.67† | 37.75† |
| CHAMMI: HPA + CP (Allen held out) | ChannelViT [6] | 40.93† | 19.62† | 19.62† |
| CHAMMI: HPA + CP (Allen held out) | ChanSFormer | 44.38† | 37.58† | 38.58† |
† Evaluation involves channels absent from SSL pretraining. Bold denotes the best result under each SSL source.
-
Novelty of ChanSFormer. We agree with the reviewer that factorized attention itself is not new. Our contribution is not the factorization in isolation, but its use together with channel-wise CLS tokens to construct a channel-agnostic backbone for heterogeneous multi-channel images. The distinction is threefold:
(1) Objective. TimeSformer employs factorized attention primarily for efficient video modeling, whereas ChanSFormer uses the factorized channel-spatial structure to remove the dependence on fixed channel embeddings while retaining cross-channel interaction.
(2) Channel identity and permutation symmetry. Unlike video frames, whose temporal order is meaningful, the ordering of Cell Painting channels is arbitrary. The encoder should therefore be permutation-equivariant along the channel axis, while the final image prediction should be permutation-invariant. Global-attention models use fixed channel embeddings to identify the source channel of each token. In contrast, ChanSFormer preserves the separation of channel-specific tokens structurally through an explicit channel axis and shared operations, without encoding a fixed channel ordering.
(3) Channel-wise CLS-token design. TimeSformer duplicates a shared CLS token across temporal branches and then merges them. Directly applying this design to Cell Painting images achieves inferior performance. In Table 7, the 2nd and 3rd line under "supervised" setting, under the same HCS sampling, replacing our channel CLS tokens with the TimeSformer-style shared CLS reduces performance by 1.59–3.78%. We attribute this to the highly heterogeneous semantics of microscopy channels, for which averaging channel-specific representations is lossy.
-
Sources of the SSL improvement. We further separate the contributions of the backbone architecture and channel-level SSL supervision through two comparisons in Tables 2 and 7.
(1) Backbone architecture. ChanSFormer with image-level attention pooling (Table 7) and ChannelViT (Table 2) use both the image-level supervision granularity; our variant achieves much better performance, indicating that the backbone structure provides the main improvement.
(2) Supervision granularity. Keeping the ChanSFormer encoder fixed, replacing image-level attention pooling with channel-level CLS supervision improves all six reported settings in Table 7. Thus, channel-level supervision provides an additional benefit beyond the architectural improvement.
-
Learned channel similarity: We examined the learned channel similarity matrix on JUMP-CP. The fluorescence channels exhibit higher mutual similarity, whereas the similarities between fluorescence and brightfield channels are substantially lower. This is qualitatively consistent with the imaging modalities: fluorescence channels capture complementary stain-specific cellular structures, while brightfield channels provide a distinct transmitted-light view. Due to the rebuttal format, we cannot include the visualization here, but we will add the similarity heatmap and corresponding analysis in the revised version.
-
Effectiveness of similarity-based sampling. As discussed in Section B of the Supplementary, the prior diversity-oriented strategy is anchor-based: it first selects a pivot channel and then chooses channels that are dissimilar to that pivot. This enforces diversity relative to the pivot, but not pairwise diversity among all selected channels. Consequently, because the sampled subsets often contain more than two channels, the non-pivot channels may still be mutually similar. Based on this intuition, we directly use pairwise similarities derived from the dynamically learned channel CLS representations to sample coherent channel subsets, thereby avoiding dependence on a single pivot. Our results show that the channel CLS representations provide an effective signal for channel sampling, as supported by the ablation in Table 7. However, we do not claim a theoretical guarantee that similarity-based sampling is superior to diversity-oriented sampling.
Thanks for your response. It addresses my concerns on W1 and W2.
One question remains, regarding the learned channel similarity matrix S. The sampling temperature varies by two orders of magnitude across datasets (T = 1.0 for JUMP-CP, 0.1 for So2Sat, 0.01 for CHAMMI). At T = 0.01 the induced sampling distribution is extremely peaked, which suggests S has low contrast on CHAMMI. The 10× gap between JUMP-CP and So2Sat is also unclear to me, since ChannelViT (ICLR 2024, Fig. 2) reports a comparable two-block channel correlation structure for both datasets. In addition, CHAMMI pools three sources with 3, 4, and 5 channels, and the paper does not specify how S is constructed in this case — what C is, or how channels are indexed across sources.
Could the authors provide more detail on these points? It would be helpful if pretrained weights could be shared with the AC via an anonymous link. Anonymised URLs are an accepted mechanism under the NeurIPS guidelines.
We thank the reviewer for providing constructive comments. We are happy to share the pretrained weights with the AC if permitted under the author-response guidelines.
-
Construction of S on CHAMMI. We agree that this was under-specified. Following the channel indexing used by DiChaViT, we treat CHAMMI's three source-specific channel sets as disjoint and assign them distinct global indices: Allen has 3 channels, HPA has 4, and CP has 5, giving C = 12. Although S is stored as a single 12 × 12 buffer, it is updated and queried only within the block corresponding to the current source. The diagonal entries, which represent self-similarity, are excluded from sampling. Thus, S effectively consists of three independent 3 × 3, 4 × 4, and 5 × 5 similarity matrices, with an effective C of 3, 4, or 5 depending on the source. Cross-source entries are never updated or used for sampling. We will explicitly add the channel indexing, block-wise construction, and diagonal exclusion in the revision.
-
Relationship between S and T. We measured the standard deviation of the off-diagonal similarities in the pretrained weights as 0.134–0.174 on 3 subsets of CHAMMI, 0.203 on So2Sat, and 0.295 on JUMP-CP. The smaller off-diagonal spread confirms that S has lower contrast on CHAMMI than on So2Sat and JUMP-CP. Since our sampler uses the scaled similarities S/T, the smaller spread on CHAMMI can partially affect sampling sharpness. However, the raw spread differs by around 2 times, which cannot fully explain the 0.01-1.0 range of the selected T. Thus, differences in the selected T are not simply proportional to differences in the scale or contrast of S. Rather, T also controls how strongly the learned channel relations are sharpened in the resulting sampling distribution.
-
Different T across datasets. Following DiChaViT, we tune T separately for each dataset using the validation set. T controls the strength of relation-aware sampling: larger values approach uniform HCS, whereas smaller values place greater emphasis on channel combinations favored by the learned relations, since uniformly sampling all combinations is not necessarily optimal. The use of different temperatures across datasets is also consistent with DiChaViT's released training scripts.
We further evaluated sensitivity to T by varying it around the selected value on all three datasets. On So2Sat, T=0.1 and 1.0 achieve nearly identical overall performance, while T=0.01 is slightly lower, mainly due to the Sen-1 setting. On JUMP-CP, T = 1.0 and 10.0 perform similarly, while T = 0.1 leads to a noticeable drop. On CHAMMI, T = 0.01 and 0.1 are comparable, whereas T = 0.001 and 1.0 perform worse. These results show that, for a given dataset, performance is reasonably stable within an appropriate range, while excessively concentrating or flattening the sampling distribution can reduce performance.
Regarding the 10× difference between JUMP-CP and So2Sat, we agree that both exhibit a similar coarse two-block structure, which is also observed in our learned similarity matrices. However, a similar coarse structure does not imply the same optimal T. Empirically, the sensitivity results show that the 10× difference between the selected values does not indicate sharply different optima: T=1.0 performs well on both datasets, achieving nearly identical performance to T=0.1 on So2Sat and the best performance on JUMP-CP.
| T | So2Sat Full | So2Sat Sen-1 |
|---|---|---|
| 0.01 | 64.85 | 48.35 |
| 0.1 | 64.76 | 49.75 |
| 1.0 | 64.99 | 49.46 |
| T | JUMP-CP Full | JUMP-CP Partial |
|---|---|---|
| 0.1 | 71.41 | 58.39 |
| 1.0 | 73.46 | 61.91 |
| 10.0 | 73.12 | 61.18 |
| T | CHAMMI Avg |
|---|---|
| 0.001 | 67.34 |
| 0.01 | 68.83 |
| 0.1 | 68.40 |
| 1.0 | 66.26 |
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces ChanSFormer, a vision transformer architecture designed to be channel-agnostic for multi-channel imaging applications. The key innovations are: (1) disentangled channel-spatial attention that replaces global attention, reducing complexity from O((CN)²) to O(CN² + NC²), (2) individual channel CLS tokens that preserve channel identity without fixed embeddings, and (3) representation-based channel sampling during training. The method is evaluated on three datasets (CHAMMI, JUMP-CP, So2Sat) in both supervised and self-supervised settings.
Strengths and weaknesses
Strengths:
- This work has a clear problem formulation. It effectively identifies a real limitation in existing channel-adaptive ViTs, which is their reliance on fixed channel embeddings that prevent handling novel channel configurations.
- The work is technically sound. Decomposing global O((CN)²) attention into sequential channel (O(NC²)) and spatial (O(CN²)) steps is well-motivated and the complexity analysis is correct. The saving is especially meaningful for the high-C, large-N regime typical of Cell Painting assays with small patches.
- It has provided comprehensive evaluation. Experiments span supervised classification, self-supervised pretraining, cross-dataset transfer, and robustness to partial channels. The comparison against strong baselines (ChannelViT, DiChaViT, BoC) is thorough.
- Hardware-aware kernel is a genuine contribution. The custom Triton kernel for short-sequence channel attention addresses a practical implementation challenge that is often overlooked.
- Good ablation study. The paper carefully ablates key design choices (channel embeddings, cross-channel interactions, sampling strategy, CLS token design).
Weaknesses:
- Disentangling spatial and channel attention is not new. The paper acknowledges this but doesn't sufficiently differentiate ChanSFormer's technical contribution beyond the multi-channel imaging context.
- The method underperforms DiChaViT on CHAMMI (68.83 vs 69.68), with the explanation being the lack of channel diversification losses. This raises questions, are these losses essential for best performance? Could a version with these losses (adapted to be channel-agnostic) close this gap?
- The self-supervised experiments sample only 2 channels during pretraining, which is a significant departure from real-world usage where all channels are typically available. The authors justify this as enabling dynamic adaptation, but this evaluation setup may not reflect practical deployment scenarios.
- The representation-based sampling using EMA of channel CLS tokens adds complexity. Is the improvement over simple uniform sampling consistently significant across all datasets? Table 7 shows mixed results (-0.17% on JUMP-CP Flu, +0.27% on JUMP-CP Full).
- The paper doesn't provide qualitative analysis of what the channel attention learns. Are the attention patterns biologically interpretable? Do they correlate with known channel relationships?
- Table 3 reports model-level throughput gains of 55–313%, but Table 4 shows the custom kernel alone reduces training time by 35–54%. It is unclear how much of the model-level gain comes from architectural complexity reduction vs. the optimized kernel. A fair comparison would measure ChanSFormer with a naive attention implementation to isolate the architectural benefit.
- The EMA similarity matrix S is updated during the forward pass and decoupled from the loss. How is gradient flow handled here? Does this affect training stability in distributed settings?
- Why does temperature T vary so dramatically across datasets (0.01, 0.1, 1.0)? Was this tuned per-dataset? If so, how sensitive are results to this hyperparameter?
- Table 1 does not report standard deviations for baselines, only for ChanSFormer (in the appendix). Baseline variance would help assess statistical significance of the improvements.
- The 4.27% improvement on JUMP-CP is the headline number in the abstract but applies to one specific condition (Full channels), the Flu.-only gap is 3.93%. The abstract should be more precise.
Questions
- How does ChanSFormer perform when the number of channels exceeds the maximum seen during training?
- The channel attention kernel has a crossover at C=8. Can you explain the empirical methodology for determining this threshold and how it might vary across hardware?
- For the self-supervised experiments, why not pretrain with all channels to provide a fairer comparison to fully-supervised baselines? The 2-channel sampling seems to handicap all methods.
- The individual CLS tokens start identical and diverge through training. Is there any risk of representational collapse where multiple channels learn similar features?
Limitations
yes
Formatting concerns
I don't see any major formatting concern.
3 comments
Rebuttal
We thank the reviewers for their valuable and constructive comments. We provide our responses below:
-
Novelty of ChanSFormer. We agree that factorized attention itself is not new. Our contribution is not the factorization in isolation, nor merely its application to multi-channel imaging, but the combination of factorized channel-spatial attention and channel-wise CLS tokens to construct a channel-agnostic backbone for heterogeneous multi-channel inputs. The distinction is threefold:
(1) Objective. TimeSformer employs factorized attention primarily for efficient video modeling. In contrast, ChanSFormer uses the factorized channel-spatial structure to eliminate the dependence on fixed channel embeddings while still allowing information exchange across channels.
(2) Channel identity and permutation symmetry. Unlike video frames, whose temporal order is meaningful, the ordering of Cell Painting channels is arbitrary. The encoder should therefore be permutation-equivariant along the channel axis, while the final image prediction should be permutation-invariant. Global-attention models rely on fixed channel embeddings to identify the source channel of each token. ChanSFormer instead preserves channel identity structurally through an explicit channel axis and shared operations, without encoding a fixed channel ordering.
(3) Channel-wise CLS-token design. TimeSformer duplicates a shared CLS token across temporal branches and then merges them. Directly applying this design to Cell Painting images achieves inferior performance. In Table 7, the 2nd and 3rd line under "supervisd" setting, under the same HCS sampling, replacing our channel CLS tokens with the TimeSformer-style shared CLS reduces performance by 1.59–3.78%. We attribute this to the highly heterogeneous semantics of microscopy channels, for which averaging channel-specific representations is lossy.
Together, these components yield properties that do not follow from factorized attention alone: channel agnosticism without fixed channel embeddings, dynamic cross-channel information exchange, and channel-specific representations that further support self-supervised learning and representation-based channel sampling.
-
ChanSFormer is below DiChaViT on CHAMMI. ChanSFormer is only 0.85 points below the full DiChaViT, while DiChaViT’s own ablation shows that removing its Channel Diversification Loss reduces CHAMMI performance to 68.07, below our 68.83. Adapting this loss to ChanSFormer is nontrivial: it is originally defined over static learnable channel embeddings, whereas our channel CLS tokens are data-dependent representations used for information aggregation and prediction. Directly forcing these representations apart may suppress meaningful cross-channel correlations. Developing a channel-agnostic diversification objective is an interesting direction, and we leave it for future work.
-
#Channels during SSL pretraining. We use two-channel pretraining primarily to maintain a sufficiently large image batch under a fixed memory budget and to use a unified protocol across datasets with varying channel counts (e.g., CHAMMI images contain 3, 4, or 5 channels). To examine the effect of using more channels, we additionally pretrain on JUMP-CP Flu. using four channels per image, while reducing the image batch size to 1024/4=256 to keep the total number of channel views per iteration unchanged. As shown below, four-channel pretraining provides consistent improvements over the original two-channel setting, while ChanSFormer remains substantially better than ChannelViT across our evaluation settings.
| Method | # Pretraining channels | CHAMMI | JUMP-CP Flu. | JUMP-CP Full |
|---|---|---|---|---|
| ChannelViT | 2 | 32.88 | 32.97 | 30.72 |
| ChannelViT | 4 | 34.09 | 35.53 | 31.97 |
| ChanSFormer | 2 | 43.84 | 45.15 | 46.13 |
| ChanSFormer | 4 | 45.04 | 46.49 | 48.18 |
-
Mixed gains of representation-based sampling. We clarify that, for the "supervised" setting in Table 7, the first row is the full ChanSFormer, using our representation-based sampler and individual channel CLS tokens. The second row changes only the sampler to uniform HCS while keeping the same channel CLS design. Therefore, the improvement of representation-based sampling is +2.66% on CHAMMI, +0.65% on JUMP-CP Full, and +0.13% JUMP-CP Flu. All improvements are positive.
-
Qualitative analysis of learned channel attention. We examined the learned channel-attention patterns on JUMP-CP. The fluorescence channels exhibit stronger mutual attention, whereas fluorescence–brightfield attention is weaker. This is qualitatively consistent with the imaging modalities: fluorescence channels capture complementary stain-specific cellular structures, while brightfield channels provide a different transmitted-light view. The observation is also consistent with prior findings in [6]. Due to the rebuttal format, we cannot include the visualization here, but we will add the attention heatmap and analysis in the revised version.
-
Decomposing architectural and kernel speedups. We agree that the submitted tables do not directly isolate the two sources of acceleration. Table 4 benchmarks the channel-attention operator alone, whereas channel attention accounts for only part of the end-to-end runtime. We therefore benchmarked the full ChanSFormer using a naive channel-attention implementation. As shown below, the naive implementation already improves throughput over ChannelViT by 48–286%, demonstrating that most of the model-level acceleration comes from reducing the attention complexity from to . Replacing the naive implementation with our optimized Triton kernel provides an additional 4–10% improvement in ChanSFormer throughput, resulting in the final 55–313% gains reported in Table 3. We will add these full-model naive results to Table 3 to make the decomposition explicit.
| Mode | Model | Patch 16 | Patch 8 |
|---|---|---|---|
| Inference | ChannelViT | 72.2 | 7.7 |
| ChanSFormer (naive) | 106.7 (+48%) | 22.0 (+186%) | |
| ChanSFormer (optimized) | 112.0 (+55%) | 22.9 (+197%) | |
| Training | ChannelViT | 16.3 | 1.5 |
| ChanSFormer (naive) | 30.8 (+89%) | 5.8 (+286%) | |
| ChanSFormer (optimized) | 33.9 (+108%) | 6.2 (+313%) |
-
Gradient flow and distributed stability. We clarify that the EMA matrix S is a non-trainable running buffer. The channel CLS representations are detached before computing the similarity matrix, so no gradient flows through S or the sampling operation. In distributed training, we average the batch similarity matrix across all workers before the EMA update, ensuring that every worker maintains the same global S. Since S is at most 18×18, the synchronization overhead is negligible.
-
Baseline standard deviations. We agree that baseline variance would help assess statistical significance. Most baseline results in Table 1 are taken from [8], which do not provide per-run results or standard deviations; therefore, we cannot recover their variance without rerunning all baselines.
-
Baseline standard deviations. We report the standard deviation for ChanSFormer in Table 8. Most baseline values in Table 1 are taken from [8], which does not provide per-run results or standard deviations, so their variance cannot be recovered without rerunning the full baseline suite.
-
The 4.27% headline. We thank the reviewer for pointing this out and will revise the abstract to state that ChanSFormer improves JUMP-CP accuracy by 3.93–4.27%.
-
Generalization beyond the training channel count. ChanSFormer does not impose a fixed maximum channel count, because its patch embedding, spatial positional embedding, and attention operations are shared across the channel axis. Under our original SSL protocol, each pretraining view contains only two channels, whereas Table 2 evaluates the frozen backbone using up to 8 channels on JUMP-CP and 18 channels on So2Sat. ChanSFormer therefore already operates successfully with substantially more channels than it has ever observed simultaneously during pretraining, while consistently outperforming ChannelViT in these settings.
-
Hardware-dependent kernel crossover. The crossover was determined empirically on the RTX 8000 used in our experiments. We benchmarked both the CUDA-core and TensorCore kernel paths across the practical channel-count range and selected the crossover at which the TensorCore path became faster. For very short channel sequences, TensorCore operations require padding to their minimum efficient shape, so a substantial fraction of the issued computation is wasted; consequently, the CUDA-core implementation is faster for . As increases, this padding overhead becomes less significant and TensorCores become more efficient. This threshold is hardware-dependent, as it may vary with the GPU architecture and TensorCore characteristics. It can be selected through a lightweight device-specific microbenchmark during installation or initialization. We will clarify this methodology and the hardware dependence in the revised paper.
-
Representational collapse. Although the channel CLS tokens are initialized identically, their symmetry is broken within the first encoder block when each CLS token attends to the spatial tokens of its corresponding channel, which generally contain distinct content. The resulting CLS representations therefore become input- and channel-dependent. Moreover, high similarity between two channel CLS representations should not necessarily be interpreted as collapse, as it may reflect genuinely correlated information between those channels. Empirically, the learned channel-similarity matrix is non-uniform, and we do not observe complete representational collapse.
-
Temperature across datasets. We clarify that T was selected independently for each dataset using the validation set, as the scale and concentration of learned channel similarities differ across datasets, consistent with DiChaViT. In addition, we conducted a sensitivity analysis of T on all three datasets. As shown in the table below, for each dataset, performance is relatively stable within a reasonable range around the selected value. On So2Sat, T=0.1 and 1.0 achieve nearly identical overall performance, while T=0.01 is slightly lower, mainly due to the Sen-1 setting. On JUMP-CP, T = 1.0 and 10.0 perform similarly, while T = 0.1 leads to a noticeable drop. On CHAMMI, T = 0.01 and 0.1 are comparable, whereas values outside this range degrade performance. These results show that the method is not highly sensitive to T within an appropriate range.
T So2Sat Full So2Sat Sen-1 0.01 64.85 48.35 0.1 64.76 49.75 1.0 64.99 49.46 T JUMP-CP Full JUMP-CP Partial 0.1 71.41 58.39 1.0 73.46 61.91 10.0 73.12 61.18 T CHAMMI Avg 0.001 67.34 0.01 68.83 0.1 68.40 1.0 66.26
Thank you again for your detailed and constructive feedback. We have added substantial analyses and experiments to address the points raised in your review. Please let us know if any questions or concerns remain. If our responses have resolved your concerns, we would be grateful if you could reconsider your rating.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes ChanSFormer, a channel-agnostic ViT for multi-channel images. The core design replaces global attention over concatenated channel-spatial tokens with sequential channel attention and spatial attention, uses one copied CLS token per channel, and adds representation-based channel sampling.
Strengths and weaknesses
Strengths:
- The motivation is strong: fixed channel embeddings are awkward for microscopy, where channels vary across dataset.
- The proposed architecture is reasonable with an efficiency contribution.
Weakness:
- The biggest problem is that: The central “new/unseen channels” claim is under-tested. Most evaluations are trained or fine-tuned on known channel sets or subsets of known channels. I would want experiments where training and test use genuinely different channel semantics. Although in some experiments, you sample during the training, the model still see all the channels during training.
- CHAMMI supervised performance is below DiChaViT, why?
- I'm not sure whether zero-padded unseen embeddings of ChannelViT is reasonable for unseen channel since finetuning the channel embedding is not heavy. stronger adaptation baselines would help.
Questions
Why in the appendix, the imagenet pretrained ChanSFormer has more parameters than in the main experiment table?
Limitations
See above
Final justification
final justification score: 4
Formatting concerns
No
5 comments
Rebuttal
We thank the reviewers for their valuable and constructive comments. Below, we provide our initial responses, including clarifications and additional experimental results.
-
Generalization to unseen channels. We agree that robustness to missing subsets of previously observed channels and transfer to channels with unseen semantics are different evaluation settings. In the original submission, the partial-channel experiments in Table 5 evaluate the former, following ChannelViT [6]; whereas the cross-dataset self-supervised transfer experiments in Table 2 evaluate the latter, following CA-MAE [9] and BoC [10]. We will revise the paper to make this distinction explicit.
To further validate the generalizability of ChanSFormer, we additionally conduct stricter leave-one-source-out SSL experiments on CHAMMI, where either HPA or Allen is completely excluded from pretraining. As shown below, values marked with † denote evaluations involving channels unseen during SSL pretraining. ChanSFormer outperforms strong baselines in most unseen-channel settings, demonstrating that its advantage extends beyond missing-channel robustness to the a stricter novel-channel transfer regime that motivates this work.
| SSL source | Method | CHAMMI Avg | JUMP-CP Flu. | JUMP-CP Full |
|---|---|---|---|---|
| CHAMMI All | BoC [10] | 48.92 | 36.42† | 39.36† |
| CHAMMI All | ChannelViT [6] | 44.29 | 24.71† | 23.94† |
| CHAMMI All | ChanSFormer | 50.24 | 39.14† | 40.82† |
| JUMP-CP Flu. | BoC [10] | 40.85† | 42.24 | 46.00† |
| JUMP-CP Flu. | ChannelViT [6] | 32.88† | 32.97 | 30.72† |
| JUMP-CP Flu. | ChanSFormer | 42.86† | 45.15 | 46.13† |
| SSL source | Method | CHAMMI Avg | JUMP-CP Flu. | JUMP-CP Full |
|---|---|---|---|---|
| CHAMMI: Allen + CP (HPA held out) | BoC [10] | 35.72† | 19.65† | 19.63† |
| CHAMMI: Allen + CP (HPA held out) | ChannelViT [6] | 33.92† | 19.53† | 19.54† |
| CHAMMI: Allen + CP (HPA held out) | ChanSFormer | 46.00† | 37.25† | 38.38† |
| CHAMMI: HPA + CP (Allen held out) | BoC [10] | 46.76† | 35.67† | 37.75† |
| CHAMMI: HPA + CP (Allen held out) | ChannelViT [6] | 40.93† | 19.62† | 19.62† |
| CHAMMI: HPA + CP (Allen held out) | ChanSFormer | 44.38† | 37.58† | 38.58† |
† Evaluation involves channels absent from SSL pretraining. Bold denotes the best result under each SSL source.
-
ChanSFormer is below DiChaViT on CHAMMI. ChanSFormer is only 0.85% below the full DiChaViT on CHAMMI. One factor is DiChaViT’s Channel Diversification Loss (CDL), which is defined over its fixed learnable channel embeddings and is therefore not directly applicable to our channel embedding-free, channel-agnostic design. In DiChaViT’s own ablation, removing this loss reduces its CHAMMI score from 69.68 to 68.07, below ChanSFormer’s 68.83.
-
Parameter count in the ImageNet-pretrained setting. In the main from-scratch experiments, we reduce the embedding dimension to , giving ChanSFormer 20.1M parameters and enabling a parameter-matched architectural comparison with other ViT baselines. In the ImageNet-pretrained setting, we instead use the standard ViT-S/16 dimension so that the pretrained spatial-attention weights can be loaded directly. The larger hidden dimension, together with the additional channel-attention layers, increases the parameter count to 28.9M.
Thanks for your response. It solves most of my concerns but still leaves the unreasonable benchmark unsolved. So I would like to keep my score.
We thank the reviewer for pointing this out. We did not include this baseline in our initial response because adapting the channel embeddings is substantially more computationally expensive than it may appear. Although only the unseen channel embeddings are optimized, computing their gradients still requires end-to-end forward and backward passes through the backbone. In contrast, linear probing allows us to extract the backbone features once and train only a linear head, making one fine-tuning experiment approximately 20× slower in our implementation. Moreover, multiple linear-probe hyperparameter configurations can be trained jointly by attaching multiple linear heads to the same cached features in a single experiment. In contrast, each channel-embedding adaptation configuration requires a separate end-to-end run, making practical hyperparameter tuning even more expensive than the 20× per-run slowdown suggests.
We have now completed the experiments. As shown in the table below, channel embedding (CE) adaptation slightly improves ChannelViT over zero-padding, but its performance remains below ChanSFormer in all seven unseen-channel settings.
| SSL source | Target | ChannelViT (zero-pad) | ChannelViT (CE adapt.) | ChanSFormer |
|---|---|---|---|---|
| CHAMMI | JUMP-CP Full | 23.94 | 25.54 | 40.82 |
| CHAMMI | JUMP-CP Flu. | 24.71 | 24.99 | 39.14 |
| CHAMMI | So2Sat Full | 66.65 | 66.91 | 68.08 |
| CHAMMI | So2Sat Sen-1 | 44.54 | 45.14 | 46.23 |
| JUMP-CP Flu. | JUMP-CP Full | 30.72 | 31.10 | 46.13 |
| JUMP-CP Flu. | So2Sat Full | 65.00 | 65.19 | 66.33 |
| JUMP-CP Flu. | So2Sat Sen-1 | 44.47 | 44.60 | 45.34 |
We omit in-domain settings because their pretraining and evaluation channel identities are identical, so no unseen embeddings require adaptation. We also omit CHAMMI as a target because its official evaluation uses feature-space 1-NN and requires no downstream parameter optimization, rather than a cross-entropy classification head.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair for highlighting the central concern regarding robustness to novel channel configurations. We first clarify that the paper evaluates two distinct notions of channel robustness. Table 5 measures robustness to missing subsets of previously observed channels, following the partial-channel protocol of ChannelViT in supervised setting. In contrast, Table 2 measures cross-dataset robustness in SSL setting: the backbone is pretrained on one dataset and then frozen and evaluated by linear probing on other datasets with different channel structures and semantics. We will revise the paper to make this distinction explicit.
We further conduct restricted-source SSL experiments by excluding one CHAMMI subset from pretraining, such that evaluation on full CHAMMI includes unseen channels, alongside cross-dataset evaluation on JUMP-CP. ChanSFormer achieves the best result in five of the six additional settings. Together with the original cross-dataset results in Table 2, these experiments show that ChanSFormer's advantage extends beyond robustness to missing known channels to transfer settings involving partially or entirely unseen channel configurations.
Thank you for your time and effort in guiding this rebuttal process.