Ray-Space Tools for Agents That Cannot See in 4D

A light field is a photograph that records the direction each ray of light arrives from, not just where it lands. That extra directional record lets you refocus after capture, measure depth from parallax, and tell a shiny surface from a matte one. The catch is size. A single consumer plenoptic capture is a 4D array, for example $376 \times 541$ pixels times $14 \times 14$ viewing directions. That is far too large to hand to a vision-language model, the image-reading language model that today's general-purpose agents rely on. Such models see one or a few 2D images, so in practice they throw away exactly the angular information that makes light fields useful.

We propose to split the work among specialized roles. A perception agent only ever sees small 2D images. A ray-space executor runs exact, physics-defined operations on the full 4D array: synthetic refocusing, depth from the slopes of epipolar-plane images (2D slices of the light field in which a scene point traces a line whose slope encodes its depth), and per-pixel spread of color across views (a cue for specular or glossy surfaces). A verifier checks every geometric claim against parallax consistency before it is accepted. The executor is called only when the perception agent is uncertain. The central question is whether this decomposition lets a training-free agent recover the measurable benefit of angular information that trained light-field networks obtain, at a token cost close to that of looking at one image.

Core Claim

Our claim is that the right interface between a general agent and high-dimensional visual data is not more pixels in the prompt. It is a small set of tools that each compress 4D ray space into a task-relevant 2D summary, together with a separate role that checks the physical claims those summaries support. The claim is testable. On a light-field benchmark where angular information is known to help, the agent should close a large part of the gap between a 2D-only reading and a trained 4D network. The gain should disappear when the angular structure is scrambled. And the separate verifier and the uncertainty trigger should each be shown to matter, rather than merely adding tool access.

The evidence that angular information matters comes from A 4D Light-Field Dataset and CNN Architectures for Material Recognition. Its best light-field network (angular filters applied to "remap images") reaches 77% patch accuracy against 70% for a 2D network, and 79.9% versus 73.7% per-pixel accuracy on full scenes, with gains above 10 points on leather, paper and wood. These are materials whose 2D appearance is ambiguous but whose reflectance changes with viewing angle. This paper motivates the proposal. A counterweight comes from Light field salient object detection: A review and benchmark, which finds that mature RGB-D detectors consistently beat specialized light-field models. Having 4D data does not by itself confer an advantage; how it is exposed matters. This result constrains our design. We expect benefits on tasks that depend on angle, such as material and specularity, and we do not expect them on tasks that mostly need good edges.

Relation to Prior Work

The decomposition borrows from three multi-agent systems.

Beyond Lines and Circles separates a natural-language planner and validator from a geometric-tool solver and validator. It raises GPT-3.5 pass@1 on Euclidea from 13.6% to 28.1%, attributing the gain to curing "spatial blindness." Its geometry, however, is 2D synthetic construction, and its perception is a single text description of a diagram. We carry the same split between a language domain and a tool domain into continuous 4D ray space, where the tools are optical rather than symbolic.

Comp-X uses one agent that plans, calls Grounding-SAM, and iterates on 2D image compression. 3D-GPT splits dispatch, conceptualization and modeling roles to drive a procedural 3D engine. Neither touches angular data, and both verify only through constraint or syntax checks. We add an independent verifier whose test is physical: claimed depth orderings must agree with epipolar slopes, and claimed specularity must agree with angular variance.

AdaNav supplies the triggering method. It invokes explicit reasoning only when action entropy is high and reports under 0.4% added latency for its physical navigation runs. We reuse its idea to decide when the expensive 4D tools are worth calling.

The closest representation-side work is the factorized networks of Pseudo 4DCNN and the NTIRE 2025 light field super-resolution challenge entries. These split spatial from angular processing inside a trained network. Our proposal makes the same split at the level of the agent's tools and requires no light-field training. The file states that no published work places a role-specialized agent system on plenoptic data. That is the gap we target, but we do not treat its absence as evidence that the idea works.

Research Program

We will build three components and one evaluation suite.

The ray-space executor is a deterministic library of tools. It can refocus to a given depth, compute a disparity map from epipolar-plane-image slopes, compute an angular-variance map, return a sub-aperture view at a chosen angle, and crop and zoom any of these. Each tool returns a 2D image plus a short numeric summary.

