Elamur Research

Single Pulse Detection Algorithms for Real-time Fast Radio Burst Searches using GPUs

Paper · 2019 · Karel Adamek and Wesley Armour

Summary

A radio telescope can record a short burst without the search software identifying it as a candidate. The software must gather enough of the burst into a single measurement to distinguish it from noise, even though it does not know when the burst arrived or how long it lasted. Trying a window of every possible duration at every sample would give excellent coverage for rectangular pulses, but it would also require a great deal of repeated work. The authors examine how much of that work a search can omit and what the omissions cost. Their approach uses GPU parallel computing to search for isolated events such as fast radio bursts.

Both algorithms use boxcar filters, which add the samples inside a window and score the sum relative to the noise expected at that width. A search can lose signal-to-noise ratio because its available windows are the wrong length, because their starting positions miss part of the pulse, or because both problems occur together. The paper derives limits on these losses for rectangular pulses. BoxDIT tests a sequence of widths at every position on a time series that becomes progressively coarser. IGRID builds shifted versions of coarser time series and combines sums from different levels. Both reuse work already done on shorter windows.

In synthetic rectangular-pulse tests, the reported average signal loss ranges from 1% for BoxDIT BD-32 to 3% for BD-8, and from 2% for IGRID IG(3) to 12.5% for IG(1). Tests with Gaussian and double Gaussian pulses show why a strong detection score and an accurate measurement of the pulse are different outcomes. A short window can collect much of the signal near a peak and obtain a higher score than a window covering the full pulse, while reporting a shorter duration and a shifted time. In a comparison using simulated observations, AstroAccelerate also reported more consistent scores across the tested pulse widths than Heimdall, whose detector uses widths separated by powers of two.

For an assumed SKA-MID-like workload, the fastest tested IGRID configuration searched already dedispersed data at 266× real-time speed on an NVIDIA P100 and 500× on a Titan V. The abstract pairs those rates with a mean signal loss of 7%. The detailed rectangular-pulse experiments report their cumulative loss separately. The throughput rates apply to the detection stage. The paper also estimates how many trials that stage could handle at nanosecond sampling intervals, where the amount of data arriving for each trial rises sharply.

Deep dive: Single Pulse Detection Algorithms for Real-time Fast Radio Burst Searches using GPUs

How BoxDIT and IGRID use boxcar filters on GPUs to find fast radio bursts, and how their speed affects signal recovery and pulse measurements. · about 40 minutes to read

The problem and its context

Finding a pulse that may appear only once

An isolated pulse offers little opportunity to improve a detection by waiting for the same signal to come back. The paper places fast radio bursts and rotating radio transients at the center of this problem. These events can be rare, irregular or non-repeating. The same search operation matters for giant pulses and for irregular emission from nulling pulsars. In each case, the data may contain an event whose presence is easier to establish by adding several consecutive samples than by inspecting any sample by itself.

The difficulty is deciding which samples to add. An observed time series contains fluctuations even when no burst is present. Put the window in the wrong place and it may capture only the leading or trailing part of a pulse. Make the window much longer than the event and it brings in noise from outside the burst. A detector has to cope with uncertainty about position and duration simultaneously. The amount of work grows further when it must search many time series generated from the same observation.

These time series arise from dedispersion, a transformation that compensates for the effect of the interstellar medium. The search tries different dispersion measures, or DMs, and produces a time series for each trial. The paper studies the operation that receives such a series and looks for pulses within it. In a full pipeline, dedispersion comes before that operation. Estimation of the noise level and the selection of candidates also affect what eventually gets reported. Keeping those stages distinct is important when interpreting a timing benchmark or comparing scores from different pipelines.

The computational problem has an observational consequence. The authors point to increasing data volumes and acquisition rates, as well as the demand for prompt detections in multiwavelength astronomy. A detection returned quickly can serve an observation in progress. The hardware also has to keep up with incoming data if the search is to run continuously. The paper therefore treats sensitivity and processing time as properties of the same design choice. A fast detector can leave more time for other stages, while a sparse search can give up part of the score that would otherwise make a weak pulse visible.

How earlier searches handled unknown durations

The paper traces the boxcar approach to the matched-filter treatment of Cordes and McLaughlin. In matched filtering, a response function assigns weights to samples according to the kind of pulse the search expects. Sweeping this response across the data tests for similar patterns at different times. A different duration or profile can call for a different response. A search that wants to cover many shapes and lengths can therefore make many passes over the same data.

Earlier boxcar searches used widths that were powers of two. This gave the detector a sequence of short and long windows without having to calculate every intermediate length. The authors describe that strategy as established in observational work and in software including Heimdall, Seek and Destroy. They also point to work in which a more targeted filter can be advantageous. The boxcar serves a search with broad requirements because it assigns equal weight inside the window and can be used across a range of pulse shapes.

Equal weights also change which calculations can be shared. Consider a sum over adjacent samples. If the search needs a wider window beginning at the same place, it can keep the old sum and add the missing part. It can also combine sums from neighboring, non-overlapping intervals. In the time-domain matched-filter calculation discussed by the authors, a change of position can change the weights assigned to samples that the windows share. An already weighted sum then has less scope for reuse in the form the boxcar algorithm needs.

The paper situates that reuse within earlier radio astronomy work. Fast folding had already exploited partial sums, as had tree-based dedispersion. Those tasks use the same general economy of retaining an intermediate result that contributes to a larger calculation. The contribution here is to choose which windows to calculate for isolated pulses, quantify the consequences of those choices, and arrange the calculation for parallel execution.

The paper also cites earlier comparisons of the sensitivity of pulse-search algorithms. Sparse coverage was already a practical concern because the software could affect the sensitivity attributed to a telescope. Research using learning techniques for transient detection or classification was another direction the authors identified. Their comparison concerns boxcar-based search, with Heimdall as the external pipeline baseline. Within that scope, a useful detector needs a way to account for the signal it misses when an available window is a poor fit.

The method, step by step

Score a window against noise at its own width

The detector starts with an ordered series of samples. A matched filter would use a weighted combination of samples to make a new series. The paper introduces that operation as a time-domain convolution.

