Multi-scale quantization for fast similarity search
Through multi-scale quantization models and end-to-end training technology, the problem of increased quantization errors caused by data point norm variance in high-dimensional data sets is solved in product quantization, achieving more efficient search and recall rates, and is suitable for large-scale data sets Fast similarity search.
Patent Information
- Application Number
- CN201880054859.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2017-08-23
- Filing Date
- 2018-05-14
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-05-14
AI Technical Summary
In large-scale high-dimensional data sets, product quantization methods perform poorly when dealing with data point norm variance, resulting in increased quantization errors, and existing methods fail to effectively jointly train coarse quantizers and product quantization codebooks, affecting search efficiency and Recall rate.
A multi-scale quantization model is used to generate the residual data set through vector quantization, and unit normalization and re-parameterization are performed on the rotation residual, the direction and scale components are separated for product quantization and scalar quantization, and stochastic gradient descent is combined for end-to-end End-to-end training optimizes the allocation of quantization codes to capture the variance of data point norms.
It significantly reduces quantization errors and improves search efficiency and recall, especially in large-scale data sets and real-world data. It can handle the variance of data point norms and improve the performance of product quantization.
Smart Images

Figure CN111033495B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of priority to U.S. Provisional Patent Application No. 62 / 549,094, entitled “Multiscale Quantization for FastSimilarity Search,” filed on August 23, 2017. The above-referenced patent application is incorporated herein by reference. Technical Field
[0003] The present disclosure relates generally to machine learning and, more particularly, to performing multi-scale quantization on a dataset using a multi-scale quantization model and training the multi-scale quantization model using machine learning. Background Art
[0004] Large-scale similarity search is crucial for information retrieval and recommendation systems for images, audio, video, and text. Several hashing-based methods have been proposed for high-dimensional data, including both randomized and learning-based techniques. Another group of quantization-based techniques has recently become popular due to their strong performance on real-world data. In particular, product quantization (PQ) and its variants often achieve strong performance on public benchmarks such as GIST-1M, SIFT-1B, and Deep-10M.
[0005] In product quantization, the original vector space is decomposed into a Cartesian product of lower-dimensional subspaces, and vector quantization is performed independently in each subspace. Vector quantization (VQ) approximates the vector by finding the closest quantizer in the codebook C.
[0006]
[0007] in is a vector quantization codebook with m codes, the jth column C j Denotes the jth quantizer. Similarly, the product quantization (PQ) with K subspaces can be defined as:
[0008]
[0009] where x (k) represents the subvector of x in the kth subspace, It is a set of K product quantization codebooks, each of which has l sub-quantizers.
[0010] Product quantization works well in large part because it allows for asymmetric distance computations, where only the dataset vectors are quantized while the query remains unquantized. This is more accurate than techniques based on the Hamming distance (which typically require hashing the query), while still being computationally efficient using lookup table operations. Summary of the Invention
[0011] Aspects and advantages of embodiments of the disclosure will be set forth in part in the following description, or may be learned from the description, or may be learned through practice of the embodiments.
[0012] One example aspect of the present disclosure is directed to a computer-implemented method for performing multi-scale quantization. The multi-scale quantization may be a quantization of a first data set and may be used to generate an encoding of the first data set. The method includes performing vector quantization of the first data set. The method includes generating a residual data set based at least in part on a result of the vector quantization. The method includes applying a rotation matrix to the residual data set to generate a rotated residual data set comprising a plurality of rotated residuals. The method includes performing a reparameterization of the residual of each rotation in the rotated residual data set into a direction component and a scale component. The method includes performing a product quantization of the direction components of the plurality of rotated residuals and performing a scalar quantization of the scale components of the plurality of rotated residuals. The encoding of the first data set may include searchable data representing the first data set.
[0013] The method may include performing, by a computing system, an approximate nearest neighbor search for at least some of the residuals of a query relative to a quantized rotation. Data representing the query may be received. For example, a user may input a data item as the query. The data item may be of a type corresponding to a data item of the first data set, such that the user input data may be used to perform a search for one or more data items of the first data set corresponding to the input data item (e.g., one or more data items that are most similar to the query data item). Performing the approximate nearest neighbor search by the computing system may include performing an asymmetric search by the computing system, and wherein performing the asymmetric search by the computing system includes performing, by the computing system, a scalar multiplication of a product quantizer codebook once for each scalar quantizer. Thus, multi-scale quantization may generate an encoding of the first data set that may be more easily searched than an unencoded first data set.
[0014] The first data set may include multiple first data items. Each first data item may be associated with data selected from the group consisting of: an image, a portion of text, a web document, audio, and video. For example, each data item may have an associated type selected from the group consisting of: an image, a portion of text, a web document, audio, and video. Typically, each data item in the first data set has the same type, and thus the first data set may represent multiple data items of a particular type for which a search is desired.
[0015] Performing, by the computing system, reparameterizing the residual of each rotation includes unit normalizing, by the computing system, the residual of each rotation to form a directional component of the residual for the rotation. Unit normalizing, by the computing system, the residual of each rotation to form a directional component of the residual for the rotation may include dividing, by the computing system, the residual of each rotation by its norm, and wherein the scale component of the residual of each rotation includes its norm.
[0016] Product quantization can be given by the concatenation of codewords obtained by partitioning the normalized residual into one or more subvectors, which are independently quantized by multiple vector quantizers. The quantized rotated residuals can be organized into blocks so that all rotated residuals within a block have the same quantization norm.
[0017] The diameter of the residual data set may be smaller than the diameter of the first data set.
[0018] The vector quantization of the first data set may be based at least in part on a vector quantization codebook. The product quantization of the directional components may be based at least in part on a product quantization codebook. The scalar quantization may be based at least in part on a scalar quantization codebook.
[0019] Another example aspect of the present disclosure is directed to a computer-implemented method for performing machine learning. The method includes obtaining a quantization model, the quantization model including a vector quantizer, a rotation matrix, a product quantizer employing one or more product quantization codebooks, and a scalar quantizer employing a scalar quantizer codebook. The method includes determining a gradient of an objective function for one or more examples. The method includes jointly training the vector quantizer, the rotation matrix, the product quantizer, and the scalar quantizer based at least in part on the gradient of the objective function.
[0020] The product quantization codebook may be learned on the unit-normalized residuals of the vector quantization. The method may further include initializing the vector quantization codebook using random samples from the data set; and initializing one or more product quantization codebooks using the residuals of a set of independent samples that were vector quantized and rotated.
[0021] Jointly training a product quantizer and a scalar quantizer may include jointly optimizing scalar quantization of residual norms and assignment of product quantization codes for all data points within a single vector quantization partition. Jointly optimizing scalar quantization of residual norms and assignment of product quantization codes for all data points within a single vector quantization partition may include iteratively and in an alternating manner: fixing all assigned product quantization codes and scalar quantizing the residual norms only within the single vector quantization partition; and fixing the quantized residual norms within the single vector quantization partition and reallocating the product quantization codes. Jointly training a vector quantizer, a rotation matrix, a product quantizer, and a scalar quantizer based at least in part on a gradient of an objective function by a computing system includes: performing a plurality of first training iterations to train the vector quantizer; and after performing the plurality of first training iterations, performing a plurality of second training iterations to jointly train the vector quantizer, the rotation matrix, the product quantizer, and the scalar quantizer.
[0022] Another example aspect of the present disclosure is directed to a computer system. The computer system includes one or more processors and one or more non-transitory computer-readable media that, when executed by the one or more processors, cause the computer system to perform operations. The operations include obtaining a dataset including a plurality of data points. The operations include reparameterizing each data point in the dataset into a directional component and a scale component. The operations include performing product quantization on the directional components of the data points and performing scalar quantization on the scale components of the data points.
[0023] Obtaining a dataset comprising a plurality of data points may include: obtaining an original dataset; performing vector quantization of the original dataset; generating a residual dataset based at least in part on a result of the vector quantization of the original dataset; applying, by a computing system, a rotation matrix to the residual dataset to generate a rotated residual dataset comprising a plurality of rotated residuals; and performing reparameterization of each data point in the dataset including performing reparameterization of each rotated residual included in the rotated residual dataset.
[0024] The operations may further include performing an approximate nearest neighbor search for the query relative to at least some of the quantized data points.
[0025] Other aspects of the present disclosure are directed to various systems, apparatuses, non-transitory computer-readable media, user interfaces, and electronic devices. It will be appreciated that the various aspects can be combined so that features described in the context of one aspect can be implemented in the context of another aspect. In each aspect, the data can be associated with real-world data such as images, text portions, web documents, audio, and video.
[0026] These and other features, aspects and advantages of various embodiments of the present disclosure will be better understood with reference to the following description and appended claims.The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate example embodiments of the present disclosure and, together with the description, serve to explain the relevant principles. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] A detailed discussion of embodiments for those of ordinary skill in the art is set forth in the specification, with reference to the accompanying drawings, in which:
[0028] Figure 1 Depicted is a block diagram of an example computing system according to an example embodiment of the present disclosure.
[0029] Figure 2 An example workflow according to an example embodiment of the present disclosure is depicted.
[0030] Figure 3 An example multi-scale quantization model according to an example embodiment of the present disclosure is depicted.
[0031] Figure 4A Depicts a synthetic dataset X∈ according to an example embodiment of the present disclosure d×N How the PQ quantization error on [1] grows with the standard deviation of the norm of the data points σ(|x|2), where the mean of the dataset is zero μ(X)=0 d×1 , and the mean square norm is fixed μ(∥x i ∥ 2 )=1.
[0032] Figure 4B The residual vector is scaled to fix the mean square norm to μ(||x i || 2 )=1 on the SIFT-1M real dataset.
[0033] Figure 5A Depicted is the decomposition of contribution from each component to MSE reduction in a multi-scale quantization model on SIFT-1M and DEEP-10M datasets at different bit rates according to an example embodiment of the present disclosure, where the baseline is the original IVFADC setting without rotation or residual norm quantization.
[0034] Figure 5B Depicts an example embodiment of the present disclosure by referring to a 128-bit, size |X|=2 7 ,2 8 ,2 9 ,…2 16The time spent on each query for different distance calculation methods for a linear search of the database, where the lower curve indicates faster search time.
[0035] Figure 6 Depicted are recall curves when retrieving top-ranked neighbors (Recall 1@N) on the SIFT1M dataset using varying numbers of codebooks and centers, where t=8 in m=1024 VQ partitions, according to example embodiments of the present disclosure.
[0036] Figure 7 Depicted are recall curves when retrieving top-ranked neighbors (recall 1@N) on the DEEP10M dataset using varying numbers of codebooks and centers, where t=8 in m=1024 VQ partitions, according to example embodiments of the present disclosure.
[0037] Figure 8 Depicted is a flowchart of an example method for multi-scale quantization according to some embodiments of the present disclosure.
[0038] Figure 9 A flowchart depicting an example method for performing fast similarity search using a multi-scale quantization model according to some embodiments of the present disclosure; and
[0039] Figure 10 Depicted is a flowchart of an example method for training a multi-scale quantization model according to some embodiments of the present disclosure.
[0040] Repeated reference numbers across multiple drawings are intended to identify like components or features in the various embodiments. DETAILED DESCRIPTION
[0041] 1. Introduction
[0042] In general, the present disclosure is directed to systems and methods for performing multi-scale quantization on a dataset (e.g., a large, high-dimensional dataset). Quantization methods (e.g., product quantization) can be used to perform fast similarity searches on large, high-dimensional datasets, but they perform poorly when there is variance in the norms of the data points in the dataset. This is a common scenario for real-world datasets, especially when performing product quantization on residuals obtained from coarse vector quantization. The present disclosure implements a multi-scale quantization model that can learn a separate scalar quantizer for the residual norm. The parameters of the multi-scale quantization model can be jointly learned in a stochastic gradient descent framework. In this way, the overall quantization error can be minimized and substantial improvements in recall can be achieved. Therefore, multi-scale quantization can generate encodings of the dataset that can be searched in an improved manner relative to the original dataset. Therefore, in some embodiments, the present disclosure provides a complete end-to-end training algorithm to learn a coarse quantizer, a rotation matrix, and a product quantization codebook together with a scalar quantizer to capture the coarse quantized residual norm. In this way, (a) variance in the norm of data points can be identified and handled, (b) a coarse quantizer can be included as part of the optimization, and (c) stochastic gradient descent can be used to perform end-to-end training, which results in significant improvement in quantization error compared to previous methods using alternating optimization.
[0043] More specifically, as mentioned above, in product quantization, the original vector space is decomposed into a Cartesian product of lower-dimensional subspaces, and vector quantization is performed independently in each subspace. Empirically, product quantization works best when the variance in each subspace is balanced. To ensure this, a rotation matrix is typically applied to the data before quantization. This rotation can be random or learned.
[0044] However, when there is variance in the norm of the encoded data points—even if the variance is relatively modest—the quality of the product quantization codebook degrades. For example, one or more synthetic data sets can be generated such that: (1) the data set mean is zero; (2) the data point directions are chosen uniformly and randomly; and (3) the mean squared norm of the data points is fixed. Figure 4A A plot of the quantization error (MSE) of the product quantization against the standard deviation of the norm of the data points in the synthetic dataset is shown. Figure 4A As shown in , the quantization error increases with the variance of the norm of the data points. Figure 4B As shown in , in practical settings, the residuals of the coarse vector quantization of the data also have highly varying norms.
[0045] According to one aspect of the present disclosure, to compensate for variance in the norm, the product quantization formula can be modified by individually scalar quantizing the data point norms and then unit-normalizing the data points before applying product quantization. When computing asymmetric distances, this only requires a single scalar multiplication of the PQ codebook per scalar quantizer, which effectively has negligible computational cost.
[0046] To scale quantization-based search techniques to large datasets, a popular strategy is to first vector quantize the input vectors in the original space (coarse quantization) and then apply product quantization to the vector quantization residuals. However, in this 'VQ-PQ' style approach, the norm of the residuals exhibits significant variance. Therefore, the proposed multi-scale method provides significant gains for large-scale search even when the original data is fully normalized.
[0047] Since the introduction of efficient asymmetric distance computation (ADC) and its application to the approximate nearest neighbor (ANN) search problem, there have been several lines of work focused on improving PQ.
[0048] For example, a coarse quantizer (also known as an inverted file index structure (IVF)) learns vector quantization of data points via clustering, using the cluster indices to form an inverted index that contiguously stores all data points corresponding to a given cluster index. The data points are encoded using a PQ code associated with the residual (offset) of the data point from its closest cluster center. This design achieves a non-exhaustive search by searching only a subset of the M clusters / partitions in the inverted index. However, previous work has learned the coarse quantizer as a separate preprocessing step, without jointly training the coarse quantizer with the PQ codebook.
[0049] As another example, since PQ quantizes each subspace independently, a rotation matrix can be applied to reduce statistical dependencies within the subspace. Researchers have proposed various methods for estimating this rotation matrix (e.g., ITQ-style alternating quantization, optimized PQ, locally optimized PQ, etc.). While learning this orthogonal transformation is generally a good strategy, it does not change the norm of the data points. Therefore, it still suffers from norm variance.
[0050] As another example, research has focused on learning additive codebooks rather than subspace codebooks. This includes additive quantization, compound quantization, and stacked quantization. Because additive codebooks do not operate in subspace, they are more difficult to learn and more expensive to encode, but do not require rotations. Empirically, such additive codebooks are more expressive and outperform OPQ at lower bit rates. However, OPQ achieves similar performance at higher bit rates. Since additive codebooks do not handle the variance of the data point norms, the proposed multiscale method can also be applied to additive codebooks.
[0051] As another example, a lot of effort has been invested in optimizing the implementation of the ADC since it is computationally critical (e.g., using Hamming distance for fast pruning, efficient GPU implementation for ADC lookup, using SIMD-based computation to calculate the lower bound of the ADC, etc.).
[0052] As another example, there is a large amount of similarity search literature on non-quantization-based methods in both inner product search and nearest neighbor search. Tree-based methods and position-sensitive hashing-style algorithms focus on non-exhaustive searches by partitioning the search space. In engineering practice, these usually result in random memory access and are often combined with exhaustive methods in a manner similar to IVFADC. Binary embedding-based methods focus on learning short binary codes and can be efficiently searched in Hamming space. However, at the same bit rate, there is usually a large gap between the accuracy of distance calculations in Hamming codes and product codes, and ADC can be calculated at a similar speed.
[0053] In view of the above shortcomings, the present disclosure provides a complete end-to-end training algorithm to learn a coarse quantizer, a rotation matrix, and a product quantization codebook together with a scalar quantizer to capture the coarse quantization residual norm. In this way, (a) the variance in the data point norm can be identified and handled, (b) the coarse quantizer can be included as part of the optimization, and (c) stochastic gradient descent can be used to perform end-to-end training, which results in significant improvement in quantization error compared to previous methods using alternating optimization.
[0054] 2. Example Method
[0055] Aspects of this disclosure focus on minimizing quantization error where x is a data point, and is its quantitative approximation, which is used to minimize the approximation error of the query database distance In some embodiments, the quantization technique may employ a hierarchical approach. For example, one or more "coarse" quantization stages (VQ) may be followed by product quantization (PQ) of the vector quantized residuals. Prior to product quantization, a learned rotation may be applied to the residuals to further reduce quantization error.
[0056] The multi-scale quantization model and associated techniques may include extending the 'VQ-PQ' strategy by explicitly representing the norm of the VQ residual, learning the PQ codebook only on the unit-normalized rotated VQ residual, and performing scalar quantization on the residual norm alone. In this way, the variance of the data point norm can be addressed as an additional source of quantization error when performing product quantization.
[0057] As an example, in some embodiments, a multi-scale quantization model may include: (1) vector quantization of a data set; (2) learned rotation of the vector quantization residual; (3) reparameterization of the rotated residual into direction and scale components; (4) product quantization of the direction component; and (5) scalar quantization of the scale component.
[0058] Formally, in multi-scale quantization, the data points Approximately
[0059]
[0060] in Returns the closest vector quantization codeword for x; is a vector quantization codebook with m codewords; C j is its j-th codeword (i.e., the j-th column of C); φ SQ From a scalar quantization codebook with p codewords Returns the nearest scalar quantizer (equivalent to one-dimensional vector quantization); and the matrix is the learned rotation applied to the residual of the vector quantization. PQ (r x ) is given by
[0061]
[0062] By rotating and normalizing the residual Divide into K sub-vectors and through vector quantization Concatenation of codewords obtained by independently quantizing the subvectors to minimize the quantization error:
[0063]
[0064] is the vector quantization codebook of the kth subspace (with l codewords). Often, the dimension of the kth subspace is d (k) only Although sub-vectors of variable size are also possible.
[0065] The quantized normalized residual is given by The K index representation of , k = 1,…,K. This representation has an overall bit rate of Klog2l, where l is the number of product quantizers in each subspace and K is the number of subspaces. The residual norm is maintained by organizing the residuals associated with the VQ partitions into blocks, where within a block, all residuals have the same quantization norm. The blocks are sorted by quantization norm, so only the indices of the block boundaries have to be maintained. Therefore, the total storage cost is O(mp), where m is the number of vector quantizers and p is the number of scalar quantizers. For example, if p is set to 8, the total storage cost O(mp) has a negligible impact on the recall compared to using the unquantized norm.
[0066] 2.1 Efficient Example Search under Multi-Scale Quantization
[0067] The multi-scale quantization model of the present disclosure can enable efficient nearest neighbor search. Performing the search may include: calculating the square of the query q using each codeword in the vector quantization codebook C distance and further search within the nearest VQ partition. For example, if the corresponding quantizer is And the corresponding quantized partition is Then use the lookup table to calculate the query and The approximate square between the database points in Distance. The final prediction can be made by taking the database point with the lowest approximate distance, e.g.
[0068]
[0069] Performing the search may include using a lookup table to compute the rotated VQ residual of the query The product of the sub-vector and the scaled quantized data point residual By letting for The kth subvector of , and w x =φ SQ (||r x ||) is the quantized residual norm, and performing the search may include giving K lookup tables of dimension l for each, and for all j and k, using the PQ codebook S according to Precompute inner products and square quantization Norm. Performing the search can then include computing:
[0070]
[0071] In some embodiments, performing the search may include using soft vector quantization and searching for the vector with the lowest ||qC j ||2, rather than searching only one vector quantization partition. In this case, the final complexity of the search can be
[0072] In some embodiments, all data points with the same quantized residual norm may be stored in consecutive blocks. In this case, performing the search may include combining weight-independent lookup tables using hardware-optimized fused multiply-add instructions, and (respectively by w x and w x 2 Weighted), a new lookup table is created at the beginning of a new block. In this case, for VQ partitioning, only p times the computational cost is incurred, where p is the number of quantized residual norm values. For example, if p = 8 and t = 8 (e.g., the number of VQ partitions to be checked), relatively low performance overhead can be maintained.
[0073] 2.2 Example Optimization Process
[0074] Training the multi-scale quantization model of the present disclosure may include jointly training the parameters of the model (e.g., codebook, orthogonal transform, and residual norm quantizer) using stochastic gradient descent. In order to optimize the orthogonal transform of the vector quantization residual while maintaining orthogonality, the transform may be parameterized via the Cayley representation of the orthogonal matrix:
[0075] R=(IA)(I+A) -1 (0)
[0076] Where A is a skew-symmetric matrix, that is, A = -A T In some embodiments, equation (3) is relative to A The parameters are differentiable. The gradient can be calculated by performing a d×d matrix inversion at each iteration. In some embodiments, when training on high-dimensional datasets, the number of parameters of A can be limited to balance capacity and computational cost.
[0077] Training the model can involve initializing the codebook for vector quantization using random samples from the dataset, and initializing the codebook for product quantization using the residuals (after vector quantization and rotation) of a set of independent samples. To give the vector quantization a chance to partition the space, the vector quantization error can be optimized for multiple epochs before initializing the product code and performing a full joint training. This can be done by Sample to initialize the parameters of the skew-symmetric matrix A.
[0078] Training the model can include fixing all optimization parameters for all datasets. In some embodiments, more extensive per-dataset turning can be performed to improve results. For example, the Adam optimization algorithm can be used with the recommended parameters, a mini-batch size of 2000, and a learning rate of 1e-4 during joint training. In some embodiments, when training only the vector quantizer, the learning rate can be set to 1e-3.
[0079] Training the model can include jointly optimizing the scalar quantization of the residual norm and the assignment of PQ codes to all data points within the VQ partition. In this way, the model can learn a quantizer for the residual norm and capture its local distribution within the VQ partition. Keeping the PQ codebook and rotation fixed, training can consist of alternating between the following two steps until convergence:
[0080] 1. Confirm all assigned PQ codes and perform scalar quantization on the residual norm only within the partition.
[0081] 2. Confirm the norms of all quantized residuals within the partition and then reallocate the PQ codes.
[0082] 2.3 Example Technical Effects
[0083] The systems and methods described herein provide multiple technical effects and benefits. The systems and methods for implementing the multi-scale quantization model of the present disclosure can have the technical effect of minimizing quantization error and substantially improving the recall rate of fast similarity search using the model. In order to scale quantization-based search techniques to large-scale data sets, one strategy is to first vector quantize the input vector in the original space (coarse quantization) and then apply product quantization on the vector quantization residual. However, in this 'VQ-PQ' style approach, the norm of the residual exhibits significant variance. Therefore, even when the original data is fully normalized, the multi-scale quantization model of the present disclosure can provide significant gains for large-scale searches. For example, since real-world data is typically clusterable, where the diameter of the cluster is substantially lower than the diameter of the entire data set, vector quantization can be used to obtain a "residual data set" with a much smaller diameter, resulting in a significant reduction in quantization error when quantization is performed using only product codes.
[0084] In addition, compared to previous training methods using alternating optimization, the system and method for enabling full end-to-end training to learn the parameters of the multi-scale quantization model can have the technical effect of significantly reducing quantization error. For example, by learning rotations of the VQ residuals, the variance within each PQ subspace can be significantly reduced for many real-world datasets, such as image datasets, text, web documents, audio, or other forms of data or data structures, resulting in substantially lower quantization error and correspondingly higher recall when performing fast similarity searches.
[0085] The systems and methods of the present disclosure also provide improvements to computing techniques such as data matching and retrieval computing techniques. For example, the systems and methods herein enable efficient nearest neighbor searches with substantial improvements in recall.
[0086] 3. Example Embodiments
[0087] Referring now to the accompanying drawings, example embodiments of the present disclosure will be discussed in greater detail.
[0088] Figure 1 A block diagram of an example computing system 100 is depicted, according to an example embodiment of the present disclosure. System 100 includes a user computing device 102, a server computing system 130, and a training computing system 150 communicatively coupled via a network 180.
[0089] The user computing device 102 can be any type of computing device, such as, for example, a personal computing device (e.g., a laptop or desktop), a mobile computing device (e.g., a smartphone or tablet), a gaming console or controller, a wearable computing device, an embedded computing device, or any other type of computing device.
[0090] The user computing device 102 includes one or more processors 112 and memory 114. The one or more processors 112 can be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.), and can be a single processor or multiple processors operatively connected. The memory 114 can include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 114 can store data 116 and instructions 118, which are executed by the processor 112 to cause the user computing device 102 to perform operations.
[0091] The user computing device 102 may store or include one or more multi-scale quantization models 120. The multi-scale quantization model 120 may be or otherwise include multiple quantizers of different types. For example, the multi-scale quantization model 120 may include a vector quantizer, a product quantizer, and a scalar quantizer. The vector quantizer may quantize a data set and determine a vector quantization residual. The residual may be rotated and reparameterized into a direction component and a scale component. The product quantizer may quantize the direction component, while the scalar quantizer may quantize the scale component. In some embodiments, the product quantizer and the scalar quantizer may be jointly trained via an end-to-end training process.
[0092] In some implementations, one or more multi-scale quantization models 120 may be received from the server computing system 130 via the network 180 , stored in the user computing device memory 114 , and then used or otherwise implemented by the one or more processors 112 .
[0093] Additionally or alternatively, one or more multi-scale quantization models 140 may be included in or otherwise stored and implemented by a server computing system 130 that communicates with the user computing device 102 according to a client-server relationship. For example, the multi-scale quantization models 140 may be implemented by the server computing system 130 as part of a web service (e.g., a similarity search service). Thus, one or more models 120 may be stored and implemented at the user computing device 102 and / or one or more models 140 may be stored and implemented at the server computing system 130.
[0094] The user computing device 102 may also include one or more user input components 122 for receiving user input. For example, the user input component 122 may be a touch-sensitive component (e.g., a touch-sensitive display or touchpad) that is sensitive to the touch of a user input object (e.g., a finger or a stylus). The touch-sensitive component may be used to implement a virtual keyboard. Other example user input components include a microphone, a traditional keyboard, a traditional mouse, a camera, a microphone, or other components through which a user can provide user input.
[0095] The server computing system 130 includes one or more processors 132 and memory 134. The one or more processors 132 can be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.), and can be a single processor or multiple processors operatively connected. The memory 134 can include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 134 can store data 136 and instructions 138, which are executed by the processor 132 to cause the server computing system 130 to perform operations.
[0096] In some implementations, server computing system 130 includes or is otherwise implemented by one or more server computing devices. Where server computing system 130 includes multiple server computing devices, such server computing devices may operate according to a sequential computing architecture, a parallel computing architecture, or some combination thereof.
[0097] As described above, the server computing system 130 may store or otherwise include one or more machine-learned multi-scale quantization models 140. The multi-scale quantization model 140 may be or otherwise include multiple quantizers of different types. For example, the multi-scale quantization model 140 may include a vector quantizer, a product quantizer, and a scalar quantizer. The vector quantizer may quantize a data set and determine a vector quantization residual. The residual may be rotated and re-parameterized into a direction component and a scale component. The product quantizer may quantize the direction component, while the scalar quantizer may quantize the scale component. In some embodiments, the product quantizer and the scalar quantizer may be jointly trained via end-to-end training. Alternatively or additionally, the multi-scale quantization model 140 may include other forms of machine-learned models. Therefore, reference Figures 2 to 5B An example multi-scale quantization model 140 and training scheme is discussed.
[0098] In some implementations, server computing system 130 may include a search tool 142 that can perform a search based on a quantitative dataset and a query. For example, given a query q, search tool 142 can perform a fast similarity search on the quantitative dataset based on the query and determine one or more search results.
[0099] Server computing system 130 may train multi-scale quantization model 140 via interaction with training computing system 150 communicatively coupled via network 180. Training computing system 150 may be separate from server computing system 130 or may be part of server computing system 130.
[0100] The training computing system 150 includes one or more processors 152 and a memory 154. The one or more processors 152 can be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.), and can be a single processor or multiple processors operatively connected. The memory 154 can include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 154 can store data 156 and instructions 158, which are executed by the processor 152 to enable the training computing system 150 to perform operations. In some embodiments, the training computing system 150 includes or is otherwise implemented by one or more server computing devices.
[0101] The training computing system 150 may include a model trainer 160 that trains the machine learning model 120 / 140 using various training or learning techniques, such as, for example, a stochastic gradient descent framework, to minimize the overall quantization error. The model trainer 160 may perform a variety of generalization techniques (e.g., weight decay, dropout, etc.) to improve the generalization ability of the model being trained. Specifically, the model trainer 160 may train the multi-scale quantization model 120 / 140 based on a set of training data 162.
[0102] Model trainer 160 includes computer logic for providing the desired functionality. Model trainer 160 can be implemented in hardware, firmware, and / or software that controls a general-purpose processor. For example, in some embodiments, model trainer 160 includes a program file stored on a storage device, loaded into memory, and executed by one or more processors. In other embodiments, model trainer 160 includes one or more sets of computer-executable instructions stored in a tangible computer-readable storage medium, such as a RAM hard disk, or optical or magnetic media.
[0103] The network 180 can be any type of communication network, such as a local area network (e.g., an intranet), a wide area network (e.g., the Internet), or some combination thereof, and can include any number of wired or wireless links. In general, communications through the network 180 can be carried via any type of wired and / or wireless connection using a variety of communication protocols (e.g., TCP / IP, HTTP, SMTP, FTP), encodings or formats (e.g., HTML, XML), and / or protection schemes (e.g., VPN, secure HTTP, SSL).
[0104] Figure 1An example computing system that can be used to implement the present disclosure is shown. Other computing systems may also be used. For example, in some embodiments, the user computing device 102 may include a model trainer 160 and a training dataset 162. In such embodiments, the multi-scale quantization model 120 may be trained and used locally at the user computing device 102. In some of these embodiments, the user computing device 102 may implement the model trainer 160 to personalize the multi-scale quantization model 120 based on user-specific data.
[0105] Figure 2 Depicts an example workflow according to an example embodiment of the present disclosure. Specifically, Figure 2 A multi-scale quantization model 202 is shown that is configured to provide a quantized dataset 206. Specifically, the multi-scale quantization model 202 may receive an input dataset 204 and, in response, provide a quantized dataset 206 that encodes information describing the input dataset 204.
[0106] Although images are provided as an example data type that may be quantized using the multi-scale quantization model 202 , other data types may also be quantized including, for example, text, web documents, audio, or other forms of data or data structures.
[0107] Figure 3 An example multi-scale quantization model 300 is depicted according to an example embodiment of the present disclosure. Figure 3 Depicts an example model structure. Figure 3 In addition to the structure shown in , other structures may be used in addition or alternatively. The multi-scale quantization model 300 includes a vector quantizer 302, a rotation matrix 304, a reparameterizer 306, a product quantizer 308, a scalar quantizer 309, and a scaler.
[0108] The vector quantizer 302 may perform vector quantization on the input data set 204 to generate a residual data set.
[0109] The rotation matrix 304 may be a learned rotation of the vector quantized residuals in the residual dataset, and the multi-scale quantization model 300 may apply the rotation matrix 304 to the residual dataset to generate a rotated residual dataset comprising a plurality of rotated residuals.
[0110] The reparameterizer 306 performs reparameterization of each rotated residual in the rotated residual dataset into a direction component and a scale component.
[0111] The product quantizer 308 performs product quantization on the directional components of the plurality of rotated residuals.
[0112] The scalar quantizer 309 performs scalar quantization on the scale components of the plurality of rotated residuals.
[0113] 3.1 Example Multi-Scale
[0114] According to one aspect of the present disclosure, when the norm of the residual has large variability, adding a scalar quantizer 309 further increases the recall. For query q, The error is
[0115]
[0116] Taking the expectation relative to q, we get
[0117]
[0118] The inequality is derived from Jensen's inequality. If λ q is the covariance matrix The maximum eigenvalue of
[0119]
[0120] Existing quantitative methods have focused on The first term in the error of the distance is ∑ i = 1. However, for VQ residuals with large variability in ||x||, the second quadratic term becomes dominant. By scalar quantizing the residual norm, especially locally within each VQ partition, the second term can be substantially reduced, thereby improving the recall on real datasets.
[0121] 3.2 Example Rotation Matrix
[0122] In practice it has been found that learned rotations are very efficient and then quantized. In some cases rotation is required. For example, let x i =Ry i ,1≤i≤n, then there is a simple example where y i With a product code, the product code has a small codebook size and an MSE of 0, and to i To obtain any small mean squared error on , one may need to use exponentially many codewords. On real-world datasets, this difference may not be very noticeable, but it is still significant, so removing the rotation can lead to significantly better MSE. We provide the following lemma.
[0123] Lemma 1. Let X = RY, that is, for 1≤i≤n, x i =Ry i There exists a dataset Y and a rotation matrix R such that a canonical basis product code of size 2 is sufficient to achieve an MSE of 0 for Y, while any product code on X requires 2 c·min(d / K,K)ε codewords to achieve MSEε||x|| max, where c is some universal constant and ∥x∥ max is the maximum value at any point norm.
[0124] 3.3 Example coarse quantization
[0125] The proposed vector sum product quantization is analyzed when the data is generated by a K-subspace mixture model, which captures two properties observed in many real-world datasets: samples belong to one of several basis classes, also called components, and within each component, the residuals are generated independently in K subspaces.
[0126] For example, given a query q, let is the sample that minimizes ||qx||2. Let is the output of the hierarchical nearest neighbor algorithm, which first finds the nearest cluster center and then searches within that cluster. If q is generated independently of x, it is very likely to return a near-optimal
[0127] Theorem 1. Given n samples from a correctly clustered underlying K-subspace mixture model, and independently generated queries q with probability ≥ 1-δ,
[0128]
[0129] 4.1 Example Evaluation Dataset
[0130] The performance of certain end-to-end trained multi-scale quantization (MSQ) models of the present disclosure has been evaluated on the SIFT-1M and DEEP-10M datasets, which are commonly used to measure the performance of nearest neighbor search. SIFT-1M contains 1 million 128-dimensional SIFT descriptors extracted from Flickr images. DEEP-10M contains 96 PCA components extracted from the final hidden layer activations of GoogLeNet.
[0131] During training, each dataset is indexed with 1024 VQ coarse quantizers. During query time, the quantized residuals from the 8 partitions closest to the query are further searched using ADC to generate the final nearest neighbors.
[0132] 4.2 Example Ablation Test (Ablation Test)
[0133] Compared to IVFADC (which uses vanilla PQ with a coarse quantizer), the example implementation of end-to-end trained MSQ described in this paper has been shown to reduce quantization error by 15-20% on SIFT-1M and 20-25% on Deep-10M, which are substantial reductions. Multiple components contribute to this reduction: (1) learned rotations of the VQ residuals; (2) separating the residual norm quantization into multiple scales; and (3) end-to-end training of all parameters.
[0134] Figure 5A The MSE reduction for several ablation tests is plotted against IVFADC to show the effect of each component. Specifically, on Deep-10M, the proposed multi-scale approach and end-to-end learning contribute an additional 5-10% MSE reduction on top of the learned rotations, while on SIFT-1M, they contribute 10-15%. It is important to note that on SIFT-1M, multi-scale quantization and end-to-end training have a larger impact than learned rotations, which by themselves are generally expected to provide significant improvements.
[0135] 4.3 Example Recall Experiment
[0136] An example implementation of the end-to-end trained multi-scale quantization technique described in this paper is compared with three baseline techniques: Product Quantization (PQ), Optimized Product Quantization (OPQ), and Stacked Quantizer (SQ). Ground-truth results are generated using brute-force search, and the results of each technique can be compared with ground-truth results in a fixed bitrate setting.
[0137] For the fixed bit rate experiment, the recall rate is plotted against different numbers of PQ codebooks, which can range from {8, 16, 32} for the SIFT1M dataset and {6, 12, 24} for the DEEP10M dataset. Figure 6 and Figure 7 In
[15] , we experimented with 16 centers for in-register table lookups and 256 centers for in-memory table lookups. From the recall curves, multi-scale quantization outperforms all baselines in all settings across both datasets.
[0138] 4.4 Example Speed Benchmark
[0139] The same index structure (IVF) and the same ADC calculation implementation are used for all baselines (PQ, OPQ, SQ). Therefore, the speed of all baselines is essentially the same at the same bit rate, which means Figure 6 and Figure 7Both are fixed-memory and fixed-time, so they can be directly compared. For codebooks with 256 centers, an in-memory lookup table (LUT256) is implemented; for codebooks with 16 centers, an in-register lookup table (LUT16) is implemented using the VPSHUFB instruction from AVX2, which performs 32 lookups in parallel.
[0140] Furthermore, different computations reported in the literature (e.g., Hamming distance computation, ADC computation using an in-memory lookup table, and ADC computation using SIMD registers) are put on an equal footing, and a comparison of the different approaches is provided. Figure 5B The figure plots the distance computation time at the same bit rate. Compared to the POPCNT-based Hamming, the VPSHUFB-based LUT16 is nearly identical in speed, and both are 5x faster than the memory-based ADC. As an anecdote, when the number of neighbors to retrieve is large, the recall 1@N of the LUT256 and LUT16 are often comparable at the same bit rate, and the 5x faster LUT16 is almost always preferred.
[0141] 5. Example Advantages
[0142] According to one aspect of the present disclosure, an end-to-end trainable multi-scale quantization model minimizes the overall quantization loss. A novel scalar quantization method is introduced to address the variance in the norm of data points, which is based on both empirical and theoretical evidence. Together with end-to-end training, this contributes to a significant reduction in quantization error compared to existing competing methods that already employ optimized rotations and coarse quantization. Furthermore, comprehensive nearest neighbor search retrieval experiments on two large-scale, publicly available benchmark datasets show substantial improvement compared to the state-of-the-art.
[0143] 6. Example Method
[0144] Figure 8 Depicted is a flow chart of an example method 800 for obtaining a quantitative data set, according to an example embodiment of the present disclosure.
[0145] At 801, a computing system may obtain a first data set and vector quantize it. For example, the vector quantizer 302 may vector quantize an input data set (eg, the first data set).
[0146] At 802, a computing system may generate a residual data set from a vector quantized first data set. For example, the vector quantizer 302 may generate the residual data set.
[0147] At 803, the computing system may generate a rotated residual dataset. For example, the rotation matrix 304 may be learned and applied to the residual dataset to generate the rotated residual dataset.
[0148] The rotation residual can be re-parameterized into a direction component and a scale component at 804. For example, the re-parameterizer 306 can re-parameterize the rotated residual dataset into a direction component and a scale component.
[0149] At 805, the directional component may be product quantized. For example, the product quantizer 308 may obtain the directional component from the reparameterizer 306 and perform product quantization on the directional component.
[0150] At 806, the scale component may be scalar quantized. For example, the scalar quantizer 309 may obtain the scale component from the reparameterizer 306 and perform scalar quantization on the scale component.
[0151] Figure 9 A flow chart depicts an example method 900 of performing a search using a multi-scale quantization model.
[0152] At 901 , a computing system may receive a query.
[0153] At 902, the computing system may perform a nearest neighbor search based on the query. The computing system may perform the search on a multi-scale quantization database. For example, given a query q, the computing system may calculate the square of the query q using each codeword in the vector quantization codebook C. distance, and further search within the nearest VQ partition. If the corresponding quantizer is And the corresponding quantized partition is You can use the lookup table to calculate the query and The approximate square between the database points in Distance. The final prediction can be made by taking the database point with the lowest approximate distance, e.g.
[0154]
[0155] The computing system can use the lookup table to compute the VQ residual of the query rotation The product of the sub-vector and the scaled quantized data point residual The computing system can determine the quantized inner product between yes The kth subvector of , and w x =φ SQ (∥r x ∥) is the quantized residual norm, and given K lookup tables v of dimension l for each (1) ,…,v (K) , for all j and k, the PQ codebook S can be used according to Precompute inner products and square quantization The computational system can then compute
[0156]
[0157] However, in some implementations, the query is not quantized, and a search may be performed based on the query without quantizing the query.
[0158] In some embodiments, the computing system may use soft vector quantization and search for the vector with the lowest ||qC j ||2, rather than searching only one vector quantized partition, or performing the search based on an unquantized query.
[0159] At 903, the computing system may obtain search results. For example, the computing system may obtain one or more nearest neighbors of the query represented in the multi-scale quantization database.
[0160] Figure 10 Depicted is a flow chart of an example method 1000 for training a multi-scale quantization model according to an example embodiment of the present disclosure.
[0161] At 1001 , a computing system may obtain a quantitative model.
[0162] At 1002, the computing system may determine the gradient of the objective function. For example, stochastic gradient descent may be used to jointly train the parameters of the quantization model (eg, codebook, orthogonal transform, and residual norm quantizer).
[0163] At 1003, the computing system can jointly train the parameters of the quantization model based on the gradients. For example, to learn a quantizer for the residual norm and capture its local distribution using the VQ partition, the scalar quantization of the residual norm and the assignment of PQ codes to all data points within the VQ partition can be jointly optimized. Keeping the PQ codebook and rotation fixed, training can include alternating between: 1) confirming all assigned PQ codes and scalar quantizing the residual norm only within the partition, and 2) confirming all quantized residual norms within the partition and reassigning PQ codes until convergence.
[0164] 7. Additional Disclosure
[0165] The techniques discussed herein refer to servers, databases, software applications, and other computer-based systems, as well as actions taken on such systems and information sent to and received from such systems. The inherent flexibility of computer-based systems allows for a wide variety of possible configurations, combinations, and divisions of tasks and functionality between and among components. For example, the processes discussed herein can be implemented using a single device or component or multiple devices or components working in combination. Databases and applications can be implemented on a single system or distributed across multiple systems. Distributed components can operate sequentially or in parallel.
[0166] Although the present invention has been described in detail with respect to various specific example embodiments thereof, each example is provided by way of explanation, not limitation, of the present invention. Those skilled in the art, upon understanding the foregoing, may readily make changes, modifications, and equivalents to these embodiments. Therefore, the present invention does not exclude such modifications, modifications, and / or additions to the present invention that would be apparent to one of ordinary skill in the art. For example, a feature shown or described as part of one embodiment may be used together with another embodiment to obtain yet another embodiment. Therefore, the present invention is intended to cover such changes, modifications, and equivalents.
Claims
1. A computer-implemented method for similarity search, for performing multi-scale quantization of a first data set to generate an encoding of the first data set, the first data set comprising a plurality of first data items, each first data item being associated with data selected from a group consisting of an image, a text portion, a web document, audio, and video, the method include: performing, by a computing system, vector quantization of a first data set; generating, by a computing system, a residual data set based at least in part on a result of the vector quantization; applying, by a computing system, the rotation matrix to the residual data set to generate a rotated residual data set including a plurality of rotated residuals; Reparameterizing each rotated residual in the rotated residual data set into a unit-normalized direction component and a scale component is performed by the computing system, wherein the scale component of each rotated residual includes its norm; performing, by a computing system, product quantization of unit-normalized directional components of the plurality of rotated residuals; performing, by a computing system, scalar quantization of scale components of the plurality of rotated residuals; and An approximate nearest neighbor search of at least some of the residuals of the query relative to the multiplied and / or scalar-quantized rotations is performed by the computing system.
2. The computer-implemented method of claim 1 , further comprising: include: Data representing the query is received.
3. A computer-implemented method according to claim 1 or 2, in, Performing, by the computing system, the approximate nearest neighbor search includes performing, by the computing system, an asymmetric search, and wherein performing, by the computing system, the asymmetric search includes performing, by the computing system, a scalar multiplication of a product quantizer codebook once for each scalar quantizer.
4. The computer-implemented method of claim 1, in, Performing, by the computing system, reparameterization of each rotated residual includes unit normalizing, by the computing system, each rotated residual to form a unit normalized directional component for the rotated residual.
5. The computer-implemented method of claim 4, in, Unit normalizing, by the computing system, each rotational residual to form a unit-normalized directional component for the rotational residual includes dividing, by the computing system, each rotational residual by its norm.
6. The computer-implemented method of claim 1, in, The product quantization is given by a concatenation of codewords obtained by dividing the normalized residual into one or more sub-vectors, which are independently quantized by a plurality of vector quantizers.
7. The computer-implemented method of claim 6, in, The quantized rotated residuals are organized into blocks such that within a block, all rotated residuals have the same quantization norm.
8. The computer-implemented method of claim 1, in, The diameter of the residual data set is smaller than the diameter of the first data set.
9. The computer-implemented method of claim 1, in, The vector quantization of the first data set is based at least in part on a vector quantization codebook.
10. The computer-implemented method of claim 1, in, The product quantization of the unit normalized directional components is based at least in part on a product quantization codebook.
11. The computer-implemented method of claim 1 , in, The scalar quantization is based at least in part on a scalar quantization codebook.
12. A computer-implemented method for performing machine learning, the method include: Obtaining, by a computing system, a quantization model for performing a search based on a query, the quantization model comprising a vector quantizer, a rotation matrix, a product quantizer using one or more product quantization codebooks, and a scalar quantizer using a scalar quantizer codebook, wherein the quantization model is used to perform the computer-implemented method for similarity search as claimed in claim 1; determining, by the computing system, a gradient of the objective function for the one or more instances; and The vector quantizer, the rotation matrix, the product quantizer, and the scalar quantizer are jointly trained by the computing system based at least in part on a gradient of the objective function.
13. The computer-implemented method of claim 12, in, The product quantization codebook is learned on the unit normalized residual of vector quantization.
14. The computer-implemented method of claim 12 or 13, further comprising: include: Initialize the vector quantization codebook using random samples from the dataset; as well as The one or more product quantization codebooks are initialized using the residuals of a set of independent samples after vector quantization and rotation.
15. The computer-implemented method of claim 12, in, Jointly training the product quantizer and the scalar quantizer comprises: The assignment of scalar quantization and product quantization codes for the residual norm of all data points within a single vector quantization partition is jointly optimized.
16. The computer-implemented method of claim 15, in, Jointly optimizing the assignment of scalar quantization and product quantization codes for residual norms of all data points within the single vector quantization partition comprises iteratively and in an alternating form: identifying all assigned product quantization codes and scalar quantizing the residual norm only within a single vector quantization partition; and The quantized residual norm within a single vector quantization partition is confirmed and the product quantization code is reallocated.
17. The computer-implemented method of claim 13, in, Jointly training, by the computing system, the vector quantizer, the rotation matrix, the product quantizer, and the scalar quantizer based at least in part on a gradient of an objective function comprises: performing a plurality of first training iterations to train a vector quantizer; and After performing the plurality of first training iterations, a plurality of second training iterations are performed to jointly train the vector quantizer, the rotation matrix, the product quantizer, and the scalar quantizer.
18. A computer system for similarity search, include: one or more processors; as well as One or more non-transitory computer-readable media that, when executed by the one or more processors, cause the computer system to perform operations comprising: obtaining a data set comprising a plurality of data points, each data point being associated with data selected from the group consisting of an image, a portion of text, a web document, audio, and video; Perform a reparameterization of each data point in the dataset into unit-normalized direction and scale components, where each scale component contains the norm of the data point; performing, by a computing system, product quantization of the unit-normalized directional components of the data points; performing, by a computing system, scalar quantization of a scale component of the data point; and An approximate nearest neighbor search for the query relative to at least some of the product and / or scalar-quantized data points is performed by the computing system.
19. The computer system according to claim 18, in, Obtaining a data set including the plurality of data points comprises: Get the original data set; Perform vector quantization on the original data set; generating a residual data set based at least in part on the results of vector quantization of the original data set; applying, by a computing system, the rotation matrix to the residual data set to generate a rotated residual data set comprising a plurality of rotated residuals; and Performing a reparameterization on each data point in the data set includes performing a reparameterization on each rotated residual included in the rotated residual data set.
