arXiv:2610.36873cs.CVOct 2026

Manuscript Offprint

arXiv:2610.36873

RangeRectQuant: Compressing Scientific Fields for Every Future Rectangular Sum

Jiahao Zhang, Xinling Wen, Yu Chen

Abstract

Scientific rasters are often stored before the regions to be measured are known. Independent pixel-error bounds can force exact integer reconstruction when one absolute error budget covers every future rectangle. Coordinated changes allow every pixel to change while every rectangular sum remains accurate. A prefix sum accumulates values from the top-left corner. Four such sums determine any rectangular total. RangeRectQuant preserves the pixel range and designated exact samples while controlling errors in prefix sums. At each row position, we characterize exactly which errors let the remaining pixels meet these constraints. These errors form a single integer interval, even when many completions exist. A backward pass finds its endpoints; a forward pass uses them to choose quantized pixels. The resulting field meets the prescribed error budget for every axis-aligned rectangle, with linear work and workspace proportional to one row. Experiments on geographically held-out built-surface and water-occurrence maps show substantial storage savings over alternatives meeting the same requirements. Data producers encode once; later users measure arbitrary rectangles without the source, re-encoding, or query-specific correction.

Introduction

Scientific rasters are archived before future measurement regions are known. Later users total values over neighborhoods, tiles, or other rectangles. Built-surface maps record building area per pixel. We seek one compressed field that keeps every rectangular sum within a prescribed error budget.

A natural approach gives each pixel the same independent error bound. Errors from many pixels can accumulate in the same direction. Certifying a small regional budget this way can force exact integer reconstruction (Proposition 1). Coordinated errors allow every pixel to change: turning ones into alternating zeros and twos changes any rectangular sum by at most one (Figure 1).

A prefix sum adds values from the top-left corner to a pixel; four such sums determine any rectangular total [1,2]. Bounded prefix errors give an area-independent guarantee. Pixel ranges complicate coordination: zero cannot decrease, the maximum cannot increase, and a current choice can prevent the row from finishing legally.

RangeRectQuant looks ahead before committing a pixel (Figure 2). All prefix-error states that can reach a legal row completion form a single integer interval. A backward pass finds its endpoints; a forward pass uses it to choose compressible pixels. Linear work guarantees every rectangle, including over 275 billion in a 1024×10241024 \times 1024 field.

Figure

Figure

Figure

Figure

Figure 1: Coordination on a field of ones, with valid range zero to two. Every pixel changes; every rectangle error has magnitude at most one. Prefix errors stay between minus one and zero.

References (22)