The perception agent is a fixed vision-language model. It receives the central view and a question, gives an answer with a confidence, and may request tools. Requests are permitted only when its token-level answer entropy exceeds a threshold, which we calibrate on a held-out split, following AdaNav's heuristic cold start. We will not use reinforcement learning in the first phase.

The verifier is a separate instance of the model with its own context window. It sees only the claim and the tool outputs relevant to that claim, never the perception agent's reasoning, so it cannot simply agree with itself. It can reject a claim and force another round.

The evaluation suite draws questions from datasets with ground truth. From the material dataset we take 12-way material classification on its test patches and scenes. From the unified light-field saliency benchmark (LFSD, HFUT-Lytro, DUTLF) we take saliency, as the case where we predict no angular benefit. From the synthetic scenes in the NTIRE-LFSR evaluation set we take relative-depth questions ("which of these two marked points is closer?"), used only where rendered geometry is available.

Baselines

The naive reference point is the same vision-language model answering from the central sub-aperture view alone, with no tools. Every claimed angular benefit is measured against this, and the material paper's 2D result (70% patch accuracy) indicates roughly how much a 2D view leaves on the table.

The strongest existing method is the trained light-field network from A 4D Light-Field Dataset and CNN Architectures for Material Recognition, which reports 77% patch accuracy and 79.9% per-pixel accuracy. We will evaluate on the same test split and the same 12 classes. This comparison is intentionally asymmetric: their network is trained on the dataset and ours is not. We count it as a ceiling rather than a target. "Beating" it in a useful sense means recovering at least half of the 7-point gap between 2D and light-field input without any training, while matching or exceeding the 10-point per-class gains on leather, paper and wood. Matching 77% outright would be a strong result, and we do not assume it. For saliency, the file contains no reported number for the strongest RGB-D detectors, so we will rerun them on the unified benchmark ourselves.

The fairest simple competitor is a one-shot prompt. We precompute every executor summary (refocus stack, disparity map, angular-variance map) and hand them all to the same model in a single call, with no roles, verifier or trigger. Three further ablations each remove one component: a single agent that has tool access but no separate verifier; the full system with tools always called instead of called under uncertainty; and a "more pixels" control that gives the model a grid of raw sub-aperture views at the same token budget. All systems use the same backbone model, the same decoding settings, and the same number of threshold-tuning runs on the same validation split. We report tokens and wall-clock time per query alongside accuracy.

Why not just…?

Why not just give the model a grid of sub-aperture views? That is the obvious move, and it is our "more pixels" control. At a fixed token budget, a grid forces each view down to low resolution. Parallax between neighboring views in a consumer plenoptic camera is often under a pixel, and that is precisely the signal the epipolar tools measure exactly. The saliency benchmark's finding that raw multi-view inputs lose to focal stacks hints that raw views are a poor interface, but this is an empirical question that the control answers directly.

Why not just fine-tune a light-field classifier? For one fixed task with labels, this is the right answer, and the material paper's 77% shows it works. The proposal targets the opposite regime: open-ended questions about light-field captures for which no task-specific network or labeled set exists. We keep the trained network as a ceiling so that readers can see how much generality costs.

Why not just precompute all summaries and prompt once, with no agents? This is the real threat. If the one-shot prompt matches the full system, the contribution reduces to the choice of ray-space summaries and the multi-agent framing adds nothing. We will report that outcome plainly. Decomposition earns its place only under specific results: the separate verifier must measurably reduce wrong depth or specularity claims on the relative-depth questions, or the uncertainty trigger must reach equal accuracy at substantially fewer tokens. If neither holds, we will recommend the simpler pipeline.

Decisive Experiments

The first check is the angular-scrambling control. We randomly permute the sub-aperture views of each test light field before the executor runs. This destroys parallax and view-dependent reflectance while keeping every pixel value. Any accuracy gain over the central-view baseline that survives scrambling is not coming from angular information, and we would count it against our claim.

The second check is the per-class pattern. The agent's gains should concentrate on leather, paper and wood, mirroring the trained network, and should be near zero on light-field saliency, mirroring the RGB-D paradox. Gains spread evenly across classes would suggest the tools help only by supplying more views or more context.

The third check is cost. We will plot accuracy against tokens per query for the always-call, triggered and one-shot variants. We will also report the fraction of queries on which the trigger fires, to compare with AdaNav's observation that reasoning concentrates on the hardest cases.

Together these three checks decide whether giving agents ray-space tools, split across roles, is a real way to make 4D data usable, or only a costly way to pass extra pixels into the prompt.