y[n] = ∑ᵢ₌₀ᵀ⁻¹ h[i] × x[n − i]

Here x is the input series and y is the filtered series. The index n identifies the output sample and i runs over the response. The value h[i] is the weight at index i, while x[n − i] is the input sample to which that weight applies. T is the number of weights. The sum begins at 0 and stops at T − 1, so it uses the entire response at each position.

For the boxcar, every sample inside the window receives the same weight. The authors write it as a sum with a starting position and a width.

Xᴸ[n] = ∑ⱼ₌₀ᴸ⁻¹ x[n + j]

Xᴸ is the series of sums at width L. The value Xᴸ[n] uses the window beginning at input sample n. The index j gives the offset from that start and extends from 0 to L − 1. As L grows, each output value includes more of the original samples. This notation uses a forward window, while the convolution notation above indexes backward from its output sample.

A raw sum alone would favor wide windows because the noise contributing to a sum changes with its width. The paper first defines the score of an unfiltered sample.

SNR[n] = (x[n] − μ(x)) / σ(x)

SNR[n] is the signal-to-noise ratio at sample n in x. The quantity μ(x) is the mean of the underlying noise and σ(x) is its standard deviation. Subtracting the mean centers the score on the noise baseline. Dividing by the standard deviation measures the excess on the scale of the fluctuations.

The same calculation applies after a boxcar has changed the data, using the noise statistics appropriate to the filtered series.

SNRᴸ[n] = (Xᴸ[n] − μ(Xᴸ)) / σ(Xᴸ)

SNRᴸ[n] is the score for the width-L window at n. Xᴸ[n] is its sum, μ(Xᴸ) is the noise mean for sums of that width, and σ(Xᴸ) is their noise standard deviation. The paper calls the detection score recovered SNR, or RSNR, to distinguish it from the reference SNR of an injected pulse. Searching several widths lets a narrow window win even when a wider window produces a larger raw sum.

How a single-pulse search scores and extends windows

The steps in order.

How a single-pulse search scores and extends windowsStep 1: Start with a dedispersed time series1. Start with a dedispersed time seriesStep 2: Set the noise scale for each width2. Set the noise scale for each widthStep 3: Form boxcar sums at scheduled positions3. Form boxcar sums at scheduled positionsStep 4: Record the strongest score and its width4. Record the strongest score and its widthStep 5: Reuse partial sums on coarser time grids5. Reuse partial sums on coarser time gridsStep 6: Continue until the search reaches its width limit6. Continue until the search reaches its width limit

Define a reference pulse with known recovery

To calculate the effect of the window schedule, the authors first consider a rectangular pulse. Its samples have a constant positive amplitude throughout the pulse, and the rest of the array is zero. This isolates what the filter arrangement does. A low score in this experiment comes from the choice of windows, since the array contains no random fluctuation. The normalization still assigns the noise a mean of 0 and a standard deviation of 1 in the original series, as a reference for comparing windows.

The analysis uses the white-noise approximation to extend those statistics to sums.

μ(Xᴸ) = L × μ(x)

Here μ(Xᴸ) is the noise mean after summing L samples, and μ(x) is the original mean per sample. The mean scales with the number of terms in the window. In the rectangular test with the stated zero baseline, it remains zero at every width.

σ(Xᴸ) = √L × σ(x)

Here σ(Xᴸ) is the standard deviation of the summed noise, σ(x) is the original noise standard deviation, and √L is the square root of the window width. Under the white-noise assumption, summing more samples increases the scale of noise by the square root of the number added.

The injected pulse is scaled so that a perfectly matched boxcar yields the same SNR at every tested duration.

A(S) = C / √S

A(S) is the amplitude assigned to each sample in a rectangular pulse of width S. C is the normalization constant and √S is the square root of the pulse width. For a wider pulse, the amplitude per sample falls. When the filter covers exactly the full pulse, the increase in the sum and the increase in the noise denominator leave the recovered score equal to C. This construction lets the authors compare short and long pulses without giving either a higher reference score.

For a rectangular pulse, the window score follows directly from how many pulse samples the window covers.

RSNR(S, L, dₛ) = dₛ × A(S) / √L = dₛ × C / √(L × S)

S is the pulse width, L the filter width and dₛ the number of pulse samples inside the filter. A(S) is the per-sample amplitude and C sets the perfectly matched score. Since every included pulse sample contributes the same amount, dₛ captures the effect of moving the window relative to the pulse. Samples outside the pulse add no signal in this experiment, while the noise denominator still uses the full width L.

The paper measures the fractional loss relative to the true SNR assigned to the injected rectangular pulse.

Ψ = (SNRₜ − RSNR) / SNRₜ = 1 − RSNR / SNRₜ

Ψ is signal loss, SNRₜ is the reference SNR of the pulse, and RSNR is the recovered value used for the comparison. A perfectly matched window gives no loss under these conditions. The formula measures a deficit in SNR. Later experiments also count the fraction of signal gathered by a winning window, which addresses a different question.

Separate missing widths from missed alignments

The search is characterized by a set B of boxcar widths and by a spacing Lₛ for each width. The spacing is the number of sample positions between the starts of consecutive windows of that width. If the width is a good fit but the starts are sparse, the pulse can straddle neighboring windows and score poorly. If the width is a poor fit, dense placement can improve alignment, while the window still either leaves some signal outside or covers samples beyond the pulse.

In the best alignment for a fixed width, the shorter of the window and the pulse fits inside the longer. The paper expresses the resulting upper response with two branches.

RSNRₘₐₓ(S, L) = {
  C × √S / √L   if S < L
  C × √L / √S   if S ≥ L
}

RSNRₘₐₓ(S, L) is the largest score possible for a pulse of width S with a filter of width L. C is the common reference score and the square roots come from pulse normalization and noise scaling. When the window is wider, it can gather all S signal samples and still pays the noise cost of a length-L window. When the window is shorter, it can be filled with signal, though some pulse samples remain outside. At equal widths, an exact alignment recovers C.

The best possible response for the search is the upper envelope of those individual responses.

RSNRₘₐₓ(S) = max over L ∈ B of RSNRₘₐₓ(S, L)

