Two Numbers per Line: Segment-Level Lifting for Sparse Monocular Scene Completion

A single photograph cannot say how far away anything is. Every pixel could come from any point along its viewing ray. Current single-image 3D scene completion methods, which fill a voxel grid with occupancy and semantic labels, handle this in one of two ways. Some broadcast image features along the whole ray and let a 3D network sort it out, which smears features into empty space. Others predict a depth for every pixel and trust it. That trust is misplaced: on NYUv2, the depth map feeding MonoMRN has 0.364 m RMS error against 0.08 m voxels (MonoMRN). Straight edges in the image offer a much stronger constraint that these pipelines ignore. A detected 2D line segment pins its 3D line to a known plane through the camera center, the "interpretation plane." Inside that plane, exactly two unknowns remain: how far away the line is, and how much it tilts toward or away from the camera. Once those two numbers are fixed, the depth of every pixel along the segment follows in closed form.

We propose to predict those two numbers per segment instead of a depth per pixel. The resulting 3D lines would then seed a sparse voxel decoder, one that stores and computes only occupied cells, so that it grows geometry outward from structural edges rather than from smeared rays. The target is the failure that dense and ray-broadcast methods share: thin structures such as poles, table legs, window frames and wall–ceiling junctions. These are sub-voxel in width but long, and so they are well described by lines.

Core Claim

Write the camera center as the origin. A 2D segment gives the unit normal $n$ of its interpretation plane. The Plücker representation of a 3D line (a direction $d$ plus a moment $m = p \times d$, constrained by $d^\top m = 0$) then has its moment direction fixed to $\pm n$ by the image alone. The orthonormal line representation of Bartoli et al., summarized in the file, factors a line into a rotation and a distance angle. In that factorization, two of the four degrees of freedom are observed from the image. The remaining two are the unobserved residual.

We choose these two coordinates to match the two classical monocular ambiguities. The first is the depth $z$ of the segment midpoint along its ray, which captures the near-small versus far-large ambiguity described by Saxena, Sun and Ng. The second is the in-plane tilt $\phi$ between the line direction and the midpoint ray, which captures the parallel versus oblique ambiguity noted by Barron et al.. By the law of sines, a pixel on the segment whose ray makes in-plane angle $\alpha$ with the midpoint ray has depth

$$z(\alpha) = \frac{z \sin\phi}{\sin(\phi - \alpha)},$$

so the whole segment's geometry is a function of $(z, \phi)$. The Plücker constraint holds by construction, because $d$ is built inside the plane orthogonal to $n$. The parameterization never refers to segment endpoints. This matters because detected 2D endpoints are unreliable under occlusion and fragmentation, so two fragments of the same edge can be merged by comparing $(n, z, \phi)$ rather than endpoint positions.

The claim has three parts. Segment-level lifting in this parameterization should give more accurate 3D edges than per-pixel depth followed by line fitting. Seeding a coordinate-expanding sparse decoder from these lines should reduce false occupancy along viewing rays. The combination should improve thin-class completion accuracy at a fraction of dense-grid memory.

Research Program

The 2D stage runs a wireframe parser, HAWP, alongside an image feature pyramid. Multi-scale fusion has a specific job here, not a generic one. Scale $z$ is a scene-level quantity, so it is predicted from features pooled along the segment at coarse pyramid levels. Tilt $\phi$ depends on local perspective cues such as convergence toward vanishing points, so it draws on fine levels. A learned gate decides the per-segment mix, in the spirit of the mask-guided gating of Ren et al..

Tilt is an unsigned angle, so we predict the doubled-angle unit vector $(\cos 2\phi, \sin 2\phi)$ to avoid wrap-around. Depth is predicted as a log-depth with a small mixture over hypotheses. The mixture keeps the scale ambiguity explicit instead of collapsing it to one guess.

A lightweight cross-segment attention layer lets parallel segments share tilt information and lets collinear fragments agree. This is a learned version of the co-linearity and parallelism priors used by PP-MRF and Pittner et al..

The 3D stage voxelizes each lifted line, with a thin tube around it sized by the predicted uncertainty. These voxels form the initial active set of a sparse tensor. Pixel features are written only into voxels at the depths given by the equation above, not along whole rays. A coarse low-resolution occupancy branch covers textureless regions that contain no lines.

A sparse encoder–decoder then grows geometry outward from these seeds. It uses submanifold convolutions, which compute outputs only at already-active voxels, as in the U-Nets of PointContrast. It expands into new voxels with transposed sparse convolutions and learned pruning, reusing the generative decoder of GSDN.

