Geometric perception sits at the intersection of visual observation and physical world modeling. Recovering three-dimensional structure and motion from two-dimensional images has driven decades of research in computer vision. The field has produced feed-forward networks that map pixels to depth or pose in a single forward pass, optimization-based methods that iteratively refine estimates, and hybrid approaches that combine both paradigms. Despite this progress, a persistent limitation remains: these methods follow inference procedures designed before seeing any data. When visual input deviates from expected patterns—unusual lighting, partial occlusions, or unfamiliar object configurations—fixed pipelines struggle to adapt or correct course.

Enter the agentic paradigm. AI agents have recently demonstrated the ability to dynamically compose tools, inspect intermediate results, and revise strategies on the fly. This capability opens a new path for geometric perception: instead of relying on a preordained inference procedure, an agent can use test-time computation to search over possible reasoning paths. The paper introduces Agentic Geometric Perception as a formulation meeting this description. In this formulation, an agent receives visual input—images or video—along with a natural language task description and existing geometric methods treated as reusable tools. The agent then writes and executes a program tailored to the specific sample, without any task-specific training data.

Agentic Formulation: Test-Time Search Over Inference Procedures

The core observation driving this work is that existing geometric perception methods, for all their strengths, operate according to inference procedures baked in before deployment. A feed-forward network applies a fixed mapping from image features to pose parameters. An optimization-based method minimizes a predefined error function, perhaps with hand-crafted initializations. When the error function misaligns with the true structure of the data, the method either converges to a poor local minimum or fails entirely. There is no mechanism within the method itself to reconsider whether the chosen error function or initialization strategy is appropriate for the given input.

The agentic formulation replaces this static picture with one where the inference procedure itself becomes the object of search. At test time, the agent reasons about which combination of geometric tools—camera pose solvers, epipolar geometry estimators, depth refinement modules, or view synthesis networks—makes sense for the current input. It writes a program that sequences these tools, possibly with conditional branching based on intermediate results. The program runs, produces output, and the agent can inspect those results and decide whether to revise the program further. This loop of program generation, execution, inspection, and revision constitutes the test-time computation that distinguishes the agentic approach.

Critically, the agent needs no gradient updates or meta-training to perform this search. It relies on its general reasoning capacity, the provided tool set, and the natural language task description to construct a working program from scratch for each new input. This means the same agent can handle camera pose estimation one moment, point tracking the next, and view synthesis after that, without any retraining.

Coding Agent Instantiation Without Task-Specific Training

To instantiate the formulation, the authors use an off-the-shelf coding agent. This agent accepts three inputs: visual data (images or video), a natural language task description such as "estimate the camera pose relative to the scene" or "track keypoints across frames," and a library of existing geometric perception methods as callable functions or scripts. The agent's job is to produce a program—typically in a Python-like DSL—that invokes these methods in an order and with parameters suited to the task at hand.

The agent is not fine-tuned on geometric perception benchmarks. It starts from a general code-generation capability, possibly pre-trained on a wide corpus of programming and documentation. When prompted with "given these images, estimate the camera pose," the agent draws on its understanding of both programming patterns and geometric reasoning to construct a program. Might it, for instance, first detect feature points, then solve a Perspective-n-Point problem, then refine the pose with a gradient-based optimizer? The agent decides. If the intermediate pose estimate looks noisy, the agent might insert a RANSAC-based inlier filtering step before proceeding. If the initial feature detector fails under challenging lighting, the agent might switch to a different detector before proceeding.

This approach treats each geometric perception problem as a program synthesis task. The space of possible programs is vast, but the agent's search is guided by the natural language task description and the availability of proven geometric primitives. The result is a dramatically flexible system: the same agent, same tool set, same zero-shot setup handles a diverse suite of tasks.

Results Across 12 Geometric Perception Tasks

The authors evaluate the instantiated agent across 12 distinct tasks spanning camera and object pose estimation, point tracking, and view synthesis. These tasks cover a range of real-world challenges: estimating the six-degree-of-freedom pose of a camera in a scene, determining the pose of a known object from a single image, tracking keypoints as they move across video frames, and synthesizing novel views of a scene from a given reference view.

In each case, the agent was given the same tool set and a natural language prompt describing the goal. No per-task training data was used. The baseline methods compared against included the strongest existing feed-forward and optimization-based approaches for each task. The evaluation metric was accuracy, typically measured by translation and rotation error thresholds standard in the geometric perception literature.

