Manuscript Offprint
arXiv:2609.06590Layer-Wise Gate-Controlled Prompt Truncation in a Multimodal Chest X-Ray Classifier
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Mixture of Prompt Experts (MoPE) adapts multimodal transformers through input-dependent prompt composition, while retaining a fixed prompt length. We investigate a layer-wise gating extension in a binary chest X-ray classification pilot study. The controller predicts a retention ratio for each sample, averages these ratios within a mini-batch, and uses the resulting integer length to truncate the static and mixed visual prompts. Retained mixed prompts are also scaled by the individual ratios. In one recorded run per configuration, the gated model reached a best validation accuracy of 0.8966, compared with 0.8969 for the fixed-length baseline; the corresponding final values were 0.8963 and 0.8802. The exported gate statistics imply a retained length of one at all recorded training points, relative to a configured maximum of six. This reduces the complete visual sequence from 210 to 200 tokens, but no direct runtime measurements establish an acceleration benefit. Report-derived labels, report text as input, sequential data partitioning, and the absence of repeated controlled experiments limit interpretation. The findings document prompt shortening under the configured gate penalty; they do not establish sample-specific length allocation, superiority over fixed short prompts, or clinical utility. Code is available at: https://github.com/jingtaolei/mope-dynamic-prompt-truncation.
Keywords: multimodal learning; visual prompt tuning; mixture of prompt experts; prompt truncation; parameter-efficient adaptation; chest X-ray classification
1 Introduction
Transformer architectures underpin many pretrained language and vision models [1–3]. Adapting these models to a new task can require substantial task-specific storage and optimization. Continuous prompt tuning addresses this problem by learning additional token representations while retaining pretrained backbone weights [4–7]. Low-rank adaptation provides an alternative through trainable low-rank weight updates [8]. These methods motivate the study of adaptation capacity as an explicit design choice rather than an unrestricted consequence of full fine-tuning.
Multimodal adaptation must also coordinate information across input modalities. Mixture of Prompt Experts (MoPE) represents adaptation prompts as combinations of expert prompt banks, with routing weights conditioned on multimodal features [9]. This mechanism varies prompt composition across samples. However, the number of prompt tokens supplied to a transformer layer remains fixed. Prompt composition and prompt length therefore represent different dimensions of adaptation.
We investigate a gate-controlled extension that changes the retained visual prompt length at each layer. A two-layer feed-forward network predicts a ratio from the current visual class token and a mapped report representation. The implementation averages these ratios over the mini-batch before discretization, so each batch shares one retained length at a given layer. The sample-specific ratios additionally scale the mixed prompts. The controller therefore combines batch-dependent length selection with sample-specific amplitude modulation.
We examine this mechanism in a derived normal-versus-abnormal classification task using chest radiographs and reports. The study focuses on prompt behavior in this specific multimodal optimization setting. The construction of the report-derived target and its overlap with the text input are detailed in Section 3.1.
The study contributes a precise account of the implemented gate and its gradient paths, a reanalysis of the recorded comparison with a fixed-length model, and explicit accounting of prompt tokens and controller parameters. The observed gate statistics are consistent with minimum-length collapse rather than demonstrated allocation according to input difficulty. We therefore examine whether the evidence supports prompt shortening, and identify the controls required to establish an advantage over a short fixed prompt.
2.1 Parameter-Efficient Adaptation
Language prompt tuning learns continuous input representations, while prefix tuning introduces learned representations into transformer computation [4, 6]. Deep prompting extends this idea across layers and tasks [7]. Visual prompt tuning applies additional trainable tokens to a frozen vision transformer [5]. These approaches separate the adaptation parameters from the pretrained backbone. Prompt length is a further design variable that controls how many additional representations enter each layer.
2.2 Prompt Mixtures and Multimodal Fusion
MoPE uses multimodal routing to construct input-dependent combinations of prompt experts [9]. Its expert-mixture mechanism supplies the foundation for the present classifier. The modification studied here concerns truncation and amplitude scaling of its visual prompts; the multimodal expert router is retained. An auxiliary importance loss encourages aggregate expert-use balance.
2.3 Adaptive Transformer Computation
DynamicViT sparsifies visual content tokens, EViT reorganizes inattentive tokens, and AdaViT selects computation through input-dependent policies [10–12]. The present mechanism instead shortens inserted prompt prefixes while retaining every image-patch token. It therefore targets the adaptation sequence rather than the spatial resolution of visual content tokens. Section 3.5 quantifies how this distinction affects the fraction of the complete sequence that can be removed.
2.4 Medical Image–Text Representation Learning
ConVIRT and GLoRIA learn medical image representations from paired radiographs and reports through contrastive objectives [13, 14]. MedKLIP incorporates medical knowledge into language–image pretraining, and PTUnifier uses soft prompts to support different modality combinations [15, 16]. These studies motivate multimodal representation learning, but their evaluation settings differ from a classifier that receives the same report text used to derive its target. For the latter setting, unimodal controls and independently defined outcomes are essential to interpreting multimodal performance.
3 Materials and Methods
3.1 Data Source and Derived Classification Task
The pilot study uses a Kaggle-organized version of the Indiana University chest X-ray collection, derived from the public Open-I radiology resource [17]. The loader reads indiana_reports.csv and indiana_projections.csv, joins the tables on the study identifier uid, and treats each resulting projection-report pair as a classification sample. Missing findings and impression fields are replaced with empty strings before concatenation to form the text input.
The implemented target rule assigns label 0 when the lowercased MeSH field contains the substring normal, or the lowercased impression contains no acute or unremarkable; otherwise it assigns label 1. We refer to these categories as rule-derived normal and abnormal labels. They are not independently adjudicated clinical endpoints. In particular, substring matching does not distinguish normal from abnormal, and the phrase no acute does not exclude chronic abnormalities. These properties introduce label noise in addition to the overlap between the target-generation fields and model input.
After merging, the first of the n rows are assigned to training and the remaining rows to validation. This partition is neither randomized nor stratified and does not enforce study- or patient-level separation. Training batches are subsequently shuffled, which does not change the partition or establish group independence. The same non-training subset is also returned by the nominal test loader; its scores are therefore reported throughout as validation results. Exact post-merge cohort counts, class counts, and overlap statistics are unavailable in the retained scalar records.
Images are read as RGB PNG files from the configured image directory. Training and validation use the same deterministic preprocessing: resize the shorter side to 256 pixels, center-crop to , convert to a tensor, and normalize the three channels using means and standard deviations . These are the constants in the supplied loader; their derivation for this cohort is not documented. The training loader drops an incomplete final batch, whereas validation retains all rows. If image reading fails, the loader supplies a black RGB image before preprocessing. The records do not establish how often this fallback was activated.
3.2 Base Architecture and Prompt Composition
The visual encoder is a pretrained ViT-B/16 with 12 transformer layers and embedding dimension [3]. The text branch uses bert-base-uncased [2]; reports are tokenized with padding and truncation, and four prompt tokens are inserted at each text layer. The supplied launch command leaves train_instructor disabled. Consequently, the entire text branch, including its uniformly initialized prompt parameters, is frozen and evaluated without gradient tracking. These text prompts are not learned in this configuration. Adaptation updates the visual prompt banks, internal router projections, instruction mapper, gate, and visual classification head while retaining the pretrained visual backbone weights. The configured maximum visual prompt length is , and the number of experts is .
Let denote expert k at visual layer , and let denote the static prompt bank. For sample i, the router forms the mixed prompt
The internal router projects mean-pooled visual patch features and the BERT-derived text feature into dimensions two and eight, respectively. Their concatenation is multiplied by a frozen expert-key matrix, and a softmax with temperature 0.1 produces the expert weights. The implementation adds Gaussian routing noise with scale after temperature scaling. This noise is not conditioned on training mode in the archived code and therefore also introduces stochasticity during evaluation.
The text feature is separately mapped to an instruction vector through a projection with Gaussian error linear unit (GELU) activations. This vector conditions the gate and is also inserted as an instruction token. At the first visual layer, the class token has not yet attended to image patches; the first gate should therefore not be interpreted as measuring image difficulty from a contextualized visual representation.
3.3 Gate Prediction and Batch-Dependent Truncation
For the visual class token and mapped instruction , the gate computes
where , , and denotes the sigmoid function. For mini-batch , the retained length is
Both the mixed prompt and static prompt are sliced to this common prefix length. The retained mixed prompt is additionally scaled by the sample-specific ratio:
The inserted token sequence is the concatenation of , , and the instruction token, followed by GELU and dropout with probability 0.1. These tokens are placed between the class token and image-patch tokens. After each transformer block, the prompt outputs are discarded and the updated class and patch tokens proceed to the next layer.
Figure 1 shows the actual computation. The integer conversion and slicing operation do not provide a derivative with respect to the selected length. Gradients reach the gate through the multiplicative factor in Equation (4) and through the gate regularizer described below. This is a differentiable amplitude path combined with hard truncation; the archived implementation does not use a straight-through estimator for the discrete length. It also does not partition a mini-batch into groups with different lengths.
Algorithm 1. Layer-wise gate-controlled prompt truncation.
Input: A mini-batch of images, reports, and training labels.
Output: Class logits and, during training, the total loss.
-
Encode reports with the frozen text branch; initialize visual tokens and map the text feature to the instruction token.
-
For each visual layer, compute expert weights and the mixed prompt using Equation (1); then perform steps 3–5.
-
Predict individual gate ratios; average across the batch and discretize using Equation (3).
-
Slice the static and mixed prompt prefixes to the shared length; scale the mixed prefix by each sample's ratio.
-
Insert the prompts and instruction token, execute the transformer block, and remove the prompt outputs.
-
After the last layer, normalize and classify the class token. Aggregate the layer-wise auxiliary terms and compute the training loss using Equation (5).