RSNRₘₐₓ(S) is the highest recovered score for pulse width S over widths available to the search. B is the set of those widths, L is a member of B, and the maximum selects the greatest of their individual best responses. Where the set skips over a pulse duration, the envelope can fall below the reference even with favorable timing.

Ψₗ(S) = 1 − RSNRₘₐₓ(S) / SNRₜ

Ψₗ(S) is the systematic loss for pulse width S. The numerator in the fraction is the best recovered score, and SNRₜ is the reference. This loss is a lower bound on the loss from the filter arrangement for that width. Additional alignments can help the detector get closer to this bound, while adding a better fitting width can change the bound itself.

The calculation for unfavorable alignment starts with a single width. Imagine sliding a pulse from one filter start towards the next. Away from the ends of a series with evenly spaced starts, the relative geometry repeats. If the pulse is no longer than the overlap between consecutive windows, some window can always contain it. If the pulse is at least as wide as the span of consecutive windows, some window can always fit inside it. Between those cases, the worse placement is where the better of the adjacent windows covers as little of the pulse as possible.

The paper uses a continuous shift to locate the point where the two relevant overlaps meet, then accounts for discrete samples. For a pulse shorter than the window and larger than the overlap of neighboring windows, the coverages near that crossing are

(dₛᴸ, dₛᵁ) = (S − α × Lₛ, L − Lₛ + α × Lₛ)

The superscripts L and U on dₛ identify the earlier and later windows, respectively. The variable α is the fractional shift across the separation Lₛ, with values from 0 to 1. S is the pulse width and L is the window width. The crossing occurs where the earlier window and the later window collect equal signal. A move away from that crossing improves the score of one of the windows.

dₛ⁼short = S − ⌊(S − L + Lₛ) / 2⌋

Here dₛ⁼short denotes the worst coverage for the intermediate case with S below L. The floor brackets return the greatest integer no larger than the enclosed quantity. S, L and Lₛ again give the pulse width, window width and window separation. The rounding accounts for the fact that starts and pulse samples lie on a discrete grid.

For a pulse at least as wide as the window but shorter than the span of consecutive windows, the crossing uses the following coverages.

(dₛᴸ, dₛᵁ) = (L − α × Lₛ, S − Lₛ + α × Lₛ)

Again the superscripts on dₛ identify the earlier and later windows. L is the boxcar width, S is the pulse width, Lₛ is the spacing and α is the fraction of that spacing by which the pulse has moved. The earlier window can begin fully covered by the pulse, and its coverage falls as the pulse moves toward the later start.

dₛ⁼long = L − ⌊(L + Lₛ − S) / 2⌋

The quantity dₛ⁼long is the discrete worst coverage for this intermediate case. Its symbols have the same meanings as in the preceding coverage expressions. The window width L takes the place occupied by S in the shorter-pulse case because it is now the amount of signal that a single window can collect at most.

The four coverage cases can be put together before applying the SNR formula.

dₛ,ₘᵢₙ(S, L, Lₛ) = {
  S          if S ≤ L − Lₛ
  dₛ⁼short   if L − Lₛ < S < L
  dₛ⁼long    if L ≤ S < L + Lₛ
  L          if S ≥ L + Lₛ
}

Here dₛ,ₘᵢₙ is the least coverage by the best-positioned window of width L as the pulse moves over the grid. S is the pulse width and Lₛ is the window spacing. The middle branches use the two discrete coverages just defined. The condition on the second branch follows the case split in the derivation. The paper's final displayed piecewise response prints Lₛ as the upper endpoint of that branch.

RSNRₘᵢₙ(S, L) = C × dₛ,ₘᵢₙ(S, L, Lₛ) / √(L × S)

RSNRₘᵢₙ(S, L) is the worst response of the width-L filter after choosing its best window for each pulse position. The quantity dₛ,ₘᵢₙ gives its least coverage, C sets the reference score, and S gives the width of the pulse. The spacing Lₛ belongs to the schedule for that filter width.

RSNRₘᵢₙ(S) = max over L ∈ B of RSNRₘᵢₙ(S, L)

Here RSNRₘᵢₙ(S) is the paper's lower bound for the detector, and B is the available set of widths L. The detector can always use the width that has the strongest individual floor. In a real schedule, different widths may work well at different positions, so the observed minimum over placements can be better than this bound. The pulse would have to encounter the relevant unfavorable alignments together for the bound to describe the actual minimum exactly.

Ψ𝓌(S) = 1 − RSNRₘᵢₙ(S) / SNRₜ

Ψ𝓌(S) is the upper bound on signal loss for a pulse of width S in the rectangular analysis. RSNRₘᵢₙ(S) is the lower response bound and SNRₜ is the reference score. The response floor is always at or below the best response. Accordingly, tightening the spacing can only take the response floor as far as the available widths allow. The authors use this relationship to judge when further work on positions yields little benefit without more widths.

Preserve the score, width and timing information

The algorithms work in stages. At stage i, the input xⁱ may already consist of sums representing groups of original samples. A boxcar on that stage can cover a long interval in the original series using fewer values. The authors select the highest score separately for each stage and each position visited in that stage.

Yⁱ[n] = max over L ∈ Bⁱ of SNR(Xⁱᴸ[n])

Yⁱ[n] is the highest score at position n in stage i. Bⁱ is the set of boxcar widths searched in that stage and L is one such width. Xⁱᴸ[n] is the corresponding boxcar sum, and SNR denotes the conversion of that sum using the noise statistics for its full width. The output also includes Wⁱ[n], the width of the boxcar that won. Because outputs are retained by stage, a time can have multiple scores in the search output.

The width used for detection is an estimate of the pulse duration. The authors compare it with the known width in synthetic data.

ε𝓌 = |Sₜ − L| / Sₜ

The quantity ε𝓌 is the relative magnitude of the width error. Sₜ is the true width and L is the selected boxcar width. The vertical bars take the absolute value of their contents. For their plots, the authors also retain the direction of the discrepancy, which shows whether the detected duration is shorter or longer.

εₜ = |tₜ − t| / Sₜ

