Photon Arrival Time as Color Evidence: Colorization from a Few Photons per Pixel

Turning a grayscale image into a color one is ambiguous, because one brightness value fits many colors. Learned colorizers settle the ambiguity by guessing what is typical: apples are red, skies are blue. Single-photon cameras face a sharper version of the problem. They are monochrome and can record each photon's arrival time to the picosecond, yet current pipelines discard that timing and then hand color to an off-the-shelf colorizer. We propose to put color into the arrival times. Quantum communication already does this kind of thing: time-bin encoding writes information into which of several time slots a photon lands in. Here, the scene is lit by short pulses of different colors fired in different time slots. Every detected photon then carries a label saying which color pulse produced it. Each photon is noisy, sparse evidence about the true color, and we combine it with a learned colorization prior through an exact photon-counting likelihood.

The claim is specific and testable. At a budget of only a few detected photons per pixel, the combined posterior should recover colors the prior gets wrong, for example green apples or recolored cars, which no software colorizer can do. It should also beat both raw photon counting and a color-filter mosaic at the same light level. The result we want is the full curve: how colorization error and hallucination rate fall as photon budget rises, and where the learned prior stops mattering.

Why this intersection, and what is already done

Three ideas from time-bin encoding carry over. Photons in different time slots of one path can stand in for separate channels, so no extra hardware path is needed, as in the looped temporal-mode processors of A universal programmable Gaussian boson sampler for drug discovery and A von-Neumann-like photonic processor. Wavelength can be mapped to arrival time, which An entanglement-based quantum network based on symmetric dispersive optics quantum key distribution does with fiber dispersion for key distribution. And each detected photon can carry more than a bit, as shown in High-dimensional coherent one-way quantum key distribution. These works supply the encoding concept. None of them touches images.

On the vision side, Colorful Image Colorization predicts a probability distribution over 313 quantized color bins per pixel. Learning Representations for Automatic Colorization keeps per-pixel color histograms until the last step. Colorization Transformer (ColTran) samples coarse color tokens one pixel at a time, conditioned on earlier pixels, which is called autoregressive sampling. These explicit distributions are what make our likelihood combination possible, so they supply the method. The deterministic DDColor reaches the best reported realism but outputs one guess with no uncertainty.

The closest prior work is PhotonSplat. It reconstructs scenes from binary single-photon avalanche diode (SPAD) frames, then gets color either from a blurred co-located RGB camera or by running DDColor on the result. Photon timing never informs color there. We differ in exactly that respect: color comes from the photons themselves.

Two other works bound the design. Real-Data-Driven 2000 FPS Color Video from Mosaicked Chromatic Spikes gets color from a spatial Bayer filter mosaic, which by its own account absorbs over 60% of photons. Time-Resolved MNIST acts as a constraint. In its tests, estimators built on time gaps between successive photons collapse to 35% digit accuracy at 5 mlux, while plain counting keeps about 63%. Our design follows that lesson. Time is used only to assign each photon to a coarse slot, and inference counts photons per slot. We never estimate brightness from the gaps between photons.

Core Claim

We first considered dispersing a broadband pulse so that wavelength maps continuously to delay. A skeptic would rightly reply that three LEDs (red, green and blue) strobed in three separate nanosecond slots give the same information with far simpler optics. We adopt that as the primary encoding. The dispersive chirp becomes a later extension that needs spectral ground truth, which no dataset in our file provides.

This shifts the contribution from optics to inference. Pixel $i$ records counts $n_{ik}$ in time slot $k$, for $k=1,\dots,D$. Each count is modeled as Poisson with mean $\lambda_{ik}(z) = \eta\, s_k\, \rho_k(z) + \delta$. Here $z$ is the pixel's color bin, $\rho_k(z)$ is that color's response to pulse $k$, $s_k$ is the known pulse energy, $\eta$ is detection efficiency and $\delta$ is the dark-count rate. The posterior over color is then

$$p(z \mid L, n_i) \propto p_\theta(z \mid L)\prod_{k=1}^{D}\mathrm{Poisson}\big(n_{ik};\lambda_{ik}(z)\big),$$

where $p_\theta(z\mid L)$ is a pretrained colorizer's distribution given the grayscale image $L$.

The likelihood is exact, costs one multiply per color bin, and needs no retraining when pulse energies, illuminant spectra or detector efficiency change. For spatial consistency, we apply the same likelihood to each token in ColTran's coarse autoregressive sampler. This is a locally guided approximation to the true posterior, because it ignores the evidence at pixels not yet sampled. We will quantify that gap against a slower sequential importance sampler on small images.

