TIGER-AI-Lab/Pixel-Reasoner
Pixel-Level Reasoning Model trained with RL [NeuIPS25]
Pixel Reasoner – Vision‑Language Models that think in pixel space
What it is – A research‑grade framework that equips a Vision‑Language Model (VLM) with explicit visual‑manipulation operations (e.g., zoom‑in, select‑frame) so the model can actively explore images or video frames while reasoning. The authors train a 7‑B VLM in two stages:
- Instruction‑tuning on synthetic multi‑turn traces that teach the new pixel‑space actions.
- Curiosity‑driven reinforcement learning that rewards the model for balancing textual reasoning with useful visual operations.
The result is a VLM that can query visual evidence on‑the‑fly, achieving state‑of‑the‑art scores on several visual‑reasoning benchmarks (V* bench 84 %, TallyQA‑Complex 74 %, InfographicsVQA 84 %).
Key capabilities
- Pixel‑space operations – built‑in commands such as
zoom-in,select-framethat the model can invoke during generation. - Two‑phase training – instruction‑tuning (adapted from Open‑R1) → curiosity‑driven RL (adapted from VL‑Rethinker).
- Multi‑turn trajectories – both the SFT and RL pipelines accept sequences of visual‑textual interactions.
- Mixed image/video data – the RL stage can train on video frames as well as static images.
- vLLM‑based inference – fast batched generation for evaluation and downstream use.
Getting started (quick‑start)
- Clone the repo and navigate to the desired sub‑folder (
instruction_tuningorcuriosity_driven_rl). - Install dependencies – follow the provided
install.md(orinstallation.md) which sets up the Python environment,vLLM, andopenrlhf. - Instruction tuning
cd instruction_tuning # edit sft.sh to point to your model checkpoint and the SFT dataset bash sft.sh - Curiosity‑driven RL – prepare the RL dataset, download the warm‑start checkpoint (
PixelReasoner‑WarmStart), then run the multi‑node or single‑node script:
(All hyper‑parameters are exposed as environment variables; the README lists the most important ones such ascd curiosity_driven_rl export policy=/path/to/PixelReasoner‑WarmStart/checkpoint-246 bash scripts/train_vlm_multi.sh # or train_vlm_single.shMAX_PIXELS,lr,bsz, etc.) - Evaluation – use the provided HF collections for image‑based (VStar) and video‑based (MVBench) benchmarks. Example for VStar:
Adjustexport benchmark=vstar export policy=/path/to/trained/model bash scripts/eval_vlm_new.sheval_bsz,MAX_PIXELS, and GPU counts as needed.
Models & data (publicly hosted)
| Item | Hugging Face link | What it contains |
|---|---|---|
| PixelReasoner‑RL‑v1 | TIGER-Lab/PixelReasoner-RL-v1 |
Trained 7 B checkpoint ready for inference/evaluation |
| PixelReasoner‑WarmStart | TIGER-Lab/PixelReasoner-WarmStart |
Pre‑RL checkpoint used as the RL policy initializer |
| SFT data | TIGER-Lab/PixelReasoner-SFT-Data |
Multi‑turn instruction‑tuning trajectories |
| RL data | TIGER-Lab/PixelReasoner-RL-Data |
Queries and reward signals for curiosity‑driven RL |
| Eval collections | HF collection linked in README | Parquet files for VStar, MVBench, and other visual‑reasoning benchmarks |
Demo & website
- Online demo – a Hugging Face Space where you can interact with the model (
https://huggingface.co/spaces/TIGER-Lab/Pixel-Reasoner). - Project website – contains paper PDF, model cards, and visual examples (
https://tiger-ai-lab.github.io/Pixel-Reasoner/).
Common pitfalls (as noted in the README)
- Context‑length overflow – keep
MAX_PIXELSlow enough that image tokens + text tokens stay under the model’s 10 240 token limit. - Transformer/vLLM version mismatch – reinstall the exact transformer commit the repo pins if you see dtype errors.
- Log‑prob batch size –
logp_bszmust be1(or--micro_rollout_batch_size=1) for correct PPO log‑prob computation. - Distributed env vars – when using Ray, propagate
MAX_PIXELS/MIN_PIXELSviaRUNTIME_ENV_JSON.
Contact & citation
- Lead contact: Haozhe Wang (jasper.whz@outlook.com) – bug help for RL.
- SFT contact: Muze (dlwlrma314516@gmail.com) – SFT and alternative RL code.
- Citation:
@article{pixelreasoner, title={Pixel Reasoner: Incentivizing Pixel-Space Reasoning with Curiosity-Driven Reinforcement Learning}, author={Su, Alex and Wang, Haozhe and Ren, Weiming and Lin, Fangzhen and Chen, Wenhu}, journal={arXiv preprint arXiv:2505.15966}, year={2025} }
Bottom line
Pixel Reasoner is a full‑stack research project that introduces pixel‑space actions for VLMs and provides the code, data, and pretrained checkpoints needed to reproduce the results or build your own visual‑reasoning agents. It is firmly within the frontier AI/ML domain.
Related
- Dispatch
- Dispatch
- Project
- Dispatch