Figure 1. Implemented gate-controlled prompt computation at a visual transformer layer. The gate produces individual retention ratios, but their mini-batch mean determines one shared prefix length. Static and mixed prompts are both truncated; only the mixed prompt is multiplied by the individual ratios. Class and image-patch tokens are retained after the block. Dashed arrows identify gradient paths to the gate, rather than gradients through the discrete length decision.
3.4 Training Objective
The optimization objective combines classification, expert-balance, and gate penalties:
Classification uses negative log-likelihood after log-softmax. For the internal visual router, the importance term is the mean across layers of the squared coefficient of variation of batch-summed expert weights. The implementation uses a stabilizing denominator offset of and sets layer contributions to zero when they do not exceed 0.1. The supplied gated configuration sets and .
The gate penalty is the mean retention ratio, rather than the exact number of executed tokens. A ratio approaching zero still yields one retained token because of the minimum-length constraint. At the same time, it attenuates the mixed prompt toward zero through Equation (4). The intervention therefore changes both prompt length and prompt amplitude. Their separate effects cannot be identified without dedicated ablations.
3.5 Token and Parameter Accounting
For images with patches, the visual sequence contains 196 patch tokens and one class token. With static prompts and one instruction token enabled, its length at a layer is
Thus and correspond to 210 and 200 total visual tokens, respectively. Table 1 distinguishes reduction of a prompt component from reduction of the complete visual sequence. These are arithmetic consequences of the architecture, not hardware measurements.
Table 1. Analytical token counts per visual layer. Relative reductions use the fixed-length configuration as the denominator.
| Token component | Reduction (%) | ||
|---|---|---|---|
| Mixed prompt | 6 | 1 | 83.33 |
| Static prompt | 6 | 1 | 83.33 |
| All inserted tokens, including instruction | 13 | 3 | 76.92 |
| Complete visual sequence | 210 | 200 | 4.76 |
The static and expert banks contain parameters. Each gate contains parameters; twelve gates add 3,543,564 parameters. The internal router projections contain 92,280 parameters, the instruction mapper contains 984,448, and the two-class visual head contains 1,538. With the text branch and visual backbone frozen, these components give 1,354,746 trainable parameters for the non-gated architecture and 4,898,310 after adding the gate. These are analytical counts for the supplied configuration, not checkpoint-derived measurements of the recorded runs. Physical slicing reduces the executed prefix but does not shrink the allocated parameter banks.
4 Experimental Setup
4.1 Run Configuration and Available Records
The comparison uses one fixed-length baseline run and one gated run. Each has 31 exported validation-accuracy records and 149 exported records for the principal training scalars. The training records occur at global steps 49, 99, and subsequent intervals of 50 steps through 7449; the final validation record is at step 7460. A separate sanity-check run is excluded from the comparison because it is not identified as the fixed-prompt baseline and its configuration is not a matched experimental control.
Table 2 summarizes the supplied gated launch configuration and the corresponding code settings. The archive includes a non-gated visual implementation and the fixed-baseline scalar exports, but no immutable checkpoint-to-source manifest for both runs. The comparison consequently remains a descriptive analysis of the recorded experiments, rather than a fully controlled retraining study.
The dependency file lists PyTorch 2.8.0, torchvision 0.23.0, PyTorch Lightning 2.0.0, timm 0.9.16, and Transformers 4.34.0. These versions describe the archived dependency specification; the exact installed versions and GPU used for each recorded experiment have not been independently established. The visual learning-rate exports agree between the two main runs and decrease from to .
4.2 Metrics and Reanalysis
Validation accuracy is accumulated over the non-training loader. “Best validation accuracy” denotes the maximum recorded value, and “final validation accuracy” denotes the last exported value. These summaries do not imply evaluation of a saved best checkpoint on an independent test set. The checkpoint callback configured to select the best validation model is not passed to the trainer in the archived training entry point.
Table 2. Documented gated-run configuration. Values reflect the launch file and archived code; an independently captured run environment is not available.
| Setting | Value |
|---|---|
| Visual encoder | ViT-B/16; 12 layers; dimension 768 |
| Text encoder | BERT-base-uncased; entire branch frozen |
| Visual / text prompt length | 6 maximum / 4 |
| Prompt experts | 4 |
| Gate hidden dimension | 192 |
| Batch size / random seed | 8 / 42 |
| Training duration | 10 epochs |
| Optimizer | AdamW |
| Initial learning rate, active modules | |
| Configured text learning rate | ; inactive for frozen parameters |
| Weight decay | for both parameter groups |
| Learning-rate schedule | Multiply by 0.4 at epochs 3 and 6 |
| Importance / gate loss weight | 0.01 / 0.5 |
| Numerical precision / gradient clipping | 16-bit mixed precision / norm 1.0 |
| Validation schedule | At approximately one-third-epoch intervals |
Training accuracy, total training loss, importance loss, and the gate ratio are logged from training steps. Their final exported values represent the last recorded mini-batch statistic, not an epoch-wide or dataset-wide average. Total training loss includes the auxiliary terms, and the gated and baseline objectives therefore differ. Validation checkpoints and training steps are not independent experimental replicates; no standard deviations, confidence intervals, or significance tests across runs can be inferred from their number.
The available records contain no prediction probabilities, example-level classifications, or independent test outputs. They do not support retrospective calculation of area under the receiver operating characteristic curve (AUROC), area under the precision-recall curve (AUPRC), sensitivity, specificity, F1 score, or confusion matrices. The reanalysis uses the exported scalar values without smoothing or creation of additional training results.
5 Results
5.1 Recorded Validation Performance
The gated run reached a best validation accuracy of 0.8996, compared with 0.8969 for the fixed-length baseline (Table 3). The difference, computed from the unrounded log values, is 0.2677 percentage points. The best records occurred at different optimization steps: 5713 for the gated run and 6959 for the baseline. At the final recorded validation point, accuracy was 0.8963 and 0.8802, respectively, a difference of 1.6064 percentage points. Figure 2 presents the complete exported trajectories.
The best recorded values are numerically close. This single-run comparison provides neither a superiority test nor an equivalence test. The final recorded mini-batch accuracy of 1.0000 describes one batch and cannot establish either perfect training-set performance or overfitting by itself.
Table 3. Scalar summaries from one recorded run per configuration. Best and final validation values summarize the same repeatedly evaluated validation subset. Training statistics are final exported mini-batch values.
| Measure | Fixed length 6 | Gated, maximum length 6 |
|---|---|---|
| Best validation accuracy | 0.8969 | 0.8996 |
| Step of best validation record | 6959 | 5713 |
| Final validation accuracy | 0.8802 | 0.8963 |
| Final recorded mini-batch accuracy | 0.7500 | 1.0000 |
| Final recorded total training loss | 0.6998 | 0.1553 |
| Final recorded importance loss | 3.1456 | 1.4875 |

