AWS, IBM Consulting Expand Generative AI Service Partnership

IBM Consulting, IBM’s professional services branch, and Amazon Web Services have added new generative AI solutions to three services for contact centers and the supply chain, the companies announced on Oct. 18.

The purpose of the expanded relationship between IBM Consulting and AWS is “to help more mutual clients operationalize and derive value from generative artificial intelligence,” IBM Consulting stated in a press release. In addition, IBM Consulting intends to provide exclusive training to 10,000 consultants and host the watsonx.data storage solution as software-as-a-service on AWS.

Jump to:

  • Generative AI for summarization, IT Ops and more comes to contact center and supply chain services
  • Competitors to Amazon Connect and AWS supply chain
  • IBM plans to train 10,000 consultants on AWS generative AI services
  • Watsonx.data added to AWS

Generative AI for summarization, IT Ops and more comes to AWS contact center and supply chain services

Joint IBM Consulting and AWS services that have been enhanced with generative AI capabilities include:

  • Contact Center Modernization with Amazon Connect.
  • Platform Services on AWS.
  • Supply Chain Ensemble on AWS.

SEE: AWS committed $100 million to a Generative AI Innovation Center in June 2023. (TechRepublic)

Contact Center Modernization with Amazon Connect provides generative AI, which can summarize and categorize voice or text interactions. These functions are designed to enable hand-offs between a chatbot and a live agent; the agent will receive summarized details of the customer interaction to speed up resolution times. For details on pricing and international availability, go to this AWS page for Amazon Connect.

Platform Services, which AWS introduced in November 2022, will now include generative AI for IT Ops, automation and platform engineering. The generative AI applies to observability techniques and intelligent issue resolution.

Lastly, Supply Chain Ensemble on AWS will introduce a virtual assistant for supply chain professionals. It is designed to optimize inventories, reduce costs, streamline logistics and assess risks.

Pricing for AWS depends on which services are included. A price calculator can be found here.

All of the above offerings are available throughout AWS’s Availability Zones.

IBM Consulting plans to add generative AI for coding and reverse engineering to the IBM Consulting Cloud Accelerator. This accelerator is available globally.

Competitors to Amazon Connect and AWS supply chain

Competitors to AWS’s supply chain services include Microsoft Dynamics 365 Supply Chain Management, SAP Supply Chain Management and Oracle Fusion Cloud SCM.

Competitors to Amazon Connect for contact center services include Talkdesk, Twilio Flex and Webex Contact Center.

IBM plans to train 10,000 consultants on AWS generative AI services

IBM Consulting plans to give its partners training on AWS generative AI services, including top use cases and best practices for client engagement. The end result, IBM proposes, will be 10,000 consultants trained and skilled in generative AI by 2024.

“Enterprise clients are looking for expert help [consultants] to build a strategy and develop generative AI use cases that can drive business value and transformation – while mitigating risks,” said Manish Goyal, senior partner, global AI and analytics leader at IBM Consulting, in a press release.

“In talking with clients daily, we’re seeing major demand from enterprises to help think through how they can best drive value using generative AI both rapidly and responsibly,” Goyal said in an email to TechRepublic.

“We know this is critical to build strategies that are informed, enhancing our ability to review end to end workflows and find opportunities where generative AI automation might be able to complement traditional AI for innovation, to cite one example,” Goyal said.

Watsonx.data added to AWS

Watsonx.data, a data storage platform, is now available on AWS as a fully-managed SaaS solution accessible through AWS Marketplace. This is one of the results of a 2022 agreement between AWS and IBM to more closely link their services.

Watsonx.ai, a platform for training generative AI models, and watsonx.governance, which assists with AI governance, are expected to follow watsonx.data by 2024.

Subscribe to the Innovation Insider Newsletter

Catch up on the latest tech innovations that are changing the world, including IoT, 5G, the latest about phones, security, smart cities, AI, robotics, and more.

Delivered Tuesdays and Fridays Sign up today

Samsung and IISc Partner to Set Up a Quantum Technology Lab

Samsung Semiconductor India Research (SSIR) has partnered with the Indian Institute of Science (IISc) to set up a Quantum Technology Lab. The lab is expected to integrate cryogenic control chips with qubits, single photon sources, and detectors, while also addressing reliability challenges in quantum technologies.

This effort aligns with SSIR’s Corporate Social Responsibility (CSR) commitment and will provide research and training to faculty members and students pursuing higher education, not only at IISc but also at other educational institutions.

Guided by Professor Mayank Shrivastava, an Associate Professor in the Department of Electronic Systems Engineering (DESE), this laboratory will become a dedicated facility for advanced quantum technologies. It underlines India’s growing focus on quantum research, innovation and global recognition.

The Memorandum of Understanding (MoU) inked by Balajee Sowrirajan, CVP & MD at SSIR, and Professor Govindan Rangarajan, the Director of IISc accentuates the development of indigenous quantum technology.

Sowrirajan outlined the goals of this partnership, stating, The technology scale-up will propel India’s focus on quantum innovation and excellence in the global technology landscape.”

The lab will offer opportunities for students practical training, research experiences, and skill development in quantum technologies. Furthermore, the lab will benefit researchers and scientists involved in quantum research. It will also extend support and resources to faculty members from various institutions who may not have the means to engage in capital-intensive research.

Professor Govindan Rangarajan from IISc expressed his thoughts on this partnership, emphasizing its significance. He said, “This new Quantum Technology Lab at IISc highlights our commitment to emerging and futuristic research threads. This collaboration with SSIR will strengthen the Institute’s cutting-edge infrastructure and expertise, providing our students and researchers with a unique opportunity to explore the limitless possibilities of quantum technologies.”

The post Samsung and IISc Partner to Set Up a Quantum Technology Lab appeared first on Analytics India Magazine.

A Brief History of the Neural Networks

A Brief History of the Neural Networks
Walkthrough of neural network evolution (image by author).

Neural networks, the fundamental building blocks of artificial intelligence, have revolutionized the way we process information, offering a glimpse into the future of technology. These complex computational systems, inspired by the intricacies of the human brain, have become pivotal in tasks ranging from image recognition and natural language understanding to autonomous driving and medical diagnosis. As we explore neural networks’ historical evolution, we will uncover their remarkable journey of how they have evolved to shape the modern landscape of AI.

How It All Began?

Neural networks, the foundational components of deep learning, owe their conceptual roots to the intricate biological networks of neurons within the human brain. This remarkable concept began with a fundamental analogy, drawing parallels between biological neurons and computational networks.

This analogy centers around the brain, which is composed of roughly 100 billion neurons. Each neuron maintains about 7,000 synaptic connections with other neurons, creating a complex neural network that underlies human cognitive processes and decision making.

Individually, a biological neuron operates through a series of simple electrochemical processes. It receives signals from other neurons through its dendrites. When these incoming signals add up to a certain level (a predetermined threshold), the neuron switches on and sends an electrochemical signal along its axon. This, in turn, affects the neurons connected to its axon terminals. The key thing to note here is that a neuron's response is like a binary switch: it either fires (activates) or stays quiet, without any in-between states.

A Brief History of the Neural Networks
Biological neurons were the inspiration for artificial neural networks (image: Wikipedia).

Artificial neural networks, as impressive as they are, remain a far cry from even remotely approaching the astonishing intricacies and profound complexities of the human brain. Nonetheless, they have demonstrated significant prowess in addressing problems that are challenging for conventional computers but appear intuitive to human cognition. Some examples are image recognition and predictive analytics based on historical data.

Now that we've explored the foundational principles of how biological neurons function and their inspiration for artificial neural networks, let's journey through the evolution of neural network frameworks that have shaped the landscape of artificial intelligence.

FFNN — Feed Forward Neural Network

Feed forward neural networks, often referred to as a multilayer perceptron, are a fundamental type of neural networks, whose operation is deeply rooted in the principles of information flow, interconnected layers, and parameter optimization.

