Manuscript Offprint
arXiv:2611.04235TCINet: Tissue-Conditioned Adaptive Cross-Branch Interaction Network for Nuclei Instance Segmentation
Zhenghang Qian , Yang Liu , Yanzhi Yu , Peiwu Qin , Yibing Shen
JOONGWON CHAE , Lihui Luo , Zhongde Zhang , Jianwen Guo , Lianshun Jin
Shenzhen International Graduate School, Tsinghua University, Shenzhen, China
Macau University of Science and Technology, Macau, China
Chinese Medicine Guangdong Laboratory/Hengqin Laboratory, Hengqin, China
Emails: {qianzx21, lyang22, shenyb25, luolh23} @mails.tsinghua.edu.cn
qinpeiwu@hengqinlab.cn; 306247680@qq.com; 924903534@qq.com
Abstract—Separating touching nuclei requires local boundary detail, while cell type classification requires broader morphological context. These requirements also vary with the surrounding tissue environment. We propose the Tissue-Conditioned Adaptive Cross-Branch Interaction Network (TCINet), a single-stage model with Task-Specific Feature Adapters (TSFA) and Tissue-Conditioned Task-Aware Cross-Branch Interaction (TC-TACBI). TSFA produces branch-specific features at skip connections, and TC-TACBI controls three asymmetric paths among nucleus-presence (NP), horizontal-vertical (HV), and nucleus-type (NT) branches using predicted tissue probabilities. On PanNuke under standard three-fold cross-validation, TCINet achieves multiclass and binary panoptic quality scores of 0.519 and 0.692, respectively. Zero-shot tests on MoNuSeg yield a detection F1 score of 0.876. On PanNuke fold 0, adding TC-TACBI increases mPQ from 0.505 to 0.525. Code is available at https://github.com/celestial1321/TCINet.
Index Terms—nuclei instance segmentation, tissue-conditioned routing, PanNuke
I. INTRODUCTION
Cell morphology is shaped by the surrounding tissue environment in hematoxylin and eosin (H&E)-stained sections. Different tasks require different cues: separating touching nuclei demands localized boundary detail, while cell type classification requires broader neighborhood context. HoVerNet [1] introduced joint distance-map and classification prediction, CellViT [2] demonstrated the benefit of pretrained transformer encoders, and LKCell [4] widened the receptive field through large convolutions.
Shared skip features must support all three prediction tasks. TCINet adapts these features separately for each branch through TSFA, then routes information along three asymmetric paths controlled by predicted tissue probabilities through TC-TACBI. We evaluate TCINet on PanNuke [10] and test zero-shot transfer to MoNuSeg [11].
Cross-stitch networks and NDDR-CNN [6], [7] learn cross-task feature sharing. Squeeze-and-Excitation (SE) [8] and the Convolutional Block Attention Module (CBAM) [9] reweight features within a branch, while Feature-wise Linear Modulation (FiLM) [16] applies conditional affine transformations. TC-TACBI uses three asymmetric cross-branch paths, with each path scaled by a tissue-type MLP.
SFE-Net [15] fuses spatial and frequency representations, whereas our interaction operates on task features without frequency transforms. PromptNucSeg-H [5] separates prompt generation from Segment Anything Model (SAM) segmentation. IVAAN-H [12] uses attribute texts for vision-language alignment, and UN-SAM [13] employs domain-aware self-prompting. TCINet produces NP/HV/NT maps in one network, using neither text encoding nor externally supplied tissue labels at inference.
III. METHOD
A. Encoder and Task-Specific Adaptation
TCINet uses a SAM-H vision transformer (ViT) encoder [3] (Fig. 1). Intermediate features are extracted at layers 8, 16, 24, and 32. Global average pooling over the encoder-neck output feeds a linear head that predicts 19 tissue-type logits t. The shared decoder produces skip features (512 channels) and (256 channels). These features pass through per-branch TSFA modules before concatenation with upsampled branch features. TC-TACBI operates on the resulting 128-channel branch features before final upsampling.
Zhenghang Qian and Yang Liu contributed equally to this work.
Corresponding author: Peiwu Qin (email: qinpeiwu@hengqinlab.cn).

