--- license: apache-2.0 language: - en base_model: - Qwen/Qwen2.5-VL-3B-Instruct pipeline_tag: image-text-to-text ---

Speedup Volume Understanding with Efficient Multimodal Large Language Models

✨Pretrained-weights of Phase 2✨

❗We have uploaded weights for different benchmarks in different branches of this repository.❗

## 👓 Overview Multimodal large language models are promising for clinical visual question answering tasks, but scaling to 3D imaging is hindered by high computational costs. Prior methods often rely on 2D slices or fixed-length token compression, disrupting volumetric continuity and obscuring subtle findings. We present Photon, a framework that represents 3D medical volumes with token sequences of variable length. Photon introduces instruction-conditioned token scheduling and surrogate gradient propagation to adaptively reduce tokens during both training and inference, which lowers computational cost while mitigating the attention dilution caused by redundant tokens. It incorporates a custom backpropagation rule with gradient restoration to enable differentiable optimization despite discrete token drop. To stabilize token compression and ensure reliable use of visual evidence, Photon further applies regularization objectives that mitigate language-only bias and improve reliability. Experiments on diverse medical visual question answering tasks show that Photon achieves state-of-the-art accuracy while reducing resource usage and accelerating both training and inference. ## 📚 Data Preparation *We preprocess the CT volumes by reorienting them to RAI and resampling to (1, 1, 1) spacing. Then, we center-crop or pad them to the shape (364, 364, 364).* ### Data Sample Our data format follows the specification compatible with ms-swift, and we recommend using JSON or JSONL format for data construction. Here is an example: ```bash [ { "messages": [ { "role": "user", "content": "