At their core, FFNNs orchestrate a unidirectional journey of information. It all begins with the input layer containing n neurons, where data is initially ingested. This layer serves as the entry point for the network, acting as a receptor for the input features that need to be processed. From there, the data embarks on a transformative voyage through the network's hidden layers.

One important aspect of FFNNs is their connected structure, which means that each neuron in a layer is intricately connected to every neuron in that layer. This interconnectedness allows the network to perform computations and capture relationships within the data. It's like a communication network where every node plays a role in processing information.

As the data passes through the hidden layers, it undergoes a series of calculations. Each neuron in a hidden layer receives inputs from all neurons in the previous layer, applies a weighted sum to these inputs, adds a bias term, and then passes the result through an activation function (commonly ReLU, Sigmoid, or tanH). These mathematical operations enable the network to extract relevant patterns from the input, and capture complex, nonlinear relationships within data. This is where FFNNs truly excel compared to more shallow ML models.

A Brief History of the Neural Networks
Architecture of fully-connected feed-forward neural networks (image by author).

However, that's not where it ends. The real power of FFNNs lies in their ability to adapt. During training the network adjusts its weights to minimize the difference between its predictions and the actual target values. This iterative process, often based on optimization algorithms like gradient descent, is called backpropagation. Backpropagation empowers FFNNs to actually learn from data and improve their accuracy in making predictions or classifications.

A Brief History of the Neural Networks
Example KNIME workflow of FFNN used for the binary classification of certification exams (pass vs fail). In the upper branch, we can see the network architecture, which is made of an input layer, a fully connected hidden layer with a tanH activation function, and an output layer that uses a Sigmoid activation function (image by author).

While powerful and versatile, FFNNs display some relevant limitations. For example, they fail to capture sequentiality and temporal/syntactic dependencies in the data –two crucial aspects for tasks in language processing and time series analysis. The need to overcome these limitations prompted the evolution of a new type of neural network architecture. This transition paved the way for Recurrent Neural Networks (RNNs), which introduced the concept of feedback loops to better handle sequential data.

RNN and LSTM — Recurrent Neural Network and Long Short-Term Memory

At their core, RNNs share some similarities with FFNNs. They too are composed of layers of interconnected nodes, processing data to make predictions or classifications. However, their key differentiator lies in their ability to handle sequential data and capture temporal dependencies.

In a FFNN, information flows in a single, unidirectional path from the input layer to the output layer. This is suitable for tasks where the order of data doesn't matter much. However, when dealing with sequences like time series data, language, or speech, maintaining context and understanding the order of data is crucial. This is where RNNs shine.

RNNs introduce the concept of feedback loops. These act as a sort of “memory” and allow the network to maintain a hidden state that captures information about previous inputs and to influence the current input and output. While traditional neural networks assume that inputs and outputs are independent of each other, the output of recurrent neural networks depend on the prior elements within the sequence. This recurrent connection mechanism makes RNNs particularly fit to handle sequences by “remembering” past information.

Another distinguishing characteristic of recurrent networks is that they share the same weight parameter within each layer of the network, and those weights are adjusted leveraging the backpropagation through time (BPTT) algorithm, which is slightly different from traditional backpropagation as it is specific to sequence data.

A Brief History of the Neural Networks
Unrolled representation of RNNs, where each input is enriched with context information coming from previous inputs. The color represents the propagation of context information (image by author).

However, traditional RNNs have their limitations. While in theory they should be able to capture long-range dependencies, in reality they struggle to do so effectively, and can even suffer from the vanishing gradient problem, which hinders their ability to learn and remember information over many time steps.

This is where Long Short-Term Memory (LSTM) units come into play. They are specifically designed to handle these issues by incorporating three gates into their structure: the Forget gate, Input gate, and Output gate.

  • Forget gate: This gate decides which information from the time step should be discarded or forgotten. By examining the cell state and the current input, it determines which information is irrelevant for making predictions in the present.
  • Input gate: This gate is responsible for incorporating information into the cell state. It takes into account both the input and the previous cell state to decide what new information should be added to enhance its state.
  • Output gate: This gate concludes what output will be generated by the LSTM unit. It considers both the current input and the updated cell state to produce an output that can be utilized for predictions or passed on to time steps.

A Brief History of the Neural Networks
Visual representation of Long-Short Term Memory units (image by Christopher Olah).
A Brief History of the Neural Networks
Example KNIME workflow of RNNs with LSTM units used for a multi-class sentiment prediction (positive, negative, neutral). The upper branch defines the network architecture using an input layer to handle strings of different lengths, an embedding layer, an LSTM layer with several units, and a fully connected output layer with a Softmax activation function to return predictions.

In summary, RNNs, and especially LSTM units, are tailored for sequential data, allowing them to maintain memory and capture temporal dependencies, which is a critical capability for tasks like natural language processing, speech recognition, and time series prediction.

As we shift from RNNs capturing sequential dependencies, the evolution continues with Convolutional Neural Networks (CNNs). Unlike RNNs, CNNs excel at spatial feature extraction from structured grid-like data, making them ideal for image and pattern recognition tasks. This transition reflects the diverse applications of neural networks across different data types and structures.

CNN — Convolutional Neural Network

CNNs are a special breed of neural networks, particularly well-suited for processing image data, such as 2D images or even 3D video data. Their architecture relies on a multilayered feed-forward neural network with at least one convolutional layer.

What makes CNNs stand out is their network connectivity and approach to feature extraction, which allows them to automatically identify relevant patterns in the data. Unlike traditional FFNNs, which connect every neuron in one layer to every neuron in the next, CNNs employ a sliding window known as a kernel or filter. This sliding window scans across the input data and is especially powerful for tasks where spatial relationships matter, like identifying objects in images or tracking motion in videos. As the kernel is moved across the image, a convolution operation is performed between the kernel and the pixel values (from a strictly mathematical standpoint, this operation is a cross correlation), and a nonlinear activation function, usually ReLU, is applied. This produces a high value if the feature is in the image patch and a small value if it is not.

Together with the kernel, the addition and fine-tuning of hyperparameters, such as stride (i.e., the number of pixels by which we slide the kernel) and dilation rate (i.e., the spaces between each kernel cell), allows the network to focus on specific features, recognizing patterns and details in specific regions without considering the entire input at once.

A Brief History of the Neural Networks
Convolution operation with stride length = 2 (GIF by Sumit Saha).

Some kernels may specialize in detecting edges or corners, while others might be tuned to recognize more complex objects like cats, dogs, or street signs within an image. By stacking together several convolutional and pooling layers, CNNs build a hierarchical representation of the input, gradually abstracting features from low-level to high-level, just as our brains process visual information.

A Brief History of the Neural Networks
Example KNIME workflow of CNN for binary image classification (cats vs dogs). The upper branch defines the network architecture using a series of convolutional layers and max pooling layers for automatic feature extraction from images. A flatten layer is then used to prepare the extracted features as a unidimensional input for the FFNN to perform a binary classification.

While CNNs excel at feature extraction and have revolutionized computer vision tasks, they act as passive observers, for they are not designed to generate new data or content. This is not an inherent limitation of the network per se but having a powerful engine and no fuel makes a fast car useless. Indeed, real and meaningful image and video data tend to be hard and expensive to collect and tend to face copyright and data privacy restrictions. This constraint led to the development of a novel paradigm that builds on CNNs but marks a leap from image classification to creative synthesis: Generative Adversarial Networks (GANs).

GAN — Generative Adversarial Networks

