Low-rank shared subspace
By default, HighOrderLowRankOp reduces repeated encoding cost with two successive approximations: local randomized SVD (rSVD), then incremental sharing of the retained spatial factors. An optional final recompression introduces a third approximation stage. The image and coil maps are not low-rank approximated. The supplied Fourier trajectory is retained, while the numerical NFFT approximation has its own error.
Symbols follow Symbols and notation. For optional global recompression, this page distinguishes the accumulated rank
Readouts use index nSam, nDyn in Julia).
Method overview
Figure 1. Adaptive shared-basis reconstruction. (a) The signal model separates zeroth-order phase, Fourier encoding, and residual field modulation. (b) Local rSVD factors are combined into a shared spatial basis and readout-specific temporal factors. (c) Readouts
The figure shows the default shared rSVD construction with global_basis_tol=nothing, so
This schematic omits optional final recompression. The stored temporal factors also include normalization and the NFFT centre correction, as detailed in phase folding. The full residual model, including the 2D residual terms and optional concomitant phase, is described below.
The default path is easiest to follow in this order:
- Local rSVD constructs
. - Incremental sharing builds a spatial basis and saved coefficient blocks; earlier blocks are zero-padded when the basis grows.
- Temporal assembly forms
. - Optional recompression rotates and may truncate the completed representation.
- Phase folding and NFFT implement the final forward, adjoint, and weighted normal operators.
The local and incremental stages introduce separate approximation errors. Temporal assembly and phase folding add no intended truncation. Optional final recompression adds error relative to the already shared representation. It cannot recover components discarded earlier.
Relation to previous methods
Separable temporal-spatial representations of higher-order MRI encoding have previously been obtained using singular-vector separation, and related decompositions are used in expanded-model reconstruction such as MaxGIRF. [2] [3] The randomized range-finding step used here follows standard rSVD methods. [4]
HighOrderMRI combines matrix-free per-dynamic factorization with an incrementally constructed shared spatial basis and a global-trajectory NFFT representation. The resulting shared basis is not an exact post-hoc global SVD of all dynamic-specific matrices. Consequently, the Eckart-Young optimality result for a truncated SVD of a fixed matrix does not apply directly to the completed incremental representation. [5]
A direct global SVD/rSVD remains a useful approximation-quality reference when memory permits because all dynamics can be considered jointly. The incremental method instead targets memory-bounded construction and scalable execution. These alternatives are distinguished explicitly in Scientific validation strategy.
Shared subspace and hierarchical POD constructions also have established mathematical foundations, including HAPOD. [23]
For local fixed-precision approximation, Yu et al. give QB energy identities with orthogonality and finite-precision requirements. [21] Demmel et al. describe TSQR, a stable alternative to forming a tall matrix's Gram before SVD. [22] These are numerical references, not additional constructor backends.
Residual encoding matrix
For dynamic
The zeroth-order temporal phase and the first-order Fourier terms are excluded from
Concomitant phase in the residual model
The optional term in the residual exponent is zero when concomitant=nothing. For supplied coefficients,
The four basis columns and corresponding coefficient rows are appended before residual basis construction. This applies to the selected shared or per-readout representation; the nominal first-order NFFT trajectory is unchanged. recon_terms selects only the original spherical-harmonic rows, and kspha still has 9 or 16 rows at the public interface.
op = HighOrderLowRankOp(grid, kspha_dynamic, times_dynamic;
fieldmap, csm, mask,
concomitant=concomitant_coefficients, # (4,nSam,nDyn), cycles/m²
)A single-dynamic call also accepts (4,nSam). With concomitant=nothing, no extra phase buffers are appended. Match the coefficient coordinate frame and physical origin to the grid, and convert rad/m² to cycles/m² by dividing by times again. See the encoding model for the common convention.
Per-dynamic randomized SVD
Let L_rank, rsvd_oversample, and
is generated, and the randomized range sketch is computed as
The projected adjoint matrix is then
Products with times, fieldmap, the residual rows of kspha, and the corresponding spatial basis functions. For a fixed configuration, dynamic
The current implementation uses one Gaussian sketch and QR range finding, without power iteration. The retained rank
With voxel-distributed setup, worker
Direct SVD finalization
For rsvd_finalize=:svd, let
Retaining the first
and therefore
Because
The singular values are absorbed into the spatial factor
Small-Gram finalization
For rsvd_finalize=:gram, the implementation forms
and diagonalizes
The retained factors are recovered as
If
Independent per-readout representation
Set basis_layout=:per_readout to retain each local pair
op = HighOrderLowRankOp(grid, kspha, times;
fieldmap, csm, mask,
basis_layout=:per_readout,
L_rank=6,
rsvd_oversample=5,
)For each readout and coil, the forward operation is
The same zeroth-order phase, centre correction, and normalization are folded into the temporal factors. With resident factors, one NFFT plan is cached per readout, giving
CPU storage and GPU lookahead
To bound GPU memory for a large independent factor bank, keep the factors in host RAM and use a readout queue:
op = HighOrderLowRankOp(grid, kspha, times;
fieldmap, csm, mask,
arrayType=CuArray,
basis_layout=:per_readout,
per_readout_storage=:cpu,
per_readout_cache_size=5,
L_rank=6,
rsvd_oversample=5,
)Each normal-operator worker caches at most five readouts in this example. A separate CUDA stream copies future factors through one pinned host staging buffer. A single NFFT plan per worker updates its trajectory on the compute stream. Ready/consumed events prevent a slot from being used before its transfer completes or overwritten before its transforms finish. Completed slots are replenished while another slot computes. The same queue is used by the forward, adjoint, and multi-GPU normal operator. The source operator owns a separate queue for forward and standalone adjoint evaluations on the primary GPU.
Once the multi-GPU normal backend has been initialized, adjoints reuse its workers and queues, distributing readouts and evaluating all coils for each readout together. Each spatial factor block is then transferred once across the worker group. This also parallelizes the solver's initial adjoint without changing its weights or independent spatial factors.
For CG itself, select normal_distribution=:readout to assign disjoint readout ranges to workers, evaluating all coils for each assigned readout. Each factor block is then streamed once across the worker group per normal application, while all coil sensitivity maps are kept on each active GPU. normal_distribution=:channel retains the existing coil partition, with each worker traversing every readout. These compute the same weighted normal operator up to floating-point summation order.
Only storage and scheduling change: the full independent spatial bank still occupies per_readout_storage=:gpu materializes independent factors and plans on the selected array backend: GPU for CuArray, CPU for Array. The :cpu and :regenerate modes require CUDA and bound cache slots rather than the complete host/device memory footprint.
Pipelined setup aggregation
Voxel-distributed per-readout setup uses per_readout_gather=:pipeline by default. Each GPU has two pinned host buffers and a separate collector worker. Downloads and host writes can overlap later rSVD phases. A CUDA event delays the next overwrite of the spatial factor until its download finishes; a host buffer is reused only after its final write completes. The queue is bounded to two outstanding readouts. per_readout_gather=:synchronous retains the blocking gather for comparisons. The independent factors and their precision are unchanged, and the full host factor bank is still required.
Provide threads for compute workers, factor collectors, and a coordinator when using the pipeline. A smaller thread count can reduce overlap while the queue remains bounded. See runtime requirements.
On-demand regeneration
When the independent spatial bank exceeds host RAM, use per_readout_storage=:regenerate with rsvd_distribution=:voxel, rsvd_backend=:kernel and rsvd_finalize=:gram. This retains each readout's original unmodulated
with the existing matrix-free adjoint kernel. Uncached spatial blocks are generated as needed, rather than materializing the complete spatial bank. No additional singular-value truncation is introduced; GPU partition/GEMM geometry may change rounding, so validate the factor and operator errors for the workload. The temporal normalization and zeroth-order/centre phases remain in the operator's q, separately from Q/Z.
per_readout_cache_size=1 generates and consumes factors serially. Values of 2 or more enable an independent producer task/stream to prepare future readouts while the consumer evaluates all coils of the current readout. Each slot has ready/consumed events and is never overwritten while in use. Generation and NUFFT share GPU compute resources; lookahead is an opportunity to overlap work, not a guarantee that generation cost disappears.
per_readout_host_cache_bytes sets an optional host factor budget (default zero). Whole factor blocks from a fixed, evenly spaced subset are materialized during setup; all GPU workers reuse the same bank. Fixed residency avoids evicting every cached readout during repeated sequential CG sweeps. The budget excludes Q/Z, field maps, workspaces and pinned staging. The budget applies only to resident spatial factor blocks, not to Q/Z, the phase model, generator workspaces, or GPU slots. The source operator and each normal worker own bounded GPU slots and a generator workspace; close(op) releases these workers/caches, which are recreated lazily if the operator is subsequently reused.
Comparison scope
Both representations use the same local rSVD model. Changing basis_layout changes how retained factors are stored and combined. shared_rank_max and shared_basis_tol are unused for independent factors; global_basis_tol must be nothing, and shared_basis_method must be :rsvd. A zero shared tolerance still constructs a shared basis and does not select the independent representation. See the storage reference.
The independent factorization and per-readout NUFFT sums follow the MAXGIRF author's encoding implementation. This switch retains HighOrderMRI's local rSVD implementation. Supply concomitant separately to include its phase; the layout does not estimate physical coefficients or promise bitwise reproduction of the MATLAB reconstruction.
Incremental shared spatial basis
Independent local factorizations would retain up to
Before processing dynamic
The current spatial factor is first projected onto the existing basis,
and the residual is
A second projection/subtraction is performed in the implementation and the corresponding correction is accumulated in
The residual Gram matrix is decomposed as
The residual Gram is accumulated in ComplexF64 on both local and voxel-distributed paths, including for Float32 input factors. Its small eigendecomposition and spectral rank selection use Float64; stored basis vectors, coefficients, and NFFT products retain the requested precision. This behavior is automatic. It applies to the incremental shared residual Gram, separately from local rSVD finalization.
The minimum number
where shared_basis_tol. The denominator
For the selected positive residual eigenvalues, the appended basis vectors are
Write the appended residual modes as
and the coefficient block for the current dynamic is completed as
At the time dynamic
If the required accumulated rank would exceed shared_rank_max, setup terminates with an error rather than relaxing the requested rank bound.
Streaming coefficient representation
The implementation is memory bounded: after dynamic
Let
be the completed shared basis, and let
For an earlier dynamic, however, the stored coefficient block is generally not the orthogonal projection onto the completed basis:
Appending basis columns and padding earlier coefficient blocks with zeros leaves the previously stored approximation unchanged. The final coefficients should therefore be interpreted as streaming coefficients associated with the incremental construction, rather than as coefficients from a post-hoc global projection.
Optional no-add check
shared_noadd_check=false is the default. With voxel-distributed shared rSVD, the opt-in check can avoid the residual-Gram eigendecomposition when the existing basis is already sufficient. It keeps the original two-pass projection, coefficient correction, and full residual computation.
For a nonempty shared basis, workers sum the residual energy in FP64:
A conservative guard compares this energy with
This is a setup optimization for the default rSVD method. It neither prunes ranks during CG nor selects the reconstruction distribution. Conditions and defaults are listed in the LowRank reference.
Optional final global recompression
The completed incremental representation is global_basis_tol=nothing, retain it unchanged:
If
For a nonempty input representation, the implementation keeps at least one direction. The displayed rotation is used when the rank is reduced; when all columns are retained, the input factors are returned unchanged without rotation. Numerically negligible total energy also leaves the factors unchanged. The reported relative error is additional to local rSVD and incremental sharing error. It does not recover earlier discarded components or certify image error. Gram and basis-orthogonality roundoff remain separate numerical limitations. Recompression occurs before the temporal phase and normalization folding. For global_basis_tol >= 1, the current reported discarded-energy diagnostic can be inconsistent with the forced minimum rank of one. Do not treat that diagnostic as a checked error bound in this range; no numerical implementation change is included here.
Construction scope
This derivation covers regular local rSVD and incremental sharing. Joint construction and its algorithm evaluation are outside the reviewed scope. The former section anchor is retained for existing links; source signatures list the implemented keywords without making claims about that path.
Final residual representation
For rSVD, first assemble the unscaled incremental sample-domain factor
Stack all dynamic blocks with samples varying fastest. Optional global recompression produces
The stored temporal matrix additionally folds in:
- the zeroth-order phase
; - the parity-dependent NFFT centre correction
; - the symmetric normalization
.
Thus the actual stored rows are
The first-order Fourier phase stays in the NFFT. Here
Forward and adjoint operators
Let
The complex conjugation of
The corresponding multi-coil adjoint is
These expressions agree with the implemented conjugation pattern: the forward operator multiplies the image by the coil sensitivity and the conjugated shared-basis vector before the NFFT, whereas the adjoint applies the conjugated temporal coefficient, the NFFT adjoint, the conjugated coil sensitivity, and the non-conjugated shared-basis vector.
Without sample batching, each shared transform evaluates the concatenated trajectory. The number of NFFT evaluations per forward or adjoint application is
For independent per-dynamic spatial factorizations, the corresponding transform count would scale approximately as
Weighted normal and rank execution
Let
Summing only per-rank normals omits the
For rank batch size
Two-stage approximation error
For the rSVD path, before optional global recompression and before temporal phase/normalization folding, the approximation is
The triangle inequality gives
Since
and therefore
The first term is the local rSVD approximation error and the second term is the incremental shared-basis approximation error. shared_basis_tol controls only the second stage relative to the retained local energy
For the stacked original phase matrix
The second term is controlled relative to the already shared representation, not relative to
Parameter interpretation
For the default rSVD construction:
| Parameter | Stage | Meaning |
|---|---|---|
basis_layout | Representation | Shared spatial columns or independent per-readout factors. |
L_rank | Local rSVD | Fixed retained rank |
rsvd_oversample | Local rSVD | Additional sketch columns; |
rsvd_seed | Local rSVD | Base seed; backend and partition also determine the actual sketch. |
rsvd_finalize | Local rSVD | Direct SVD or projected Gram finalization. |
rsvd_backend | Local products | Chunked products or fused kernels; internal 16-column batches do not cap total rank. |
shared_basis_tol | Incremental merge | Residual tolerance relative to retained local energy |
shared_rank_max | Incremental merge | Cap on accumulated rank |
shared_noadd_check | Incremental merge | Optional guarded residual-energy check; default false. |
global_basis_tol | Final recompression | Additional error relative to the completed representation; default nothing. |
normal_distribution | Execution | Select single, channel, rank, or independent-readout execution. |
normal_sample_batch_size | Rank execution | Bound sample batches, not total memory; default 12_000_000. |
The local rank
Use the API reference for exact defaults and supported combinations, and the multi-GPU guide for runnable configuration. Approximation and adjoint checks should use a tractable explicit or directly constructed reference with the same mask and phase conventions. Validation methodology is described separately in Scientific validation strategy.
Validation scope
Regression tests assess consistency of phase sign, coordinate convention, NFFT node mapping, centring, normalization, masking, data layout, and adjointness on tractable problems. These tests establish implementation consistency but do not constitute an independent physical reference. Validation of absolute physical accuracy requires independent simulation or measured reference data.