Fourier-based methods for Variable Astronomy
The Astronomical Journal Volume 168, Number 6, article 241, 18 pp. (2024)
View paper on Institute of PhysicsFast and effective series analysis is at the heart of reliable variable astronomy. My 2023 paper describes in detail how this was implemented specifically for the archival NEOWISE mission. However, there are some generalizeable ideas I stumbled across, the best of which I’d say is the FEFT.
The Finite Embedding Fourier Transform
One small algorithmic innovation that produced great results was the FEFT - finite embedding Fourier transform. It’s relatively simple, but it solves a real issue with deep models and traditional signal processing methods.
The core problem is that standard feed-forward blocks or networks are operators on vector spaces of definite size.
Such a function has no natural generalization to input spaces of dimension , unless you can say something about the preservation of coordinates.
This is inconvenient in timeseries analysis, where series of the same type might have wildly differing entry counts.
One solution to this is the convolutional network, which consists of fixed-size kernels slid across the data. However, this still yields a dimension dependent on the input dimension:
for a sufficiently padded, zero dilation convolution over one dimension.
This is pesky— without some pooling or aggregation step, you won’t be able to directly use a fixed-size feedforward block afterward. In addition, it suffers the typical shortcomings of shallow CNNs, such as limited receptive fields in shallow networks.
Really, we want an operator which can accept a variable-dimension input, and produce features in a fixed output space. The FEFT is exactly this operator, with a complete receptive field and generalizeable over variable-dimension input spaces.
The FEFT does this well for signals with some periodic element, and particularly sinusoidal ones due to its Fourier basis (though the same finite-embedding principle may similarly be implemented with other bases such as wavelets).
The key idea is this: instead of sampling the complete frequency set from to , sample some fixed frequencies not necessarily within any bounds, and ascend to an optimal basis which extracts the relevant features depending on the training set and ultimate objective.
This can be nicely visualized from the Vandermonde matrix:
The full DFT operator can be written as an elementwise exponential of an outer product, with one vector cleanly representing time and the other frequency.
Then
where the exponential is taken elementwise, and
and
Thus, we can define a family of DFT-like transformations parameterized by two vectors and :
where cleanly controls the resultant Fourier basis. The FEFT is just a generalization, where may be a real-valued vector of any dimension, and optionally updated either through the following direct gradient methods, or as a part of a large parameter set in a deep learning setting.
The direct gradient rule for the FEFT can be used to find a locally optimal in a given vector space for a given dataset with gradient-based optimization. Naturally, we want to maximize signal. Reformulating to the single-frequency expression:
with the convention
We naturally should want to increase signal, i.e. the energy captured by our particular basis set. The correct objective is thus:
Where indicates the Hermitian transpose and corrects for the nonorthogonality of the moving Fourier basis towards a joint fit, assuming is nonsingular.
Taking derivatives with respect to the frequency parameters , define
Using
the gradient becomes
For the second derivative, define
along with
Then the Hessian entries are
Thus, near a nondegenerate optimum, we can achieve fast local convergence using a simple second-order update:
For any fixed , this is equivalent to the least-squares-optimal joint fit using a Fourier basis of this size. However, optimization over itself remains globally nonconvex in general, so modern methods for gradient descent (ascent) may prove useful depending on the properties of .