GANs are a particular family of neural networks whose primary, but not the only, purpose is to produce synthetic data that closely mimics a given dataset of real data. Unlike most neural networks, GANs’ ingenious architectural design consisting of two core models:

  • Generator model: The first player in this neural network duet is the generator model. This component is tasked with a fascinating mission: given random noise or input vectors, it strives to create artificial samples that are as close to resembling real samples as possible. Imagine it as an art forger, attempting to craft paintings that are indistinguishable from masterpieces.
  • Discriminator model: Playing the adversary role is the discriminator model. Its job is to differentiate between the generated samples produced by the generator and the authentic samples from the original dataset. Think of it as an art connoisseur, trying to spot the forgeries among the genuine artworks.

Now, here's where the magic happens: GANs engage in a continuous, adversarial dance. The generator aims to improve its artistry, continually fine-tuning its creations to become more convincing. Meanwhile, the discriminator becomes a sharper detective, honing its ability to tell the real from the fake.

A Brief History of the Neural Networks
GAN architecture (image by author).

As training progresses, this dynamic interplay between the generator and discriminator leads to a fascinating outcome. The generator strives to generate samples that are so realistic that even the discriminator can't tell them apart from the genuine ones. This competition drives both components to refine their abilities continuously.

The result? A generator that becomes astonishingly adept at producing data that appears authentic, be it images, music, or text. This capability has led to remarkable applications in various fields, including image synthesis, data augmentation, image-to-image translation, and image editing.

A Brief History of the Neural Networks
Example KNIME workflow of GANs for the generation of synthetic images (i.e., animals, human faces and Simpson characters).

GANs pioneered realistic image and video content creation by pitting a generator against a discriminator. Extending the need for creativity and advanced operations from image to sequential data, models for more sophisticated natural language understanding, machine translation, and text generation were introduced. This initiated the development of Transformers, a remarkable deep neural network architecture that not only outperformed previous architectures by effectively capturing long-range language dependencies and semantic context, but also became the undisputed foundation of the most recent AI-driven applications.

Transformers

Developed in 2017, Transformers boast a unique feature that allows them to replace traditional recurrent layers: a self-attention mechanism that allows them to model intricate relationships between all words in a document, regardless of their position. This makes Transformers excellent at tackling the challenge of long-range dependencies in natural language. Transformer architectures consist of two main building blocks:

  • Encoder. Here the input sequence is embedded into vectors and then is exposed to the self-attention mechanism. The latter computes attention scores for each token, determining its importance in relation to others. These scores are used to create weighted sums, which are fed into a FFNN to generate context-aware representations for each token. Multiple encoder layers repeat this process, enhancing the model's ability to capture hierarchical and contextual information.
  • Decoder. This block is responsible for generating output sequences and follows a similar process to that of the encoder. It is able to place the proper focus on and understand the encoder's output and its own past tokens during each step, ensuring accurate generation by considering both input context and previously generated output.

A Brief History of the Neural Networks
Transformer model architecture (image by: Vaswani et al., 2017).

Consider this sentence: "I arrived at the bank after crossing the river”. The word "bank" can have two meanings –either a financial institution or the edge of a river. Here's where transformers shine. They can swiftly focus on the word "river" to disambiguate "bank" by comparing "bank" to every other word in the sentence and assigning attention scores. These scores determine the influence of each word on the next representation of "bank". In this case, "river" gets a higher score, effectively clarifying the intended meaning.

To work that well, Transformers rely on millions of trainable parameters, require large corpora of texts and sophisticated training strategies. One notable training approach employed with Transformers is masked language modeling (MLM). During training, specific tokens within the input sequence are randomly masked, and the model's objective is to predict these masked tokens accurately. This strategy encourages the model to grasp contextual relationships between words because it must rely on the surrounding words to make accurate predictions. This approach, popularized by the BERT model, has been instrumental in achieving state-of-the-art results in various NLP tasks.

An alternative to MLM for Transformers is autoregressive modeling. In this method, the model is trained to generate one word at a time while conditioning on previously generated words. Autoregressive models like GPT (Generative Pre-trained Transformer) follow this methodology and excel in tasks where the goal is to predict unidirectionally the next most suitable word, such as free text generation, question answering and text completion.

Furthermore, to compensate for the need for extensive text resources, Transformers excel in parallelization, meaning they can process data during training faster than traditional sequential approaches like RNNs or LSTM units. This efficient computation reduces training time and has led to groundbreaking applications in natural language processing, machine translation, and more.

A pivotal Transformer model developed by Google in 2018 that made a substantial impact is BERT (Bidirectional Encoder Representations from Transformers). BERT relied on MLM training and introduced the concept of bidirectional context, meaning it considers both the left and right context of a word when predicting the masked token. This bidirectional approach significantly enhanced the model's understanding of word meanings and contextual nuances, establishing new benchmarks for natural language understanding and a wide array of downstream NLP tasks.

A Brief History of the Neural Networks
Example KNIME workflow of BERT for multi-class sentiment prediction (positive, negative, neutral). Minimal preprocessing is performed and the pretrained BERT model with fine-tuning is leveraged.

On the heels of Transformers that introduced powerful self-attention mechanisms, the growing demand for versatility in applications and performing complex natural language tasks, such as document summarization, text editing, or code generation, necessitated the development of large language models. These models employ deep neural networks with billions of parameters to excel in such tasks and meet the evolving requirements of the data analytics industry.

LLM — Large Language Model

Large language models (LLMs) are a revolutionary category of multi-purpose and multi-modal (accepting image, audio and text inputs) deep neural networks that have garnered significant attention in recent years. The adjective large stems from their vast size, as they encompass billions of trainable parameters. Some of the most well-known examples include OpenAI’s ChatGTP, Google’s Bard or Meta’s LLaMa.

What sets LLMs apart is their unparalleled ability and flexibility to process and generate human-like text. They excel in natural language understanding and generation tasks, ranging from text completion and translation to question answering and content summarization. The key to their success lies in their extensive training on massive text corpora, allowing them to capture a rich understanding of language nuances, context, and semantics.

These models employ a deep neural architecture with multiple layers of self-attention mechanisms, enabling them to weigh the importance of different words and phrases in a given context. This dynamic adaptability makes them exceptionally proficient in processing inputs of various types, comprehending complex language structures, and generating outputs based on human-defined prompts.

A Brief History of the Neural Networks
Example KNIME workflow of creating an AI assistant that relies on OpenAI’s ChatGPT and a vector store with custom documents to answer domain-specific questions.

LLMs have paved the way for a multitude of applications across various industries, from healthcare and finance to entertainment and customer service. They've even sparked new frontiers in creative writing and storytelling.

However, their enormous size, resource-intensive training processes and potential copyright infringements for generated content have also raised concerns about ethical usage, environmental impact, and accessibility. Lastly, while increasingly enhanced, LLMs may contain some serious flaws, such as “hallucinating” incorrect facts, being biased, gullible, or persuaded into creating toxic content.

Is there an End?

The evolution of neural networks, from their humble beginnings to the uprising of large language models, raises a profound philosophical question: Will this journey ever come to an end?

The trajectory of technology has always been marked by relentless advancement. Each milestone only serves as a stepping stone to the next innovation. As we strive to create machines that can replicate human cognition and understanding, it's tempting to ponder whether there's an ultimate destination, a point where we say, "This is it; we've reached the pinnacle."

However, the essence of human curiosity and the boundless complexities of the natural world suggest otherwise. Just as our understanding of the universe continually deepens, the quest to develop more intelligent, capable, and ethical neural networks may be an endless journey.Walkthrough of neural network evolution (image by author).

Neural networks, the fundamental building blocks of artificial intelligence, have revolutionized the way we process information, offering a glimpse into the future of technology. These complex computational systems, inspired by the intricacies of the human brain, have become pivotal in tasks ranging from image recognition and natural language understanding to autonomous driving and medical diagnosis. As we explore neural networks’ historical evolution, we will uncover their remarkable journey of how they have evolved to shape the modern landscape of AI.

How It All Began?