The quantity εₜ is the relative magnitude of the timing error. Here tₜ is the reference pulse position, t is the time reported for the selected window and Sₜ is the true width used as the scale. The plots retain the sign of the time displacement so an early report can be distinguished from a late one. The timing convention matters when relating these reported positions to an example described by the pulse's starting sample.

BoxDIT extends windows across decimated stages

The authors use an exhaustive boxcar search as a conceptual starting point. This search would try all relevant lengths at each original input position. An isolated rectangular pulse in its range would have a matching window. BoxDIT keeps the dense search at the scale of the current input and changes that scale as it moves to longer widths.

Within a stage, BoxDIT makes progressively longer sums beginning at each available point. After the stage, it retains the last and longest sum. It also forms a coarser time series by adding groups of consecutive samples, a procedure the paper calls decimation in time. In this algorithm, decimation aggregates values. Those accumulated values can contribute signal to a wider filter in the following stage.

xⁱ⁺¹[n − Lⁱₘₐₓ / D] = ∑ⱼ₌₀ᴰ⁻¹ xⁱ[D × n + j]

The input series for stage i is xⁱ and the series produced for the following stage is xⁱ⁺¹. D is the fixed decimation factor. The index n identifies a group in the current input, and j enumerates the samples within that group. Lⁱₘₐₓ is the maximum number of current-stage samples used for an extension. The left index must be non-negative. This offset positions the first new group immediately after the retained sum that begins at the first original sample. The chosen local maximum must be divisible by D for this indexing.

The CUDA implementation uses D = 2. In the paper's example with a local maximum of 4, the first stage tests widths 1, 2, 3 and 4 at each original sample. The next stage uses the retained sum of width 4 and adds coarser values. Its full widths are 6, 8, 10 and 12, visited at every second original sample. The width differences and the distances between starts both grow as the stages advance. More widths between decimations let BoxDIT cover a larger range before each new reduction in resolution.

Lⁱₘ,full = ∑ₖ₌₀ⁱ⁻¹ Dᵏ × Lᵏₘₐₓ + Dⁱ × Lⁱₘ

Lⁱₘ,full is the full boxcar width in original samples for candidate m at stage i. The index k enumerates earlier stages, Lᵏₘₐₓ is the maximum local extension taken at stage k, and Lⁱₘ is the current candidate's extension measured in stage-i samples. Dᵏ and Dⁱ are powers of the fixed decimation factor. Each converts a local length into an original-sample length. At the first stage there are no earlier extensions to add.

Xᴸ[n] = Xⁱ⁻¹[n] + ∑ⱼ₌₀ᴸⁱₘ⁻¹ xⁱ[nⁱₛ + j]

Xᴸ[n] is the full sum of width L starting at original position n. Xⁱ⁻¹[n] is the longest sum retained at that position from the preceding stage, where the stage has a preceding sum. The variable nⁱₛ is the index n divided by Dⁱ on the current grid, xⁱ is the aligned decimated series, Lⁱₘ is the local extension and j is an offset within it. The placement of the decimated series makes the extension contiguous with the saved sum.

The CUDA kernel computes the new sums and the next decimation together. A kernel is a unit of work launched on the GPU. Inside it, threads at nearby positions face overlapping calculations. The authors found independent scans too slow for this use, even with cached input. A scan produces the sums of successively longer prefixes. BoxDIT begins with small scans that fit in each thread's private registers, then exchanges the last sum of each small scan through memory shared by the thread block.

B[n − wₘ; wₘ + w] = B[n − wₘ; wₘ] + B[n; w]

B[a; b] denotes a partial sum beginning at a and extending for b samples in the current input. In the expression, n is the start of the later piece, wₘ is the length of the preceding block and w is the shorter prefix already available to the thread. The preceding block ends where the later prefix begins. Adding them produces a longer sum at the earlier position n − wₘ. Repeating the operation lets a thread provide increasingly long candidates for positions farther from its initial assignment.

The general assembly is a sequence of full small blocks with a prefix at the end.

Xⁱₘ,ext[n] = ∑ₖ₌₀ʲ⁻¹ B[n + k × wₘ; wₘ] + B[n + j × wₘ; w]

The extension Xⁱₘ,ext[n] is the width candidate m on the current input of stage i, prior to adding the sum carried from earlier stages. The start n is on the current grid. The small block width is wₘ, j counts full blocks preceding the final prefix, k indexes the full blocks and w is the final prefix length. The paper's equation for this assembly prints a ceiling expression for j. The sum itself describes the block count and final prefix through their roles in covering the requested width.

The score and width for a position are updated as threads supply candidates for it. Intermediate partial sums stay in registers or shared memory. The outputs that survive are the best score, its width, the longest sum for the next stage and the new decimated input. The same kernel serves different BoxDIT configurations. The cost of that flexibility is that the next invocation reads separate arrays for the decimated values and for the longest boxcars retained from the previous stage.

IGRID starts from a more aggressive reduction. The DIT baseline repeatedly adds adjacent pairs and uses the resulting coarser series directly as boxcar sums. At each level the width grows, and the distance between consecutive windows of that width grows with it. A pulse that lies between two neighboring windows can therefore recover poorly, even at a level whose width would have been suitable with a different starting position.

IGRID creates layers that have the same aggregation scale and different offsets on the original timeline. From a parent layer, joining adjacent pairs with one choice of starting index generates an unshifted child. Joining the next set of pairs generates a shifted child.

xⁱ⁺¹ₕ[n] = xⁱₕ[2n] + xⁱₕ[2n + 1]

Here xⁱₕ is the parent series at level i and shift h. The result xⁱ⁺¹ₕ is a child at the next level that retains shift h. The index n denotes a sample in that child. Its value combines consecutive parent values starting at parent index 2n.

xⁱ⁺¹ₕ₊𝒹[n] = xⁱₕ[2n + 1] + xⁱₕ[2n + 2]

The child xⁱ⁺¹ₕ₊𝒹 begins d original samples later than the child that keeps shift h. The quantity d in this layer construction is the length of a parent window in original samples, given by 2ⁱ. The inputs come from the same parent layer, with the first parent index moved forward by one. Both children contain sums of equal width. Together they offer more pulse alignments than the unshifted child alone.

Lₛ = 2ⁱ / P

