- Book Chapter
1
- 10.1016/b978-0-12-394435-1.00017-x
Chapter 17 - Implementing the QR Decomposition
- Sep 19, 2014
- Numerical Linear Algebra with Applications
- William F Ford
Chapter 17 - Implementing the QR Decomposition
SVD and QR Decomposition have attracted much attention recently for solving linear algebra and digital signal processing problems. The House-holder QR Decomposition requires a smaller number of operations then the Givens QR Decomposition and therefore is strongly recommended for sequential computer implementations (as found in nearly all known libraries like NAG, LINPACK, EISPACK etc.) However for parallel implementation it has not been widely used, because the Givens Rotations possess inherent parallelism and the Householder Reflections do not. This is true if one analyzes the original algorithm. Four independent loops and three bottlenecks between the loops are constraint for pipelining the computations. This leads to an inefficient solution, i.e. 4n time moments for each iteration and since there are n iterations then the total time to execute the algorithm is O(4n 2 ). Compared to 3n m 2 time steps for the Givens QR Decomposition it is uneconomic. In this paper we have used some recent results for the elimination of the computational and data broadcast, and data synchronization to derive a fully localized form of the Householder QR Decomposition algorithm. We have succeeded in reorganizing and transforming the algorithm from three bottlenecks to one and four loops to one. A linear and a double pipeline array of n+1 processors are presented to solve the problem in O ( n 2 /2) time steps. It is also shown that the bottlenecks for the bidiagonalization and SVD computation cannot be eliminated.
Chapter 17 - Implementing the QR Decomposition
Chapter 17 - Implementing the QR Decomposition
Backward error analysis of the AllReduce algorithm for householder QR decomposition
The AllReduce algorithm is a promising new algorithm for parallelizing the Householder QR decomposition A = QR of a tall and skinny matrix. It divides the input matrix A vertically in a recursive manner, computes the QR decompositions of each submatrix independently, and merges the results to obtain the QR decomposition of A. While this algorithm has been shown to achieve excellent speedup in various parallel environments, its rounding error properties have not been elucidated yet. In this paper, we present theoretical error analysis of the AllReduce algorithm. Specifically, we derive bounds for the backward error of A and deviation from orthogonality of the computed Q factor. Our analysis shows that both of these bounds are smaller than their counterparts for the conventional Householder QR algorithm. Moreover, the bounds decrease as the number of submatrices increases. These results are supported by numerical experiments. Thus we can conclude that the AllReduce algorithm can be used as a reliable method of orthogonalization in parallel environments.
Read moreComments on "Complete discrete 2-D Gabor transforms by neural networks for image analysis and compression
The commenters address a statement made in the above-titled paper J.G. Daugman (see ibid., vol.36, no.7, pp.1169-79, July 1988) that 'it would be completely impractical to solve this huge system of simultaneous equations by algebraic methods such as matrix manipulation, since the complexity of such methods grows factorially with the number of simultaneous equations'. They point out that the method of Gaussian elimination solves the problem in a low order polynomial time; specifically, O(N/sup 3/) arithmetic operations are needed where N is the number of linear equations and the number of unknowns. Major algorithms include LU decomposition requiring O(N/sup 3//3) operations; the Householder QR decomposition, requiring O(2N/sup 3//3) operations; and the Givens QR decomposition, requiring O(4N/sup 3/) operations.< <ETX xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">></ETX>
Read moreOptimized Implementation of Modified Gram Schmidt Algorithm on VLIW Architecture
Modified Gram Schmidt (MGS) is one of the well-known forms of QR decomposition (QRD) algorithms. It has been used in many signal and image processing applications to solve least square problem, linear equations or to invert matrices. Nevertheless, QRD is considered a computationally expensive operation, and its sequential implementation doesn't meet the requirements of many real time applications. In this paper, we propose an optimized MGS algorithm version based on software pipelining and loop unrolling techniques. The suggested MGS version is parallel and well suited for VLIW architectures. The implementation is done under TI C6678 VLIW DSP and the obtained results show great improvements against the standard MGS and the optimized vendor QRD implementations.
Read moreSorted QR Decomposition Based Tree Search Detection Algorithm for MIMO System
QR decomposition with M-algorithm (QRD-M) is a breadth-first tree search algorithm, which has been proposed to provide near Maximum likelihood (ML) detection performance with lower computation complexity in Multiple-Input Multiple-Output (MIMO) system. To accomplish near-ML detection performance in QRD-M detection, M should be set at a large value, and the increasing of parameter M will lead to the increasing of complexity. In order to trade off the detection performance and calculating complexity, an improved detection algorithm is presented here. Householder transformation is performed for sorted QR decomposition of channel matrix firstly, and ML algorithm is used to detect the bottom several layers, then the partial accumulated metrics are calculated and sorted to produce an ordered set, QRD-M algorithm is performed serial to each branch of the ordered set with terminal condition, at last. The proposed detection algorithm can get better trade-off between performance and complexity. Simulation results show the validity of proposed algorithm.
Read moreLanczos, Householder transformations, and implicit deflation for fast and reliable dominant singular subspace computation
Many applications, such as subspace‐based models in information retrieval and signal processing, require the computation of singular subspaces associated with the k dominant, or largest, singular values of an m×n data matrix A, where k≪min(m,n). Frequently, A is sparse or structured, which usually means matrix–vector multiplications involving A and its transpose can be done with much less than 𝒪(mn) flops, and A and its transpose can be stored with much less than 𝒪(mn) storage locations. Many Lanczos‐based algorithms have been proposed through the years because the underlying Lanczos method only accesses A and its transpose through matrix–vector multiplications. We implement a new algorithm, called KSVD, in the Matlab environment for computing approximations to the singular subspaces associated with the k dominant singular values of a real or complex matrix A. KSVD is based upon the Lanczos tridiagonalization method, the WY representation for storing products of Householder transformations, implicit deflation, and the QR factorization. Our Matlab simulations suggest it is a fast and reliable strategy for handling troublesome singular‐value spectra. Copyright © 2001 John Wiley & Sons, Ltd.
Read moreReproducible Tall-Skinny QR
Reproducibility is the ability to obtain bitwise identical results from different runs of the same program on the same input data, regardless of the available computing resources, or how they are scheduled. Recently, techniques have been proposed to attain reproducibility for BLAS operations, all of which rely on reproducibly computing the floating-point sum and dot product. Nonetheless, a reproducible BLAS library does not automatically translate into a reproducible higher-level linear algebra library, especially when communication is optimized. For instance, for the QR factorization, conventional algorithms such as Householder transformation or Gram-Schmidt process can be used to reproducibly factorize a floating-point matrix by fixing the high-level order of computation, for example column-by-column from left to right, and by using reproducible versions of level-1 BLAS operations such as dot product and 2-norm. In a massively parallel environment, those algorithms have high communication cost due to the need for synchronization after each step. The Tall-Skinny QR algorithm obtains much better performance in massively parallel environments by reducing the number of messages by a factor of n to O(log(P)) where P is the processor count, by reducing the number of reduction operations to O(1). Those reduction operations however are highly dependent on the network topology, in particular the number of computing nodes, and therefore are difficult to implement reproducibly and with reasonable performance. In this paper we present a new technique to reproducibly compute a QR factorization for a tall skinny matrix, which is based on the Cholesky QR algorithm to attain reproducibility as well as to improve communication cost, and the iterative refinement technique to guarantee the accuracy of the computed results. Our technique exhibits strong scalability in massively parallel environments, and at the same time can provide results of almost the same accuracy as the conventional Householder QR algorithm unless the matrix is extremely badly conditioned, in which case a warning can be given. Initial experimental results in Matlab show that for not too ill-conditioned matrices whose condition number is smaller than sqrt(1/e) where e is the machine epsilon, our technique runs less than 4 times slower than the built-in Matlab qr() function, and always computes numerically stable results in terms of column-wise relative error.
Read moreApplying Out-of-Core QR Decomposition Algorithms on FPGA-Based Systems
QR decomposition, especially through the means of Householder transformation, is often used to solve least squares problems. A matrix to be decomposed with this method is usually very large, often large enough that it is not able to fit into the main memory of a workstation, let alone the internal memory of an FPGA nowadays. Efficient out-of-core algorithms have been developed to address the factorization of large matrices. This paper describes the application of variants of Householder QR decomposition on FPGA-based systems. More specifically, issues on applying out-of-core algorithms to the relatively small internal memory architecture of FPGA's are investigated.
Read moreInaccuracies due to the frequency warping in simulation of electrical systems using combined state–space nodal analysis
Inaccuracies due to the frequency warping in simulation of electrical systems using combined state–space nodal analysis
Chapter 9 - Numerical Techniques
Chapter 9 - Numerical Techniques
Accelerating tile low-rank GEMM on sunway architecture
Tile Low-Rank (TLR) GEMM can significantly reduce the amount of computation and memory footprint for matrix multiplication while preserving the same level of accuracy [1]. TLR-GEMM is based on the TLR data format, which is an efficient method to store large-scale sparse matrix. The large matrix is divided into several blocks also known as tile, and non-diagonal tile is compressed into the product of two tall and skinny matrices (in low-rank data format). TLR-GEMM performs the multiplication of TLR matrix A and B to obtain matrix C. TLR-GEMM can be implemented in batch mode, that is, multiple threads are started, and each thread applies the operations onto its corresponding tiles, including dense GEMM, SVD and QR decomposition. One research challenge in the field of TLR-GEMM is that modern high-performance processors often use diverse architectures, which requires adapting to the unique architecture features to achieve better performance.
Read moreFace recognition using average invariant factor
The recent developed intrinsic discriminate analysis (IDA) demonstrates superior recognition rate compared with classical methods such as PCA and LDA. In this paper, we not only re-prove the core theorem of IDA from a new perspective, but also define the Average Invariant Factor (AIF) that generalizes IDA. Two new algorithms for face recognition are built upon the AIF by using SVD and QR decomposition. Moreover, this new formulation facilitates the kernel extensions for the recognition algorithms, which relax the linear assumption for IDA. The presented kernel based AIF algorithms also significantly lower down the computational expenses of the original IDA method. A series of experiments on YALE and ORL sets demonstrate higher performance in terms of recognition rate and efficiency compared with classical statistical analysis methods (e.g., PCA, KPCA and 2DPCA) and the IDA algorithm.
Read moreOn the application of matrix congruence to QUBO formulations for systems of linear equations
Recent studies on quantum computing algorithms focus on excavating features of quantum computers which have potential for contributing to computational model enhancements.Among various approaches, quantum annealing methods effectively parallelize quadratic unconstrained binary optimization (QUBO) formulations of systems of linear equations.In this paper, we simplify these formulations by exploiting congruence of real symmetric matrices to diagonal matrices.We further exhibit computational merits of the proposed QUBO models, which can outperform classical algorithms such as QR and SVD decomposition.
Read moreMultiple Decompositions-Based Blind Watermarking Scheme for Color Images
A blind extraction watermarking method on color images is designed to protect © & identify owner of multimedia. Watermark in color is exploited to deliver universality and boundless applicability to proposed watermarking method. The host data is decomposed by applying four decomposition techniques like Discrete Wavelet Transform (DWT), QR, SVD & Schur decomposition. Arnold transformed watermark is utilized for better security. This scheme embed’s color watermark into gray-scale cover image which will be out of attacker’s expectation. A probabilistic neural network (PNN) is utilized in the watermark extraction. Robustness and quality of scheme are evaluated with quality measurement functions like Peak Signal to Noise Ratio (PSNR) and Normalized Correlation Coefficient (NCC).
Read moreExact Prediction of QR Fill-In by Row-Merge Trees
Row-merge trees for forming the QR factorization of a sparse matrix A are closely related to elimination trees for the Cholesky factorization of AT A. Row-merge trees predict the exact fill-in (assuming no numerical cancellation) provided A satisfies the strong Hall property, but overestimate the fill-in in general. However, here a fast and simple postprocessing step for row-merge trees is presented that predicts the exact fill-in for sparse QR factorization using Householder reflectors for general matrices.
Read more