SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.16419 · NeurIPS · 2024

Enhancing Feature Diversity Boosts Channel-Adaptive Vision Transformers

Bryan Plummer, Chau Pham

arXiv · PDF · Open in the Atlas

Code that ran

8 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 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; 3 failures of our instrument; 14 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/2405.16419.json · badge: /api/ran/2405.16419.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
chaudatascience/diverse_channel_vit canonical (classifier label)
classifier basis: classifier_2025
8 ran · 14 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("b02da06042eb84e7")
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
from torch import nn

class Attention(nn.Module):

    def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0.0, proj_drop=0.0):
        super().__init__()
        self.num_heads = num_heads
        head_dim = dim // num_heads
        self.scale = qk_scale or head_dim ** (-0.5)
        self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
        self.attn_drop = nn.Dropout(attn_drop)
        self.proj = nn.Linear(dim, dim)
        self.proj_drop = nn.Dropout(proj_drop)

    def forward(self, x):
        B, N, C = x.shape
        qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
        q, k, v = (qkv[0], qkv[1], qkv[2])
        attn = q @ k.transpose(-2, -1) * self.scale
        attn = attn.softmax(dim=-1)
        attn = self.attn_drop(attn)
        x = (attn @ v).transpose(1, 2).reshape(B, N, C)
        x = self.proj(x)
        x = self.proj_drop(x)
        return (x, attn)


INIT_ARGS = {
    'dim': 8,
    'num_heads': 2,
    'qkv_bias': False,
    'qk_scale': None,
    'attn_drop': 0.1,
    'proj_drop': 0.1,
}

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

if __name__ == '__main__':
    attn = Attention(**INIT_ARGS)
    output, attention_weights = attn(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Attention weights shape: {attention_weights.shape}")
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)
Block Ran
ran on a synthesized input · constructed an object; no result was computed
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("efa81f6f1800c5f2")
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 an instance of its own class, Block: the run constructed the object and did not call it, so no result was computed. 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 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    "dim": 8,
    "num_heads": 2,
    "mlp_ratio": 4.0,
    "qkv_bias": False,
    "qk_scale": None,
    "drop": 0.0,
    "attn_drop": 0.0,
    "drop_path": 0.0,
    "act_layer": nn.GELU,
    "norm_layer": nn.LayerNorm,
}
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 Block — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Block 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
DropPath Ran
ran on a synthesized input · constructed an object; no result was computed
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("07bed269ee55adea")
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 an instance of its own class, DropPath: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

# Create a small input tensor: batch_size=2, feature_dim=4
x = torch.randn(2, 4)

# Define ARGS dict with all parameters for DropPath.__init__
ARGS = {
    "drop_prob": 0.5
}
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 DropPath — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DropPath 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
PPTAttention Ran
ran on a synthesized input · constructed an object; no result was computed
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("3783c6d21458155a")
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 an instance of its own class, PPTAttention: the run constructed the object and did not call it, so no result was computed. 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
from typing import Tuple

torch.manual_seed(0)