Fig. 1. Architecture of TCINet. The SAM-H encoder extracts features and produces tissue logits. TSFA modules at the , skip connections produce branch-specific features. TC-TACBI applies HV→NP, NP→HV, and (NP,HV)→NT interactions to 128-channel branch features. Final predictions use LKCellBlock heads for NP and HV, and a convolutional head for NT. Sizes beside indicate decoder-rescaled features ().
In branch , a residual adapter reduces the channel count by half with a convolution, applies a depthwise convolution, and restores the channels with a second convolution:
Each convolution is followed by batch normalization (BN), with a Gaussian Error Linear Unit (GELU) after the first two. The final BN scale is zero-initialized, so TSFA starts as a pass-through and gradually learns branch-specific adjustments. Channel reduction limits pointwise convolution cost, while depthwise filtering processes local morphology. The NP, HV, and NT adapters use the same shared decoder maps but learn separate parameters.
B. Tissue-Conditioned Cross-Branch Interaction (TC-TACBI)
TC-TACBI routes information across three asymmetric paths using 128-channel features , , and . A two-layer multilayer perceptron (MLP) maps tissue probabilities to three scaling scalars (19–64–3):
Softmax is applied to the tissue logits before the MLP (Eq. 2). The three output scalars have no softmax or sigmoid constraint, so they may be positive or negative and need not sum to one. The final-layer weights and biases are zero-initialized, making the module an identity at initialization.
Paths 1 and 2 (spatial). The HV→NP path uses distance features to guide foreground separation. In the reverse direction, NP→HV uses foreground features to guide distance regression. Each source branch generates a one-channel mask with two depthwise convolutions, BN/GELU after the first, a projection, and sigmoid. Target branch is updated as , where denotes element-wise multiplication. The target retains its own representation; the source controls where it is reweighted.
Path 3 (channel). For NT, global average pooling (GAP) summarizes NP and HV into two 128-dimensional vectors. Their concatenation passes through a 256–256–128 MLP and sigmoid to form a channel mask, followed by the same residual update. The NP and HV branches share pixel-level geometry and guide each other spatially, while both supply morphological context to the NT branch through global descriptors. All masks are computed from the original features, allowing parallel updates.
The 1,475-parameter controller accepts the full tissue probability vector, without hard assignments or tissue-specific parameter branches. Image features determine the masks; tissue coefficients adjust their strength, leaving the interaction directions unchanged. Tissue labels supervise training, but the image alone supplies features and tissue probabilities at inference.
C. Heads and Supervision
For NP and HV, we use an LKCell-inspired block [4] with a depthwise-pointwise block followed by a depthwise-pointwise block at dilation 3. A residual shortcut
TABLE I
TISSUE-WISE MPQ/BPQ AVERAGED OVER THREE PANNUKE FOLDS. BASELINE SCORES AND STANDARD DEVIATIONS ARE FROM THE CITED PAPERS, ROUNDED TO THREE DECIMALS; MISSING DEVIATIONS ARE SHOWN AS DASHES. *COMPETITIVE RECENT EFFORTS (ViT-H): IVAAN-H ADDS PRETRAINED CLIP TEXT FEATURES AND ATTRIBUTE-GUIDED ALIGNMENT; UN-SAM USES SUPPLIED DOMAIN INFORMATION FOR DOMAIN-ADAPTIVE ENCODING AND SELF-PROMPT DECODING. TCINET PERFORMS TASK-SPECIFIC ADAPTATION AND IMAGE-PREDICTED TISSUE CONDITIONING IN A SINGLE-STAGE NETWORK.
| Tissue | CellViT-SAM-H [2] | LKCell-L [4] | PromptNucSeg-H [5] | IVAAN-H† | UN-SAM† [13] | TCINet | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mPQ | bPQ | mPQ | bPQ | mPQ | bPQ | mPQ | bPQ | mPQ | bPQ | mPQ | bPQ | |
| Adrenal Gland | 0.513 | 0.709 | 0.508 | 0.715 | 0.513 | 0.723 | 0.587 | 0.736 | 0.518 | 0.726 | 0.527 | 0.720 |
| Bile Duct | 0.489 | 0.678 | 0.516 | 0.696 | 0.501 | 0.698 | 0.532 | 0.715 | 0.523 | 0.731 | 0.529 | 0.699 |
| Bladder | 0.584 | 0.707 | 0.601 | 0.714 | 0.604 | 0.721 | 0.615 | 0.735 | 0.606 | 0.723 | 0.611 | 0.731 |
| Breast | 0.518 | 0.675 | 0.514 | 0.723 | 0.532 | 0.684 | 0.550 | 0.684 | 0.535 | 0.686 | 0.537 | 0.689 |
| Cervix | 0.498 | 0.687 | 0.502 | 0.695 | 0.512 | 0.698 | 0.591 | 0.714 | 0.521 | 0.699 | 0.533 | 0.699 |
| Colon | 0.449 | 0.592 | 0.464 | 0.601 | 0.469 | 0.610 | 0.481 | 0.611 | 0.494 | 0.643 | 0.477 | 0.617 |
| Esophagus | 0.545 | 0.668 | 0.559 | 0.674 | 0.571 | 0.692 | 0.585 | 0.695 | 0.583 | 0.724 | 0.560 | 0.682 |
| Head & Neck | 0.491 | 0.654 | 0.528 | 0.672 | 0.510 | 0.669 | 0.511 | 0.681 | 0.511 | 0.670 | 0.513 | 0.672 |
| Kidney | 0.537 | 0.709 | 0.574 | 0.728 | 0.579 | 0.712 | 0.554 | 0.680 | 0.587 | 0.738 | 0.558 | 0.721 |
| Liver | 0.522 | 0.732 | 0.535 | 0.743 | 0.533 | 0.737 | 0.566 | 0.737 | 0.534 | 0.738 | 0.547 | 0.746 |
| Lung | 0.431 | 0.643 | 0.442 | 0.646 | 0.440 | 0.658 | 0.483 | 0.647 | 0.452 | 0.673 | 0.427 | 0.655 |
| Ovarian | 0.539 | 0.672 | 0.531 | 0.668 | 0.544 | 0.686 | 0.574 | 0.693 | 0.558 | 0.706 | 0.543 | 0.671 |
| Pancreatic | 0.472 | 0.666 | 0.480 | 0.673 | 0.497 | 0.686 | 0.540 | 0.678 | 0.513 | 0.739 | 0.521 | 0.689 |
| Prostate | 0.532 | 0.682 | 0.532 | 0.678 | 0.546 | 0.698 | 0.568 | 0.707 | 0.548 | 0.721 | 0.563 | 0.695 |
| Skin | 0.434 | 0.657 | 0.422 | 0.666 | 0.411 | 0.661 | 0.450 | 0.695 | 0.434 | 0.660 | 0.436 | 0.668 |
| Stomach | 0.471 | 0.702 | 0.451 | 0.706 | 0.456 | 0.712 | 0.548 | 0.705 | 0.475 | 0.727 | 0.471 | 0.721 |
| Testis | 0.513 | 0.696 | 0.509 | 0.698 | 0.547 | 0.715 | 0.579 | 0.720 | 0.578 | 0.734 | 0.528 | 0.710 |
| Thyroid | 0.452 | 0.715 | 0.470 | 0.704 | 0.472 | 0.722 | 0.536 | 0.740 | 0.483 | 0.719 | 0.489 | 0.722 |
| Uterus | 0.474 | 0.663 | 0.517 | 0.662 | 0.495 | 0.674 | 0.526 | 0.682 | 0.506 | 0.683 | 0.474 | 0.650 |
| Average | 0.498 | 0.679 | 0.508 | 0.685 | 0.512 | 0.692 | 0.546 | 0.698 | 0.524 | 0.707 | 0.519 | 0.692 |
| Std. dev. | 0.041 | 0.032 | — | — | 0.009 | 0.015 | — | — | — | — | 0.010 | 0.006 |
preserves the input as the convolutions add spatial context. The NT head uses a convolution. NP supervision combines focal Tversky [21], [22], Dice, and boundary-weighted binary cross-entropy (BCE). HV uses mean-squared error (MSE) and mean-squared gradient error; NT uses multiclass focal Tversky, Dice, and cross-entropy. We also apply cross-entropy to tissue classification.
IV. EXPERIMENTS
A. Datasets, Metrics, and Implementation
We evaluate TCINet on PanNuke [10], containing 7,904 image patches from 19 tissue types annotated for five nucleus classes. Evaluation uses panoptic quality [23], reporting mPQ and bPQ averaged across tissue types under the official threefold protocol, together with detection . Zero-shot tests on MoNuSeg [11] evaluate transfer without target-domain fine-tuning. TCINet is trained for 130 epochs using AdamW [24], a learning rate of , and weight decay of . The encoder is frozen for the first 25 epochs. Training uses color jittering and elastic deformations. For instance extraction, we threshold NP at 0.500, remove components below 10 pixels, and use HV gradients for seeded watershed. A majority vote over the NT map assigns each instance its type.
B. Comparison with State-of-the-Art
Table I compares paper-reported PanNuke results. TCINet achieves mPQ = 0.519 and bPQ = 0.692, surpassing CellViT-SAM-H and LKCell-L on both metrics. Compared to the two-stage PromptNucSeg-H (mPQ 0.512, bPQ 0.692), TCINet improves mPQ while matching bPQ at the reported precision in a single-stage network. IVAAN-H and UN-SAM report higher average scores on both metrics; their additional text and domain conditioning are noted in the table.
Per-category PQ. TCINet scores higher than PromptNucSeg-H in four of the five classes (Table II). Dead PQ rises from 0.161 to 0.197; Neoplastic PQ is slightly lower, at 0.594 versus 0.598. For Epithelial nuclei, TCINet reaches 0.600, the highest value among the listed methods, compared with IVAAN-H's 0.591.
TABLE II
PANNUKE PQ BY NUCLEUS TYPE. NEO.: NEOPLASTIC; INFL.: INFLAMMATORY; CONN.: CONNECTIVE; EPIT.: EPITHELIAL. BASELINE VALUES ARE PAPER-REPORTED THREE-FOLD SCORES. †TSFD-NET USES A NON-OFFICIAL SPLIT. *COMPETITIVE RECENT EFFORTS: IVAAN-H USES PRETRAINED CLIP TEXT FEATURES AND ATTRIBUTE-GUIDED ALIGNMENT.
| Method | Neo. | Infl. | Conn. | Dead | Epit. |
|---|---|---|---|---|---|
| HoVer-Net [1] | 0.551 | 0.417 | 0.388 | 0.139 | 0.491 |
| TSFD-Net† [14] | 0.557 | 0.383 | 0.404 | 0.142 | 0.536 |
| CellViT-256 [2] | 0.567 | 0.405 | 0.405 | 0.144 | 0.559 |
| CellViT-SAM-H [2] | 0.581 | 0.417 | 0.423 | 0.149 | 0.583 |
| LKCell-B [4] | 0.585 | 0.440 | 0.414 | 0.144 | 0.579 |
| LKCell-L [4] | 0.586 | 0.438 | 0.417 | 0.172 | 0.584 |
| PromptNucSeg-H [5] | 0.598 | 0.441 | 0.433 | 0.161 | 0.582 |
| IVAAN-H† [12] | 0.605 | 0.481 | 0.452 | 0.204 | 0.591 |
| TCINet (Ours) | 0.594 | 0.454 | 0.444 | 0.197 | 0.600 |
Model cost. Our TCINet and CellViT-SAM-H implementations contain 700.710 M and 699.740 M parameters, respectively, a 0.140% increase. For a 256×256 input at batch size 1, PyTorch operator counting estimates 768.500 G floating-point operations (FLOPs) for TCINet and 860.400 G for the baseline, a 10.700% reduction. We count two FLOPs per multiply-add and exclude preprocessing and post-processing. Shared decoder computation allows TCINet to add task adaptation and interaction with little net parameter growth.