Neural networks, the foundational components of deep learning, owe their conceptual roots to the intricate biological networks of neurons within the human brain. This remarkable concept began with a fundamental analogy, drawing parallels between biological neurons and computational networks.

This analogy centers around the brain, which is composed of roughly 100 billion neurons. Each neuron maintains about 7,000 synaptic connections with other neurons, creating a complex neural network that underlies human cognitive processes and decision making.

Individually, a biological neuron operates through a series of simple electrochemical processes. It receives signals from other neurons through its dendrites. When these incoming signals add up to a certain level (a predetermined threshold), the neuron switches on and sends an electrochemical signal along its axon. This, in turn, affects the neurons connected to its axon terminals. The key thing to note here is that a neuron's response is like a binary switch: it either fires (activates) or stays quiet, without any in-between states.

Biological neurons were the inspiration for artificial neural networks (image: Wikipedia).

Artificial neural networks, as impressive as they are, remain a far cry from even remotely approaching the astonishing intricacies and profound complexities of the human brain. Nonetheless, they have demonstrated significant prowess in addressing problems that are challenging for conventional computers but appear intuitive to human cognition. Some examples are image recognition and predictive analytics based on historical data.

Now that we've explored the foundational principles of how biological neurons function and their inspiration for artificial neural networks, let's journey through the evolution of neural network frameworks that have shaped the landscape of artificial intelligence.

FFNN — Feed Forward Neural Network

Feed forward neural networks, often referred to as a multilayer perceptron, are a fundamental type of neural networks, whose operation is deeply rooted in the principles of information flow, interconnected layers, and parameter optimization.

At their core, FFNNs orchestrate a unidirectional journey of information. It all begins with the input layer containing n neurons, where data is initially ingested. This layer serves as the entry point for the network, acting as a receptor for the input features that need to be processed. From there, the data embarks on a transformative voyage through the network's hidden layers.

One important aspect of FFNNs is their connected structure, which means that each neuron in a layer is intricately connected to every neuron in that layer. This interconnectedness allows the network to perform computations and capture relationships within the data. It's like a communication network where every node plays a role in processing information.

As the data passes through the hidden layers, it undergoes a series of calculations. Each neuron in a hidden layer receives inputs from all neurons in the previous layer, applies a weighted sum to these inputs, adds a bias term, and then passes the result through an activation function (commonly ReLU, Sigmoid, or tanH). These mathematical operations enable the network to extract relevant patterns from the input, and capture complex, nonlinear relationships within data. This is where FFNNs truly excel compared to more shallow ML models.

Architecture of fully-connected feed-forward neural networks (image by author).

However, that's not where it ends. The real power of FFNNs lies in their ability to adapt. During training the network adjusts its weights to minimize the difference between its predictions and the actual target values. This iterative process, often based on optimization algorithms like gradient descent, is called backpropagation. Backpropagation empowers FFNNs to actually learn from data and improve their accuracy in making predictions or classifications.

Example KNIME workflow of FFNN used for the binary classification of certification exams (pass vs fail). In the upper branch, we can see the network architecture, which is made of an input layer, a fully connected hidden layer with a tanH activation function, and an output layer that uses a Sigmoid activation function (image by author).

While powerful and versatile, FFNNs display some relevant limitations. For example, they fail to capture sequentiality and temporal/syntactic dependencies in the data –two crucial aspects for tasks in language processing and time series analysis. The need to overcome these limitations prompted the evolution of a new type of neural network architecture. This transition paved the way for Recurrent Neural Networks (RNNs), which introduced the concept of feedback loops to better handle sequential data.

RNN and LSTM — Recurrent Neural Network and Long Short-Term Memory

At their core, RNNs share some similarities with FFNNs. They too are composed of layers of interconnected nodes, processing data to make predictions or classifications. However, their key differentiator lies in their ability to handle sequential data and capture temporal dependencies.

In a FFNN, information flows in a single, unidirectional path from the input layer to the output layer. This is suitable for tasks where the order of data doesn't matter much. However, when dealing with sequences like time series data, language, or speech, maintaining context and understanding the order of data is crucial. This is where RNNs shine.

RNNs introduce the concept of feedback loops. These act as a sort of “memory” and allow the network to maintain a hidden state that captures information about previous inputs and to influence the current input and output. While traditional neural networks assume that inputs and outputs are independent of each other, the output of recurrent neural networks depend on the prior elements within the sequence. This recurrent connection mechanism makes RNNs particularly fit to handle sequences by “remembering” past information.

Another distinguishing characteristic of recurrent networks is that they share the same weight parameter within each layer of the network, and those weights are adjusted leveraging the backpropagation through time (BPTT) algorithm, which is slightly different from traditional backpropagation as it is specific to sequence data.

Unrolled representation of RNNs, where each input is enriched with context information coming from previous inputs. The color represents the propagation of context information (image by author).

However, traditional RNNs have their limitations. While in theory they should be able to capture long-range dependencies, in reality they struggle to do so effectively, and can even suffer from the vanishing gradient problem, which hinders their ability to learn and remember information over many time steps.

This is where Long Short-Term Memory (LSTM) units come into play. They are specifically designed to handle these issues by incorporating three gates into their structure: the Forget gate, Input gate, and Output gate.

  • Forget gate: This gate decides which information from the time step should be discarded or forgotten. By examining the cell state and the current input, it determines which information is irrelevant for making predictions in the present.
  • Input gate: This gate is responsible for incorporating information into the cell state. It takes into account both the input and the previous cell state to decide what new information should be added to enhance its state.
  • Output gate: This gate concludes what output will be generated by the LSTM unit. It considers both the current input and the updated cell state to produce an output that can be utilized for predictions or passed on to time steps.

Visual representation of Long-Short Term Memory units (image by Christopher Olah).

Example KNIME workflow of RNNs with LSTM units used for a multi-class sentiment prediction (positive, negative, neutral). The upper branch defines the network architecture using an input layer to handle strings of different lengths, an embedding layer, an LSTM layer with several units, and a fully connected output layer with a Softmax activation function to return predictions.

In summary, RNNs, and especially LSTM units, are tailored for sequential data, allowing them to maintain memory and capture temporal dependencies, which is a critical capability for tasks like natural language processing, speech recognition, and time series prediction.

As we shift from RNNs capturing sequential dependencies, the evolution continues with Convolutional Neural Networks (CNNs). Unlike RNNs, CNNs excel at spatial feature extraction from structured grid-like data, making them ideal for image and pattern recognition tasks. This transition reflects the diverse applications of neural networks across different data types and structures.

CNN — Convolutional Neural Network

CNNs are a special breed of neural networks, particularly well-suited for processing image data, such as 2D images or even 3D video data. Their architecture relies on a multilayered feed-forward neural network with at least one convolutional layer.

What makes CNNs stand out is their network connectivity and approach to feature extraction, which allows them to automatically identify relevant patterns in the data. Unlike traditional FFNNs, which connect every neuron in one layer to every neuron in the next, CNNs employ a sliding window known as a kernel or filter. This sliding window scans across the input data and is especially powerful for tasks where spatial relationships matter, like identifying objects in images or tracking motion in videos. As the kernel is moved across the image, a convolution operation is performed between the kernel and the pixel values (from a strictly mathematical standpoint, this operation is a cross correlation), and a nonlinear activation function, usually ReLU, is applied. This produces a high value if the feature is in the image patch and a small value if it is not.

Together with the kernel, the addition and fine-tuning of hyperparameters, such as stride (i.e., the number of pixels by which we slide the kernel) and dilation rate (i.e., the spaces between each kernel cell), allows the network to focus on specific features, recognizing patterns and details in specific regions without considering the entire input at once.

Convolution operation with stride length = 2 (GIF by Sumit Saha).

Some kernels may specialize in detecting edges or corners, while others might be tuned to recognize more complex objects like cats, dogs, or street signs within an image. By stacking together several convolutional and pooling layers, CNNs build a hierarchical representation of the input, gradually abstracting features from low-level to high-level, just as our brains process visual information.