The results are striking. The agentic approach outperformed the strongest existing method in 15 of 16 benchmark settings. In the remaining setting, performance was competitive but did not surpass the baseline. More importantly, the accuracy improvements in the winning settings ranged up to 5.8x. A 5.8x improvement means that, for the same error threshold, the agentic approach required roughly one-sixth the number of inliers or one-sixth the optimization iterations to achieve comparable or better results. Such a leap suggests that the ability to tailor the reasoning path to the specific input yields substantial gains over any single fixed pipeline.

The authors also note that the programs constructed by the agent are, in themselves, a source of insight. By examining the generated code, researchers can see which combinations of geometric tools the agent selected for which types of inputs. These programs reveal implicit heuristics: "when feature quality is low, use this detector first," or "when the initial pose estimate has high rotation error, apply this refinement subrout ine." Such observations point toward future methods that could encode these discovered patterns as reusable components, narrowing the gap between fully learned and fully hand-designed pipelines.

Limitations and Trade-Offs

Any approach that pushes performance forward carries accompanying constraints, and the agentic formulation is no exception. The most immediate trade-off is compute: test-time program generation and execution require additional compute cycles compared with a single forward pass of a feed-forward network. In settings where inference latency is strictly constrained, the agentic approach may be less suitable unless the extra compute can be amortized or parallelized.

Another consideration is the reliability of the agent's program synthesis. While the agent outperforms fixed pipelines across most tasks, the 16th benchmark setting shows competitive but not surpassing performance. This suggests that for certain geometric subproblems, the space of reasonable programs may be well-explored by existing methods, or the agent's general reasoning capacity may not yet contain the right primitives for that specific subproblem.

There is also the question of tool availability. The agent's performance is bounded by the geometric methods provided as tools. If the tool set lacks a necessary component—say, a robust estimator for a rare sensor configuration—the agent cannot invent that component from scratch; it can only choose among what is given. This means the formulation's upside depends in part on the breadth and quality of the available geometric primitives.

Finally, interpretability of the agent's reasoning, while improved relative to black-box models, still operates at the level of generated code rather than explicit causal explanations. The programs are readable but may combine primitives in novel ways that are not immediately intuitive. Future work may seek to extract higher-level invariants from these programs to produce more accessible explanations.

What It Means for Developers

From a practitioner's standpoint, the agentic approach introduces a new workflow for geometric perception. Instead of selecting a model architecture and tuning it on a training set, a developer can specify the task in natural language and provide access to a library of geometric tools. The agent then constructs a custom reasoning program for each input. This lowers the barrier to experimenting with new combinations of geometric primitives, since the agent handles the sequencing and conditional logic.

For teams building vision-based robotic or augmented reality systems, the ability to adapt on the fly is valuable. Systems that operate in unstructured environments—where the next frame may present novel lighting, motion patterns, or object configurations—can benefit from a perception pipeline that does not assume a fixed inference path. The agentic framework formalizes this adaptability, even if the specific implementation described here remains a research prototype.

On the tooling side, the paper suggests that future geometric perception frameworks could expose their components as programmable primitives, designed with the expectation that an agent will compose them at test time. This could take the form of well-documented Python functions, small DSLs, or even declarative schemas that describe what each primitive computes, its input/output contract, and any numerical invariants it respects. Developers building such frameworks would be providing the "tools" that the agent reasons over, effectively outsourcing the inference-procedure design to the agent while retaining control over the available geometric primitives.

Even outside of geometric perception, the paper's core idea—using test-time computation to search over inference procedures—generalizes to other domains where visual reasoning must contend with variability and uncertainty. Any area where fixed pipelines struggle to accommodate out-of-distribution or unusual inputs may find a parallel in the agentic approach.

In summary, Agentic Geometric Perception presents a minimal instantiation—a general coding agent, a natural language prompt, and a set of geometric tools—that achieves state-of-the-art results across 12 tasks and 16 benchmark settings. The accuracy gains, reaching up to 5.8x in some cases, demonstrate the potential of test-time search over reasoning strategies. The generated programs also offer a window into the kinds of geometric reasoning combinations that prove effective, offering a roadmap for both improved agent designs and new classes of geometric primitives. While compute cost and tool availability impose practical limits, the approach opens a path toward more adaptable, input-aware geometric perception systems.

Read the paper on arXiv