Author(s): Pradeep Singh, Balasubramanian Raman
title: Deep learning through the prism of tensors
Series: Studies in Big Data, no. 162
Publisher: Springer Singapore
Year: 2024
ISBN: 978-981-978018-1 (hbk); 978-981-978021-1 (pbk); 978-981-978019-8 (ebk)
Pages: xxv+610 pp.
Price (tentative): € 74.19 (hbk); € 51.93 (pbk); (net)
URL: link.springer.com/book/10.1007/978-981-97-8019-8
Short description:
This is an up-to-date course on deep learning methods and strategies as it is supporting different AI applications. The tensors representing and the data and how they are manipulated during the learning process forms an essential part in the approach. It is very accessible for someone new to the subject.

Published: zbMATH Open Zbl 7956210
MSC main category: 68
MSC category: 68-01
Other MSC categories: 15A69 68T07
previous | next | 
list this 25 ↑ survey ↑

cover

Review:

The recent spectacular applications of AI systems will have triggered the interest of many, and if you are eager to learn what tools and methods these systems rely on, this book might be a good place to start from scratch. The authors give a clear, rigorous, and practical introduction to the methods of deep learning with an hands-on programming approach.

Artificial learning systems want to identify the features that allows them to recognize a pattern in a set of data. The mathematical model for this process is a neural network and its ``intelligence'' is stored in its parameters that are adapted and calibrated until it has learned to recognize the proper patterns. This calibration is obtained by minimizing the deviation of its output from the target output.

So the first chapters of the book explain the representation of the data and the nature of these neural networks. The data is in general a point cloud where each point has a set of features stored in a multidimensional tensor. A neural network accepts an input that is processed by several layers consisting of a number of neurons and eventually generates output that should approximate a certain target outcome. Each layer receives $h^{l-1}$ from the previous layer and produces a new output $h^l =\sigma(W^l h^{l-1}+b^l)$. The parameters are stored in the weight matrix $W^l$ and the bias vector $b^l$. The nonlinear activation function $\sigma$ is for example ReLu: $\sigma(x)=\max(0,x)$ or some smoother analog like a sigmoid or $\tanh$. $l=1$ is the input layer receiving the input $h^0=x$ and $l=L$ is the output layer generating the output $h^L=y$. The layers in between are hidden layers. The more hidden layers, the `deeper' the learning is. If the output is not the expected one, then corrections of these parameters $W^l$ and $b^l$ are back-propagated so that the error function is reduced using one step of a gradient descend method or more advanced ones with or without regularization.

Also all the operations involving tensors are defined and explained, including storing and visualisation, transformations, convolutions, decompositions, etc. Relevant in this context are operations corresponding to up or down-sampling (pooling). The latter means replacing blocks of data with for example their average or maximum value. If the point cloud has a structure with for example connections between neighbouring points, this graph structure needs to be taken into account.

All these basic elements and some of their variations with their pros and cons, are set to work in a coherent discussion of simple multi-layer perceptrons (MLP) in Chapter 3. Here, as in the previous and the following chapters, the different elements are also provided in the form of Python code that can be tested with open source software libraries TensorFlow (Google) and PyTorch (Meta and Linux). These libraries have low-level implementations of operations that are essential for AI applications and deep learning algorithms. In both cases tensors are the basic objects to operate on. So, the reader also learns, hands-on, how to implement in these systems a learning system for some application.

Chapter 4 deals with convolution neural networks (CNN) where the operation multiplication with $W^l$ is turned into a convolution (i.e.\ multiplying over a sliding window). There are more appropriate for image processing applications (classification, object detection, segmentation,...). Examples of such packages are discussed.

Recurrent Neural Networks (RNN) are more suited for processing temporal data (forecasting, natural language processing, translating, video,...). Here the state $h_t$ at time $t$ depends on the state $h_{t-1}$ and on the input $x_t$: $h_t=f(W_h h_{t-1}+W_t x_t +b_t)$. Long Short-Term Memory (LSTM) is a kind of RNN that avoids the problem of a vanishing gradient in the adaptive process. More recent, and simpler, variants are the Gated Recurrent Unit (GRU) networks. Both are discussed in Chapter 5. In this context some attention mechanism is important. These will help to focus on certain relevant sections of the sequence being processed, which allows to shorten the length of the vectors that need to be processed.

Chapter 6 is devoted to Transformer Architectures which revolutionized natural language processing (NLP) in generative systems like BERT, GPT, or T5. Here the neural networks are used to encode input sequences so that position and relations between tokens can be discovered using a self-attention mechanism where the attention support can be the neighborhood or remote sections. In the decoding this leads to prediction which tokens should appear where in the output sequence. This can be used for translation of text, summarising it, or answering questions. Several case studies for practical architectures are discussed.

Attention mechanisms are further elaborated in Chapter 7. Mathematically, compatibility scores are computed between queries and key-value pairs during analysis of the input. These scores are then used to generate the output as a combination of the corresponding values. Depending on the application, several possible methods to compute these scores are discussed.

When the data are defined in the vertices of a graph (social networks, molecular chemistry,\ldots) the structure of that graph has to be taken into account, also in the tensors representing the data. These graph neural networks (GNN) are the subject of Chapter 8 which starts with a short introduction to graph theory and redefining some tensor operations. As in some of the applications these networks can be seen as a message passing application where the message at a node will depend on what is present in its neighbours. This clearly affects the computations of the attention scores. Supervised or unsupervised self-learning can be obtained from unlabeled data. For examples in robotic applications the system learns from its failures and in clustering problems the underlying structure will be detected by the system itself. These self-learning techniques my involve some statistics like explained in Chapter 9.

Two of these self-learning methods using autoencoders and generative models and their application fields are further elaborated in Chapter 10. In the first one, the encoded input is regenerated by an encoder and the parameters are adapted according to the difference between both. In the second, the distribution properties of the data are captured to generate new data to learn from.

As the domain is still evolving rapidly, Chapter 11 highlights some of the most recent models being development and future directions to explore.

Throughout the book, all definitions are illustrated with small scale numerical examples, and there are exercises after each chapter. In every chapter there is Python code to implement whatever is being discussed in the two tensor-based libraries mentioned before. Beyond the initial chapters, the code becomes more extensive to implement some applications and there is a discussion of some practical case studies being in use today. Hence the text is suitable both as lecture notes for a course or as introduction to construct a system of your own.

Reviewer: A. Bultheel (KU Leuven) © February 26, 2026