Lₛ is the spacing between window starts at level i when P layers are distributed uniformly across the offsets. The width at that level is 2ⁱ. Equal spacing avoids regions with sparser placement that would otherwise be more vulnerable to alignment loss. The authors retain selected layers as the search proceeds. Carrying every layer onward would increase memory and processing requirements.

Layers form a binary tree because each parent can supply an unshifted and a shifted child. The same tree offers a route to widths beyond its basic powers of two. A window can be extended or shortened by combining it with appropriately placed pieces from earlier levels. The paper writes the possible length in terms of those contributions.

L = ∑ₖ₌₀ᵈ aₖ × 2ⁱ⁻ᵏ

L is the resulting filter width, i identifies the starting level and k counts levels back from it. The depth d here counts how many earlier levels are available for the width construction. Each coefficient aₖ is either +1 or −1. The paper sets a₀ to 1 for a positive leading width and a₁ to 1 when that term is used to extend the range assigned to the current step. The signed contributions yield intermediate widths between the powers of two that bound the step. A greater depth allows finer width choices and needs access to more previous data.

The implemented configurations change the depth and number of layers together. IG(1) uses depth 1 and 4 layers per step, IG(2) uses depth 2 and 8 layers, and IG(3) uses depth 3 and 16 layers. At low depth the input layer supplies both filter values and pieces for constructing wider filters. At higher depths the kernel also needs earlier generations of sums. The paper describes the input for IG(2) as twice that for IG(1), and the input for IG(3) as four times that for IG(1).

The implementation computes several IGRID steps within a kernel. The GPU stores the temporary layers in shared memory and can retain an unshifted layer as the starting point for a subsequent part of the calculation. Each child layer has fewer entries than its parent. A pair of children can therefore occupy the space of the parent by interleaving samples from the two layers. At deeper levels, a thread changes the stride at which it reads the other input to a sum, so it combines samples from the correct layer. The paper describes this layout as avoiding bank conflicts in shared memory.

The kernel sometimes recomputes a branch that could have been saved and read back. This costs arithmetic and saves traffic to device memory. It also causes some windows to be scored that the nominal schedule could omit. The distinction between the intended set and the filters the implementation actually evaluates matters when the authors compare measured loss with the geometric bounds.

Estimate noise in the search pipeline

The techniques operate on sums and noise estimates. In AstroAccelerate, the pipeline first dedisperses the data, then estimates the noise baseline, runs the detector and selects peaks as candidates. The sensitivity calculations use specified white-noise statistics. The pipeline has to estimate the statistics from its inputs.

For that purpose the authors implement the streaming mean and variance calculation of Chan and colleagues on the GPU. The estimate is refined by rejecting individual values that lie far enough from the current baseline, according to a threshold the user selects. Repeating that comparison and rejection until convergence helps keep strong points from determining the baseline against which they will themselves be evaluated.

Estimating a separate standard deviation after running every filter would be expensive. The pipeline calculates it on successive decimations corresponding to powers-of-two widths and interpolates for the widths between them. The authors illustrate the approximation on simulated input generated with SIGPROC fake, considering a series containing a strong signal and one without a signal. The evaluation throughout the paper uses generated data with known pulse properties. The detector's choices come from the width schedule and the computed scores, with no training procedure.

Experiments and results

Sweep the pulse through the detection grid

The main sensitivity experiments use synthetic inputs with one injected pulse per time series. For a given width, the pulse is moved through the relevant offsets, with each shifted copy in a separate series. The detector searches each series, and the experiment retains its highest score. Across shifts, the largest of those scores estimates the best recovery. The smallest estimates how well the detector performs at an unfavorable position after using its best available window there. This order of selection is what makes the measurement an evaluation of the search over widths and positions.

For rectangular pulses in the idealized experiment, the rest of the array contains zeros and the filter scores use the white-noise reference values. BoxDIT is tested as BD-32, BD-16 and BD-8. Those names specify the local maximum width of 32, 16 or 8 at each stage, even though the effective width in original samples becomes much larger. The IGRID variants use the depth and layer choices described above. All of the reported GPU implementations use fp32 input values.

The paper plots cumulative average signal loss as a function of the pulse-width cutoff. Its displayed equation reads as follows.

⟨Ψₓ(S₀)⟩ = (∑ₛ₌₁ˢ⁰ Ψₓ(s)) / (S₀ − 1)

The bracketed quantity is the cumulative average for loss series X. The variable s indexes pulse widths, S₀ is the cutoff and Ψₓ(s) is the loss belonging to that series at width s. The displayed sum has S₀ as its upper endpoint, while the text describes averaging widths below S₀. The results below use the authors' reported averages.

Reported average signal loss on idealized rectangular pulses

The densest tested BoxDIT setting has the lowest reported average loss among these configurations.

Reported average signal loss on idealized rectangular pulsesBoxDIT BD-8: 3BoxDIT BD-83IGRID IG(3): 2IGRID IG(3)2IGRID IG(1): 12.5IGRID IG(1)12.5BoxDIT BD-32 (this paper): 1BoxDIT BD-32 (this paper)1
The numbers
System or settingAverage signal loss %
BoxDIT BD-83
IGRID IG(3)2
IGRID IG(1)12.5
BoxDIT BD-32 (this paper)1

The idealized experiment also compares the measured systematic and worst losses with the predicted curves. The measured systematic losses agree with the prediction for both algorithms. The measured worst losses are smaller than the upper bound in parts of the tests. For BoxDIT, a shorter filter can give a stronger score at a difficult placement than the filter used to characterize that placement in the prediction. For IGRID, extra layers computed within the GPU kernel sometimes supply an additional opportunity to match the pulse.

The paper measures width and time errors in the same sweeps. The recovered score can drop abruptly where the algorithm has decimated the input again. A coarser grid also limits how finely the algorithm can distinguish different durations and positions. The resulting width and timing increments account for a larger share of short pulses than long ones. Across the tested configurations, the authors generally find larger errors with IGRID than with BoxDIT, consistent with IGRID's sparser set of windows.

