arXiv:2610.31892cs.CGOct 2026

Manuscript Offprint

arXiv:2610.31892

VisFlow: Interpretable Flow Matching for Visibility Reconstruction, Characterization, and Recognition

Rahul Moorthy, Volkan Isler

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Methods for learning continuous representations, such as latent manifolds, are fundamental and ubiquitous in modern machine learning. Yet many geometric objects combine continuous shape information with discrete combinatorial structure. This combination presents a fundamental challenge for representation learning because small geometric perturbations can induce abrupt changes in the underlying discrete representation. As a result, the smoothness assumptions that make continuous representations effective no longer hold. Polygons provide a canonical example. Their vertex locations vary continuously, but infinitesimal changes in geometry can dramatically alter the associated visibility graph. Existing methods address the inverse mapping from visibility graphs to polygon geometry using vertex-, triangulation-, or signed-distance-function (SDF)-based representations. Vertex- and triangulation-based approaches construct polygons through explicit geometric operations. However, they are less effective at modeling the relationship between geometry and visibility. SDF-based approaches capture this relationship more naturally. Their intermediate states, however, do not correspond to explicit stages of polygon construction.

We present VisFlow, a novel, interpretable flow formulation that combines continuous SDF representations with explicit polygon evolution. Our method models polygon generation as rectified flow in the latent space of continuous SDFs. Standard rectified flow typically constructs linear paths between samples from an unstructured source distribution and the target distribution. The resulting intermediate states are not tied to stages of polygon formation. In contrast, VisFlow learns approximately linear latent paths to represent explicit stages of polygon growth along SDF normals. We evaluate VisFlow on Visibility Reconstruction and Visibility Characterization. Visibility Reconstruction generates one polygon consistent with a visibility graph G, while Visibility Characterization characterizes all such polygons. VisFlow maintains 20% more visibility relations on Visibility Reconstruction and improves coverage by 30% on Visibility Characterization compared to state-of-the-art methods. We further show that VisFlow generalizes to Visibility Recognition, where the input graph is not guaranteed to be valid. We also demonstrate that VisFlow extends to a real-world protein reconstruction problem by applying its trajectory-supervision formulation to generate protein structures from contact graphs.

1 INTRODUCTION

Learning the mapping from a graph to its geometric realization arises in problems such as molecular conformation generation, spatial layout reconstruction, and mesh generation. Existing approaches often use continuous geometric attributes, such as coordinates or distances, alongside graph connectivity to represent the underlying geometry. Local perturbations produce small changes in these attributes, keeping nearby geometric realizations close in the representation space. The resulting continuity forms a smooth geometric manifold that learning models can exploit. Purely discrete graph representations lack an analogous continuous structure. Small geometric perturbations can change several edge relations simultaneously, causing similar realizations to map to substantially different graph representations. Therefore, learning the inverse mapping from a discrete graph to its geometric realization is more difficult because nearby geometries are not necessarily nearby in the representation space.

In this paper, we study one such discrete representation: the visibility graph of a polygon. Two polygon vertices are connected by an edge if the line segment joining them lies entirely within the polygon. Small perturbations of the polygon can change several visibility relations simultaneously. Prior work has explored triangulation, vertex-based, and signed distance function (SDF) representations for learning polygon realizations from visibility graphs. Triangulation and vertex-based representations explicitly model geometric construction. These representations have shown promising results in mesh generation, where continuous geometric information is available. However, they struggle to preserve the target visibility structure when conditioned only on a discrete visibility graph. A visibility graph contains no distance information between vertices. In contrast, SDF representations provide a continuous distance representation of the polygon and capture the relationship between polygon geometry and visibility more effectively. Existing SDF-based methods start from Gaussian noise and perform diffusion directly in grid space. Their generative process therefore does not explicitly model polygon formation. Our work asks whether the construction-based formulation of geometric representations can be incorporated into SDF-based generative modeling while retaining the strong relationship between SDFs and visibility?

Figure

T = 1.0

T = 0.0

Figure

Figure 1: Rectified Flow vs polygon evolution. Top: SDF rectified flow starts from Gaussian noise and produces intermediate grid states that are not explicitly tied to stages of polygon formation. Bottom: Our formulation starts from a triangle and evolves through intermediate polygon states toward the final polygon.

We present VisFlow, a geometrically meaningful flow-matching model that combines a continuous SDF representation with explicit polygon evolution. Standard flow matching typically learns trajectories from an unstructured source distribution, such as Gaussian noise, to the target data distribution. The intermediate states along such trajectories are not tied to stages of polygon formation. Figure 1 illustrates the contrast between such unstructured intermediate states and the explicit polygon evolution used in VisFlow. VisFlow instead learns an SDF latent representation from polygon trajectories that evolve from an initial triangle to the target polygon. The latent representation is trained so that the intermediate polygon states lie along approximately linear paths. We then use rectified flow to learn the transformation from the initial triangle latent to the target polygon latent, conditioned on the visibility graph. We additionally learn a differentiable Visibility Prediction Network that provides visibility supervision during training and guides optimization of the generated polygon toward the target visibility graph during inference. We further apply the same trajectory-supervision formulation to protein structure generation from contact graphs, demonstrating its use with a different underlying structural evolution process.

Our contributions are as follows:

• We present VisFlow, a geometrically meaningful flow-matching model that combines a continuous SDF representation with explicit polygon evolution for visibility-conditioned polygon generation. We also introduce a Visibility Prediction Network that provides dif-ferentiable visibility supervision during training and enables visibility-guided optimization during inference. VisFlow improves F1-score by 20% on Visibility Reconstruction and improves coverage by 30% on Visibility Characterization compared with state-of-the-art methods.

• We extend the trajectory-supervision formulation of VisFlow to protein structure generation from contact graphs.

• We present a new dataset for Visibility Reconstruction with 22% greater shape diversity than the state-of-the-art dataset.

References (26)