arXiv:2609.00521cs.CVSep 2026

Manuscript Offprint

arXiv:2609.00521

Soft-Argmax for the Projective Plane via the Veronese Embedding

Benjamin El-Zein, Dominik Eckert, Paul Zech, Christopher Syben, Bernhard Geiger, Steffen Kappler, Sebastian Stober

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

ABSTRACT

From horizon detection to fibre structures in X-ray imaging, many vision tasks recover lines via peak detection in Hough space H=S1×RH = S^1 \times \mathbb{R}, the domain of orientation-offset pairs (θ,ρ)(\theta, \rho). Differentiable pipelines extract coordinates via soft-argmax, a probability-weighted average that is only meaningful in a globally linear space. However, (θ,ρ)(\theta, \rho) and (θ+π,−ρ)(\theta + \pi, -\rho) describe the same undirected line, so HH double-covers the space of undirected lines H/Z2H/\mathbb{Z}_2: a Möbius strip, obtained by identifying each pair under Z2\mathbb{Z}_2 action. Soft-argmax operates on the cover HH, but since H/Z2H/\mathbb{Z}_2 admits no linear structure, it tears geometrically adjacent lines apart. Thus we need a Z2\mathbb{Z}_2-invariant embedding of lines into a linear space, on which soft-argmax is well-defined. We achieve this by parametrising lines via unit-norm homogeneous vectors ℓ=(1+ρ2)−1/2(cos⁡θ,sin⁡θ,−ρ)⊤∈R3\ell = (1 + \rho^2)^{-1/2}(\cos \theta, \sin \theta, -\rho)^\top \in \mathbb{R}^3 and applying the Veronese map v2(ℓ)=ℓℓ⊤v_2(\ell) = \ell \ell^\top that satisfies v2(ℓ)=v2(−ℓ)v_2(\ell) = v_2(-\ell). This descends continuously to an embedding of the quotient H/Z2H/\mathbb{Z}_2 into the linear space Sym2(R3)\mathrm{Sym}^2(\mathbb{R}^3), where the antipodal ambiguity vanishes. Line extraction becomes a barycentre in Sym2(R3)\mathrm{Sym}^2(\mathbb{R}^3), projected back via its leading eigenvector. We validate our Veronese soft-argmax in a Hough transform-based network across all resolvable lines, confirming uniform and seam-free recovery. We further derive that the L2L_2-loss on isometrically weighted Veronese embeddings equals the squared chordal distance between lines in projective space, enabling a geometrically precise training objective.

1 INTRODUCTION

Recovering a geometric object from an image requires committing to a parametrisation of it. A line in the plane admits many: a pair of endpoints, a slope and an intercept, or an orientation and a signed offset. For a classical algorithm the choice is a matter of convenience. For a neural network it is decisive, because the network has to learn the parametrisation, and what it produces is a vector in a linear space. The representation must therefore carry the geometry of the object into a space where linear operations mean something.

Two families of differentiable pipelines regress the parameters of a line (Figure 1). The fully learned pipeline of Figure 1a maps the image to the components of a parametrisation p⃗\vec{p} directly and must discover the geometry of lines from data alone. The known-operator pipeline of Figure 1b instead inserts a fixed differentiable operator that already encodes that geometry, which lowers the maximum error bound and the number of free parameters (Maier et al., 2019). For lines that operator is the Hough transform (Duda & Hart, 1972). It bins every line by its orientation θ\theta and signed offset ρ\rho, giving p⃗=(θ,ρ)\vec{p} = (\theta, \rho). So a line in the image becomes a peak in the resulting accumulator, and recovering the line reduces to reading out that peak's location.

The Hough accumulator hence parametrises the space of undirected lines, but as a flat rectangle. However, this space is not flat. A line has no direction, so (θ,ρ)(\theta, \rho) and (θ+π,−ρ)(\theta + \pi, -\rho) denote the same one. Per convention the accumulator indexes only the half-circle θ∈[0,π)\theta \in [0, \pi) such that it stays unique. The two angular edges are therefore glued with a reflection in ρ\rho, and the resulting space is a Möbius strip.

Figure

Figure 1: Two differentiable pipelines that regress the parameters of a line. (a) A fully learned pipeline regresses a parametrisation p⃗\vec{p} and must discover line geometry from data. (b) A known-operator pipeline applies a fixed Hough transform and extracts the peak with a readout. We build on (b) and study the readout.

The readout is where this matters. A hard argmax selects a single cell and is well defined on the strip, but it passes no gradient. Differentiable pipelines use a differentiable version of the argmax, which returns the probability-weighted average of the cell coordinates. Averaging presupposes a linear space. Across the seam it is thus ill posed: two adjacent lines may get averaged into a third that resembles neither, even though the accumulator mass is concentrated on nearly the same line. Hough-based pipelines either inherit this readout unchanged or avoid it with a separate, non-differentiable peak extraction.

Two routes lead out. One redefines the operation non-trivially on the curved space. We take the other and change the representation, so that the linear operation becomes well posed. A line is described by a unit homogeneous vector ℓ\ell that is fixed only up to sign, and we replace it by the outer product ℓℓ⊤\ell\ell^\top. Thanks to sign-invariance, both representatives of a line map to the same point, and that point lives in a linear space. Our proposed Veronese soft-argmax (VSmax) operates in this space and returns a barycentre of symmetric matrices. The line it encodes is recovered in closed form as the leading eigenvector.