Trace: a high-throughput tomographic reconstruction engine for large-scale datasets
Paper · 2017 · Tekin Biçer, Doğa Gürsoy, Vincent De Andrade et al.
Summary
A synchrotron detector can collect X-ray images faster than a workstation can turn them into a picture of the object’s interior. The gap matters when researchers need to see the reconstruction while an experiment is still underway. Iterative reconstruction can produce clearer images from a limited set of views, which can help when a specimen tolerates little radiation. It also repeatedly simulates the measurements and revises the image. A large scan can make that work expensive even when the immediate goal is to see a single slice.
The authors developed Trace to split that work across the cores of a computing cluster. A sinogram gathers the measurements for one slice from many viewing angles. Different slices can frequently be reconstructed independently, but Trace can also divide the rays within a single sinogram among threads on multiple machines. Each thread accumulates its contributions in private storage. The runtime merges those contributions first within each process and then, if necessary, across processes working on the same slice. Trace also changes how it stores the intermediate data. Its cache-optimized version, Trace-OC, places the weight and ray-length information for a voxel together so that the processor can fetch both when it visits that voxel.
The authors evaluate the method with the simultaneous iterative reconstruction technique, or SIRT, using simulated inputs and measurements from a shale sample and a mouse brain. In single-core tests that vary the number of projections, Trace-OC delivers speedups of 1.19 to 1.44 over the original TomoPy implementation. For a mouse brain sinogram with dimensions 4501 × 1 × 22,400, the best configuration on 32 compute nodes (384 cores) achieves a 158× end-to-end speedup over the best single-core run. The reported processing time per iteration falls from ∼ 12.5 h to <5 min. Those timings apply to the measured sinogram within a scan containing 22,400 sinograms.
The phase timings explain why the most effective use of the cluster depends on the workload. Forward projection takes the largest share of the measured time on the shale sinogram. The mouse brain slice requires much larger intermediate arrays, and exchanging those arrays dominates the runs on 32 nodes. In a separate comparison against a full node, increasing the cluster to 32 nodes produces a speedup of 21.6. The computation continues to benefit as more nodes contribute, while the exchange of partial results increasingly determines how long an iteration takes.
Deep dive: Trace: a high-throughput tomographic reconstruction engine for large-scale datasets
Trace distributes iterative X-ray tomography across CPU clusters, improving cache use and cutting reconstruction time for a large mouse brain scan. · about 34 minutes to read
The problem and its context
The delay between collecting and seeing a scan
Computed tomography begins with a collection of views. A detector records an X-ray projection at each orientation of a specimen. The measurements reflect what the rays encounter on their way through the specimen. A projection by itself leaves the depth of those features unresolved. Reconstruction uses the way features appear across angles to estimate their positions and values inside the object. For an experimenter, the useful result may be a cross-section that reveals a structure of interest or a volume that can be examined after the scan.
Synchrotron facilities make the input side of that process unusually fast. The paper gives the example of the 2-BM beamline at the Advanced Photon Source, where a detector can acquire 2000 fps with 2K × 2K pixels per frame. At 16-bit pixel precision, the reported data rate is 16 gigabytes (GB) per second. Reconstruction has to work through the angular views and produce a new dataset whose layout follows the physical volume. A short acquisition can therefore create a long analysis job.
The physical extent of the specimen poses a separate problem. The authors describe how several frames can be aligned and stitched to make a panorama. In their example, a 2D projection grows from 2K × 2K to 20K × 20K, increasing the input dataset size by 100 times. Detector width also affects the size of the reconstructed slice, because the slice extends across both in-plane directions. More angles and wider projections both add input samples, but wider projections also give the reconstruction more image values to estimate. That distinction becomes important in the measurements of computation and communication.
The authors frame the work around the time to get usable feedback. On a medium-sized workstation, reconstruction can take hours or days, according to the paper. The delay reduces the value of a fast detector if the experimenter needs the image to decide what to examine next. Trace addresses the processing stage by making a reconstruction job divisible across more cores and more machines. In particular, it makes the time to obtain an individual slice a target for parallel computing.
Why use an iterative reconstruction?
The paper distinguishes analytical reconstruction from iterative reconstruction. Filtered back-projection is an analytical approach. Gridrec, the analytical implementation used in the paper’s image example, obtains a reconstruction with a single pass over the input. That economy is valuable because every additional pass over a large dataset brings work of its own. The authors identify conditions in which the input requirements for analytical reconstruction become inconvenient. Too few views can leave artifacts, experimental noise and errors can degrade the result, and collecting more views can increase the radiation exposure of a sensitive specimen.
An iterative algorithm begins with an estimate of the image and repeatedly changes it. It predicts what the detector would measure if the current estimate were correct. It then uses the relationship between those predictions and the measurements to revise the image. As the process repeats, the estimate can become more consistent with the data under the algorithm’s reconstruction objective. The paper discusses several ways to do this, including SIRT and maximum-likelihood approaches. Their ability to use fewer projections is part of the motivation for accepting additional computation.
Reducing the cost of an iteration and choosing the right reconstruction algorithm are separate engineering questions. A researcher may favor iteration because of the acquisition conditions, then need a way to make the chosen algorithm run on the available cluster. The authors work mainly on the latter question. The computation they target is the repeated traversal of rays through an estimated image and the accumulation of information that will be used to update that image.
The unit of work matters for that goal. If slices are independent, a straightforward parallel strategy gives different slices to different workers. That can raise the number of slices completed over a period of time. A worker assigned a particularly expensive slice may still take a long time to finish it. Trace extends the division of labor inside the slice, where workers can act on different rays that contribute to the same image. The extra concurrency comes with a new requirement. Contributions made by different workers must be combined before the image can be updated.
The approaches Trace builds on
The earlier work discussed in the paper includes parallel versions of iterative reconstruction on multicore computers and GPU & parallel computing. The authors describe much of this research as optimizing a particular algorithm, frequently in shared memory. In shared memory, threads in the same process can work with data held in a common address space. It is a natural place to parallelize a reconstruction, since the threads can share the current image while handling different parts of the computation. The authors’ earlier system already used shared-memory parallelism. Trace extends that approach so that the memory and processors of several nodes can contribute to a single sinogram.
The paper describes GPUs as a source of high computational throughput, with previous applications in iterative reconstruction and medical imaging. The authors emphasize two concerns for the systems they discuss. Implementations often specialize their analysis code for a device and an application, and the datasets of interest here make memory capacity a central consideration. Their chosen platform is a cluster of multicore CPU nodes with enough memory to hold large reconstruction objects. The experiments study how that platform handles the workload.
Other earlier work divides a reconstruction domain into pieces. Trace makes this division in the sinogram data. It considers how to distribute measured rays and how to synchronize the processes that contribute to a slice. The authors also discuss prior work that improves the way iterative image reconstruction uses cache by organizing intermediate values into optimized buffers called supervoxels. That work gives them a point of comparison for the memory-access problem. Trace examines cache behavior alongside the communication costs that arise when a reconstruction runs across many machines.
The runtime follows a MapReduce-like pattern. A reconstruction developer supplies operations for generating intermediate contributions and using combined contributions to update the image. The runtime takes responsibility for distributing the work and merging the results. The paper compares this design with general-purpose MapReduce systems such as Spark and Hadoop, which it describes as targeting commodity hardware and offering features such as fault tolerance. Trace is designed around a narrower workload on high-performance computing resources. Its central data structure is sized for the reconstruction problem and is replicated to give workers private space in which to accumulate their results.
The paper places Trace alongside broader efforts to give synchrotron users timely analysis. Those efforts address workflow, data movement, and mathematical methods at research facilities. Trace addresses a particular stage in such a workflow, after projection data have been collected and before a reconstructed image can be examined. Its contribution is a way to organize the repeated computation at that stage, across threads inside a process and across processes on a cluster.
The method, step by step
Turn the projection stack into slice problems
A detector frame gives a projection at one angle. Stack the frames in acquisition order and the data have an angular axis and two spatial axes. The paper writes their order as (z, y, x). Here z indexes views, y indexes the rows associated with different slices, and x indexes detector columns. The paper uses θ for a viewing angle. An input pixel records a measurement associated with the line integral of an X-ray through the specimen along the corresponding path. The paper describes a 16-bit unsigned integer as the usual representation for such an input value.
A sinogram selects a row along the y axis and gathers that row from every angle. This rearranges what the reader might first picture as a stack of detector images into the set of measurements for a particular cross-section. Each angle contributes a row of measurements across the columns. Taken as a whole, the sinogram tells the reconstruction algorithm what different rays observed through the same plane. The corresponding output is a slice of estimated image values. A value in the output volume is called a voxel.
The output shape is typically (y, x, x). Here y gives the number of slices, and each x gives the extent of a slice along one in-plane axis. In the paper’s example, input dimensions of (720, 512, 2048) give a reconstructed volume of (512, 2048, 2048). The angular dimension used to gather the measurements gives way to the in-plane dimensions of the estimated image. Each sinogram contributes the observations needed to recover its corresponding slice.
The authors point out that this correspondence can be used directly for unregularized algorithms whose slice problems are independent. Each of those slices can go to a different process. Trace also addresses the case where this distribution leaves a slice too large for the desired turnaround time. Workers can share a sinogram by processing different subsets of its rays. Since rays from those subsets can cross the same voxels, each worker’s contribution is partial, even if it can process its assigned rays without interruption.
Predict the measurements, then gather corrections
Forward projection asks what a ray would measure if the current image estimate were accurate. A simulated ray crosses a sequence of voxels. For SIRT, the contribution from a voxel depends on the value currently assigned to it and the length of the path through it. A ray that travels farther through a voxel gives that voxel more influence on the predicted reading. The forward computation sums those weighted contributions along the ray.
dᵣ = ∑ᵢ∈ⱽ (mᵢ × lᵢ)
Here dᵣ is the predicted measurement for ray r. The summation sign means to add the terms for all voxel indices i in the set V, which contains the voxels the ray crosses. The symbol mᵢ denotes the current estimate at voxel i, and lᵢ gives the length of the ray’s path within that voxel. The multiplication scales each voxel value by that length. The equality defines the prediction for the ray. Trace uses a modified form of Siddon’s algorithm to work with the ray paths through the voxel grid.
Back projection works in the other direction. Information associated with a ray prediction contributes to the voxels the ray crosses. A given voxel can receive contributions from many rays, including rays that entered the plane from different orientations. The paper denotes the intermediate weight at voxel i by wᵢ and describes the update as normalizing the weights with length information before changing the image. Trace retains both forms of intermediate information. Its programming interface allows the reconstruction algorithm to specify how the contributions are generated and how the combined values determine the update.
There are two distinct dependencies in this loop. Each ray needs the current values of all the voxels along its path to generate a prediction. Each voxel update depends on contributions from the rays that visit that voxel. While workers compute their contributions, they can use the same state of the current image. They then need a way to collect the contributions for a particular voxel before proceeding. The local and distributed merges in Trace follow from this second dependency.
Consider two workers assigned rays from different parts of the same sinogram. They may both visit an interior voxel. Giving each worker a private place to store its contribution lets them accumulate their results independently. Once they finish, the runtime can combine the entries corresponding to that voxel. The updated image then reflects both groups of rays, and the next iteration starts with the revised values. The same logic applies when the workers belong to different processes or reside on different machines.
Assign rays and allocate private accumulators
Trace sets up the job by assigning sinogram data according to process identifiers. The paper denotes a process by Pⱼ, where j identifies the process, and a thread by tⱼ,ₖ, where k identifies a thread within process j. The processes read the parts of the input assigned to them. The runtime is initialized with the number of threads, the dimensions of the relevant sinogram data, and a reconstruction class called ReconClass. The class holds the operations that define the selected algorithm.
The flow shows the stages of one iteration after the work has been assigned. The cross-process merge applies when the sinogram has been split across processes.
How Trace reconstructs a slice across parallel workers
The steps in order.
The two functions that expose the reconstruction logic are Reduce(...) and Update(...). The runtime applies the first during the parallel processing of rays, when weights and lengths are accumulated in intermediate storage. It uses the second after the merges, when the available intermediate values can be used to revise the slice. The name Reduce(...) refers to the algorithm operation exposed by the interface. The runtime separately manages the combination of the data produced by that operation.
The intermediate storage is a replicated reconstruction object, or replica. It holds weight and length information indexed by voxel. Trace fully replicates this storage at thread level. Each thread gets one replica for its own intermediate values. It can then visit rays in its assignment and record their contributions without having to coordinate every voxel access with other threads. Synchronization takes place when the thread has finished producing its partial result.
A thread’s assigned ray data can cover only part of the sinogram while its accumulation array still has the extent of the corresponding image slice. Rays can travel across that slice and touch voxels in many different positions. This gives Trace the flexibility to divide the input as finely as individual ray measurements. The memory implications follow from the same design. Every thread requires private space for its accumulators, and the size of that space depends on the slice being reconstructed. Increasing the number of workers can reduce the rays assigned to each worker without shrinking the slice-sized storage those workers need.
Combine the thread results before exchanging process results
When the threads have processed their assigned rays, a local combination merges the replicas within each process. The result is a process-level intermediate object that contains the contributions made by its threads. The paper calls this stage LocalCombination(...). Threads participating in this stage have to wait for the other contributions needed by the merge. The arrangement places this synchronization after ray processing, when the runtime can combine whole sets of accumulated values.
Which stage comes next depends on the relationship between the number of sinograms and the number of processes. The paper gives the condition for the path that can update a slice using the locally combined results.
nₛ ≥ nₚ
Here nₛ is the number of sinograms, nₚ is the number of processes, and ≥ means greater than or equal to. With enough independent sinograms to distribute among the processes, the assignment keeps the rays for a particular sinogram within the process responsible for that slice. Once that process has combined its threads’ contributions, it has the information required to apply the update.
The other case gives processes work on different rays from the same sinogram.
nₚ > nₛ
Here nₚ and nₛ retain the same meanings, and > means strictly greater than. With more processes than sinograms, Trace groups the processes according to the sinogram they are working on. A process’s locally combined data are only a partial result for that sinogram. Trace applies GroupCombination(...) to merge those data with contributions from the other processes in the group. The sinogram identifier tells the runtime which contributions belong together.
The paper illustrates the grouping with sinograms s₀ and s₁, where the subscripts identify separate inputs. Processes P₀ and P₁ share s₀. Their threads process their respective groups of rays, and each process merges its thread results. Both processes must complete the group merge for s₀ before starting its next iteration. The existence of s₁ gives the runtime another group of data to handle independently. The grouping follows the slice whose intermediate values must agree.
This order means that the process-level communication uses locally combined results. The separate thread replicas have already been reduced before the machines exchange data. Communication still has a substantial cost when those combined objects are large. A process’s contribution summarizes its assigned rays in arrays indexed by voxel, so the exchange concerns the intermediate representation of the slice. The number of input rays per process gives only part of the information needed to anticipate that cost.
After the applicable merges, Trace applies the image update. The revised slice supplies the values for forward projection in the next iteration. At the end of the run the reconstructed output is written to storage. The experiments specify the number of iterations in advance. The procedures that change the image during a run use the measurements from that reconstruction, and the comparisons vary the input geometry or execution configuration.
Put the data used in one voxel visit together
Private replicas let threads proceed independently, but each thread still has to get the data for the voxels it visits. In the initial Trace layout, weights and lengths occupy separate arrays. This is a struct of arrays, or SoA. The position of a voxel in the weight array corresponds to its position in the length array. Accessing both values can require the processor to fetch data from two different memory locations.
Trace-OC changes the layout to an array of structs, or AoS. Each array entry keeps together the intermediate weight and length for the same voxel. A processor cache holds recently fetched data close to the processor. When the processor fetches one of the values for a voxel, the nearby value can come into cache with it. The advantage depends on the order in which those values are used. In the workload the authors describe, operations frequently need both values at a voxel, and the ray paths give rise to irregular accesses in the arrays.
Putting the pair together improves spatial locality because data needed together occupy neighboring locations. It also helps temporal locality when the other value is used soon after the first. The authors note that a separate array for each field can be preferable when the code scans one field in order. Trace-OC is designed around the accesses made in this reconstruction. The arrangement changes where the intermediate data reside in memory while preserving their roles in the calculation.
The cache change and the parallel design address costs at different scales. Layout affects the work a core does when it revisits an intermediate value or moves to the next voxel on a ray. Replication affects how many workers can accumulate their own values at once and how much private storage they need. The group merge affects how long those workers wait for a consistent set of intermediate values across processes. Trace combines these choices in a single runtime, which lets the authors time the effects in their respective stages.
Account for the shape of the workload
The paper expresses the computational cost of one SIRT iteration in terms of the input dimensions.
O(N_z × N_y × N_x²)
Here O is big-O notation for the order of growth as the dimensions increase. N_z is the number of projections, N_y is the number of sinograms, and N_x is the number of detector columns. Multiplication combines their growth terms, and the superscript ² squares the column count. The expression describes computational work per iteration in the formulation evaluated by the authors. A doubling in a dimension of an input can affect different parts of the work depending on which dimension changes.
The paper also gives the order of growth of the number of input values.
O(N_z × N_y × N_x)
The O again describes growth with the dimensions. N_z, N_y, and N_x designate projections, sinograms, and columns, respectively, and × denotes multiplication. Each input value belongs to a particular projection, sinogram row, and detector column.
The number of output image values grows differently.
O(N_y × N_x²)
Here O applies to the number of voxels in the estimated volume, N_y gives the number of output slices, and N_x gives their extent in each of the two in-plane directions. The ² accounts for those directions and × combines the slice count with the area of a slice. This is also the geometry that matters for the intermediate arrays. Increasing the number of projections adds groups of rays to process. Increasing the width changes the rays per view and the grid across which they travel, along with the amount of intermediate data associated with that grid.
Experiments and results
The platform, data, and comparisons
The experiments ran on Cooley, a visualization cluster at Argonne National Laboratory. It has 126 compute nodes. Each has 384 GB of memory and 12 cores, provided by two 2.4 GHz Intel Haswell CPUs with 6 cores each. The nodes communicate over FDR InfiniBand. The node’s internal layout matters because the tests vary how the available cores are assigned to processes and threads. The interconnect matters because several runs use those processes to exchange slice-sized arrays.
Trace includes implementations ported from TomoPy. They are SIRT, Maximum Likelihood Expectation Maximization (MLEM), Penalized Maximum Likelihood (PML), and Accelerated PML Reconstruction (APMLR). The performance experiments use SIRT. The original TomoPy implementation serves as a software baseline in the single-core comparisons. The authors also compare the original replica layout in Trace with the revised layout in Trace-OC. In the parallel tests, the comparisons change the allocation of processes and threads or the number of nodes devoted to a sinogram.
The mouse brain scan is the larger of the experimental datasets. It contains 4501 projections, 22,400 sinograms, and 22,400 columns, and takes ∼ 4.2 TB of disk space. Its reconstructed volume would have dimensions 22,400 × 22,400 × 22,400. With single-precision floating-point voxels, the paper gives the full image size as ∼ 40.9 TB. These volume dimensions characterize the source dataset and its output geometry. The timed large-scale parallel workload is one of its sinograms.
The shale scan contains 1440 projections, 2048 sinograms, and 2048 columns. Its input takes ∼ 12 GB of storage, and its corresponding reconstructed volume is ∼ 32 GB. The authors use a single sinogram from this dataset in the comparison with the mouse brain workload. They also use simulated data to vary the number of projections and the number of columns. This makes it possible to examine their effects separately, which would be difficult to do by comparing the experimental samples alone.
The timing measurements answer several different questions. The serial tests report reconstruction time under alternative layouts, along with cache counters. The parallel tests report total elapsed processing time and break it into phases. The node-scaling test fixes the workload and changes the number of nodes. Speedup always needs its reference configuration. The comparison against the best single core begins with a much smaller resource allocation than the comparison against a full node.
Image quality motivates the choice of SIRT
Before the performance comparisons, the paper illustrates the reason a researcher might choose an iterative algorithm. A shale reconstruction example uses 90 projections of 2K × 2K pixels each. SIRT takes ∼ 353 s for 80 iterations on two threads. Gridrec takes ∼ 9 s on one thread. In the authors’ visual comparison, the SIRT result is the higher-quality image. The example shows the kind of tradeoff that makes the engineering problem worth solving. A scan with relatively few views can benefit from an iterative approach, while the calculation takes substantially longer in the illustrated settings.
These image-example settings differ from the main parallel shale benchmark. The latter draws from the shale dataset described with 1440 projections and times an iterative reconstruction of a single sinogram. The image example compares algorithms visually and reports how long each example took. The system benchmarks hold SIRT in common so that execution time can be related to changes in data layout and execution configuration.
Single-core performance and memory access
The first serial sweep fixes the width at 2048 columns and changes the number of projections. Each run reconstructs a single sinogram for five iterations on one core. One workload has dimensions 1440 × 1 × 2048. With the width fixed, the size of the reconstructed slice stays the same across the sweep. More projections increase the number of ray measurements, so this comparison probes the cost of processing more views through a slice of the same dimensions.
Trace-OC is the fastest of the three implementations across the projection-count settings in that experiment. Its speedups over TomoPy range from 1.19 to 1.44, corresponding to a reported reduction in execution time of up to 30%. Against the original Trace layout, its speedups range from 1.12 to 1.21, with a reported reduction of up to ∼ 18% in reconstruction time. The Trace comparison is particularly informative about the layout, since the original and cache-optimized variants give different organizations of the same kinds of intermediate values.
The authors track misses at the first-level cache, L1, in addition to time. A miss occurs when the requested data are absent from that cache, requiring the processor to obtain them from elsewhere in the memory hierarchy. The measurements include both the number of misses and the percentage of L1 requests that miss. The percentage uses all requests, including hits, as its denominator. Across the settings, fewer misses generally accompany shorter runs. The authors interpret the improvement of Trace-OC in terms of the closer placement of data that are used together.
The authors highlight a case where the first-level counts alone give an incomplete explanation. At 1440 projections, TomoPy has a lower L1 miss count and miss percentage than the original Trace, but Trace finishes sooner. The authors report that Trace has higher bandwidth at the last-level cache in this setting. Here bandwidth is measured in million loads per second. The chart shows that particular counter comparison.
Last-level cache bandwidth for single-core SIRT at 1440 projections and 2048 columns
The original Trace processes more last-level cache loads per second than TomoPy in the highlighted case.
The numbers
| System or setting | million loads per second |
|---|---|
| TomoPy | 55.1 |
| Trace (this paper) | 58.9 |
The last-level bandwidth figures explain why the authors consider more than one cache measure when interpreting the elapsed time. The chart concerns TomoPy and the original Trace at the highlighted setting. Trace-OC’s evidence comes from the timing and L1 comparisons across the serial configurations. The elapsed time reflects the complete work of each implementation, so a counter for one cache level is one piece of that account.
In the second sweep, the authors hold the projection count at 1440 and change the number of columns. The runs again reconstruct a single sinogram. Trace-OC achieves speedups of 1.29 to 1.35 over TomoPy, with execution times up to ∼ 26% shorter. Compared with the original Trace, the reduction in time is between 6.3 and 14.4%. The advantage of the revised representation therefore appears in sweeps across two different dimensions of the input.
The sweep results also show that run time is especially sensitive to the number of columns. The authors describe an approximately linear rise in time with the projection count, with a doubling in projections accompanied by a doubling in execution time. In the column sweep, time rises more sharply as width increases. A wider detector changes the size of the slice as well as the number of measurements per projection. The comparison helps explain why an increase in specimen or projection width can be particularly consequential even at an unchanged number of views.
What the time breakdown measures
The next tests reconstruct one mouse brain sinogram and one shale sinogram on 32 nodes. They run for 5 iterations for the brain and 40 for the shale. The authors use these runs to examine the distribution of time across stages. The iteration counts differ by workload, so the relative cost of stages within a run provides the clearest comparison between the two sample sizes.
The configuration names specify the number of processes per node and the number of threads per process. For instance, ppn2-t6 uses two processes on each node and six threads in each process. The paper reports 64 active processes and 384 threads for this configuration on 32 nodes. The tests explore whether a node should do more of its work through separate processes or through groups of threads sharing a process. That decision changes both the cost of local combination and the number of processes taking part in communication.
The authors divide elapsed time into six phases. Read and Write cover moving input and output between storage and the application. Reconstruction covers the forward-projection work. Local Combination covers synchronization and reduction inside a process once its threads finish accumulating contributions. Group Communication covers the exchange and combination of process-level values for the same sinogram. Update applies the resulting information to the image. The breakdown makes it possible to see whether a faster projection phase improves the end-to-end result.
Results for the mouse brain sinogram
For the large sinogram, Group Communication accounts for 63.8–72.3% of the overall time in the configuration comparison on 32 nodes. The size of the data explains the prominence of this phase. A reconstructed mouse brain slice, at 1 × 22,400 × 22,400 with single-precision values, takes ∼ 2 GB. A replica holds both lengths and weights and takes 4 GB after the thread contributions have been combined locally. This is the object that a process contributes to the group operation.
The authors give an estimate for the amount of data involved in the configurations with four processes per node. At 32 nodes the run has 128 participating processes. Over 5 iterations, the paper estimates that at least 2.5 TB are exchanged. The estimate describes intermediate traffic during the reconstruction of one sinogram. It illustrates how a slice problem can generate a large communication workload through repeated exchanges, even after local combination has condensed the contributions from each process’s threads.
The fastest forward-projection phase occurs at ppn12-t1, which places a process with one worker thread on each core. The authors attribute the high projection throughput to the isolation that this mapping gives the processes. The overall winner is ppn2-t6, which has the shortest group communication time and also performs well in the projection phase. Compared with the other configurations in the 32-node test, its end-to-end speedups range from 1.12 to 1.49.
The authors suggest that ppn2-t6 may benefit from how the processes and threads fit the node’s two CPUs and six cores per CPU. The measured result is that the configuration has the best whole-run time on the tested setup. Process and data locality are offered as an explanation for that result. The configuration comparison incorporates several changes at once, including how many replicas are merged locally and how many process contributions are exchanged.
The best single-core run of the corresponding sinogram takes more than ∼ 63 h end to end. The authors report an end-to-end speedup of 158× for ppn2-t6 on 32 nodes relative to that baseline. They express the practical impact as a reduction from ∼ 12.5 h to <5 min per iteration for the 4501 × 1 × 22,400 sinogram. The per-iteration result and the multi-iteration end-to-end comparison both describe the workload of a single slice.
Results for the shale sinogram
In the 32-node shale tests, the forward-projection phase accounts for 52–73% of elapsed time. Group Communication takes a smaller role than it does for the brain workload. With fewer columns, the reconstructed slice is smaller, and the intermediate object exchanged by the processes is smaller as well. The distinction between the two workloads shows how geometry can change which parts of the same runtime determine its elapsed time.
Here too, ppn12-t1 has the fastest Reconstruction phase, while ppn2-t6 has the best total elapsed time. In the shale tests, the time spent combining thread results is especially visible in ppn1-t12, ppn1-t24, and ppn2-t12. All have relatively large groups of threads within a process. The highest reported synchronization overhead is 12.2%, for ppn1-t24. The authors see a similar tendency for the mouse brain workload, where the other expensive phases make the local combination less prominent in the total.
This comparison gives the configuration result additional context. Placing more threads in a process can reduce the number of processes participating in a group exchange, but it enlarges the thread group taking part in the local merge. Putting each thread in a separate process can favor projection performance on Cooley. The outcome depends on the balance between those stages and the size of the object each stage handles.
Strong scaling on a fixed sinogram
Strong scaling measures what happens when the amount of work stays fixed and more machines are assigned to it. The paper performs this test on one mouse brain sinogram for five iterations, keeping ppn2-t6 as the per-node configuration. Each increase in the number of nodes gives the runtime more workers for the rays of the same slice. The workload for the final accumulation still concerns the same output geometry.
Through 8 nodes, the reconstruction computation takes the largest amount of time. At 16 and 32 nodes, communication dominates. The paper reports that the absolute communication time falls as the system goes from 2 to 32 nodes. Its fraction of the total nonetheless rises from 19.7 to 60.1%, because the computation time falls faster. Absolute time and percentage of total time answer different questions here. The overall job gets faster even as communication occupies a larger part of the shorter run.
The measured speedup on 32 nodes is 21.6 relative to 1 node. The baseline here uses the full node under the same process-and-thread configuration. This comparison shows the benefit of allocating more nodes to the same slice after the runtime already uses the cores of a node. The single-core speedup also includes the gain from using multiple cores within each node. Together the comparisons describe two resource decisions that an experimenter or a cluster operator might face.
What the ablations show
The layout helps before parallelism enters the comparison
The layout experiment provides the clearest controlled comparison in the paper. The two Trace variants use the same reconstruction task on the same single-core platform. The original keeps separate weight and length arrays, and Trace-OC stores a voxel’s pair together. With a single worker core, a change in thread synchronization or network traffic cannot explain the speedup. The improvement appears when the authors vary the number of views and when they vary the width of the input.
The cache measurements support the explanation that the paired layout fits the access pattern. A ray visits voxels according to its path through the slice, and the computation typically uses both intermediate values associated with a voxel. Keeping them beside each other helps the hardware fetch material for the immediate work. The authors’ comparison with TomoPy gives an additional baseline for the resulting run time. The change from Trace to Trace-OC is the closer test of how data layout alone affects their own engine.
The L1 exception shows how far that explanation can be taken. In the comparison of the original Trace with TomoPy at 1440 projections, the timing favors Trace and the L1 miss measures favor TomoPy. The higher reported bandwidth at the last-level cache gives the authors a further way to account for that result. At the level of the paper’s measurements, cache behavior explains the general pattern through several counters and timings. A count at one level describes only part of the costs of delivering data to a core.
The input sweeps sharpen this interpretation. With the column count fixed, each run estimates an image of the same shape, while the number of rays changes with the number of views. With the projection count fixed, a change in columns alters both the measurements per view and the extent of the image that the arrays represent. The steeper rise in time in the second sweep fits the geometry of the calculation. It also helps explain why a layout tuned to how the code uses large arrays remains relevant as the load grows.
The best projection phase can give a different configuration choice
The fixed-node experiments probe a second design choice, the balance between processes and threads. The authors use the same number of nodes for these comparisons. Different configurations can still change the degree of local synchronization, the number of participants in group communication, and how computation maps to the cores. The phase timings show which of these costs matters to the measured total.
For both specimens, the process-per-core configuration ppn12-t1 provides the fastest Reconstruction phase. That observation is consistent with the authors’ explanation about process isolation. The comparisons also expose the cost of using forward-projection time as the sole selection criterion. In both cases, ppn2-t6 wins on overall time. Forward projection can execute efficiently while a large amount of total time is still spent combining work done by the participants.
The competing synchronization effects become clearer when the sample size changes. With shale, group exchange is modest enough that local synchronization is visible in the breakdown. The configurations with larger thread groups take more time in Local Combination. With the brain sinogram, the much larger process-level objects make Group Communication the strongest determinant of the total across the 32-node configurations. Reducing the number of process participants can help at that stage, but changing this count also changes what happens inside a process. The experiments establish the balance achieved by the tested settings on Cooley.
They provide narrower evidence about precisely why ppn2-t6 does best. The authors suspect that its two processes and six threads per process match the node topology well. The experiment varies the allocation of processes and threads together. Its phase breakdown shows where the winning configuration gains time, while the proposed connection to the two CPUs is an interpretation of that measured pattern. This matters when applying the result to a machine whose processors, caches, or memory arrangement differ.
Strong scaling reveals the growing share of communication
The fixed-sinogram scaling experiment provides a further controlled view of the overhead. The algorithm, input, iteration count, and organization within a node stay fixed. The number of nodes changes. The rays can be distributed among additional workers, reducing the amount of forward work each must handle. The replicas exchanged at the end still describe contributions to the same slice. Since the output geometry is fixed, the benefits of dividing the rays carry over only partially to the group merge.
The paper describes the computation as scaling nearly perfectly over the tested range. The communication phase also gets faster in absolute terms across the range reported for that measurement, but its share of total time grows. This identifies the source of the change in the phase breakdown at larger node counts. The improvement in forward-projection time leaves less computation to offset the time spent combining the intermediate objects.
The communication percentages in the configuration comparison and in the strong-scaling comparison describe different experimental views. The former reports a range across process-and-thread arrangements at 32 nodes. The latter follows a fixed arrangement as resources increase and reports the endpoint shares for that scaling series. Each supports the conclusion that the large sinogram makes group communication important. Each percentage belongs with its own setup.
The comparisons isolate different costs
The serial layout test changes how a worker gets its intermediate data. The fixed-node tests change how workers are organized and how their results are combined. The strong-scaling test changes how many machines participate in a fixed slice problem. Considering these comparisons together explains why Trace can improve strongly over one core while still encountering a communication limit as the cluster grows. The ray work offers enough independence to distribute widely, and the update still needs the combined result for the slice.
The paper’s figures also distinguish the effect of a larger input from the effect of a larger intermediate object. Adding views gives the workers more rays. A wider slice gives them more voxel locations to represent in each replica. Those changes can place stress on different parts of the runtime. The computation sweeps and the two specimen benchmarks make that distinction observable through different methods, one varying the input dimensions and the other timing the stages of a full run on experimental data.
Limitations
Limits the authors identify
Private replicas consume memory. The authors explicitly recognize that full replication can limit how many workers participate in a reconstruction. Each thread needs space for the intermediate weight and length values for the shape it handles. If many threads work on a large slice, the memory cost rises with that replication. The paper’s choice of a cluster with 384 GB of memory per node is relevant to its ability to run the tested configurations. A machine with less space for intermediate values would face a different set of feasible configurations.
The authors also identify communication as an overhead of distributing one sinogram. The process-level merge has to exchange contributions after the threads within each process have finished. For a large image slice, those contributions are themselves large. The time breakdown bears out this concern on the mouse brain sinogram. The scaling results quantify how forward computation can become cheaper faster than communication does. The reported improvement comes with a measured cost for the coordination required between iterations.
The simple mapping from one sinogram to one independently reconstructable slice has a stated scope. The authors use it for unregularized reconstruction when the slices can be handled independently. An algorithm whose update uses information across slices would have additional dependencies to satisfy. Trace’s interface gives a developer a way to supply alternative reconstruction operations, and the authors discuss the possibility of including other methods during or between iterations. The demonstrated execution and timing apply to the dependencies in the SIRT workload they evaluate.
The authors describe the cache advantage in terms of the access pattern. Their rationale for putting the values together depends on using the voxel’s weight and length around the same time. They also give a case where a separate array per field is preferable, when code works sequentially down that field. The observed improvements establish the value of pairing for the tested reconstruction operations on the chosen hardware. Other operations may visit the same data in a different order.
Limits of the evaluation
The headline timing is for a sinogram extracted from a much larger dataset. The full mouse brain scan contains 22,400 sinograms and corresponds to a reconstructed volume of ∼ 40.9 TB. The performance tests reveal the turnaround for the measured slice, including the stages described in the timing breakdown. A complete volume introduces the work of scheduling and completing all of its slices and moving the resulting volume to storage. The paper’s timing for a single slice leaves the elapsed time for that complete job open.
The number of iterations is set for the benchmark runs. For the mouse brain and shale comparisons it is 5 and 40, respectively. An end-to-end speedup in those runs concerns completing the prescribed iterations. Reconstruction to a specified quality would also involve knowing how many iterations the task requires and deciding when the image meets that criterion. The illustrative Gridrec and SIRT comparison shows a visible quality difference in one shale example, and the measured performance experiments concentrate on the cost of running SIRT. They provide no quantitative image-quality comparison across cluster configurations.
The implementation includes several reconstruction algorithms, but the numerical performance evidence comes from SIRT. Algorithms that use different kernels can place a different load on the cache, make different use of intermediate values, or require different work in the image update. The API supports expressing other operations. The reported cache improvements, thread configurations, and scaling results have been measured for the operation studied here. Comparing the other implementations would require their own timing and quality measurements.
The large parallel experiments are specific to the CPU cluster described in the paper. Its interconnect, per-node memory, core counts, and processor organization are part of the setup for the measured communication and synchronization times. The serial TomoPy comparisons and the Gridrec example establish particular baselines. The related-work discussion describes work on accelerators and other parallel systems, but the performance experiments supply no head-to-head benchmark against those systems on the large sinogram.
Finally, the measured scaling series ends at 32 nodes. The change in the balance of computation and communication is already visible at that point. The authors motivate Trace in terms of timely feedback during experiments, while the measurements concern reconstruction runs performed on the cluster. The time to receive feedback in a live experiment would depend on the work involved in delivering data to the reconstruction, obtaining the computing resources, and presenting the result. The results give a measured processing time for the specified input and allocation. The delay across an entire live acquisition and analysis workflow remains unmeasured.
What came after
Follow-on use of Trace’s approach is undocumented here. The paper leaves open whether later systems retained its full per-thread replicas, changed how they combine data across processes, or carried the same division of work into reconstruction methods with dependencies across slices.
Cite
Cite as Tekin Biçer, Doğa Gürsoy, Vincent De Andrade, Rajkumar Kettimuthu, William Scullin, Francesco De Carlo and Ian T Foster. 2017. Trace: a high-throughput tomographic reconstruction engine for large-scale datasets. Advanced Structural and Chemical Imaging.
@inproceedings{bicer2017trace,
title = {{Trace: a high-throughput tomographic reconstruction engine for large-scale datasets}},
author = {Tekin Biçer, Doğa Gürsoy, Vincent {De Andrade}, Rajkumar Kettimuthu, William Scullin, Francesco {De Carlo} and Ian T Foster},
booktitle = {Advanced Structural and Chemical Imaging},
year = {2017},
doi = {10.1186/s40679-017-0040-7},
url = {https://doi.org/10.1186/s40679-017-0040-7}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bicer-2017-trace-high-throughput-tomographic-reconstruction/