Joseph Carragher

The Spherical Simplex Unscented Transform

I'm writing this solely because I cannot find existing literature that clearly explains the algorithm outlined by Julier in 20031:

image

I found this outline to be very unintuitive upon my first reading and, since understanding it, I still dislike the notation for the weights. What follows is hopefully an intuitive buildup to this final algorithm for anyone interested in its application.

The Unscented Transformation

The unscented transformation (UT) was first introduced by Jeffrey Uhlmann in his 1995 Ph.D. thesis2 as a way to nonlinearly transform a distribution by approximating the distribution rather than the transformation. Let's say this distribution is p~𝒩(a,A). He defined a discrete "proxy distribution" described by the set of points a±nA with the same mean and covariance as p (what we call "sigma points" now), each of which is put through the full nonlinear transformation. The approximation here lies in the recovery of the distribution after—the transformed set's mean and covariance is recovered to represent the transformed distribution. This set was soon after expanded to include the mean a3 in a paper that included an intuitive diagram of this process:

image

This method can offer significantly more accurate results through certain transformations than the transformation linearization required to transform a covariance by ΦΣΦT (e.g., scenarios where the unscented Kalman filter outperforms the extended Kalman filter). A potential drawback of this method lies in the required 2n+1 nonlinear transformations, one for each sigma point, for an n dimensional distribution. If your dimension is large or if your transformation is computationally intensive, you may desire a more minimal set of sigma points. Herein lies the benefit of a simplex representation of the distribution.

Towards the Spherical Simplex UT

The set of points originally defined by Uhlmann is not unique in representing a given distribution. That is, other points may also match its mean and covariance. While a truly minimal set only requires n+1 points in the form of a simplex1, we choose to focus on the more numerically stable n+2 that represent a simplex with vertices of equal distance from the origin (hence the term spherical simplex—the verticies of the simplex lie on a sphere) with an additional point at the origin.

sigmapoints4

Above is an example of such a simplex for a standard normal distribution in ℝ3, 𝒩(03×1,I3×3). The thought behind the spherical simplex UT is that, by spreading the simplex vertices "evenly" around the mean at a distance proportional to the covariance, their mean and covariance match the desired distribution without needing the full set of 2n+1 points in the original UT. Here, each vertex lies ~1.94 units from the origin on the surface of the sphere with the exception of the origin point.

From here, this UT is treated as any other set of sigma points—the set S representing p is passed through some nonlinear transformation f to yield S′. The transformed distribution is then approximated to its first two moments via

μp′=∑iWiSi′Σp′=∑i(Si′−μp′)WI(Si′−μp′)T

where Wi refers to the weight on the i-th component.

As an aside, I had at one point grown curious as to why Bessel's correction isn't used when recovering variance/covariance here. It's because Bessel's correction applies when the samples are i.i.d random in nature4, whereas the UT is a deterministic set that describes the full population—thus, there is no bias to correct.

Arriving at the Spherical Simplex UT

Now that we understand conceptually what we're doing and why we want to do it, let's dive into the algorithm at the top.

Step 1: Choose W0

The first step in the outline allows you to tune the weight of the origin point, W0. This allows you to expand or contract the size of the sphere the other vertices lie on—a larger W0 expands the sphere and vice versa.

Step 2: Choose the Weight "Sequence"

This is where my issue lies with this outline. The sequence of Wi described is really just a single weight for all other vertices where the listed n is for the end dimension. This weight applies for all iterations of the sequence built in steps 3 and 4 (the W1 listed). It is not a sequence per se, but a single weight that applies to all outside vertices.

To choose an even weighting of all points (which was done in the above n=3 example), set

W0=1n+2

which results in

Wi=W1=(1−1n+2)n+1=(n+1n+2)n+1=1n+2

That's it. Going forward, I will drop W1 for Wi for clarity. I do not know why only W1 was used in the original outline.

Step 3: Initialize the Vector Sequence

This begins the building of the simplex—first for a standard normal, and then we'll transform them for an arbitrary distribution later. Rather than initially creating the points in the dimension you wish to represent (such as with the original UT), this method builds the sigma points up from a 1-dimensional simplex to an n-dimensional one. This step is for the 1-dimensional simplex.

In the outline, 𝒳ij refers to the i-th sigma point for the standard normal distribution in j-dimensional space. So, for this first step, we make n+2=3 sigma points: 𝒳0,1,21. I like to think of this as a single vector, where

𝒳1=[0−12Wi12Wi]

This describes three points on a line—one lies at the origin, the other two lie at equal distances on opposite sides of the origin. Note again that despite us being in 1 dimension here, the Wi used is still for the n-dimension you aim to end up in. This does not change throughout the sequence. Thus, these intermediate sigma point sets do not represent standard normals in their lower dimensions.

Step 4: Expand the Vector Sequence

This final step iteratively builds 𝒳 up from j=1 to j=n. Generally, this takes the form of

𝒳j=[𝒳0j−1𝒳1,2...jj−10(j−1)×10[−1j(j+1)Wi]1×jjj(j+1)Wi]

The top left and top middle entries simply describe the previous dimension's 𝒳. Under the first entry in the new dimension is a zero. For all other entries, they are shifted to −1j(j+1)Wi in the new dimension. Finally, the new vertex is added with zeroes in all dimensions other than the newest, which is set at jj(j+1)Wi.

As an example, taking the previous initialization into dimension 2 yields

𝒳2=[𝒳01𝒳11𝒳2100−16Wi−16Wi26Wi]=[0−12Wi12Wi00−16Wi−16Wi26Wi]

In this new dimension, the previous origin point has remained at the origin. The two points on either side have been shifted down a small distance in the new dimension. Finally, the new point lies above the origin by double the distance that the previous two points were shifted down by.

This process of creating a simplex in a lower dimension, shifting the outer vertices down in a higher dimension, and adding another vertex farther above them is repeated until you reach the desired dimension.

Step 5: Moving to an Arbitrary Mean and Covariance

While not included in the main figure outlining this UT, a footnote in the original paper1 describes how to transform these to represent an arbitrary distribution. I'll reuse the previous example of the following normal distribution: p~𝒩(a,A). Each sigma point 𝒳i is put through the following affine transformation:

𝒵i=a+A𝒳i

𝒵 is the set of spherical simplex sigma points representing p. These n+2 points can now be passed through whatever nonlinear transformation you desire. After, the transformed set 𝒵′ can be used to approximate the transformed distribution by the aforementioned

μp′=∑iWi𝒵i′Σp′=∑i(𝒵i′−μp′)Wi(𝒵i′−μp′)T

Final Notes

This is not a free lunch—this spherical simplex UT has advantages in runtime and simplicity of tuning, but it is not always going to approximate a transformed distribution as well as other types of UTs. There is no real way to know which will be the most accurate until you simply test them. This is one of the less talked about aspects of the UT and why there are so many types of them.

However, if you need its runtime advantages and the sigma point set works well for your transformation, hopefully this may be of use to you.


  1. The spherical simplex unscented transformation, S. J. Julier↩

  2. Dynamic Map Building and Localization: New Theoretical Foundations, J. Uhlmann↩

  3. New extension of the Kalman filter to nonlinear systems, S. J. Julier and J. Uhlmann↩

  4. Proof of Bessel's Correction, G. Gundersen↩