Gourab RoyHome

RESEARCH PROJECT · 2026

Teaching a small language model to work with astronomy images

I built AstraQ VL around frozen CLIP and Qwen components. A connector first learns the visual language alignment. LoRA training then adapts the language model for astronomy captions and questions.

Trainable
22.4M parameters
Share trained
1.20 percent
Training data
161,653 records
Held out
3,271 records

THE QUESTION

How far can staged adaptation go?

Astronomy visual question answering needs both image grounding and domain language. I wanted to study a setup where most of the base model remains fixed, so the experiment could focus on the alignment connector and a small set of language model adapters.

The project uses 29,151 training images and a disjoint set of 591 unseen images. Those held out images provide 3,271 caption and question records for evaluation.

METHOD

Two stages with different jobs

  1. 01

    Connector alignment

    Stage 1 freezes CLIP ViT L/14 and Qwen2.5 1.5B Instruct. A two layer MLP learns to map CLIP patch features into the language model embedding space.

  2. 02

    Instruction tuning

    Stage 2 starts from the trained connector and keeps it trainable. LoRA adapters are added across the Qwen projection layers while the base language model and vision tower remain frozen.

  3. 03

    Held out generation

    The final checkpoint is evaluated on every caption and question record from the unseen image split. Predictions and per sample metrics are included with the released artifacts.

AstraQ VL Stage 2 architecture with frozen CLIP, trained connector, and Qwen LoRA adapters
The Stage 2 architecture used for the released checkpoint.

HELD OUT RESULTS

Stage 1 and Stage 2

All 3,271 held out records

MeasureStage 1Stage 2Direction
ROUGE L0.31160.3404Higher
Token F10.36720.3948Higher
Exact match0.02720.0339Higher
Unsupported specifics per record0.37330.3369Lower
Specificity precision0.19410.2353Higher
Held out validation loss falling from step 200 to step 2526
Held out token loss on a fixed sample of 512 unseen records. The curve was reconstructed from saved checkpoints.

READING THE RESULTS

The comparison is useful, but not complete

Stage 2 improves several in domain measures

Compared with Stage 1 on the same split, Stage 2 has better reference alignment and fewer unsupported specifics. These are held out generation results, not a broad astronomy benchmark.

The Qwen2.5 VL 7B comparison has a much lower contradiction rate under the NLI proxy: 0.1764 compared with 0.5436 for AstraQ VL Stage 2. That result matters, so the page does not present AstraQ VL as generally better than the larger baseline.

CLIP processes images at 224 by 224 pixels, which limits fine astronomical detail. The base language model has 1.5 billion parameters, and LoRA adaptation has less capacity than full model tuning.

RESOURCES

Code, weights, and evaluation files

The released checkpoint contains the connector and LoRA adapter. It also requires the repository code and the two base models.