Example KNIME workflow of CNN for binary image classification (cats vs dogs). The upper branch defines the network architecture using a series of convolutional layers and max pooling layers for automatic feature extraction from images. A flatten layer is then used to prepare the extracted features as a unidimensional input for the FFNN to perform a binary classification.

While CNNs excel at feature extraction and have revolutionized computer vision tasks, they act as passive observers, for they are not designed to generate new data or content. This is not an inherent limitation of the network per se but having a powerful engine and no fuel makes a fast car useless. Indeed, real and meaningful image and video data tend to be hard and expensive to collect and tend to face copyright and data privacy restrictions. This constraint led to the development of a novel paradigm that builds on CNNs but marks a leap from image classification to creative synthesis: Generative Adversarial Networks (GANs).

GAN — Generative Adversarial Networks

GANs are a particular family of neural networks whose primary, but not the only, purpose is to produce synthetic data that closely mimics a given dataset of real data. Unlike most neural networks, GANs’ ingenious architectural design consisting of two core models:

  • Generator model: The first player in this neural network duet is the generator model. This component is tasked with a fascinating mission: given random noise or input vectors, it strives to create artificial samples that are as close to resembling real samples as possible. Imagine it as an art forger, attempting to craft paintings that are indistinguishable from masterpieces.
  • Discriminator model: Playing the adversary role is the discriminator model. Its job is to differentiate between the generated samples produced by the generator and the authentic samples from the original dataset. Think of it as an art connoisseur, trying to spot the forgeries among the genuine artworks.

Now, here's where the magic happens: GANs engage in a continuous, adversarial dance. The generator aims to improve its artistry, continually fine-tuning its creations to become more convincing. Meanwhile, the discriminator becomes a sharper detective, honing its ability to tell the real from the fake.

GAN architecture (image by author).

As training progresses, this dynamic interplay between the generator and discriminator leads to a fascinating outcome. The generator strives to generate samples that are so realistic that even the discriminator can't tell them apart from the genuine ones. This competition drives both components to refine their abilities continuously.

The result? A generator that becomes astonishingly adept at producing data that appears authentic, be it images, music, or text. This capability has led to remarkable applications in various fields, including image synthesis, data augmentation, image-to-image translation, and image editing.

Example KNIME workflow of GANs for the generation of synthetic images (i.e., animals, human faces and Simpson characters).

GANs pioneered realistic image and video content creation by pitting a generator against a discriminator. Extending the need for creativity and advanced operations from image to sequential data, models for more sophisticated natural language understanding, machine translation, and text generation were introduced. This initiated the development of Transformers, a remarkable deep neural network architecture that not only outperformed previous architectures by effectively capturing long-range language dependencies and semantic context, but also became the undisputed foundation of the most recent AI-driven applications.

Transformers

Developed in 2017, Transformers boast a unique feature that allows them to replace traditional recurrent layers: a self-attention mechanism that allows them to model intricate relationships between all words in a document, regardless of their position. This makes Transformers excellent at tackling the challenge of long-range dependencies in natural language. Transformer architectures consist of two main building blocks:

  • Encoder. Here the input sequence is embedded into vectors and then is exposed to the self-attention mechanism. The latter computes attention scores for each token, determining its importance in relation to others. These scores are used to create weighted sums, which are fed into a FFNN to generate context-aware representations for each token. Multiple encoder layers repeat this process, enhancing the model's ability to capture hierarchical and contextual information.
  • Decoder. This block is responsible for generating output sequences and follows a similar process to that of the encoder. It is able to place the proper focus on and understand the encoder's output and its own past tokens during each step, ensuring accurate generation by considering both input context and previously generated output.

Transformer model architecture (image by: Vaswani et al., 2017).

Consider this sentence: "I arrived at the bank after crossing the river”. The word "bank" can have two meanings –either a financial institution or the edge of a river. Here's where transformers shine. They can swiftly focus on the word "river" to disambiguate "bank" by comparing "bank" to every other word in the sentence and assigning attention scores. These scores determine the influence of each word on the next representation of "bank". In this case, "river" gets a higher score, effectively clarifying the intended meaning.

To work that well, Transformers rely on millions of trainable parameters, require large corpora of texts and sophisticated training strategies. One notable training approach employed with Transformers is masked language modeling (MLM). During training, specific tokens within the input sequence are randomly masked, and the model's objective is to predict these masked tokens accurately. This strategy encourages the model to grasp contextual relationships between words because it must rely on the surrounding words to make accurate predictions. This approach, popularized by the BERT model, has been instrumental in achieving state-of-the-art results in various NLP tasks.

An alternative to MLM for Transformers is autoregressive modeling. In this method, the model is trained to generate one word at a time while conditioning on previously generated words. Autoregressive models like GPT (Generative Pre-trained Transformer) follow this methodology and excel in tasks where the goal is to predict unidirectionally the next most suitable word, such as free text generation, question answering and text completion.

Furthermore, to compensate for the need for extensive text resources, Transformers excel in parallelization, meaning they can process data during training faster than traditional sequential approaches like RNNs or LSTM units. This efficient computation reduces training time and has led to groundbreaking applications in natural language processing, machine translation, and more.

A pivotal Transformer model developed by Google in 2018 that made a substantial impact is BERT (Bidirectional Encoder Representations from Transformers). BERT relied on MLM training and introduced the concept of bidirectional context, meaning it considers both the left and right context of a word when predicting the masked token. This bidirectional approach significantly enhanced the model's understanding of word meanings and contextual nuances, establishing new benchmarks for natural language understanding and a wide array of downstream NLP tasks.

Example KNIME workflow of BERT for multi-class sentiment prediction (positive, negative, neutral). Minimal preprocessing is performed and the pretrained BERT model with fine-tuning is leveraged.

On the heels of Transformers that introduced powerful self-attention mechanisms, the growing demand for versatility in applications and performing complex natural language tasks, such as document summarization, text editing, or code generation, necessitated the development of large language models. These models employ deep neural networks with billions of parameters to excel in such tasks and meet the evolving requirements of the data analytics industry.

LLM — Large Language Model

Large language models (LLMs) are a revolutionary category of multi-purpose and multi-modal (accepting image, audio and text inputs) deep neural networks that have garnered significant attention in recent years. The adjective large stems from their vast size, as they encompass billions of trainable parameters. Some of the most well-known examples include OpenAI’s ChatGTP, Google’s Bard or Meta’s LLaMa.

What sets LLMs apart is their unparalleled ability and flexibility to process and generate human-like text. They excel in natural language understanding and generation tasks, ranging from text completion and translation to question answering and content summarization. The key to their success lies in their extensive training on massive text corpora, allowing them to capture a rich understanding of language nuances, context, and semantics.

These models employ a deep neural architecture with multiple layers of self-attention mechanisms, enabling them to weigh the importance of different words and phrases in a given context. This dynamic adaptability makes them exceptionally proficient in processing inputs of various types, comprehending complex language structures, and generating outputs based on human-defined prompts.

Example KNIME workflow of creating an AI assistant that relies on OpenAI’s ChatGPT and a vector store with custom documents to answer domain-specific questions.

LLMs have paved the way for a multitude of applications across various industries, from healthcare and finance to entertainment and customer service. They've even sparked new frontiers in creative writing and storytelling.

However, their enormous size, resource-intensive training processes and potential copyright infringements for generated content have also raised concerns about ethical usage, environmental impact, and accessibility. Lastly, while increasingly enhanced, LLMs may contain some serious flaws, such as “hallucinating” incorrect facts, being biased, gullible, or persuaded into creating toxic content.

Is there an End?

The evolution of neural networks, from their humble beginnings to the uprising of large language models, raises a profound philosophical question: Will this journey ever come to an end?

