VisFlow: Interpretable Flow Matching for Visibility Reconstruction, Characterization, and Recognition
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. 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.
Figures & tables
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) C-VAE ( Harvey et al., 2022 ) | 0.84 0.04 | 0.78 0.04 | 0.69 0.03 | 0.72 0.03 |
| (b) GNN ( Cui and Wei, 2023 ) | 0.86 0.06 | 0.86 0.06 | 0.69 0.05 | 0.73 0.06 |
| (c) Mesh ( Lionar et al., 2025 ) | 0.84 0.06 | 0.82 0.11 | 0.69 0.05 | 0.71 0.05 |
| (d) VisDiff ( Mahesh et al., 2026 ) | 0.86 0.04 | 0.80 0.04 | 0.74 0.03 | 0.76 0.03 |
| (e) VisFlow + Optimization (Ours) | 0.94 0.03 | 0.91 0.05 | 0.91 0.05 | 0.91 0.05 |
| F1 Threshold | Distance Threshold | VisDiff ( Mahesh et al., 2026 ) | VisFlow + Optimization |
|---|---|---|---|
| 0.70 | 0.01 | 0.89 0.28 | 1.00 0.00 |
| 0.70 | 0.05 | 0.68 0.29 | 1.00 0.01 |
| 0.80 | 0.01 | 0.03 0.16 | 0.95 0.17 |
| 0.80 | 0.05 | 0.00 0.00 | 0.95 0.19 |
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) C-VAE ( Harvey et al., 2022 ) | 0.79 0.05 | 0.05 0.02 | 0.32 0.08 | 0.08 0.03 |
| (b) GNN ( Cui and Wei, 2023 ) | 0.49 0.13 | 0.06 0.03 | 0.96 0.03 | 0.11 0.05 |
| (c) VisFlow(Ours) | 0.99 0.00 | 0.83 0.08 | 0.89 0.05 | 0.86 0.06 |
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) Visibility Verifier Network | 1.00 0.00 | 1.00 0.00 | 1.00 0.00 | 1.00 0.00 |
| (b) Transformer Architecture | 0.91 0.02 | 0.89 0.03 | 0.76 0.05 | 0.82 0.04 |
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) C-VAE ( Harvey et al., 2022 ) | 0.74 | 0.72 | 0.70 | 0.70 |
| (b) GNN ( Cui and Wei, 2023 ) | 0.73 | 0.79 | 0.69 | 0.67 |
| (c) Mesh ( Lionar et al., 2025 ) | 0.75 | 0.74 | 0.72 | 0.71 |
| (d) VisDiff ( Mahesh et al., 2026 ) | 0.92 | 0.91 | 0.91 | 0.91 |
| (e) VisFlow + Optimization (Ours) | 0.97 | 0.98 | 0.96 | 0.97 |
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) MSE Loss | 0.87 0.05 | 0.81 0.04 | 0.75 0.03 | 0.77 0.03 |
| (b) MSE + Visibility Loss | 0.89 0.02 | 0.84 0.04 | 0.82 0.04 | 0.83 0.04 |
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) VisFlow | 0.89 0.02 | 0.84 0.04 | 0.82 0.04 | 0.83 0.04 |
| (b) VisFlow + Optimization | 0.94 0.03 | 0.91 0.05 | 0.91 0.05 | 0.91 0.05 |
| (c) Optimization | 0.88 0.04 | 0.81 0.07 | 0.88 0.04 | 0.83 0.06 |
| F1 Threshold | Distance Threshold | VisFlow + Optimization | VisFlow |
|---|---|---|---|
| 0.70 | 0.01 | 1.00 0.00 | 1.00 0.00 |
| 0.70 | 0.05 | 1.00 0.01 | 0.76 0.21 |
| 0.80 | 0.01 | 0.95 0.17 | 0.51 0.47 |
| 0.80 | 0.05 | 0.95 0.19 | 0.36 0.35 |
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) Cont-VisDiff | 0.88 0.02 | 0.82 0.03 | 0.83 0.03 | 0.82 0.03 |
| (b) VisFlow | 0.89 0.02 | 0.84 0.04 | 0.82 0.04 | 0.83 0.04 |
| (c) Cont-VisDiff + Optimization | 0.94 0.02 | 0.91 0.03 | 0.91 0.03 | 0.91 0.03 |
| (d) VisFlow + Optimization | 0.94 0.03 | 0.91 0.05 | 0.91 0.05 | 0.91 0.05 |
| F1 Threshold | Distance Threshold | Cont-VisDiff | VisFlow |
|---|---|---|---|
| 0.70 | 0.01 | 0.05 0.10 | 1.00 0.00 |
| 0.70 | 0.05 | 0.01 0.00 | 0.76 0.21 |
| 0.80 | 0.01 | 0.05 0.10 | 0.51 0.47 |
| 0.80 | 0.05 | 0.01 0.00 | 0.36 0.35 |
| Acc | Prec | Rec | F1 | |
|---|---|---|---|---|
| (a) VisDiff ( Mahesh et al., 2026 ) | 0.84 0.05 | 0.78 0.04 | 0.72 0.03 | 0.74 0.03 |
| (b) Cont-VisDiff | 0.88 0.02 | 0.81 0.04 | 0.82 0.03 | 0.82 0.03 |
| (c) VisFlow | 0.89 0.02 | 0.82 0.04 | 0.83 0.04 | 0.83 0.04 |
| Baselines | Link Diameter (Avg / Std) | Min | Max |
|---|---|---|---|
| MNIST ( LeCun, 1998 ) | 1.83 / 0.50 | 1.0 | 4.1 |
| COCO 2017 ( Lin et al., 2014 ) | 1.32 / 0.25 | 1.0 | 3.823 |
| VisDiff ( Mahesh et al., 2026 ) | 4.4 / 2.2 | 1.0 | 9.0 |
| VisFlow | 6.5 / 2.32 | 1.0 | 11.0 |
Flow Matching
Flow matching learns continuous-time vector fields that transport simple noise distributions into data for efficient generative modeling.
See all 663 papers