class PPTAttention(nn.Module):
    """
    Copy from https://github.com/xjwu1024/PPT/blob/main/ppt_deit.py
    Which seems originally from https://github.com/adaptivetokensampling/ATS/blob/main/libs/models/transformers/ats_block.py

    Modifications:
     - Apply proportional attention
     - Return the mean of k over heads from attention
     - Return the tokens scores
    """

    def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0.0, proj_drop=0.0):
        super().__init__()
        self.num_heads = num_heads
        head_dim = dim // num_heads
        self.scale = qk_scale or head_dim ** (-0.5)
        self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
        self.attn_drop = nn.Dropout(attn_drop)
        self.proj = nn.Linear(dim, dim)
        self.proj_drop = nn.Dropout(proj_drop)

    @staticmethod
    def score_assignment_step(attn, v):
        """
        Token Score Assignment Step.
        :param attn: attention matrix
        :param v: values
        :return: sorted significance scores and their corresponding indices
        """
        B, H, _, _ = attn.shape
        C = v.shape[3] * H
        v_norm = torch.linalg.norm(v.transpose(1, 2).reshape(B, attn.shape[2], C), ord=2, dim=2)
        significance_score = attn[:, :, 0].sum(dim=1)
        significance_score = significance_score * v_norm
        significance_score = significance_score[:, 1:]
        significance_score = significance_score / significance_score.sum(dim=1, keepdim=True)
        return significance_score

    def forward(self, x: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
        B, N, C = x.shape
        qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
        q, k, v = (qkv[0], qkv[1], qkv[2])
        attn = q @ k.transpose(-2, -1) * self.scale
        attn = attn.softmax(dim=-1)
        attn = self.attn_drop(attn)
        scores = self.score_assignment_step(attn, v)
        largest = True
        constant = 9999 if largest else -9999
        cls_score = constant * torch.ones(scores.shape[0], 1).to(scores.device)
        scores = torch.cat([cls_score, scores], dim=-1)
        x = (attn @ v).transpose(1, 2).reshape(B, N, C)
        x = self.proj(x)
        x = self.proj_drop(x)
        return (x, scores)


ARGS = {
    'dim': 4,
    'num_heads': 2,
    'qkv_bias': False,
    'qk_scale': None,
    'attn_drop': 0.0,
    'proj_drop': 0.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PPTAttention — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PPTAttention 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
PatchEmbedPerChannel Ran
ran on a synthesized input · constructed an object; no result was computed
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("b7c9a06a56b29150")
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 an instance of its own class, PatchEmbedPerChannel: the run constructed the object and did not call it, so no result was computed. 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 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 numpy as np
from collections import defaultdict

torch.manual_seed(0)

# Stand-in config class with required attributes
class Config:
    def __init__(self):
        self.temperature = 1.0
        self.proxy_loss_lambda = 0.1
        self.proxy_orthogonal_init = False
        self.hcs_sampling = 'none'
        self.orthogonal_channel_emb_init = False
        self.freeze_channel_emb = False
    
    def get(self, key, default=None):
        return getattr(self, key, default)

# Create config
config = Config()

# Create mapper dict
mapper = {
    'chunk_0': 0,
    'chunk_1': 1,
}

# Build arguments
ARGS = {
    'config': config,
    'img_size': 224,
    'patch_size': 16,
    'in_chans': 3,
    'mapper': mapper,
    'embed_dim': 768,
    'enable_sample': True,
    'use_channelvit_channels': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, numpy, timm, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PatchEmbedPerChannel — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PatchEmbedPerChannel 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
_no_grad_trunc_normal_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("d05e018c317ed42b")
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 2, dtype family float, shape (2, 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 math

torch.manual_seed(0)

# Create a small tensor to be initialized
tensor_to_init = torch.empty(2, 4)

# Define parameters for truncated normal distribution
mean = 0.0
std = 1.0
a = -2.0  # lower bound
b = 2.0   # upper bound

ARGS = {
    "tensor": tensor_to_init,
    "mean": mean,
    "std": std,
    "a": a,
    "b": b,
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
repeat Ran
ran; our contract draft was wrong, not the code
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("6a1004bd6c0e8713")
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 function. 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 functools
import torch

# Define a simple function to decorate
def sample_function(x, y=10):
    """A simple function that will be decorated."""
    return x + y

# Test case 1: Using repeat as a decorator with default num_times
ARGS = {
    "_func": sample_function,
    "num_times": 2
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
trunc_normal_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("be2feea89481c009")
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 2, dtype family float, shape (2, 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 math

torch.manual_seed(0)

# Create a small tensor to be initialized
tensor = torch.empty(2, 4)

# Define arguments for trunc_normal_
ARGS = {
    'tensor': tensor,
    'mean': 0.0,
    'std': 1.0,
    'a': -2.0,
    'b': 2.0
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
BlockV2 Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("b74c375dce9be992")
How it ran

no invocation recorded.

ChannelPoolingType Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("850df2d33a40aa5c")
How it ran

no invocation recorded.

ChannelVisionTransformer Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("9d61daea5bd82f74")
How it ran

no invocation recorded.

DiChaViT Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("79d83c31c74cf9eb")
How it ran

no invocation recorded.

ExtendedEnum Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("7cee5c49462dff95")
How it ran

no invocation recorded.

FeaturePooling Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("ac6302bb71f99f90")
How it ran

no invocation recorded.

FirstLayerInit Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("b090579be5b89e33")
How it ran

no invocation recorded.

Model Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("272b7996ff94b551")
How it ran

no invocation recorded.

NewChannelLeaveOneOut Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("77136f4a6e0aa8ad")
How it ran

no invocation recorded.

NormType Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("f2d5816c2118046f")
How it ran

no invocation recorded.

channelvit_base Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("ee0353477276e1bc")
How it ran

no invocation recorded.

channelvit_distill Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("56cf5bca49d77894")
How it ran

no invocation recorded.

channelvit_small Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("647608ff217cae3b")
How it ran

no invocation recorded.

channelvit_tiny Not yet run
unverified (harvested, no recorded run)
chaudatascience/diverse_channel_vit/models/dichavit.py
code served (permissive licence) · get_code("4cd84952d4978056")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 4 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
trunc_normal_
brick of this paper's assembly: helper
160 other papers
107 dated earlier, 1 the same month, 50 later, 2 same year, order not determinable · 36 only as an assembly brick
1911.10194 (2019-11)
Panoptic-DeepLab: A Simple, Strong, and Fast Baseline for Bottom-Up Panoptic Segmentation
2005.10242 (2020-05)
Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
2007.12911 (2020-07)
Tighter risk certificates for neural networks
and 157 more not named here
DropPath
brick of this paper's assembly: helper
47 other papers
31 dated earlier, 1 the same month, 14 later, 1 same year, order not determinable · 33 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2105.14432 (2021-05)
TransMatcher: Deep Image Matching Through Transformers for Generalizable Person Re-identification
and 44 more not named here
_no_grad_trunc_normal_
brick of this paper's assembly: helper
44 other papers
30 dated earlier, 14 later · 38 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2105.14432 (2021-05)
TransMatcher: Deep Image Matching Through Transformers for Generalizable Person Re-identification
2106.08254 (2021-06)
BEIT: BERT Pre-Training of Image Transformers
and 41 more not named here
Attention
brick of this paper's assembly: helper
7 other papers
5 dated earlier, 2 later · 5 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2301.08243 (2023-01)
Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture
2306.09347 (2023-06)
Segment Any Point Cloud Sequences by Distilling Vision Foundation Models
and 4 more not named here

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

Multi-Channel Imaging (MCI) contains an array of challenges for encoding useful feature representations not present in traditional images. For example, images from two different satellites may both contain RGB channels, but the remaining channels can be different for each imaging source. Thus, MCI models must support a variety of channel configurations at test time. Recent work has extended traditional visual encoders for MCI, such as Vision Transformers (ViT), by supplementing pixel information with an encoding representing the channel configuration. However, these methods treat each channel equally, i.e., they do not consider the unique properties of each channel type, which can result in needless and potentially harmful redundancies in the learned features. For example, if RGB channels are always present, the other channels can focus on extracting information that cannot be captured by the RGB channels. To this end, we propose DiChaViT, which aims to enhance the diversity in the learned features of MCI-ViT models. This is achieved through a novel channel sampling strategy that encourages the selection of more distinct channel sets for training. Additionally, we employ regularization and initialization techniques to increase the likelihood that new information is learned from each channel. Many of our improvements are architecture agnostic and can be incorporated into new architectures as they are developed. Experiments on both satellite and cell microscopy datasets, CHAMMI, JUMP-CP, and So2Sat, report DiChaViT yields a 1.5 -5.0% gain over the state-of-the-art. Our code is publicly available at https://github.com/chaudatascience/diverse_channel_vit.

For agents

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

get_harvested_code_for_paper("2405.16419")
get_code_for_paper("2405.16419")
have("2405.16419")

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

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

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

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

Connect an agent — have() is free.