The trajectory of technology has always been marked by relentless advancement. Each milestone only serves as a stepping stone to the next innovation. As we strive to create machines that can replicate human cognition and understanding, it's tempting to ponder whether there's an ultimate destination, a point where we say, "This is it; we've reached the pinnacle."

However, the essence of human curiosity and the boundless complexities of the natural world suggest otherwise. Just as our understanding of the universe continually deepens, the quest to develop more intelligent, capable, and ethical neural networks may be an endless journey.

Anil is a Data Science Evangelist at KNIME.

More On This Topic

  • Google’s Model Search is a New Open Source Framework that Uses Neural…
  • A Brief Introduction to the Concept of Data
  • A Brief Introduction to Papers With Code
  • KDnuggets News, April 27: A Brief Introduction to Papers With Code; Machine…
  • A Brief Introduction to Kalman Filters
  • KDnuggets: Personal History and Nuggets of Experience

Israel’s GenAI-Backed End Game 

While everyone now knows about Israel’s Iron Dome and its military prowess, little did we know about its secret weapon – the “Cyber Dome.”

In 1955, David Ben-Gurion, Israel’s founding father, foresaw a destiny unfolding in the expanse of the Negev Desert, near the metropolis of Tel Aviv. Little did he know that his prophecy would later become a 1,800-acre cyber security complex in Beer Sheva, Negev’s capital and Israel’s cybersecurity hub.

Israel is a revolting force in modern warfare. As the world watches the traditional battle evolve into a digital theatre, Israel has marshalled its finest minds to build the ‘Cyber Dome,’ designed to wage warfare in cyberspace. The dome is inspired from its Iron Dome air defence system, which was deployed in 2011.

Gaby Portnoy, the Director General of the Israel National Cyber Directorate (INCD) calls it the “secret sauce” noting the X factor is generative AI platforms. The development of this tech dome is fueling the blood bath between Gaza and Israel. The stakes are high for Israel as the world is watching the concept of warfare undergo a shift.

Every three years, a new generation joins the cyber defence once they complete the military in Israel. Hence, the space between man and machine is equally divided in these war rooms, noted The Week’s Namrata Biji Ahuja who recently visited the facility in the middle of camel land.

One half is nerdy youth monitoring real-time data on multiple screens. The other half is completely digital, running on AI/ML — gathering, reading and interpreting data. Intelligence services use platforms akin to ChatGPT to filter important threats from the unlimited content flowing into the systems. These AI enabled military programmes are run by nearly 14,000 tech personnel at the Beer-Shava complex, she further stated.

AI in the Warzone

The Israel Defence was one of the world’s first to use AI to thwart threats. In 2021, the Middle Eastern country used AI broadly across an operation to identify targets. The technology was used to determine rocket trajectories based on radar information, intercepting those headed for densely populated areas.

With experience on the warfield, the state now confronts a new challenge – reigning in AI. On the current global AI leaderboard, Israel claims the fourth position, with a projected market size of $1.54 billion in 2023.

Since April 2023, generative AI-related startups in Israel have more than doubled from 67 to 144. The total amount raised by these startups so far has reached $2.3 billion, a 2.5x increase compared to the total figure from six months ago. The largest round so far in the country’s generative AI space belongs to natural language company, AI21 Labs, which raised a $155 million Series C. The country is also home to Runway ML which was one of the first editing tools companies to integrate machine learning in 2018.

In a conversation with the tech industry’s wannabe saviour Elon Musk, the Israeli PM had mentioned about pushing forth the country to third rank globally in AI soon. Other government personalities have also aimed to parlayed Israel’s technological prowess to become an AI “superpower”.

(Source: Statista.com)

The defence forces have also relocated intelligence groups, including the 8200 Intelligence Unit, to Beersheva’s high-tech campus adjacent to a university that was arid fields of dirt and sand a few years ago.

Despite the other developments, the digital rendition of the Iron Dome stands out. Four months ago, Ronen Bar, the head of the Israeli security agency Shin Bet spoke about Tel Aviv developing the AI-powered “global cyber iron dome” system with a number of countries to identify and tackle threats.

During an annual cyber conference, Bar declared that Israel had come to terms with the fact that “winning this war with sticks and stones” was simply not feasible.

The post Israel’s GenAI-Backed End Game appeared first on Analytics India Magazine.

arXiv Receives $10 Mn Funding

arXiv Receives $10 Mn Funding

Cornell Tech secures over $10 million in funding for arXiv, a free scholarly article distribution service, with contributions from the Simons Foundation and the National Science Foundation. This investment will facilitate the migration of arXiv’s 2 million-plus articles to the cloud, upgrading its code for improved reliability, fault tolerance, and accessibility to researchers.

Greg Morrisett, Cornell Tech’s Jack and Rilla Neafsey Dean and Vice Provost said, ““I am deeply grateful for this tremendous support from both the Simons Foundation and the NSF. The arXiv service aims to scale, broaden its user base, and enhance its support for the scientific community.

Ramin Zabih, arXiv faculty director and Cornell Tech computer science professor, highlighted the generous funding’s role in arXiv’s expansion within the scientific community, enabling researchers to freely exchange findings. Modernizing the code and transitioning to the cloud strengthens arXiv’s infrastructure and its role as an innovative platform for sharing scholarly publications.

Read: arXiv Doesn’t Need Ethicists’ Opinion

The next phase of arXiv’s development includes the hiring of multiple software developers for modernisation. Simultaneously, the Department of Computer Science faculty, backed by NSF funding, will develop novel search and recommendation techniques, tested on the active arXiv user community, with robust privacy protections. arXiv also improves accessibility for the visually impaired, offering HTML and PDF versions of its content.

The Simons Foundation’s President, David Spergel, acknowledged the arXiv’s pivotal role in research infrastructure and open science. He emphasised the foundation’s commitment, facilitated through Cornell Tech, to ensure arXiv’s modernisation and sustainability.

Founded in 1991 by physicist Paul Ginsparg at Los Alamos National Laboratory and now operated by Cornell Tech, arXiv serves various fields, including physics, mathematics, computer science, biology, finance, statistics, electrical engineering, systems science, and economics.

The post arXiv Receives $10 Mn Funding appeared first on Analytics India Magazine.

Introduction to Databases with SQL: Free Harvard Course

Introduction to Databases with SQL: Free Harvard Course
Image by Editor

For years, Harvard’s CS50 class—everyone's introduction to Computer Science—taught by Prof. David J Malan has helped learners from around the world break into computer science and start their dev journey. While CS 50 is an introduction to computer science, there are specialized tracks on Python, AI, and more.

As you might have guessed, the team has released an Introduction to Databases with SQL course—or CS50 SQL—to help you learn to query databases, design your own, and much more.

If you are an aspiring data professional, you should build a solid foundation in databases and SQL. And this course will help you get there.

About the CS50 SQL Course

Taught by Carter Zenke, the Introduction to Databases with SQL course is organized into seven modules spanning seven weeks. The modules contain lectures and associated problem sets based on real-world datasets.

For each module, you can follow this approach:

  • Watch the lectures
  • Review the notes
  • Try out the examples presented in the lecture
  • Work through the problem set for the module

You can solve the problem sets on VS Code for CS50. Like codespaces, it gives you VS Codde on the cloud—adapted for CS50. So there’s a ton of learning and practice as you’re progressing through the course.

Now that we know what the course is about, let's go over its contents.

Note: Modules 1 through 7 below map to weeks 0 through 6 in the course.

1. Querying Databases

The first module Querying Databases starts out by discussing the need to move beyond spreadsheets and how data is stored in a relational database. It then proceeds to the basics of querying databases with SQL. The topics the topics covered include:

  • SELECT statement
  • LIMIT and WHERE clause
  • Understanding NULLs
  • LIKE keyword
  • Ranges
  • ORDER BY
  • aggregate functions

