Any vision-language model (VLM) can in theory look at a picture of a score. No music training is needed to send one, as the image goes through the same route as a photo. This makes score images the cheapest way to give music to a frontier model, yet one of the hardest for the model to use.
Scores as images¶
A score image can be rendered from a file, as in Figure 1, or scanned or photographed from paper. To answer “what key is this in?”, a model has to find the key signature, read the clefs, and connect noteheads to staff positions, which is traditionally the job of optical music recognition. Scores can also be quite dense: one bar of piano music can hold dozens of small symbols whose meaning depends on their exact vertical position and on symbols elsewhere on the page, such as the clef and key signature at the start of the line.
VLMs get their images in the same ways that audio LLMs get their audio (The encoder). Most use a vision encoder and an adapter. LLaVA uses a CLIP ViT-L/14 encoder and a linear projection 1. Qwen2.5-VL trains its own Vision Transformer at native resolution, and an MLP merges each group of four neighboring patch features into one token 2. Others have no vision encoder. Fuyu-8B linearly projects image patches “into the first layer of the transformer” 3; Gemma 4 12B passes 48×48 pixel patches through a single matrix multiplication 4; and Inkling encodes 40×40 pixel patches “using a four-layer hMLP” 5.
Like frame rate for audio, resolution matters for scores. A notehead is a few pixels tall, and a VLM that shrinks a page to a fixed size can lose the difference between a line and a space. Native-resolution encoders such as Qwen2.5-VL’s keep more detail, but spend more tokens: Qwen2.5-VL’s preprocessing resizes the reel’s score image from 1,507×555 to 1,512×560 pixels, and it becomes 1,080 image tokens, one per 28×28 pixels.
Music-specific training helps. NOTA collects 1,019,237 records of score images and text from three regions of the world and trains NotaGPT, which first aligns score images with their ABC notation 6. Still, the benchmarks agree that reading the notation is the weak step for current VLMs; the evaluation page gives the numbers. Chapter 5 covers score formats and the performance markings a score carries, such as dynamics and articulation, and how current systems handle them much in depth.
Asking a VLM about the score¶
Qwen2.5-VL-7B-Instruct is an open VLM on Hugging Face. The code below follows its model card, with the reel’s score image and a question in place of the card’s example:
# pip install transformers accelerate qwen-vl-utils==0.0.8
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
from qwen_vl_utils import process_vision_info
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"Qwen/Qwen2.5-VL-7B-Instruct", torch_dtype="auto", device_map="auto")
processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-7B-Instruct")
messages = [
{"role": "user", "content": [
{"type": "image", "image": "reel_score.png"},
{"type": "text", "text": "What key is this piece in, and which notes "
"does the treble staff play in bar 1?"},
]},
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(text=[text], images=image_inputs, videos=video_inputs,
padding=True, return_tensors="pt").to(model.device)
generated_ids = model.generate(**inputs, max_new_tokens=128)
trimmed = [out[len(inp):] for inp, out in zip(inputs.input_ids, generated_ids)]
print(processor.batch_decode(trimmed, skip_special_tokens=True)[0])The correct answer is D major (two sharps), and D5, F♯5, D5, A4, F♯4, A4.
Compare the answer with the same question asked about the ABC text on the next
page. The image is at
book/assets/understanding/reel_score.png in the book’s repository.
Spectrograms as images¶
A spectrogram is also an image, so a VLM can “listen” by looking at one. Two studies tested this.
Dixit et al. (2024) gave VLMs spectrograms of environmental sounds from ESC-10 and asked them to classify the sound. GPT-4o reached 59.00% cross-validated accuracy. In a 10-shot setting on the first fold, GPT-4o reached 73.75%, slightly above the 72.50% of human experts who classified the same spectrograms by eye.
Loakman et al. (2025) asked VLMs to pick the transcription of a spoken word from its spectrogram, among four options. All models performed around chance (25%), with and without fine-tuning. A speech recognition model given the audio reached 87.56%, and a trained phonetician, one of the authors, reached 75.00% on 100 examples from the spectrograms.
Reading a spectrogram is a skill that humans learn too, and for coarse categories it can work. For fine distinctions, such as phonemes, or for music, where the reel’s notes are a few pixels apart in the CQT panel of Figure 3, an audio encoder sees what the image hides.
- Liu, H., Li, C., Wu, Q., & Lee, Y. J. (2023). Visual Instruction Tuning. Advances in Neural Information Processing Systems (NeurIPS). https://arxiv.org/abs/2304.08485
- Bai, S., Chen, K., Liu, X., Wang, J., Ge, W., Song, S., Dang, K., Wang, P., Wang, S., Tang, J., Zhong, H., Zhu, Y., Yang, M., Li, Z., Wan, J., Wang, P., Ding, W., Fu, Z., Xu, Y., … Lin, J. (2025). Qwen2.5-VL Technical Report. arXiv Preprint arXiv:2502.13923. https://arxiv.org/abs/2502.13923
- Bavishi, R., Elsen, E., Hawthorne, C., Nye, M., Odena, A., Somani, A., & Taşırlar, S. (2023). Fuyu-8B: A Multimodal Architecture for AI Agents. https://www.adept.ai/blog/fuyu-8b/
- Gemma Team. (2026). Gemma 4 Technical Report. arXiv Preprint arXiv:2607.02770. https://arxiv.org/abs/2607.02770
- Thinking Machines Lab. (2026). Inkling: Our Open-Weights Model. https://thinkingmachines.ai/news/introducing-inkling/
- Tang, M., Li, J., Yang, L., Zhang, Z., Tian, J., Li, Z., Zhang, L., & Wang, P. (2025). NOTA: Multimodal Music Notation Understanding for Visual Large Language Model. Findings of the Association for Computational Linguistics: NAACL 2025, 7160–7173. 10.18653/v1/2025.findings-naacl.399
- Dixit, S., Heller, L. M., & Donahue, C. (2024). Vision Language Models Are Few-Shot Audio Spectrogram Classifiers. Audio Imagination: NeurIPS 2024 Workshop on AI-Driven Speech, Music, and Sound Generation. https://arxiv.org/abs/2411.12058
- Loakman, T., James, J., & Lin, C. (2025). Seeing isn’t Hearing: Benchmarking Vision Language Models at Interpreting Spectrograms. Proceedings of the 14th International Joint Conference on Natural Language Processing and the 4th Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (IJCNLP-AACL), 79–86. 10.18653/v1/2025.ijcnlp-short.7