The resulting pipeline differs from each of its neighbors in one specific way. Langlois et al. show that 3D lines can bound watertight volumes, but they start from given 3D lines. We produce the lines from one image and use them to drive a learned decoder. GSDN expands from sensor points, whereas our starting points are inferred from an image. HoW-3D lifts wireframes from a single image, but regresses 6D endpoints for isolated CAD objects and outputs no volume. EdgeDiff finds that midpoint-offset regression stabilizes learning compared with endpoints, which supports anchoring on the midpoint. It works from LiDAR, where depth is already given. RSL-BA optimizes Plücker lines across frames. We borrow its constraint-preserving line representation but replace multi-frame optimization with single-image regression.

Supervision for $(z, \phi)$ on NYUv2 and SemanticKITTI comes from fitting 3D lines to ground-truth depth and LiDAR at detected 2D segments, with a robust fit that rejects segments straddling depth discontinuities. The completion losses follow MonoScene.

Baselines

The naive reference is MonoScene's line-of-sight feature projection with a dense 3D U-Net (MonoScene). It reports 26.94 mIoU on NYUv2 and 11.08 mIoU on SemanticKITTI; NDC-Scene cites it as 11.50 on its split. It represents "do nothing about depth."

The strongest existing method with reported numbers is NDC-Scene, which reasons in a camera-aligned frustum volume. It reports 29.03 mIoU on NYUv2 and 12.70 mIoU on SemanticKITTI. It is the strongest competitor because it attacks the same smearing problem through a different geometric choice.

The most relevant sparse competitor is MonoMRN, a depth-map lifting pipeline followed by sparse recurrent refinement. The file reports only relative gains for it on NYUv2 (+8.99% scene completion IoU, +1.60% mIoU) and on SemanticKITTI, not absolute values, so we will retrain it ourselves.

All methods use the same image backbone, the same training schedule, and the same hyperparameter search budget. Wherever the NDC-Scene and MonoMRN papers do not report per-class results, we retrain them with their released recipes. Beating NDC-Scene means exceeding 29.03 and 12.70 mIoU overall, with a larger margin on thin classes: pole, traffic-sign and trunk on SemanticKITTI; table, chair and window on NYUv2. We also require lower peak GPU memory at equal or finer voxel resolution.

The pivotal ablation targets the lifting step. The first variant is per-pixel depth from a strong monocular estimator (IEBins), followed by robust 3D line fitting on the back-projected segment pixels. We have no Lacuna-reported NYUv2 SSC number for this variant. The second variant regresses the two endpoint depths, which has the same two degrees of freedom but is anchored on endpoints. The third regresses unconstrained 6D endpoints, as HoW-3D does. All three feed the identical sparse decoder.

A second ablation replaces the line seeds with seeds taken from the depth map. This isolates whether the lines, rather than the sparse decoder, drive the gain. On ABC-HoW we evaluate the lifting module alone against HoW-3D's reported 3D structural average precision of 77.9.

Why not just…?

Why not just use a better depth network and fit lines to its output? This is the most serious threat. If a modern depth estimator is accurate at edges, fitting a line to its back-projected pixels recovers $(z, \phi)$ for free. Our reason for doubt is that depth errors concentrate at the depth discontinuities where thin structures live. MonoMRN's 0.364 m error, more than four voxels, is an average that is likely worse at edges. The first lifting ablation settles this directly. It measures 3D line error and thin-class IoU with the same decoder. We will also report depth error restricted to line pixels. If fitting matches segment-level prediction, we will say so and present the sparse line-seeded decoder as the contribution.

Why not just regress the two endpoint depths, since that is also two numbers? The degrees of freedom are identical, so any advantage must come from endpoint independence and the scale/tilt split. Endpoint independence lets occluded or fragmented segments agree. The scale/tilt split lets scale and tilt draw on different feature scales. The endpoint-depth ablation measures this, broken down by segment fragmentation and occlusion. A tie is plausible, and it would narrow our claim about parameterization without affecting the rest of the pipeline.

Why not just feed a line heatmap as an extra input channel to NDC-Scene? Doing so tells the network where edges are, but not where they are in depth. Features would still spread along the frustum's depth axis. We will run this variant and measure false occupancy along viewing rays, defined as voxels between the camera and the first ground-truth surface. Our method should reduce this quantity and the heatmap variant should not.

Decisive Checks

Three results would decide the proposal. The first is whether segment-level lifting beats depth-then-fit on 3D line error and thin-class IoU. The second is whether line seeding cuts along-ray false occupancy relative to MonoScene and NDC-Scene. The third is whether the full model exceeds NDC-Scene's 29.03 and 12.70 mIoU at lower memory.

A negative first result with a positive second would still support the sparse decoder. A negative second result would falsify the central mechanism.