Check out the module on querying.

2. Relating Database Tables

The Relating Database Tables module builds on the previous module and moves beyond a single database table. You’ll learn to work with multiple tables and understand the relationships between them. The topics covered include:

  • Entity relationship diagrams (ER diagrams)
  • Relationship types: one-to-one, one-to-many, and many-to-many relationships
  • Keys: primary and foreign keys
  • Subqueries
  • IN keyword
  • JOINs
  • Set operations: INTERSECT, UNION, and EXCEPT
  • GROUPBY

Check out the module on relating.

3. Designing Database Schemas

So far you’ve learned to work with databases, query single and multiple tables to answer questions. But how do you create such a database yourself? This module Designing Database Schemas covers exactly that. You’ll learn to design databases from scratch including concepts like:

  • Creating database schemas
  • Concepts of normalization and relating database tables
  • Creating tables
  • Data types and storage classes
  • Constraints on tables and columns
  • Altering tables

Check out the module on designing.

4. Writing to Databases

By now you know to retrieve data from databases using queries and design your own databases from scratch. This module Writing to Databases teaches you:

  • Inserting records into databases
  • Importing data from CSV files into a database
  • Deleting and updating records

Check out the module on writing.

5. Viewing Database Tables

The next module on Viewing Database Tables is a deep dive into creating database views and their advantages covering:

  • What views are
  • Creating views
  • Advantages of creating views
  • Common Table Expressions (CTEs)
  • Partitioning
  • Securing databases
  • Soft deletions

Check out the module on viewing.

6. Optimizing Database Queries

The Optimizing Database Queries module focuses on using indexes to speed up database queries and the trade-offs associated with indexes. The topic covered include:

  • Creating a database table index
  • Creating indexes across multiple tables
  • Space and time trade-off
  • Partial indexes on a subset of rows
  • Transactions and race conditions

Check out the module on optimizing.

7. Scaling Databases

In this course thus far, you’ve used SQLite. This final module on Scaling Databases introduces you to MySQL and PostgreSQL. It lays a foundation for these widely used RDMSs that you can build upon. This module covers:

  • Creating and altering tables
  • MySQL stored procedures
  • Stored procedures with parameters
  • Working with PostgreSQL
  • Access control statements
  • SQL injection attacks

Check out the module on scaling.

All the topics covered in this course are important if you’re considering a career in data. Introduction to Databases in Data Science provides an overview of the relevance of databases and essential database skills.

Wrapping Up

Overall, this is a great course to build a solid foundation in databases and SQL. As a data professional, you’ll use SQL all the time. But you’ll also realize that mastering SQL is a continuous journey. And to that end practice is your best friend!

If you’re ready to hone and flex your SQL muscles, check out this compilation of the 7 Best Platforms to Practice SQL.

Bala Priya C is a developer and technical writer from India. She likes working at the intersection of math, programming, data science, and content creation. Her areas of interest and expertise include DevOps, data science, and natural language processing. She enjoys reading, writing, coding, and coffee! Currently, she's working on learning and sharing her knowledge with the developer community by authoring tutorials, how-to guides, opinion pieces, and more.

More On This Topic

  • The Most Popular Intro to Programming Course From Harvard is Free!
  • KDnuggets News March 30: The Most Popular Intro to Programming Course From…
  • 9 Free Harvard Courses to Learn Data Science
  • KDnuggets News, May 4: 9 Free Harvard Courses to Learn Data Science; 15…
  • Introduction to Databases in Data Science
  • Free SQL and Database Course

NVIDIA AI is Now on Oracle Cloud Marketplace

NVIDIA AI is Now on Oracle Cloud Marketplace

Oracle Cloud Infrastructure (OCI) customers now have simplified access to high-performance accelerated computing and software for production AI projects. NVIDIA‘s DGX Cloud AI supercomputing platform and NVIDIA AI Enterprise software are now available in the Oracle Cloud Marketplace, offering a streamlined path for enterprises to engage in end-to-end AI development and deployment.

This addition is an industry first and will bring new capabilities for end-to-end development and deployment on Oracle Cloud. Enterprises can get started from the Oracle Cloud Marketplace to train models on DGX Cloud, and then deploy their applications on OCI with NVIDIA AI Enterprise.

OCI, which serves thousands of enterprises globally across diverse sectors, including healthcare, scientific research, finance, and telecommunications, now extends its catalog of solutions with DGX Cloud and NVIDIA AI Enterprise. This enables OCI customers to leverage their existing cloud credits to incorporate NVIDIA’s leading AI supercomputing platform and software into their development and deployment pipelines.

With DGX Cloud, OCI customers can engage in training models for generative AI applications such as intelligent chatbots, search, summarization, and content generation. This is a significant advancement in facilitating AI integration across various industries.

The University at Albany, located in upstate New York, exemplifies the transformative potential of this development. They have launched their AI Plus initiative, which seeks to integrate AI education and research across the university’s academic enterprise. Applications span fields like cybersecurity, weather prediction, health data analytics, drug discovery, and semiconductor design.

DGX Cloud AI supercomputing instances on OCI are integral to the university’s approach, helping drive advances in various domains. NVIDIA AI Enterprise complements this by bringing the software layer of the NVIDIA AI platform to OCI.

This includes NVIDIA NeMo frameworks, RAPIDS, TensorRT-LLM, Triton Inference Server, and software for cybersecurity, computer vision, speech AI, and more. It ensures enterprise-grade support, security, and stability for a seamless transition of AI projects from pilot to production.

NVIDIA DGX Cloud, hosted by OCI, provides immediate access to an AI supercomputing platform and software. It is characterized by multi-node training on NVIDIA GPUs and simplifies the training of advanced models for generative AI and other groundbreaking applications. Additionally, NVIDIA Base Command Platform simplifies AI infrastructure management for OCI customers, offering a single-pane view of their multinode clusters.

The post NVIDIA AI is Now on Oracle Cloud Marketplace appeared first on Analytics India Magazine.

A new YouTube tool will use AI to let you sound like your favorite artist

YouTube

If you've ever wished you could sing like a mega-star, a new YouTube feature may let you do just that, because the company is working on an artificial intelligence (AI) tool that lets creators record audio in the voices of famous musicians.

Details are still a little sparse, as no potential artists or labels have been announced. But YouTube has reportedly approached Sony Music Entertainment, Universal Music Group, and Warner Music Group about getting the rights to songs to train the tool.

Also: How to write better AI prompts

First reported by Bloomberg, the move comes not long after YouTube (and other music-streaming services) banned a viral AI-generated song featuring a realistic-sounding version of Drake and The Weeknd.

There are certainly murky waters around the use of AI in music, especially when it comes to mimicking the likeness of a real person. AI is a powerful tool, but its capabilities also pose a big problem in terms of copyright and licensing.

It appears YouTube, though, is taking the lead in overcoming the challenges by embracing emerging technology. It was just a few months ago that the company established its "first-ever set of AI music principles" to allow for creative expression while still protecting artists on its platform. Now, it's adding AI-generated mimicry as an actual feature.

Also: How AI helped get my music on all the major streaming services

This development, of course, raises a few questions. First off, what limits will be in place on what content can be generated? Will creators be able to sing anything they want? Second, how will monetiztion be handled? Any revenue generated on an AI video that mimics someone's voice will certainly be shared with the artist, but what will that split look like? Will an artist have any recourse if someone creates content where they're singing a song that's legal, but with a message the artist disagree with personally?

YouTube is no stranger to AI integration, rolling out new AI video tools for creators last month that allow for automatic dubbing into other languages and automatic background generation, plus AI video summaries for viewers. This new artist sound-alike feature was apparently supposed to be a part of that rollout, but rights issues have slowed the process.

Artificial Intelligence

Amazon is Testing Humanoids in its Warehouses