The timing plots have a selection effect. When the measurement procedure encounters equally good extreme results, the authors take the first. In these tests, that can make detections appear earlier than the reference timing. The signed plots reflect both this choice and the time grid used to find the pulse. The relative error formula alone would hide that direction.

Change the pulse profile

The next tests introduce a Gaussian profile and a profile composed of two Gaussians. These are sampled discretely and injected into arrays that are otherwise zero, as in the rectangular tests. The paper generates the Gaussian values from the normal density.

f(x) = exp(−(x − μ)² / (2σ²)) / √(2πσ²)

In this expression, x is a position at which the profile is sampled, f(x) is the density there, μ is the profile center and σ² is its variance. The function exp is the exponential and π is the circle constant. The authors set μ = S/2, where S is the pulse width. They give the variance for the single Gaussian as S/(8 ln 2), and the two variance settings for the double Gaussian as (S/4)/(8 ln 2) and (S/5)/(8 ln 2). The function ln is the natural logarithm.

All profiles in this comparison are normalized so a boxcar that covers the full pulse gives RSNR = C = 16. This is a common full-width reference. For an uneven profile, it need not be the highest boxcar score. The authors show the sample representations at 5, 10 and 20 samples of resolution so the reader can see how the portion selected by the winning window changes with the profile and how sparsely a narrow pulse can be represented.

The detailed comparison uses the most sensitive BoxDIT setting, BD-32, and the fastest IGRID setting, IG(1). In these synthetic tests, the recovered SNR for Gaussian-like shapes can exceed the level of the rectangular pulse. A window centered on the strongest samples can gather much of the signal with a smaller noise denominator. This is also why the authors use a separate measure of the fraction of the signal that the chosen boxcar gathers. A score above the full-width reference does not indicate that the filter gathered more than the full pulse.

For the Gaussian tests, the selected width falls short by about 40% of the true duration. For the double Gaussian, the reported discrepancy is about 30%. The authors report that the winning windows gather on average 85% of the signal for the Gaussian shape and 94% for the double Gaussian in this comparison. These are fractions recovered by the window that maximizes SNR. A window that includes all the injected samples can still lose the score comparison.

The timing example makes the width effect concrete. For a Gaussian spanning 20 samples, the paper shows a boxcar of 11 samples selected around the peak. Using the injected pulse's position as the reference, the window gives a shift of 4 or 5 samples, reported as 20% or 25% of the true width. The selected interval gives a strong detection of the peak, while its duration and time describe a different interval from the full injection.

A double-peaked signal also reveals the importance of placement. At some widths, IG(1) finds only the first component of the double Gaussian. The recovered fraction falls and the reported width becomes shorter. The time displacement stays consistent with the first component being selected. The authors did not observe that behavior in the denser IGRID configurations, which offer additional lengths and more closely spaced starts.

Add white noise and examine candidates

The authors repeat the offset sweep with Gaussian white noise of mean 0 and standard deviation 1. In this experiment, they average measurements taken at the same position over multiple noise realizations. An individual run always favors whichever candidate gets the largest score. A positive noise fluctuation can push a particular width or position into the lead. The averaging reduces the influence of particular realizations on the plotted extreme responses, while the selection of a maximum still favors noise-enhanced candidates.

For pulses injected at SNR = 16, the rectangular tests show only a modest overall change in recovered score for BD-32 and IG(1). Individual scores can still fall below the noise-free response floor. The winning width or time can vary. This behavior is compatible with the role of the floor in the analysis, which was calculated for prescribed pulse samples using assigned noise statistics, with no random noise added to the data.

The authors also show examples with injected SNR values of 8, 5 and 3 to illustrate candidate selection around a weaker signal. Those pulses have width 20 samples and begin at sample 100. In the rectangular example, the target detection is at sample 110 with a filter width of 20 samples. The BoxDIT run shown in the example uses a maximum search width of 8000 samples.

For the rectangular pulse at SNR = 8 and SNR = 5, the reported time in the example agrees with the expected detection position. At SNR = 3, a candidate at sample 116 has the highest score and uses a window shorter than the injection. A lower-scoring detection still appears at sample 110 with width 20. Looking at a wider interval around the injection reveals why the correctly positioned candidate is hard to distinguish from noise. These examples trace changes in the candidate output for particular realizations.

The Gaussian-like pulses show another route by which noise can change the result. If noise raises the peak, a short window may become even more competitive. If it depresses the peak, a longer window can win by collecting more samples outside the center. The choice affects the estimated duration, time and score together. The authors find this behavior especially visible for the Gaussian profile in the noisy BoxDIT tests.

Time the detection stage

The performance benchmarks measure execution on the NVIDIA P100 and Titan V. The paper expresses a measured processing rate as the number of dedispersed trials the detector could search in real time at a specified input sampling interval.

Nᴅᴍ = Nₚ / Nₛ

Nᴅᴍ is the real-time trial capacity of the detector. Nₚ is its processing rate in time samples per second. Nₛ is the rate at which samples arrive for one trial. A larger Nᴅᴍ means the detector can keep up with a larger collection of trials under those acquisition conditions.

Nₛ = 1 / tₛ

Here tₛ is the time between original samples and Nₛ is the corresponding acquisition rate. Changing tₛ changes the trial capacity for a given measured processing rate. The paper uses 64µs for its principal comparison.

In the scaling tests, the authors vary the number of DM trials while holding the length at 131,072 time samples per trial, then vary the length while keeping 256 DM trials. The maximum boxcar width is 8192 samples. Both algorithms show linear scaling over these tests on the two cards. The paper attributes this to the ability to divide the work across trials and across parts of an individual time series.

For sampling at 64µs, the paper describes IG(1) on Titan V as capable of searching three million DM trials in real time. The more sensitive BD-32 configuration is described as handling almost six hundred thousand on the same card. These are capacities for the filtering stage derived from its runtime. The authors also examine shorter sampling intervals. Their discussion estimates about ten thousand real-time trials for IG(1) on Titan V at 256ns. Their conclusion gives a capacity of 22,000 DM trials at 512ns.

The SKA-like comparison uses an assumed workload of 6000 DM-trials per second at 64µs sampling. The two hardware entries below apply to the same algorithm configuration and acquisition assumption.

