CMCNet: Aligning Ultrasound Image Embeddings with Textual TI-RADS Representations for Fine-Grained Thyroid Classification

Bingxin Yu, Xueli Wang, Jerry Zhou, Wenyan Wang, Li Wen, Lan Huang, Xin Feng, Fengfeng Zhou, Kewei LiarXiv 2026

TL;DR

CMCNet is a novel multimodal framework for thyroid ultrasound classification that aligns image embeddings with fixed textual representations of clinical features during training. By optimizing a specialized Center-Margin Contrastive Loss, the model leverages structured clinical knowledge to regularize the latent space while maintaining an image-only pipeline at inference time.

What Problem Does This Paper Address?

In clinical settings, radiologists evaluate thyroid nodules using the American College of Radiology's TI-RADS (Thyroid Imaging Reporting and Data System) framework. This system scores five key ultrasound features—composition, echogenicity, shape, margin, and echogenic foci—and aggregates them into five discrete risk levels (TR1–TR5).

While deep learning models have shown promise in medical imaging, most existing approaches simplify this task into a binary "benign vs. malignant" classification. This ignores the full TI-RADS spectrum and the rich, hierarchical decision rules clinicians use. Direct multitask learning (predicting the features and the risk level simultaneously from images) often yields clinically inconsistent solutions because ultrasound images suffer from high visual variability and severe class imbalances within specific feature categories.

Methods

The authors propose CMCNet (Center-Margin Contrastive Network), which uses structured clinical text as a stable anchor space to guide image feature learning.

Figure 1. The basic idea of this paper.

The workflow consists of the following steps:

  1. Text Generation & Encoding: Point-based TI-RADS scores are converted into standardized textual descriptions using a Python string template (e.g., "A thyroid nodule in the left lobe, showing solid, hypoechoic..."). These descriptions are encoded into text embeddings using a frozen language model (ModernBERT).
  2. Image Encoding: Paired transverse and longitudinal ultrasound views are processed via a shared image encoder (such as BiomedCLIP or USFM) and fused into a single patient-level representation.
  3. Multimodal Alignment via CMCLoss: Instead of standard contrastive losses like InfoNCE, which simply push negative pairs apart, the authors introduce a Center-Margin Contrastive Loss (CMCLoss). This loss combines a center loss term to pull image embeddings toward their corresponding text-derived semantic centers (promoting intra-class compactness) with a margin-based contrastive term to enforce clear boundaries between different TI-RADS risk levels (promoting inter-class separation).
  4. Image-Only Inference: Crucially, the text encoder and feature annotations are only required during training. At deployment, the model performs fine-grained TI-RADS classification using only the ultrasound images.

Datasets

The study introduces a new benchmark dataset:

  • STN (Single Thyroid Nodule with TI-RADS 1–5): Consists of 600 patients with paired transverse and longitudinal ultrasound images. It includes manual bounding box annotations and complete, expert-verified labels for all five TI-RADS feature categories alongside the final risk levels.

Key Insights and Ideas

  • Text as a Near-Upper-Bound Representation: A simple linear classifier trained solely on the frozen ModernBERT text embeddings achieved 98.0% accuracy on the test set for predicting overall TI-RADS levels. This proved the authors' core hypothesis: structured textual descriptions form a highly separable, low-variance surrogate space that perfectly captures the underlying clinical logic.
  • The Failure of InfoNCE in Structured Medical Tasks: Standard contrastive objectives like InfoNCE focus heavily on maximizing inter-sample distances among negative pairs. In this setting, that behavior can inadvertently widen the modality gap and disrupt the tight clustering needed around shared clinical attributes.
  • Overcoming Generative VQA Limitations: Generative multimodal models like LLaVA-Med underperformed in this scenario. The authors note that closed-set attribute prediction under strong class imbalance can amplify shortcut learning and language priors in generative models, making explicit discriminative embedding alignment a more effective inductive bias for small medical datasets.

Key Results

  • Loss Function Comparison: CMCLoss consistently outperformed InfoNCE and standard center loss across multiple backbones. The L2-based CMCLoss variant yielded the lowest intra-class dispersion, validating its ability to enforce tight cross-modal aggregation.
  • Encoder Performance: When integrated with foundation models, CMCNet achieved strong diagnostic performance. For instance, using a USFM backbone with a hierarchical multi-head architecture, CMCNet achieved 75.17% balanced accuracy and 73.80% F1-score across the tasks, consistently outperforming a strong image-only multitask baseline (FLaMM-Net).
  • Robustness to Imbalance: While individual TI-RADS feature categories (like "taller-than-wide" shapes) are highly imbalanced in real-world data, the text-aligned regularization of CMCNet provided superior stability and accuracy on these fine-grained tasks compared to direct image-to-label optimization.

Limitations and Future Work

The authors acknowledge a few key limitations:

  • Dataset Scale and Diversity: The STN dataset contains 600 cases from a single clinical center, meaning further validation on larger, multi-center cohorts is required to ensure device and institutional generalization.
  • Single Nodule Constraint: The current framework only accommodates cases with a single dominant thyroid nodule, omitting complex multi-nodule clinical scenarios.

Future research directions include exploring more advanced alignment objectives, integrating large-scale self-supervised pretraining tailored specifically to thyroid ultrasound, and expanding the architecture toward a dedicated TI-RADS foundation model capable of conversational, question-answering diagnostics.

Summary updated

BibTeX
@misc{yu2026cmcnet,
  author = {Bingxin Yu and Xueli Wang and Jerry Zhou and Wenyan Wang and Li Wen and Lan Huang and Xin Feng and Fengfeng Zhou and Kewei Li},
  title = {{CMCNet: Aligning Ultrasound Image Embeddings with Textual TI-RADS Representations for Fine-Grained Thyroid Classification}},
  year = {2026},
  eprint = {2608.13939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.13939},
}
Figure