Research Program

We will extend a Time-Resolved MNIST–style SPAD simulator to color natural images. The simulator models Poisson arrivals, quantum efficiency, dark counts, dead time, afterpulsing and timing jitter. Each RGB pixel is treated as three-band reflectance under three strobed pulses. Slot spacing is set larger than the combined jitter and round-trip depth spread, so photons are assigned to the wrong slot only at a modeled rate.

Three inference variants will be built and compared on the same simulated data:

  1. Plug-in likelihood combined with the Zhang per-pixel distribution.
  2. Plug-in likelihood inside ColTran's coarse sampler.
  3. An amortized network: a DDColor-style model retrained to take the slot-count tensor as extra input.

The sweep covers mean detected photons per pixel from 0.1 to 100.

To measure hallucination directly, we will build a counter-prior split from COCO-Stuff by hue-rotating segmented objects. This produces scenes whose true colors contradict the training statistics.

A small bench prototype with pulsed LEDs and a time-tagging SPAD would test transfer to real data. It is a stretch goal, not a dependency.

Baselines

The naive reference is per-pixel color from slot counts alone, normalized and lightly denoised with a spatial filter, with no learned prior. It should win at high photon budgets and fail at low ones. It marks where the prior adds anything.

The strongest software competitor is DDColor applied to the summed-photon grayscale image, which is PhotonSplat's no-reference route. DDColor reports an FID of 3.92 on ImageNet (DDColor). ColTran reports 19.37 (Colorization Transformer). Both are on clean grayscale, and no reported result exists on Lacuna for colorization from photon-limited time-binned SPAD data. Beating DDColor means lower color error (ΔE in CIELAB) on ImageNet validation and the counter-prior split at matched photon budgets, without worse FID.

The strongest hardware competitor is a Bayer mosaic on the SPAD. It is simulated with the same detector, the same total photon budget arriving at the filter, the absorption loss stated in the chromatic-spikes paper, and demosaicking. The chromatic-spikes dataset (YOUSIKI/chromatic-spikes) is used to check our mosaic noise model against real data. That paper reports 30.780 dB PSNR on its own synthetic benchmark, a different task that we cite only for scale.

The ablation that isolates the key ingredient is the amortized network. It sees the same counts and the same training data with an equal tuning budget, but it has no explicit likelihood. If it matches the plug-in posterior everywhere, the exact likelihood is not what matters.

Why not just…?

Why not just run DDColor or a diffusion colorizer on the SPAD intensity? Doing so cannot recover a color the prior considers unlikely, because no color evidence ever enters the model. DDColor itself acknowledges semantic mismatches and color bleeding. The counter-prior split measures this failure directly. If DDColor's ΔE on hue-rotated objects stays near its error with no photon evidence while ours falls toward the count-only estimate, the alternative is ruled out for faithful color.

Why not just put a Bayer filter on the sensor? It is the real hardware threat at high light levels, where its photon loss barely matters. Our claim concerns the photon-starved regime. The mosaic discards most photons by absorption and samples each color at a fraction of the pixels, whereas strobed slots lose none at the sensor. The matched-budget sweep will show where, or whether, the two curves cross. We will report a crossover honestly if the mosaic wins above some flux.

Why not just correct DDColor's output with the photon counts afterward, or train one network end to end on the counts? Post-hoc correction is cheap and may capture much of the gain, so it is included as a baseline. It reweights DDColor's single guess toward the counts within each segment. Its weakness is that it starts from one mode, not a distribution. The end-to-end network is the ablation above. Our expected advantage is robustness when pulse energies, the illuminant or detector efficiency shift at test time, because the plug-in likelihood absorbs these exactly. If the amortized network stays equal under such shifts, we would conclude that the exact likelihood is unnecessary and say so.

Decisive Checks

Three outcomes settle the proposal. First, at 1 to 5 photons per pixel on the counter-prior split, the plug-in posterior should cut ΔE well below DDColor's and below count-only. Second, at the same budget, it should beat the simulated Bayer SPAD. Third, after an unseen change in pulse spectra, it should keep its advantage over the amortized network without retraining.

We will also check calibration, meaning the fraction of ground-truth colors that fall inside the posterior's 90% credible set, to show the uncertainty reports are honest. If none of the three gaps appears, the time-bin labels add nothing beyond what a good prior and a filter mosaic already provide, and the idea fails cleanly.