IGRID IG(1) detection throughput on the assumed SKA-like workload

The same detector handles more of the assumed workload per unit time on Titan V.

IGRID IG(1) detection throughput on the assumed SKA-like workloadIGRID IG(1) on P100: 266IGRID IG(1) on P100266IGRID IG(1) on Titan V (this paper): 500IGRID IG(1) on Titan V (this paper)500
The numbers
System or setting× real time
IGRID IG(1) on P100266
IGRID IG(1) on Titan V (this paper)500

For the same assumed workload, the paper reports 106× real-time speed for BD-32 on Titan V. Its conditional estimate for a complete pipeline that uses its entire real-time budget is that IG(1) would account for 0.4% of processing time on P100 or 0.2% on Titan V. That estimate translates the stand-alone detection rate into a budget share. The paper also reports that extending the maximum search width has a smaller effect on IGRID performance, because IGRID reaches long windows with fewer separate kernel executions.

Compare with Heimdall on simulated observations

The pipeline comparison uses observation files generated by SIGPROC fake. The first scenario varies pulse width at fixed initial SNR. The simulated pulsar has period P = 1000ms, dispersion measure DM = 90pc/cm³ and initial SNR = 8. The tested pulse widths are 100, 200, 400 and 800 samples, obtained by varying the duty cycle. The outputs compared are the recovered score and reported width of detections.

AstroAccelerate reports more consistent scores across pulse peaks and closer width estimates in that experiment. The paper connects Heimdall's variation to the power-of-two widths it searches and to the locations of its windows. At an intermediate duration, a window can be too short to gather the whole pulse or long enough to include additional noise. A pulse can also fall between starts and lose part of its signal even when a suitable width is available. The comparison displays the highest AstroAccelerate candidates for readability, since the two candidate-selection procedures produce different numbers of reported points.

The second scenario uses a constant pulse width of 32 samples, a favorable width for both detectors, and varies the initial SNR across 8, 4, 2 and 1. The simulated period is P = 100ms and DM = 50pc/cm³. Heimdall reports higher recovered scores for the injections at 8 and 4, while the outputs are similar at lower strengths. The paper notes differences in noise estimation. In the AstroAccelerate calculation for this comparison, the authors reject samples exceeding a threshold of 2 standard deviations in their approximation of the noise statistics.

The performance comparison times each pipeline's detection stage, with Heimdall's internal benchmarking and the NVIDIA visual profiler for AstroAccelerate. The measured ratio compares Heimdall's stage with BoxDIT BD-16 as the maximum DM searched varies. It reaches nearly 100× on P100 and almost 200× on Titan V. The advantage is smaller at lower maximum DM. AstroAccelerate processes its first group of DM trials at full time resolution, while Heimdall retains full resolution for its first trial. That choice changes the amount of work represented by the timing comparison.

What the ablations show

The width list and the start grid address different failures

The study tests configurations, pulse profiles and noise conditions, and supplements those comparisons with a controlled analysis of the filter grid. Its cleanest isolation of the two design choices is geometric. With the width list held fixed, the paper varies the separation of filters. A denser set of starts raises the lower response because the best available placement becomes more favorable. The peak response at a given pulse width still depends on the widths the detector is able to apply.

The paper illustrates this with filters of width 32 and two spacings, one equal to that width and another equal to half of it. The comparison keeps the duration of each window fixed. The altered worst-response curve therefore reflects the availability of better alignments, with the greatest consequences near durations where small displacements can change how much of the pulse is lost. The limiting best response for that width follows the same curve for either spacing.

The companion analysis holds the idea of a grid fixed and adds width choices from earlier IGRID levels. Adjacent power-of-two widths leave a gap in favorable response for pulses that are poorly matched to either. Using earlier partial sums gives the search additional windows in that gap and lifts the upper response there. Together, these comparisons show why an implementation can exhaust the benefit of improving alignment before it has recovered all the sensitivity lost to coarse width choices.

The dense configurations also demonstrate why a bound built width by width can be conservative for the full search. The largest of the individual worst responses guarantees a certain score. When a pulse moves into an unfavorable position for one width, a different window from the schedule may be well aligned. The measured minimum can then be higher than the bound. The BoxDIT tests display this effect through shorter windows, and the IGRID tests display it through extra windows made available by the kernel's branch calculations.

Configuration changes reveal a computational trade-off

The BoxDIT sweep changes how many local widths are evaluated before time resolution is reduced again. BD-32 retains fine coverage longer and has the lowest reported average loss among the BoxDIT settings. BD-8 reaches a coarser grid sooner. The error and recovery curves place the abrupt changes at different pulse widths for different settings. This provides evidence for the role of the decimation schedule, since the locations of the changes follow where the schedules lose resolution.

IGRID's sweep increases the depth and the number of layers together. Deeper configurations bring more widths into the search. Additional layers give more start positions. The change from IG(1) to IG(3) therefore shows how much the combined configuration can improve recovery. It leaves the separate measured contribution of each change unresolved. The geometric analysis is what supplies the cleaner explanation of which type of loss each change addresses.

The authors use BD-8 and IG(2) to compare how the algorithms spend their work. Their operation count for this comparison gives IG(2) half as many boxcar evaluations. IG(2) achieves a lower signal loss and higher performance in the illustrated comparisons. Its layout reaches a useful choice of widths and positions with less computation. Its intermediate values can also serve both as boxes already evaluated and as components of longer boxes. The analogous quantities pass through separate input arrays in BoxDIT.

The profiler results show how that economy interacts with the hardware. On P100 the authors characterize both algorithms as compute limited. On Titan V they find global memory bandwidth limiting for lighter configurations such as BD-8 and IG(1), while the denser BD-32 and IG(3) are compute limited. For Titan V, the reported memory utilization reaches 85% for each of BD-8 and IG(1), with compute utilization at 45% and 65% respectively. For BD-32 and IG(3) on the same card, the profiler gives 85% compute utilization and 45% memory utilization in each case.

Increasing signal loss can reduce the number of filters while providing little additional throughput once memory traffic dominates. On Titan V, BD-8 and BD-16 run at almost the same performance. IG(1) on that card is 1.4× as fast as IG(2). These comparisons explain why the practical return from a sparser search depends on the configuration and the device, even when the direction of the sensitivity change is clear.