(a) Validation accuracy
(c) Total training loss
(b) Training mini-batch accuracy
(d) Importance loss

Figure 2. Unsmoothed exported scalar trajectories for the fixed-length baseline and gated run. (a) Validation accuracy over all 31 recorded evaluations. (b) Training mini-batch accuracy. (c) Total training loss, including the configuration-specific auxiliary terms. (d) Importance loss. Panels (b–d) each contain 149 recorded training points; these are neither epoch averages nor repeated independent runs. The vertical axis in panel (a) is restricted to 0.70–0.92 for readability.
5.2 Gate Statistics and Minimum-Length Behavior
The maximum exported gate ratio is , recorded at the first available training point, step 49. The final exported ratio is zero at the precision of the stored scalar. Figure 3 shows all 149 records. These values are averages over samples and the 12 visual layers, rather than directly logged per-sample lengths or per-layer length distributions.
Nevertheless, their small magnitude permits a bounded inference about the executed length at the recorded training points. If is the logged gate scalar and is its maximum over the exported records, non-negativity gives
Substitution into Equation (3) yields for every layer at each of these logged points, provided the recorded run follows the supplied implementation. The logs do not cover the first 49 optimization steps, intervening unrecorded batches, or validation-time gate behavior. They therefore do not establish the timing of an initial transition from longer prompts, continuous one-token execution throughout training, or the evaluation-time length distribution.
(a) Logged gate statistic