Fig. 2. Qualitative comparison on PanNuke across 19 tissue types. For each tissue, from top to bottom: ground truth, CellViT-SAM-H prediction, and TCINet prediction. Nuclei contours: Neoplastic, Epithelial, Inflammatory, Connective, Dead.

TC-TACBI: Tissue-Conditioned Dynamic α Routing


Fig. 3. Tissue-conditioned attention modulation. (a,b) Per-tissue mean α, z-scored across tissues for each route; parentheses in (b) show raw means. Distinct tissue profiles indicate different modulation strengths for the three attention paths. (c) Across-tissue standard deviation of tissue means versus mean within-tissue standard deviation, with ratios of 6.300–6.500. Bars indicate standard deviations, not variances.
MoNuSeg generalization. Without fine-tuning, TCINet obtains using 256-pixel tiles with 64-pixel overlap, compared with CellViT-SAM-H's reported 0.868 (Table III). Recall increases from 0.893 to 0.908.
TABLE III
MoNUSEG ZERO-SHOT TRANSFER USING 256-PIXEL TILES WITH 64-PIXEL OVERLAP, , : DETECTION PRECISION AND RECALL. BASELINE VALUES ARE FROM [2].
| Method | bPQ | |||
|---|---|---|---|---|
| CellViT-256 | 0.660 | 0.841 | 0.886 | 0.863 |
| CellViT-SAM-H | 0.671 | 0.846 | 0.893 | 0.868 |
| TCINet | 0.672 | 0.848 | 0.908 | 0.876 |
C. Ablation Study
Table IV evaluates sequential component additions on fold 0, starting from a reimplemented CellViT-SAM-H. Adding LKCellBlock and boundary loss increases mPQ by 0.003. TC-TACBI contributes the largest gain, raising mPQ from 0.505 to 0.525. TSFA adds a further 0.003, showing measurable value in adapting skip-connection features per branch when interaction is already enabled.
TABLE IV
SEQUENTIAL COMPONENT ABLATION ON PANNUKE FOLD 0. BASELINE: REIMPLEMENTED CELLViT-SAM-H. LK: LKCELLBLOCK; BL: BOUNDARY-WEIGHTED LOSS. EACH ROW ADDS COMPONENTS TO THE PRECEDING CONFIGURATION.
| Model | TC- | mPQ | bPQ | ||||
|---|---|---|---|---|---|---|---|
| LK | BL | TACBI | TSFA | ||||
| Baseline | 0.502 | 0.683 | 0.840 | ||||
| +LK+BL | ✓ | ✓ | 0.505 | 0.686 | 0.840 | ||
| +TC-TACBI | ✓ | ✓ | ✓ | 0.525 | 0.693 | 0.844 | |
| TCINet (Ours) | ✓ | ✓ | ✓ | ✓ | 0.528 | 0.696 | 0.847 |
D. Qualitative Results
Fig. 2 shows CellViT-SAM-H and TCINet predictions alongside ground truth across 19 tissue types. Fig. 3 shows distinct coefficient profiles across tissues. In the sampled patches, variation between tissue means exceeds variation within each tissue.
V. DISCUSSION AND LIMITATIONS
TCINet adapts shared skip features per task and uses image-predicted tissue probabilities to control three asymmetric interaction paths in a single-stage NP/HV/NT network. Tissue conditioning is handled by a 1,475-parameter controller at one decoder level. IVAAN-H [12] augments a SAM visual encoder with pretrained CLIP text features, attribute-guided contrastive supervision, and query-based instance decoding. UN-SAM [13] uses supplied domain information with domain-common and domain-specific encoder mappings, self-prompt generation, and domain-query decoding. These approaches emphasize vision-language alignment and domain-adaptive prompting, respectively, while TCINet focuses on feature specialization and interaction among prediction tasks.
The fold-0 ablation shows gains from TC-TACBI and TSFA in the evaluated sequence. Further ablations are needed to assess cross-fold stability and isolate tissue conditioning and individual paths.
VI. CONCLUSION
We presented TCINet, a nuclei instance segmentation model built on tissue-conditioned adaptive cross-branch interaction. TSFA adapts shared skip-connection features per branch before TC-TACBI controls cross-branch attention. On PanNuke, TCINet achieves mPQ = 0.519 and bPQ = 0.692, with zero-shot on MoNuSeg. Sequential ablation shows gains from both interaction and adaptation.
REFERENCES
[1] S. Graham et al., “HoVer-Net: Simultaneous segmentation and classification of nuclei in multi-tissue histology images,” Medical Image Analysis, vol. 58, p. 101563, 2019.
[2] F. Hörst et al., “CellViT: Vision transformers for precise cell segmentation and classification,” Medical Image Analysis, vol. 94, p. 103143, 2024.
[3] A. Kirillov et al., “Segment anything,” in Proc. ICCV, 2023, pp. 4015–4026.
[4] Z. Cui et al., “LKCell: Efficient cell nuclei instance segmentation with large convolution kernels,” arXiv preprint arXiv:2407.18054, 2024.
[5] Z. Shui et al., “Unleashing the power of prompt-driven nucleus instance segmentation,” in Proc. ECCV, 2024, pp. 288–304.
[6] I. Misra, A. Shrivastava, A. Gupta, and M. Hebert, “Cross-stitch networks for multi-task learning,” in Proc. IEEE/CVF CVPR, 2016, pp. 3994–4003.
[7] Y. Gao, Q. She, J. Ma, M. Zhao, W. Liu, and A. L. Yuille, “NDDR-CNN: Layerwise feature fusing in multi-task CNNs by neural discriminative dimensionality reduction,” in Proc. IEEE/CVF CVPR, 2019, pp. 3205–3214.
[8] J. Hu, L. Shen, and G. Sun, “Squeeze-and-excitation networks,” in Proc. IEEE/CVF CVPR, 2018, pp. 7132–7141.
[9] S. Woo, J. Park, J.-Y. Lee, and I. S. Kweon, “CBAM: Convolutional block attention module,” in Proc. ECCV, 2018, pp. 3–19.
[10] J. Gamper et al., “PanNuke dataset extension, insights and baselines,” arXiv preprint arXiv:2003.10778, 2020.
[11] N. Kumar et al., “A multi-organ nucleus segmentation challenge,” IEEE Trans. Med. Imaging, vol. 39, no. 5, pp. 1380–1391, 2020.
[12] J. Jeong et al., IVAAN: Instance-level vision-language alignment via attribute-guided text prompts generation for nuclei analysis, in Proc. IEEE/CVF CVPR, 2026, pp. 29305–29314.
[13] Z. Chen, Q. Xu, X. Liu, and Y. Yuan, UN-SAM: Domain-adaptive self-prompt segmentation for universal nuclei images, Medical Image Analysis, vol. 103, p. 103607, 2025.
[14] T. Ilyas et al., “TSFD-Net: Tissue specific feature distillation network for nuclei segmentation and classification,” Neural Networks, vol. 151, pp. 1–15, 2022.
[15] J. Chen, G. Yang, A. Liu, X. Chen, and J. Liu, “SFE-Net: Spatial-frequency enhancement network for robust nuclei segmentation in histopathology images,” Computers in Biology and Medicine, vol. 171, p. 108131, 2024.
[16] E. Perez, F. Strub, H. de Vries, V. Dumoulin, and A. Courville, “FiLM: Visual reasoning with a general conditioning layer,” in Proc. AAAI, 2018, pp. 3942–3951.
[17] N. Houlsby et al., “Parameter-efficient transfer learning for NLP,” in Proc. ICML, 2019, pp. 2790–2799.
[18] E. J. Hu et al., “LoRA: Low-rank adaptation of large language models,” in Proc. ICLR, 2022.
[19] Z. Chen et al., “Vision transformer adapter for dense predictions,” in Proc. ICLR, 2023.
[20] J. Wu et al., “Medical SAM adapter: Adapting segment anything model for medical image segmentation,” arXiv preprint arXiv:2304.12620, 2023.
[21] S. S. M. Salehi, D. Erdogmus, and A. Gholipour, “Tversky loss function for image segmentation using 3D fully convolutional deep networks,” in Proc. MICCAI Workshop on Machine Learning in Medical Imaging, 2017, pp. 379–387.
[22] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Dollár, “Focal loss for dense object detection,” in Proc. IEEE/CVF ICCV, 2017, pp. 2980–2988.
[23] A. Kirillov, K. He, R. Girshick, C. Rother, and P. Dollár, “Panoptic segmentation,” in Proc. IEEE/CVF CVPR, 2019, pp. 9404–9413.
[24] I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” in Proc. ICLR, 2019.