Pulse shape changes what the winning width means

The profile tests hold the full-width reference score fixed while changing how signal is distributed inside the pulse. A rectangular injection gives each sample the same weight in determining recovery. For a Gaussian injection, samples near the center contribute much more than samples near the ends. The winning score therefore tells the reader which interval provides the greatest standardized excess over noise, and the width attached to that score may cover substantially less than the complete event.

The double Gaussian tests add a distinction between recovering a peak and covering a whole multi-component pulse. The sparse IG(1) setting sometimes settles on the first peak. More densely configured IGRID searches can match the whole injection in the cases studied. This supports a connection between the set of tested windows and the reported pulse width. The comparison changes the width options and alignments together, just as in the rectangular configuration sweep.

The noise experiments change one further part of the setup. Comparing the idealized and white-noise curves shows the extent to which the deterministic filter geometry still describes a strong rectangular pulse. The weaker examples show a different effect. A detector can produce the expected candidate and also produce a higher-ranked one at a nearby time because the random fluctuations favor that second window. The comparison reveals why the best recovered score alone cannot describe the reliability of the inferred time or duration.

The two Heimdall scenarios test complementary conditions. Varying duration at fixed injected strength exposes limitations associated with the filter schedule. Choosing a width that suits both pipelines and varying strength reduces the importance of that mismatch. Under this second condition the strongest injections can score higher in Heimdall. Because the pipelines still differ in their estimates of noise and in other processing choices, that result compares their reported outcomes under the test conditions.

Limitations

Limits the authors identify

The analytical bounds apply to rectangular pulses in zero-filled arrays with white-noise statistics used for normalization. This setting permits the score to be determined from the length of overlap and the widths of the pulse and boxcar. The authors explicitly distinguish what happens for Gaussian and double Gaussian shapes. Their full-width reference can be exceeded when a shorter filter captures the strongest samples. For those shapes they examine the score, reported time and width, and fraction of signal recovered, separately.

The authors also identify biases in the experiments. Selecting the first extreme value favors earlier times in the idealized timing measurements. Selecting the strongest candidate from noisy data favors windows with helpful fluctuations. Averaging measurements at a fixed position mitigates this second effect, while the noisy results can still differ from the idealized curves. The examples at individual noise realizations illustrate candidate behavior. The paper describes them as insufficient to represent overall sensitivity.

The Heimdall comparison has pipeline differences that cannot be fully matched in the setup. AstroAccelerate groups trials with constant spacing in DM within each group, while Heimdall can vary the spacing per trial. Their treatment of time resolution in the first trials differs. Their noise estimates and candidate selection also differ. The authors use these details to explain why the published SNR or speed differences encompass more than the underlying choice of boxcar widths and placements.

The authors flag a practical limit to increasing IGRID's sensitivity. Higher depth brings in more input and more complicated filter construction. The configurations were implemented separately for performance. At the same nominal depth, details of how the GPU calculation is grouped can introduce extra windows and change measured loss. BoxDIT provides a single implementation whose local maximum can vary by stage. That flexibility comes with separate input arrays, and its performance may gain little from a less sensitive schedule on a device already constrained by memory bandwidth.

The short-sampling and SKA-like throughput figures apply to a stage placed within a larger pipeline. The real-time trial counts depend on the acquisition interval, the maximum width considered and the measured stage rate. The paper treats these dependencies explicitly, including the effect of changing maximum width. Its speedups against Heimdall also refer to detector timings in specific benchmark conditions.

What the experiments leave open

The loss and error figures describe synthetic pulses. The rectangular injections quantify a controlled mismatch, and the other profiles show how a different distribution of signal alters window selection. Those experiments do not establish how often real bursts have a given profile or how many astrophysical events a survey would miss at a given threshold. The average over widths depends on how widths are chosen and aggregated. No observed population of bursts supplies the weighting in these experiments.

Similarly, the abstract's 7% mean signal loss and the 12.5% reported cumulative average for IG(1) in the idealized rectangular tests have different reporting contexts. The detailed sections give the shape and procedure for the rectangular tests. The abstract does not specify how its mean accompanying the headline throughput was aggregated. The paper does not supply a conversion that would make these figures interchangeable.

The performance comparisons do not determine the number of false candidates expected on an observing stream. The example at SNR = 3 shows that identifying a correctly placed window can coexist with having little basis to distinguish it from nearby noise candidates. Measuring this ambiguity for a particular injection is different from tracing completeness and false detections across many events at an operating threshold. Noise statistics are also estimated in a separate pipeline step whose behavior affects the final score.

Finally, the configuration comparisons describe particular CUDA implementations on P100 and Titan V. The profiler supports an explanation of why their speed responds differently to a reduction in work. A different device or an observing pipeline with different costs can change the balance between arithmetic, memory traffic and the other processing stages. The paper provides filter geometry with which to reason about sensitivity and benchmarks for the implementations tested, while end-to-end real-time capacity remains conditional on the larger system.

What came after

There are no later citing studies to discuss. The paper itself records an existing use of BoxDIT in AstroAccelerate and describes its use in the Lovell Telescope work by Mickaliger and colleagues concerning FRB180309. This is an application the authors identify in the history of their software. The paper's forward-looking calculation concerns how the isolated-pulse search might behave at much finer time resolution, with the estimated trial capacities applying to the detection stage.

Cite

Cite as Karel Adamek and Wesley Armour. 2019. Single Pulse Detection Algorithms for Real-time Fast Radio Burst Searches using GPUs. arXiv:1910.08324 · The Astrophysical Journal Supplement Series 247, 56 (2020).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3847/1538-4365/ab7994 · arXiv 1910.08324

@misc{adamek2019single,
  title = {{Single Pulse Detection Algorithms for Real-time Fast Radio Burst Searches using GPUs}},
  author = {Karel Adamek and Wesley Armour},
  year = {2019},
  doi = {10.3847/1538-4365/ab7994},
  eprint = {1910.08324},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.3847/1538-4365/ab7994}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/adamek-2019-single-pulse-detection-algorithms-real/