Polynomial Tensor Sketch for Element-Wise Function of Low-Rank Matrix

Total Page:16

File Type:pdf, Size:1020Kb

Polynomial Tensor Sketch for Element-Wise Function of Low-Rank Matrix Polynomial Tensor Sketch for Element-wise Function of Low-Rank Matrix Insu Han 1 Haim Avron 2 Jinwoo Shin 3 1 Abstract side, we obtain a o(n2)-time approximation scheme of f (A)x ≈ T T >x for an arbitrary vector x 2 n due This paper studies how to sketch element-wise U V R to the associative property of matrix multiplication, where functions of low-rank matrices. Formally, given the exact computation of f (A)x requires the complexity low-rank matrix A = [A ] and scalar non-linear ij of Θ(n2). function f, we aim for finding an approximated low-rank representation of the (possibly high- The matrix-vector multiplication f (A)x or the low-rank > rank) matrix [f(Aij)]. To this end, we propose an decomposition f (A) ≈ TU TV is useful in many machine efficient sketching-based algorithm whose com- learning algorithms. For example, the Gram matrices of plexity is significantly lower than the number of certain kernel functions, e.g., polynomial and radial basis entries of A, i.e., it runs without accessing all function (RBF), are element-wise matrix functions where entries of [f(Aij)] explicitly. The main idea un- the rank is the dimension of the underlying data. Such derlying our method is to combine a polynomial matrices are the cornerstone of so-called kernel methods approximation of f with the existing tensor sketch and the ability to multiply the Gram matrix to a vector scheme for approximating monomials of entries suffices for most kernel learning. The Sinkhorn-Knopp of A. To balance the errors of the two approx- algorithm is a powerful, yet simple, tool for computing imation components in an optimal manner, we optimal transport distances (Cuturi, 2013; Altschuler et al., propose a novel regression formula to find poly- 2017) and also involves the matrix-vector multiplication nomial coefficients given A and f. In particu- f (A)x with f(x) = exp(x). Finally, f (UV >) can also lar, we utilize a coreset-based regression with a describe the non-linear computation of activation in a layer rigorous approximation guarantee. Finally, we of deep neural networks (Goodfellow et al., 2016), where U, demonstrate the applicability and superiority of V and f correspond to input, weight and activation function the proposed scheme under various machine learn- (e.g., sigmoid or ReLU) of the previous layer, respectively. ing tasks. Unlike the element-wise matrix function f (A), a tradi- tional matrix function f(A) is defined on their eigenval- ues (Higham, 2008) and possesses clean algebraic prop- 1. Introduction erties, i.e., it preserves eigenvectors. For example, given n×n a diagonalizable matrix A = P DP −1, it is defined that Given a low-rank matrix A = [Aij] 2 R with A = > n×d f(A) = P f (D)P −1. A classical problem addressed UV for some matrices U; V 2 R with d n and a in the literature is of approximating the trace of f(A) (or scalar non-linear function f : R ! R, we are interested in the following element-wise matrix function:∗ f(A)x) efficiently (Han et al., 2017; Ubaru et al., 2017). However, these methods are not applicable to our prob- arXiv:1905.11616v3 [cs.LG] 29 Jun 2020 n×n f (A) 2 R ; where f (A)ij := [f(Aij)] : lem because element-wise matrix functions are fundamen- tally different from the traditional function of matrices, Our goal is to design a fast algorithm for computing tall- e.g., they do not guarantee the spectral property. We are 2 and-thin matrices TU ;TV in time o(n )such that f (A) ≈ unaware of any approximation algorithm that targets gen- > TU TV . In particular, our algorithm should run without eral element-wise matrix functions. The special case of computing all entries of A or f (A) explicitly. As an element-wise kernel functions such as f(x) = exp(x) and k 1 f(x) = x , as been address in the literature, e.g., using ran- School of Electrical Engineering, KAIST, Daejeon, Korea dom Fourier features (RFF)(Rahimi & Recht, 2008; Pen- 2School of Mathematical Sciences, Tel Aviv University, Israel 3Graduate School of AI, KAIST, Daejeon, Korea. Correspondence nington et al., 2015), Nystrom¨ method (Williams & Seeger, to: Jinwoo Shin <[email protected]>. 2001), sparse greedy approximation (Smola & Schokopf¨ , ∗ Proceedings of the 37 th International Conference on Machine In this paper, we primarily focus on the square matrix A for Learning, Vienna, Austria, PMLR 119, 2020. Copyright 2020 by simplicity, but it is straightforward to extend our results to the case the author(s). of non-square matrices. Polynomial Tensor Sketch Pr 2000) and sketch-based methods (Pham & Pagh, 2013; (instead of monomials), i.e., pr(x) = j=0 cjtj(x) for the Avron et al., 2014; Meister et al., 2019; Ahle et al., 2020), Chebyshev polynomial tj(x) of degree j, in order to resolve just to name a few examples. We aim for not only designing numerical issues arising for large degrees. an approximation framework for general f, but also outper- We evaluate the approximation quality of our algorithm un- forming the previous approximations (e.g., RFF) even for der the RBF kernels of synthetic and real-world datasets. the special case f(x) = exp(x). Then, we apply the proposed method to classification using The high-level idea underlying our method is to combine kernel SVM (Cristianini et al., 2000; Scholkopf & Smola, two approximation schemes: TENSORSKETCH approximat- 2001) and computation of optimal transport distances (Cu- ing the element-wise matrix function of monomial xk and turi, 2013) which require to compute element-wise matrix Pr j a degree-r polynomial approximation pr(x) = j=0 cjx functions with f(x) = exp(x). Our experimental results Pr 1 j confirm that our scheme is at the order of magnitude faster of function f, e.g., f(x) = exp(x) ≈ pr(x) = j=0 j! x . More formally, we consider the following approximation: than the exact method with a marginal loss on accuracy. Furthermore, our scheme also significantly outperforms a r state-of-the-art approximation method, RFF for the afore- (a) X j f (A) ≈ cj · (x ) (A) mentioned applications. Finally, we demonstrate a wide ap- j=0 plicability of our method by applying it to the linearization r (b) X j of neural networks, which requires to compute element-wise ≈ cj · TENSORSKETCH (x ) (A) ; matrix functions with f(x) = sigmoid(x). j=0 which we call POLY-TENSORSKETCH. This is a linear-time 2. Preliminaries approximation scheme with respect to n under the choice of r = O(1). Here, a non-trivial challenge occurs: a larger In this section, we provide backgrounds on the random- degree r is required to approximate an arbitrary function f ized sketching algorithms COUNTSKETCH and TENSORS- KETCH that are crucial components of the proposed scheme. better, while the approximation error of TENSORSKETCH is known to increase exponentially with respect to r (Pham First, COUNTSKETCH (Charikar et al., 2002; Weinberger & Pagh, 2013; Avron et al., 2014). Hence, it is important et al., 2009) was proposed for an effective dimensionality to choose good cj’s for balancing two approximation er- reduction of high-dimensional vector u 2 Rd. Formally, rors in both (a) and (b). The known (truncated) polynomial consider a random hash function h :[d] ! [m] and a expansions such as Taylor or Chebyshev (Mason & Hand- random sign function s :[d] ! {−1; +1g, where [d] := scomb, 2002) are far from being optimal for this purpose f1; : : : ; dg. Then, COUNTSKETCH transforms u into Cu 2 (see Section 3.2 and 4.1 for more details). m P R such that [Cu]j := i:h(i)=j s(i)ui for j 2 [m]. The To address this challenge, we formulate an optimization algorithm takes O(d) time to run since it requires a single pass over the input. It is known that applying the samey problem on the polynomial coefficients (the cjs) by relating them to the approximation error of POLY-TENSORSKETCH. COUNTSKETCH transform on two vectors preserves the However, this optimization problem is intractable since the dot-product, i.e., hu; vi = E [hCu;Cvi]. objective involves an expectation taken over random vari- TENSORSKETCH (Pham & Pagh, 2013) was proposed as a ables whose supports are exponentially large. Thus, we generalization of COUNTSKETCH to tensor products of vec- derive a novel tractable alternative optimization problem tors. Given u 2 Rd and a degree k, consider i.i.d. random based on an upper bound the approximation error of POLY- hash functions h1; : : : ; hk :[d] ! [m] and i.i.d. random TENSORSKETCH. This problem turns out to be an instance sign functions s1; : : : ; sk :[d] ! {−1; +1g, TENSORS- of generalized ridge regression (Hemmerle, 1975), and as KETCH applied to u is defined as the m-dimensional vector such has a closed-form solution. Furthermore, we observe m Tu 2 R such that j 2 [m], that the regularization term effectively forces the coefficients to be exponentially decaying, and this compensates the ex- (k) X [Tu ]j := s1(i1) : : : sk(ik)ui1 : : : uik ; ponentially growing errors of TENSORSKETCH with respect H(i ;:::;i )=j to the rank, while simultaneously maintaining a good poly- 1 k nomial approximation to the scalar function f given entries z where H(i1; : : : ; ik) ≡ h1(i1)+···+hk(ik) (mod m): In of A. We further reduce its complexity by regressing only a (Pham & Pagh, 2013; Avron et al., 2014; Pennington et al., subset of the matrix entries found by an efficient coreset clus- 2015; Meister et al., 2019), TENSORSKETCH was used for tering algorithm (Har-Peledx, 2008): if matrix entries are approximating of the power of dot-product between vectors.
Recommended publications
  • Low-Rank Tucker Approximation of a Tensor from Streaming Data : ; \ \ } Yiming Sun , Yang Guo , Charlene Luo , Joel Tropp , and Madeleine Udell
    SIAM J. MATH.DATA SCI. © 2020 Society for Industrial and Applied Mathematics Vol. 2, No. 4, pp. 1123{1150 Low-Rank Tucker Approximation of a Tensor from Streaming Data˚ : ; x { } Yiming Sun , Yang Guo , Charlene Luo , Joel Tropp , and Madeleine Udell Abstract. This paper describes a new algorithm for computing a low-Tucker-rank approximation of a tensor. The method applies a randomized linear map to the tensor to obtain a sketch that captures the important directions within each mode, as well as the interactions among the modes. The sketch can be extracted from streaming or distributed data or with a single pass over the tensor, and it uses storage proportional to the degrees of freedom in the output Tucker approximation. The algorithm does not require a second pass over the tensor, although it can exploit another view to compute a superior approximation. The paper provides a rigorous theoretical guarantee on the approximation error. Extensive numerical experiments show that the algorithm produces useful results that improve on the state-of-the-art for streaming Tucker decomposition. Key words. Tucker decomposition, tensor compression, dimension reduction, sketching method, randomized algorithm, streaming algorithm AMS subject classifcations. 68Q25, 68R10, 68U05 DOI. 10.1137/19M1257718 1. Introduction. Large-scale datasets with natural tensor (multidimensional array) struc- ture arise in a wide variety of applications, including computer vision [39], neuroscience [9], scientifc simulation [3], sensor networks [31], and data mining [21]. In many cases, these tensors are too large to manipulate, to transmit, or even to store in a single machine. Luckily, tensors often exhibit a low-rank structure and can be approximated by a low-rank tensor factorization, such as CANDECOMP/PARAFAC (CP), tensor train, or Tucker factorization [20].
    [Show full text]
  • Low-Rank Pairwise Alignment Bilinear Network for Few-Shot Fine
    JOURNAL OF LATEX CLASS FILES, VOL. XX, NO. X, JUNE 2019 1 Low-Rank Pairwise Alignment Bilinear Network For Few-Shot Fine-Grained Image Classification Huaxi Huang, Student Member, IEEE, Junjie Zhang, Jian Zhang, Senior Member, IEEE, Jingsong Xu, Qiang Wu, Senior Member, IEEE Abstract—Deep neural networks have demonstrated advanced abilities on various visual classification tasks, which heavily rely on the large-scale training samples with annotated ground-truth. Slot Alaskan Dog However, it is unrealistic always to require such annotation in h real-world applications. Recently, Few-Shot learning (FS), as an attempt to address the shortage of training samples, has made significant progress in generic classification tasks. Nonetheless, it Insect Husky Dog is still challenging for current FS models to distinguish the subtle differences between fine-grained categories given limited training Easy to Recognise A Little Hard to Classify data. To filling the classification gap, in this paper, we address Lion Audi A5 the Few-Shot Fine-Grained (FSFG) classification problem, which focuses on tackling the fine-grained classification under the challenging few-shot learning setting. A novel low-rank pairwise Piano Audi S5 bilinear pooling operation is proposed to capture the nuanced General Object Recognition with Single Sample Fine-grained Object Recognition with Single Sample differences between the support and query images for learning an effective distance metric. Moreover, a feature alignment layer Fig. 1. An example of general one-shot learning (Left) and fine-grained one- is designed to match the support image features with query shot learning (Right). For general one-shot learning, it is easy to learn the ones before the comparison.
    [Show full text]
  • Fast and Guaranteed Tensor Decomposition Via Sketching
    Fast and Guaranteed Tensor Decomposition via Sketching Yining Wang, Hsiao-Yu Tung, Alex Smola Anima Anandkumar Machine Learning Department Department of EECS Carnegie Mellon University, Pittsburgh, PA 15213 University of California Irvine fyiningwa,[email protected] Irvine, CA 92697 [email protected] [email protected] Abstract Tensor CANDECOMP/PARAFAC (CP) decomposition has wide applications in statistical learning of latent variable models and in data mining. In this paper, we propose fast and randomized tensor CP decomposition algorithms based on sketching. We build on the idea of count sketches, but introduce many novel ideas which are unique to tensors. We develop novel methods for randomized com- putation of tensor contractions via FFTs, without explicitly forming the tensors. Such tensor contractions are encountered in decomposition methods such as ten- sor power iterations and alternating least squares. We also design novel colliding hashes for symmetric tensors to further save time in computing the sketches. We then combine these sketching ideas with existing whitening and tensor power iter- ative techniques to obtain the fastest algorithm on both sparse and dense tensors. The quality of approximation under our method does not depend on properties such as sparsity, uniformity of elements, etc. We apply the method for topic mod- eling and obtain competitive results. Keywords: Tensor CP decomposition, count sketch, randomized methods, spec- tral methods, topic modeling 1 Introduction In many data-rich domains such as computer vision, neuroscience and social networks consisting of multi-modal and multi-relational data, tensors have emerged as a powerful paradigm for han- dling the data deluge. An important operation with tensor data is its decomposition, where the input tensor is decomposed into a succinct form.
    [Show full text]
  • High-Order Attention Models for Visual Question Answering
    High-Order Attention Models for Visual Question Answering Idan Schwartz Alexander G. Schwing Department of Computer Science Department of Electrical and Computer Engineering Technion University of Illinois at Urbana-Champaign [email protected] [email protected] Tamir Hazan Department of Industrial Engineering & Management Technion [email protected] Abstract The quest for algorithms that enable cognitive abilities is an important part of machine learning. A common trait in many recently investigated cognitive-like tasks is that they take into account different data modalities, such as visual and textual input. In this paper we propose a novel and generally applicable form of attention mechanism that learns high-order correlations between various data modalities. We show that high-order correlations effectively direct the appropriate attention to the relevant elements in the different data modalities that are required to solve the joint task. We demonstrate the effectiveness of our high-order attention mechanism on the task of visual question answering (VQA), where we achieve state-of-the-art performance on the standard VQA dataset. 1 Introduction The quest for algorithms which enable cognitive abilities is an important part of machine learning and appears in many facets, e.g., in visual question answering tasks [6], image captioning [26], visual question generation [18, 10] and machine comprehension [8]. A common trait in these recent cognitive-like tasks is that they take into account different data modalities, for example, visual and textual data. To address these tasks, recently, attention mechanisms have emerged as a powerful common theme, which provides not only some form of interpretability if applied to deep net models, but also often improves performance [8].
    [Show full text]
  • Visual Attribute Transfer Through Deep Image Analogy ∗
    Visual Attribute Transfer through Deep Image Analogy ∗ Jing Liao1, Yuan Yao2 ,y Lu Yuan1, Gang Hua1, and Sing Bing Kang1 1Microsoft Research, 2Shanghai Jiao Tong University : :: : : :: : A (input) A0 (output) B (output) B0 (input) Figure 1: Our technique allows us to establish semantically-meaningful dense correspondences between two input images A and B0. A0 and B are the reconstructed results subsequent to transfer of visual attributes. Abstract The applications of color transfer, texture transfer, and style transfer share a common theme, which we characterize as visual attribute We propose a new technique for visual attribute transfer across im- transfer. In other words, visual attribute transfer refers to copying ages that may have very different appearance but have perceptually visual attributes of one image such as color, texture, and style, to similar semantic structure. By visual attribute transfer, we mean another image. transfer of visual information (such as color, tone, texture, and style) from one image to another. For example, one image could In this paper, we describe a new technique for visual attribute trans- be that of a painting or a sketch while the other is a photo of a real fer for a pair of images that may be very different in appearance but scene, and both depict the same type of scene. semantically similar. In the context of images, by ”semantic”, we refer to high-level visual content involving identifiable objects. We Our technique finds semantically-meaningful dense correspon- deem two different images to be semantically similar if both are of dences between two input images. To accomplish this, it adapts the the same type of scene containing objects with the same names or notion of “image analogy” [Hertzmann et al.
    [Show full text]
  • Monet: Moments Embedding Network
    MoNet: Moments Embedding Network Mengran Gou1 Fei Xiong2 Octavia Camps1 Mario Sznaier1 1Electrical and Computer Engineering, Northeastern University, Boston, MA, US 2Information Sciences Institute, USC, CA, US mengran, camps, msznaier @coe.neu.edu { } [email protected] Abstract Table 1. Comparison of 2nd order statistic information based neu- ral networks. Bilinear CNN (BCNN) only has 2nd order infor- mation and does not use matrix normalization. Both improved Bilinear pooling has been recently proposed as a feature BCNN (iBCNN) and G2DeNet take advantage of matrix normal- encoding layer, which can be used after the convolutional ization but suffer from large dimensionality because they use the layers of a deep network, to improve performance in mul- square-root of a large pooled matrix. Our proposed MoNet, with tiple vision tasks. Instead of conventional global average the help of a novel sub-matrix square-root layer, can normalize the pooling or fully connected layer, bilinear pooling gathers local features directly and reduce the final representation dimen- 2nd order information in a translation invariant fashion. sion significantly by substituting the fully bilinear pooling with However, a serious drawback of this family of pooling lay- compact pooling. ers is their dimensionality explosion. Approximate pooling 1st order Matrix Compact methods with compact property have been explored towards moment normalization capacity resolving this weakness. Additionally, recent results have BCNN [22,9] shown that significant performance gains can be achieved by using matrix normalization to regularize unstable higher iBCNN [21] order information. However, combining compact pooling G2DeNet [33] with matrix normalization has not been explored until now. In this paper, we unify the bilinear pooling layer and MoNet the global Gaussian embedding layer through the empir- ical moment matrix.
    [Show full text]
  • Multi-Objective Matrix Normalization for Fine-Grained Visual Recognition
    JOURNAL OF LATEX CLASS FILES, VOL. 14, NO. 8, AUGUST 2015 1 Multi-Objective Matrix Normalization for Fine-grained Visual Recognition Shaobo Min, Hantao Yao, Member, IEEE, Hongtao Xie, Zheng-Jun Zha, and Yongdong Zhang, Senior Member, IEEE Abstract—Bilinear pooling achieves great success in fine- grained visual recognition (FGVC). Recent methods have shown 푤 푐 Normalization that the matrix power normalization can stabilize the second- Reshape order information in bilinear features, but some problems, e.g., CNN ℎ redundant information and over-fitting, remain to be resolved. 푐 푐2 In this paper, we propose an efficient Multi-Objective Matrix Normalization (MOMN) method that can simultaneously normal- 푐 ize a bilinear representation in terms of square-root, low-rank, and sparsity. These three regularizers can not only stabilize the Covariance Bilinear Image Visual Feature second-order information, but also compact the bilinear features Matrix Feature and promote model generalization. In MOMN, a core challenge is how to jointly optimize three non-smooth regularizers of different convex properties. To this end, MOMN first formulates Fig. 1. A diagram of bilinear pooling for FGVC. The covariance matrix is them into an augmented Lagrange formula with approximated obtained by first reshaping the visual feature X into n×c and then calculating X>X. regularizer constraints. Then, auxiliary variables are introduced to relax different constraints, which allow each regularizer to be solved alternately. Finally, several updating strategies based on gradient descent are designed to obtain consistent Bilinear pooling is first introduced in [7], which pools convergence and efficient implementation. Consequently, MOMN the pairwise-correlated local descriptors into a global rep- is implemented with only matrix multiplication, which is well- resentation, i.e.
    [Show full text]
  • High-Order Attention Models for Visual Question Answering
    High-Order Attention Models for Visual Question Answering Idan Schwartz Alexander G. Schwing Department of Computer Science Department of Electrical and Computer Engineering Technion University of Illinois at Urbana-Champaign [email protected] [email protected] Tamir Hazan Department of Industrial Engineering & Management Technion [email protected] Abstract The quest for algorithms that enable cognitive abilities is an important part of machine learning. A common trait in many recently investigated cognitive-like tasks is that they take into account different data modalities, such as visual and textual input. In this paper we propose a novel and generally applicable form of attention mechanism that learns high-order correlations between various data modalities. We show that high-order correlations effectively direct the appropriate attention to the relevant elements in the different data modalities that are required to solve the joint task. We demonstrate the effectiveness of our high-order attention mechanism on the task of visual question answering (VQA), where we achieve state-of-the-art performance on the standard VQA dataset. 1 Introduction The quest for algorithms which enable cognitive abilities is an important part of machine learning and appears in many facets, e.g., in visual question answering tasks [6], image captioning [26], visual question generation [18, 10] and machine comprehension [8]. A common trait in these recent cognitive-like tasks is that they take into account different data modalities, for example, visual and textual data. arXiv:1711.04323v1 [cs.CV] 12 Nov 2017 To address these tasks, recently, attention mechanisms have emerged as a powerful common theme, which provides not only some form of interpretability if applied to deep net models, but also often improves performance [8].
    [Show full text]
  • Monet: Moments Embedding Network∗
    MoNet: Moments Embedding Network∗ Mengran Gou1 Fei Xiong2 Octavia Camps1 Mario Sznaier1 1Electrical and Computer Engineering, Northeastern University, Boston, MA, US 2Information Sciences Institute, USC, CA, US mengran, camps, msznaier @coe.neu.edu { } [email protected] Abstract Table 1. Comparison of 2nd order statistical information-based neural networks. Bilinear CNN (BCNN) only has 2nd order in- formation and does not use matrix normalization. Both improved Bilinear pooling has been recently proposed as a feature BCNN (iBCNN) and G2DeNet take advantage of matrix normal- encoding layer, which can be used after the convolutional ization but suffer from large dimensionality since they use the layers of a deep network, to improve performance in mul- square-root of a large pooled matrix. Our proposed MoNet, with tiple vision tasks. Different from conventional global aver- the help of a novel sub-matrix square-root layer, can normalize the age pooling or fully connected layer, bilinear pooling gath- local features directly and reduce the final representation dimen- ers 2nd order information in a translation invariant fash- sion significantly by substituting bilinear pooling with compact ion. However, a serious drawback of this family of pooling pooling. layers is their dimensionality explosion. Approximate pool- 1st order Matrix Compact ing methods with compact properties have been explored moment normalization capacity towards resolving this weakness. Additionally, recent re- BCNN [22, 9] sults have shown that significant performance gains can be achieved by adding 1st order information and applying ma- iBCNN [21] trix normalization to regularize unstable higher order in- G2DeNet [36] formation. However, combining compact pooling with ma- trix normalization and other order information has not been MoNet explored until now.
    [Show full text]
  • Polynomial Tensor Sketch for Element-Wise Function of Low-Rank Matrix
    Polynomial Tensor Sketch for Element-wise Function of Low-Rank Matrix Insu Han 1 Haim Avron 2 Jinwoo Shin 3 1 Abstract side, we obtain a o(n2)-time approximation scheme of f (A)x ≈ T T >x for an arbitrary vector x 2 n due This paper studies how to sketch element-wise U V R to the associative property of matrix multiplication, where functions of low-rank matrices. Formally, given the exact computation of f (A)x requires the complexity low-rank matrix A = [A ] and scalar non-linear ij of Θ(n2). function f, we aim for finding an approximated low-rank representation of the (possibly high- The matrix-vector multiplication f (A)x or the low-rank > rank) matrix [f(Aij)]. To this end, we propose an decomposition f (A) ≈ TU TV is useful in many machine efficient sketching-based algorithm whose com- learning algorithms. For example, the Gram matrices of plexity is significantly lower than the number of certain kernel functions, e.g., polynomial and radial basis entries of A, i.e., it runs without accessing all function (RBF), are element-wise matrix functions where entries of [f(Aij)] explicitly. The main idea un- the rank is the dimension of the underlying data. Such derlying our method is to combine a polynomial matrices are the cornerstone of so-called kernel methods approximation of f with the existing tensor sketch and the ability to multiply the Gram matrix to a vector scheme for approximating monomials of entries suffices for most kernel learning. The Sinkhorn-Knopp of A.
    [Show full text]
  • Hadamard Product for Low-Rank Bilinear Pooling
    Under review as a conference paper at ICLR 2017 HADAMARD PRODUCT FOR LOW-RANK BILINEAR POOLING Jin-Hwa Kim Kyoung-Woon On Interdisciplinary Program in Cognitive Science School of Computer Science and Engineering Seoul National University Seoul National University Seoul, 08826, Republic of Korea Seoul, 08826, Republic of Korea [email protected] [email protected] Jeonghee Kim & Jung-Woo Ha Naver Labs, Naver Corp. Gyeonggi-do, 13561, Republic of Korea fjeonghee.kim,[email protected] Byoung-Tak Zhang School of Computer Science and Engineering & Interdisciplinary Program in Cognitive Science Seoul National University & Surromind Robotics Seoul, 08826, Republic of Korea [email protected] ABSTRACT Bilinear models provide rich representations compared with linear models. They have been applied in various visual tasks, such as object recognition, segmen- tation, and visual question-answering, to get state-of-the-art performances tak- ing advantage of the expanded representations. However, bilinear representations tend to be high-dimensional, limiting the applicability to computationally com- plex tasks. We propose low-rank bilinear pooling using Hadamard product for an efficient attention mechanism of multimodal learning. We show that our model outperforms compact bilinear pooling in visual question-answering tasks with the state-of-the-art results on the VQA dataset, having a better parsimonious property. 1 INTRODUCTION Bilinear models (Tenenbaum & Freeman, 2000) provide richer representations than linear models. To exploit this advantage, fully-connected layers in neural networks can be replaced with bilinear pooling. The outer product of two vectors (or Kroneker product for matrices) is involved in bilinear pooling, as a result of this, all pairwise interactions among given features are considered.
    [Show full text]
  • Higher-Order Count Sketch: Dimensionality Reduction That Retains Efficient Tensor Operations
    Higher-order Count Sketch: Dimensionality Reduction That Retains Efficient Tensor Operations Yang Shi Animashree Anandkumar University of California, Irvine California Institute of Technology Irvine, CA 92617 Pasadena, CA, 91101 [email protected] [email protected] Abstract Sketching is a randomized dimensionality-reduction method that aims to preserve relevant information in large-scale datasets. Count sketch is a simple popular sketch which uses a randomized hash function to achieve compression. In this paper, we propose a novel extension known as Higher-order Count Sketch (HCS). While count sketch uses a single hash function, HCS uses multiple (smaller) hash functions for sketching. HCS reshapes the input (vector) data into a higher-order tensor and employs a tensor product of the random hash functions to compute the sketch. This results in an exponential saving (with respect to the order of the tensor) in the memory requirements of the hash functions, under certain conditions on the input data. Furthermore, when the input data itself has an underlying structure in the form of various tensor representations such as the Tucker decomposition, we obtain significant advantages. We derive efficient (approximate) computation of various tensor operations such as tensor products and tensor contractions directly on the sketched data. Thus, HCS is the first sketch to fully exploit the multi- dimensional nature of higher-order tensors. We apply HCS to tensorized neural networks where we replace fully connected layers with sketched tensor operations. We achieve nearly state of the art accuracy with significant compression on the image classification benchmark. 1 Introduction Modern machine learning involves processing of large-scale datasets.
    [Show full text]