Coordinate and value frames
A partition of a field can sit anywhere in the domain, be large or small, stretched along one axis, and carry values of any offset and any range. An encoder that had to model all of this would spend its capacity on the location, size and amplitude of a feature rather than on its shape. PartNorm removes these quantities before the encoding and stores them separately.
Let ℐp be the points assigned to partition p and cp its center. The coordinate frame shifts the points to the center and scales every axis by the largest distance from it,
x̃i = (xi − cp) ⊘ sp, sp,d = maxi∈ℐp |xi,d − cp,d|,
with ⊘ the elementwise division, so that every partition fills the box [−1, 1]2 whatever its size and shape. The value frame maps the values of the partition onto [−1, 1] through their mid-range and half-range,
ũi = (ui − μp) / σp, μp = ½(max u + min u), σp = max{½(max u − min u), σmin},
with the extrema taken over the partition and a floor σmin = 10−8 that keeps the scale positive. The mid-range and the half-range, rather than a mean and a standard deviation, guarantee that every normalized value lies in [−1, 1], the range the decoder is trained to produce.
Static features
The quantities that define the frame, namely the center, the axis scales, an orientation angle, the value shift and the logarithm of the value scale, (cp, sp, θp, μp, log σp), are retained as the static part ζs,p of the embedding. The encoder reads only the normalized pairs (x̃i, ũi) and returns the morphologic part ζm,p, which describes only the normalized shape of the partition. The embedding of a partition is the pair ζp = (ζs,p, ζm,p). The value scale is stored as a logarithm, so that a processor which predicts it works on a quantity of moderate range whatever the amplitude of the field.
Interactive PartNorm
The widget below computes this frame for a field of three radial-sine modes at 8192 points cut by the inference partitioner, without overlap.
Degenerate partitions
Two degenerate cases are treated separately. An empty partition has no extrema and receives μp = 0 and σp = 1. A constant partition has a mid-range but no range, and only its scale is raised to the floor, so it decodes to μp up to a term of order σmin, and the constant is reproduced to floating-point precision whatever the network returns.
Canonical rotation
The encoder can optionally rotate every partition into a canonical orientation, by an angle read from the dipole or the quadrupole moment of its normalized values, and the decoder replays it. The trained backbones do not apply this rotation, so θp = 0 and the orientation of a partition stays in its morphologic embedding, since the encode-decode map is approximately equivariant to rotation without it. The rotation can nonetheless be switched on at inference with the trained weights unchanged. The decoder replays the stored angle, so encoding and decoding stay exact and the reconstruction is essentially unaffected, and rotated copies of one partition then map to the same morphologic embedding.
Coincidence of similar partitions Read more about the effective spatial frequency →
Normalization carries structurally similar partitions to nearly identical inputs, whatever their global context, so their embeddings coincide. A high-frequency field observed in a small partition normalizes to almost the same input as a low-frequency field in a large one, because within a partition absolute scale is immaterial and only the number of oscillations across the partition survives. The model therefore needs to have seen partitions of comparable normalized morphology rather than fields of the same physical type, which is what the effective spatial frequency measures.
The figure below follows three pairs of inputs through the frame, each partition encoded as a single partition by the analysis backbone, with the optional rotation switched on so that a rotated input lands in the same orientation. Each pair tests one property, quantified by the cosine similarity of the two morphologic embeddings ζmA and ζmB.
- sp
- θp
- μp
- σp
- sp
- θp
- μp
- σp
In the first pair, input B oscillates three times faster than input A and is also rotated, rescaled and shifted in its values, and its partition is three times smaller. Each of these differences is a transformation the frame removes, and all of them are absorbed by the static features, which differ widely (B's scale is a third of A's, its value scale nearly three times larger). The normalized partitions coincide, and so do the embeddings, with a cosine similarity of 99.7%.
The second pair distinguishes what the frame removes from what it does not. The two inputs are one function on partitions of the same size, B being A scaled by 1.5 and shifted by 2.5, so that on one color scale they take its opposite ends, but B's value scale and shift also vary mildly across the partition. The frame removes one value shift and one value scale per partition, which absorbs the difference of the two frames entirely, as μp and σp show. The variation across the partition is not a transformation of the whole partition, so it survives into the normalized values, and the embeddings agree closely but not exactly, with a cosine similarity of 89.7%. A heterogeneous frame is therefore normalized away only to the extent that it is constant over a partition, and a finer partition, over which it varies less, removes more of it.
In the third pair the inputs are two independent functions of different morphologies. Their normalized partitions stay different, and so do their embeddings, with a cosine similarity of 69.7%. Normalization therefore identifies partitions that differ only by the transformations it removes, and keeps apart partitions that differ in their morphology, so one encoder serves fields of any location, size and amplitude without conflating fields of different shape.
The factorization extends the shape-gain decomposition of the Phaedra tokenizer, which separates the shape of a feature from its magnitude on a regular grid, to a full local frame on every partition of an arbitrary cloud.
Restoring the frame at decoding
The decoder replays the frame, evaluating the normalized field at the frame coordinates of a query point and mapping it back through the value frame, and a point that lies in several partitions averages their estimates,
u(x) ≈ 1|𝒜(x)| ∑p∈𝒜(x) ( μp + σp 𝒟( ζm,p, (x − cp) ⊘ sp ) ),
with 𝒜(x) the partitions that contain x. Since the frame is replayed exactly, the error of encoding and decoding a partition is the error of the normalized decode multiplied by σp. A partition whose values barely vary therefore contributes almost no error, whatever its offset, and the error of a field concentrates in the partitions that hold most of its variation.
Equivariance by construction
The frame makes the encode-decode map, which encodes a field and decodes it again, equivariant to the transformations it normalizes away. A translation or a dilation moves the centers and the extents of the partitions with the points, cp ↦ scp + c and sp ↦ ssp, for a translation c and a dilation s, and leaves the normalized coordinates unchanged. A shift or a positive scale of the values moves the mid-range and the half-range, μp ↦ σμp + μ and σp ↦ σσp, for a value scale σ > 0 and a value shift μ, and leaves the normalized values unchanged. The encoder reads only the normalized pairs, so the morphologic embedding is invariant to all four transformations, the static features take them up, and the decoder, which replays them, returns the transformed reconstruction. The equivariance is exact and holds by construction on an unstructured cloud, and no latent capacity is spent on the location, size or amplitude of a feature.
The paper measures this on the analysis backbone, over translations up to 100 disk radii, dilations between 1/100 and 100, value shifts up to ±1000 times the root mean square of the field, and value scales between 1/1000 and 1000. Over all four ranges the error of the transformed field does not change, and the equivariance error, the distance between the reconstruction of the transformed field and the transformed reconstruction stays well below the reconstruction error. Rotation, which the backbones do not normalize, changes the embeddings, yet over a full turn the error does not change and the equivariance error stays below the reconstruction error.
When the partitions are recomputed on the transformed cloud instead of carried along, the partitioner's random curve and its finite iterations give slightly different cells, and the equivariance error then measures how much the reconstruction depends on where the cells fall. It stays below the reconstruction error as well.