Amazon is Testing Humanoids in its Warehouses

Amazon is experimenting with humanoid robots in select US warehouses, marking a significant step in its automation endeavors. The tech giant aims to optimise efficiency by introducing these robots, named “Digit,” which emulate human movements for tasks such as moving and handling items.

Created by Agility Robotics, a company supported by Amazon and headquartered in Corvallis, Oregon, Digit is a versatile robot. This 5 feet 9 inches (175cm) tall, 143-pound (65kg) machine possesses the ability to walk in multiple directions, including forward, backward, and sideways, as well as the capability to crouch. Additionally, Digit has a carrying capacity of up to 35 pounds (16kg).

New video of Amazon trialing humanoid robots in US warehouses:
They currently employ 1.6 million people. pic.twitter.com/H3xJ9z3CW0

— AI Breakfast (@AiBreakfast) October 20, 2023

Amazon’s decision to implement robotic workers comes amid concerns about its treatment of warehouse staff, with reports of grueling conditions and high turnover rates. The company has faced lawsuits and allegations of fostering a challenging work environment.

While labor unions express apprehension about the potential for job losses due to automation, Amazon contends that its robotic systems have created numerous new job categories, emphasizing the integral role of human workers in the fulfillment process. The company has already deployed over 750,000 robots in its operations, working alongside human employees to address repetitive tasks.

Unlike conventional wheeled robots used in Amazon warehouses, Digit’s legged design enables it to navigate obstacles like steps and stairs. Amazon is currently conducting trials to evaluate its compatibility and safety when working alongside human workers.

Amazon Robotics’ chief technologist, Tye Brady, stresses the irreplaceable nature of human workers and dismisses the notion of fully automated warehouses, highlighting their problem-solving abilities and higher-level thinking. Scott Dresser of Amazon Robotics describes Digit as a prototype, and the company’s experience suggests that new technologies create jobs and support growth, as they require human intervention for maintenance.

As part of its ongoing automation efforts, Amazon has previously introduced wheeled robots for goods transportation within its warehouses and initiated drone deliveries in select US regions. It plans on delivering within Italy and the UK by the end of 2024.

The post Amazon is Testing Humanoids in its Warehouses appeared first on Analytics India Magazine.

The Cost of Using LLMs for Enterprise 

The burning question among enterprises right now is, ‘How much does it cost to use an LLM?’

Presently, there is a plethora of options available to choose from. While OpenAI’s models are highly rated, we have observed that open-source models like Llama 2, Falcon 180-B, and Mistral 7B are catching up to GPT-4 in terms of performance, and are gaining traction.

Many industry leaders are advocating for domain-specific LLMs. At this juncture, it becomes crucial for CXOs to decide which option they should choose. However, selecting the optimal LLM amidst this vast array of open-source and proprietary models demands meticulous evaluation, considering the balance between cost and performance.

“When it comes to selecting an LLM, there is no right or wrong answer. It depends on the use cases. But at the same time, it is important to understand the factors that play a role in deciding the pricing.” said Abhishiek Choudhary co-founder and CTO at TrueFoundry at Cypher 2023, India’s biggest AI conference.

What are the Factors

The size of the LLM is the most significant factor impacting its cost. Larger models with more parameters require more computational resources to train and deploy, leading to higher costs. It cost OpenAI over $100 million to train GPT-4.

The context length, which determines the amount of information the LLM can consider, also affects pricing. Longer context lengths allow for more comprehensive understanding and generation of text, but they also increase computational demands and costs. For example, the cost for using the GPT-4 8K context model API is $0.03 per 1,000 tokens for input and $0.06 per 1,000 tokens for output. While for the 32K context model, the cost is $0.06 per 1,000 tokens for input and $0.12 per 1,000 tokens for output.

To make it easy for enterprises to decide, Choudhary showed three usecases – namely on basis of tokens, RAG (retrieval augmented generation) and fine tuning – through which one can get a ballpark estimate of how much a particular model costs – particularly in the context of Summarizing Wikipedia to Half its Size

Basis of Tokens

For example, Wikipedia has 6 million articles, and each article is around 750 words.

750 words equals to 1000 tokens because three fourths of a word is equal to one token, so in total it translates to 6 billion tokens. When we reduce the size of Wikipedia by half, we will be left with 3 billion tokens as output.

The cost variations for summarisation among different models reveal significant differences in pricing structures. GPT-4 with 32K context length demands a higher investment at $720,000, while its 8K counterpart costs $360,000. GPT-3.5 Turbo is a more budget-friendly option at $15,000, and Llama 2 offers competitive pricing at $14,000. However, the cheapest among all of these alternatives is Falcon 180 B whose cost comes out to be $ 5119.

If you are wondering how we arrived at this cost, below is the math for GPT-4 (8K Context length)

Cost of Summarisation

= (Cost for Input Tokens) + (Cost of Output Tokens)
= (Total Input Tokens * Cost per input token) + (Total Output Tokens + Cost per output Token)
= ( 6 Billion * 0.03 / 1000 ) + ( 3 Billion * 0.06 / 1000 )
= 180,000 + 180,000
= $ 360,000

Basis of RAG

RAG is particularly useful when you have a large corpus of data and want to efficiently retrieve relevant information before generating a response. It combines retrieval models, which can quickly identify relevant passages, with generative models for more context-aware responses. This can be beneficial in scenarios where quick access to relevant information is crucial.

This is sometimes referred to as indexing.

The indexing cost for OpenAI Embeddings (AdaV2) + OpenAI GPT 3.5 Turbo is $600. While the daily cost for 1 million queries is $3400. On the other hand, the indexing cost for e5-large-v2 Embedder + Falcon-40B is $83 and the daily cost for 1 million queries is $1415.

Here the company has used T4 GPU and are considering the spot price on AWS which is 0.15$ / hour.

Below is the math for OpenAI Embeddings (AdaV2) + OpenAI GPT 3.5 Turbo

Indexing Cost (One Time)

= (Total Number of Tokens / 1000) * Cost per 1k token
= $ (6 Billion / 1000 ) * 0.0001
= $600

Daily Cost ( 1 Million queries)

Cost for one query

= (Avg input tokens) * (cost of input/token) + (Avg output tokens) * (cost of output / token)
= $ (2000) * (0.0015 / 1000) + (200) * (0.002 / 1000
= $ 0.003 + 0.0004
= $ 0.0034

Total Cost = $ 0.0034 * 1,000,000 = $ 3400

Basis of fine-tuning

The fine-tuning cost for OpenAI Curie 13B is $27,000 and daily cost for 1 million queries $ 26,400. On the other hand, the fine-tuning cost for LLaMa-v2-7b is $1365 and inference cost for 1 million queries is $470. This calculation is based on the use of A100 40GB GPU at a spot price on AWS (8x GPU) which is $9.83/hour.

Below is the math for fine-tuned OpenAI Curie 13 B

Daily Cost ( 1 Million queries)

Cost for one query
= (Avg input tokens) * (cost of input/token) + (Avg output tokens) * (cost of output / token)
= $ (2000) * (0.012 / 1000) + (200) * (0.012 / 1000)
= $ 0.024 + 0.0024
= $ 0.0264

Total Cost = $ 0.0264 * 1,000,000

= $ 26,400

Fine Tuning Cost (One Time)

Cost of Training

= ( Total tokens ) * (Cost Per Token)
= (9 Billion) * (0.003 / 1000)
= $ 27,000

In Conclusion

While OpenAI was the first one to come up with foundational models, it is noticed that their models are very costly to use. “Open AI makes the cost of serving any fine-tuned model 10x. If your GPT costs x, a fine-tuned model will cost you 10x” said Choudhary. As compared to OpenAI’s models, choosing open source models like Llama 2 or Falcon 40B will be much more cost effective.

The post The Cost of Using LLMs for Enterprise appeared first on Analytics India Magazine.