(b) Inferred retained length
Figure 3. Gate behavior at the 149 exported training points. (a) Logged mean gate ratio, averaged over the mini-batch and 12 visual layers. Values equal to zero are shown as stored, without introducing a logarithmic offset. (b) One-token retained length inferred for all visual layers at those recorded points using the non-negativity bound in Equation (7). The dashed line denotes the configured maximum of six. Panel (b) is an inference from the gate summary and implementation, not a direct length log or a record of unobserved batches.
5.3 Auxiliary Loss and Resource Implications
The final exported importance loss is 1.4875 for the gated run and 3.1456 for the baseline. This indicates a lower value of the auxiliary imbalance objective at those recorded steps; it does not establish more useful routing. The simultaneous reduction in the gate ratio also scales down the mixed prompt, so lower importance loss cannot isolate the effect of prefix length.
At an executed length of one, each mixed and static prompt component uses one-sixth of its configured token budget. The complete visual sequence, however, decreases by only ten tokens, or 4.76% (Table 1). The number of pairwise attention positions would decrease by under otherwise identical dense attention. This quantity excludes projections, feed-forward layers, the text encoder, the gate, and other execution overhead. No latency, throughput, peak-memory, or measured floating-point-operation results are available to establish a net efficiency benefit.
6 Discussion
6.1 Prompt Shortening and the Meaning of Adaptivity
The recorded experiment demonstrates a regime in which the implemented gate strongly suppresses its retention ratio while the classifier attains a validation score near that of the fixed-length baseline. It does not demonstrate sustained variation in executed prompt length. The batch-mean discretization also means that changing the other samples in a batch can change the length assigned to an otherwise unchanged sample. This batch dependence must be distinguished from an individual policy that is invariant to batch composition.
The mechanism combines several interventions: mixed-prompt truncation, static-prompt truncation, mixed-prompt amplitude scaling, and an additional gate objective. Minimum-length behavior could reflect over-allocation of the original prompt budget, strong regularization, reliance on report text, or a combination of these factors. A fixed one-token or two-token model is required to determine whether learning a gate provides any benefit beyond choosing a smaller prompt in advance. An amplitude-only gate and a truncation-only controller are additionally needed to attribute the effects of these coupled changes.
6.2 Potential Failure Cases
Minimum-length truncation may be unsuitable for harder multi-label tasks or categories that depend on subtle visual findings. If additional prompt positions provide useful adaptation capacity, prefix truncation removes that capacity uniformly within a batch; reducing the mixed-prompt amplitude can further weaken its contribution. Performance on the present derived binary target does not determine how these effects would behave on such tasks.
Batch-dependent length selection creates another possible failure mode. In a heterogeneous batch, an individual sample cannot retain a longer prompt independently of its neighbors. Near a discretization boundary, changing batch composition or batch size can alter the length assigned to an unchanged sample. Reliance on report features may also reduce transferability when reports are absent, incomplete, or inconsistent with the image. These are mechanism-based hypotheses for further evaluation, not observed failure rates in the available records.
6.3 Limitations and Required Validation
The principal limitation is the coupling of the target to report text that also enters the classifier. The sequential row partition and uncertain image-read integrity further restrict interpretation. A defensible evaluation requires a verified cohort manifest, explicit class counts, randomized and stratified study-level partitions, and patient grouping when a reliable mapping is available. Image-only, report-only, and combined-input controls are needed to assess the visual contribution. Replacing the label rule or partition defines a new experimental protocol; the present scores cannot be relabeled as results under that protocol.
The experimental evidence consists of one run per configuration with no independent test set. Repeated matched seeds, fixed short-prompt controls, and ablations of the gate-loss weight and minimum length remain necessary. Example-level probabilities and labels should support AUROC, AUPRC, sensitivity, specificity, F1 score, and confusion matrices, with model selection restricted to validation data. Direct per-sample and per-layer traces are needed to evaluate gate behavior beyond the conditional inference from the scalar summaries.
Practical efficiency remains unmeasured. The controller increases the analytical trainable-parameter count even when fewer tokens are executed. Latency, throughput, peak memory, and operation counts should be compared at matched hardware, batch size, precision, warm-up, and synchronization settings. Routing noise should be handled consistently across comparisons; disabling it would define a changed implementation requiring new measurements. Finally, transfer to a larger resource such as MIMIC-CXR requires a consistently defined target and input protocol [18]. Cohort manifests, source revisions, checkpoints, environments, and prediction-level outputs should accompany these subsequent experiments.
7 Conclusions
This pilot study examines a layer-wise gate combining batch-dependent visual prompt truncation with sample-specific mixed-prompt scaling in a MoPE-based classifier. The recorded gated and fixed-length runs achieved best validation accuracies of 0.8996 and 0.8969, respectively. Gate summaries imply minimum-length execution at all recorded training points under the supplied implementation. The supported finding is prompt shortening in this weakly labeled image-text setting; an advantage over fixed short prompts, practical acceleration, and clinical performance remain unestablished. The next evaluation should compare gate-free short prompts and unimodal controls under a protocol that separates target construction and model selection from testing.
References
[1] Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems; 2017; Volume 30, pp. 5998–6008.
[2] Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, Minneapolis, MN, USA, 2–7 June 2019; pp. 4171–4186. https://doi.org/10.18653/v1/N19-1423.
[3] Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations, Virtual, 3–7 May 2021. https://openreview.net/forum?id=YicbFdNTTy.
[4] Lester, B.; Al-Rfou, R.; Constant, N. The power of scale for parameter-efficient prompt tuning. In Proceedings of EMNLP, Punta Cana, Dominican Republic, 7–11 November 2021; pp. 3045–3059. https://doi.org/10.18653/v1/2021.emnlp-main.243.
[5] Jia, M.; Tang, L.; Chen, B.-C.; Cardie, C.; Belongie, S.; Hariharan, B.; Lim, S.-N. Visual prompt tuning. In Computer Vision–ECCV 2022; Springer: Cham, Switzerland, 2022; Volume 13693, pp. 709–727. https://doi.org/10.1007/978-3-031-19827-4_41.
[6] Li, X.L.; Liang, P. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of ACL-IJCNLP, Virtual, 1–6 August 2021; pp. 4582–4597. https://doi.org/10.18653/v1/2021.acl-long.353.
[7] Liu, X.; Ji, K.; Fu, Y.; Tam, W.; Du, Z.; Yang, Z.; Tang, J. P-Tuning: Prompt tuning can be comparable to fine-tuning across scales and tasks. In Proceedings of ACL, Dublin, Ireland, 22–27 May 2022; Volume 2, pp. 61–68. https://doi.org/10.18653/v1/2022.acl-short.8.
[8] Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-rank adaptation of large language models. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. https://openreview.net/forum?id=nZeVKeeFYf9.
[9] Jiang, R.; Liu, L.; Chen, C.W. MoPE: Mixture of prompt experts for parameter-efficient and scalable multimodal fusion. IEEE Trans. Multimed. 2026, in press. https://doi.org/10.1109/TMM.2026.3700783.
[10] Rao, Y.; Zhao, W.; Liu, B.; Lu, J.; Zhou, J.; Hsieh, C.-J. DynamicViT: Efficient vision transformers with dynamic token sparsification. In Advances in Neural Information Processing Systems; 2021; Volume 34, pp. 13937–13949.
[11] Liang, Y.; Ge, C.; Tong, Z.; Song, Y.; Wang, J.; Xie, P. Not all patches are what you need: Expediting vision transformers via token reorganizations. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. https://arxiv.org/abs/2202.07800.
[12] Meng, L.; Li, H.; Chen, B.-C.; Lan, S.; Wu, Z.; Jiang, Y.-G.; Lim, S.-N. AdaViT: Adaptive vision transformers for efficient image recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 12309–12318.
[13] Zhang, Y.; Jiang, H.; Miura, Y.; Manning, C.D.; Langlotz, C.P. Contrastive learning of medical visual representations from paired images and text. In Proceedings of the 7th Machine Learning for Healthcare Conference; PMLR, 2022; Volume 182, pp. 2–25. https://proceedings.mlr.press/v182/zhang22a.html.
[14] Huang, S.-C.; Shen, L.; Lungren, M.P.; Yeung, S. GLoRIA: A multimodal global-local representation learning framework for label-efficient medical image recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 11–17 October 2021; pp. 3942–3951.
[15] Wu, C.; Zhang, X.; Zhang, Y.; Wang, Y.; Xie, W. MedKLIP: Medical knowledge enhanced language-image pre-training for X-ray diagnosis. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 1–6 October 2023; pp. 21372–21383.
[16] Chen, Z.; Diao, S.; Wang, B.; Li, G.; Wan, X. Towards unifying medical vision-and-language pre-training via soft prompts. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 1–6 October 2023; pp. 23403–23413.
[17] Demner-Fushman, D.; Kohli, M.D.; Rosenman, M.B.; Shooshan, S.E.; Rodriguez, L.; Antani, S.; Thoma, G.R.; McDonald, C.J. Preparing a collection of radiology examinations for distribution and retrieval. J. Am. Med. Inform. Assoc. 2016, 23, 304–310. https://doi.org/10.1093/jamia/ocv080.
[18] Johnson, A.E.W.; Pollard, T.J.; Berkowitz, S.J.; Greenbaum, N.R.; Lungren, M.P.; Deng, C.-Y.; Mark, R.G.; Horng, S. MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports. Sci. Data 2019, 6, 317. https://doi.org/10.1038/s41597-019-0322-0.