--- license: apache-2.0 library_name: transformers pipeline_tag: image-text-to-text base_model: - LongVA/LongVA-7B tags: - vision-language - remote-sensing - ultra-high-resolution - query-guided-token-compression - qwen2 - longva - uhr-bat --- # UHR-BAT **UHR-BAT: Budget-Aware Token Compression Vision-Language model for Ultra-High-Resolution Remote Sensing** **ICML 2026**
[Project Page](https://yunkaidang.github.io/bibliography/dang2026uhr-bat/) | [Paper](https://arxiv.org/abs/2604.13565) | [Code](https://github.com/Yunkaidang/UHR-BAT) UHR-BAT is a budget-aware vision-language framework for ultra-high-resolution remote sensing imagery. It targets the setting where kilometer-scale scenes contain query-critical evidence that may occupy only a few pixels. Instead of relying on direct downsampling, dense tiling, or generic global pruning, UHR-BAT uses query-guided multi-scale token selection and region-faithful compression to preserve small decisive evidence under a strict context budget. ## Highlights - **Query-guided token compression:** visual token budgets are allocated according to the current instruction, helping preserve small but decisive evidence. - **Multi-scale input:** the model encodes remote-sensing images at multiple target scales to retain both global context and fine-grained local details. - **Region-faithful preserve and merge:** informative regional tokens are kept, while redundant background tokens are merged into compact representatives. - **Efficient UHR understanding:** the method is designed for quality under memory and latency constraints, not only raw benchmark accuracy. ## Main Results The project page reports strong ultra-high-resolution remote-sensing results under strict token budgets: - **XLRS-Bench:** 44.0 weighted average accuracy. - **MMERealworld-RS:** 33.33 mean score. - **RSHR-Bench:** 29.2 on Perception and 45.0 on Reasoning. ## Model Details This checkpoint contains the full multimodal UHR-BAT model: - Qwen2/LongVA language backbone - CLIP ViT-L/14-336 vision tower - multimodal projector - multiscale token MLP - scale positional residual weights - Hugging Face remote-code wrappers for direct loading The model repository includes `configuration_uhr_bat.py` and `modeling_uhr_bat.py`, so `trust_remote_code=True` is required when loading the full architecture. ## Quick Start ```python import importlib import torch from PIL import Image from transformers import AutoImageProcessor from transformers import AutoModelForCausalLM, AutoTokenizer model_id = "FelixKAI/UHR-BAT" image_path = "your_remote_sensing_image.jpg" question = "Describe this remote-sensing image." tokenizer = AutoTokenizer.from_pretrained(model_id) if tokenizer.pad_token_id is None: tokenizer.pad_token = tokenizer.eos_token image_processor = AutoImageProcessor.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained( model_id, trust_remote_code=True, torch_dtype="auto", device_map="auto", ).eval() # Reuse the preprocessing helpers shipped with the model's remote code. uhrbat = importlib.import_module(model.__class__.__module__) image = Image.open(image_path).convert("RGB") prompt = ( "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n" f"<|im_start|>user\n