Home Technology peripherals AI The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

Apr 11, 2023 pm 09:22 PM
Model transforme

If there is something that has supported the development of large-scale models in the past few years, it must be Transformer!

Based on Transformer, a large number of models are springing up in various fields. Each model has a different architecture, different details, and a name that is not easy to explain.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

Recently, an author conducted a comprehensive classification of all popular Transformer models released in recent years. And index, try to provide a comprehensive but simple catalog . The article includes an introduction to Transformer innovation and a review of the development process.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

Paper link: ​https://arxiv.org/pdf/2302.07730.pdf​

Turing Award winner Yann LeCun expressed his approval.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

##The author of the article, Xavier (Xavi) Amatriain, graduated with a PhD from Pompeu Fabra University in Spain in 2005 and is currently an engineer at LinkedIn Vice President of the Department, mainly responsible for product artificial intelligence strategy.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

What is Transformer?

Transformer is a type of deep learning model with some unique architectural features. It first appeared in the famous "Attention is All you Need" paper published by Google researchers in 2017. The paper was published in In just 5 years, it has accumulated an astonishing 38,000 citations.

The Transformer architecture also belongs to the encoder-decoder model (encoder-decoder), but in the previous models, attention was only one of the mechanisms, and most of them were based on LSTM. (Long Short-Term Memory) and other variants of RNN (Recurrent Neural Network).

One of the key insights of the paper that proposes Transformer is that the attention mechanism can be used as the only mechanism to derive the dependency between input and output. This paper does not intend to To delve into all the details of the Transformer architecture, interested friends can search the "The Illustrated Transformer" blog.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

Blog link: ​https://jalammar.github.io/illustrated-transformer/​

Only the most important components are briefly described below.

Encoder-Decoder Architecture

a The general encoder/decoder architecture consists of two models, the encoder takes the input and encodes it into a fixed-length vector; the decoder takes the vector and decodes it into an output sequence.

The encoder and decoder are jointly trained to minimize the conditional log-likelihood. Once trained, the encoder/decoder can generate an output based on a given input sequence, or it can score a pair of input/output sequences.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

Under the original Transformer architecture, both the encoder and the decoder have 6 identical layers. In each of these 6 layers, the encoder has two sub-layers: a multi-head attention layer, and a Simple feedforward network with one residual connection and one layer normalization for each sub-layer.

The output size of the encoder is 512, and the decoder adds a third sub-layer, another multi-head attention layer on the encoder output. In addition, another multi-head layer in the decoder is masked out to prevent information leakage from applying attention to subsequent positions.

Attention mechanism

From the above description As can be seen, the only "strange" element in the model's structure is the attention of the bulls, and this is where the model's entire power lies.

The attention function is a mapping between query and a set of key-value pairs to the output. The output is calculated as a weighted sum of values, where the weight assigned to each value is given by Calculated by the compatibility function between query and corresponding key.

Transformer uses multi-head attention, which is the parallel calculation of a set of attention functions, also known as scaling dot product attention.

Compared with recurrent and convolutional networks, the attention layer has several advantages. The more important ones are its lower computational complexity and higher connectivity, which is good for learning sequences. Particularly useful for long-term dependencies in .

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

What can Transformer do? Why did it become popular?

The original Transformer was designed for language translation, mainly from English to German, but the first version of the paper Experimental results have shown that the architecture generalizes well to other language tasks.

This particular trend was quickly noticed by the research community.

In the next few months, the rankings of any language-related ML task will be completely occupied by some version of the Transformer architecture, such as the question and answer task Squad soon It was killed by various Transformer models.

One of the key reasons why Transofrmer can occupy most NLP rankings so quickly is: their ability to quickly adapt to other tasks, that is, transfer learning; pre-trained Transformer models can be very Easily and quickly adapt to tasks for which they have not been trained, a huge advantage over other models.

As an ML practitioner, you no longer need to train a large model from scratch on a huge data set, just reuse the pretrained model on the task at hand, maybe Just tweak it slightly with a much smaller data set.

The specific technique used to adapt pre-trained models to different tasks is so-called fine-tuning.

It turns out that Transformers are so adaptable to other tasks that although they were originally developed for language-related tasks, they quickly became useful for other tasks, From visual or audio and music applications all the way to playing chess or doing math.

Of course, none of these applications would be possible if it weren't for the myriad of tools readily available to anyone who can write a few lines of code.

Transformer was not only quickly integrated into major artificial intelligence frameworks (i.e. Pytorch and TensorFlow), but there were also some companies that were entirely built for Transformer.

Huggingface, a startup that has raised over $60 million to date, was built almost entirely around the idea of ​​commercializing their open source Transformer library.

GPT-3 is a Transformer model launched by OpenAI in May 2020. It is a subsequent version of their earlier GPT and GPT-2. The company created a lot of buzz by introducing the model in a preprint, claiming that the model was so powerful that they were not qualified to release it to the world.

Moreover, OpenAI not only did not release GPT-3, but also achieved commercialization through a very large partnership with Microsoft.

Today, GPT-3 provides underlying technical support for more than 300 different applications and is the foundation of OpenAI’s business strategy. That's significant for a company that has received more than $1 billion in funding.

RLHF

From human feedback (or preferences ), also known as RLHF (or RLHP), has recently become a huge addition to the artificial intelligence toolbox.

This concept first came from the 2017 paper "Deep Reinforcement Learning from Human Preferences", but recently it has been applied to ChatGPT and similar conversational agents, and has achieved quite good results. The effect has attracted public attention again.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

The idea in the article is very simple. Once the language model is pre-trained, it can produce different effects on the dialogue. responses and have humans rank the results, these rankings (also known as preferences or feedback) can be used to train rewards using reinforcement learning mechanisms.

Diffusion modelDiffusion##​

The diffusion model has become The new SOTA for image generation has a tendency to replace GANs (Generative Adversarial Networks).

The diffusion model is a type of trained latent variable model of variational inference. In practice, it means training a deep neural network to use a certain noise function. Blurred images are denoised.

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

A network trained in this way is actually learning the latent space represented by these images.

After reading the introduction, let’s start the retrospect journey of Transformer!

The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?

The above is the detailed content of The most complete collection of Transformers in history! LeCun recommends: Create a catalog for 60 models. Which paper have you missed?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The world's most powerful open source MoE model is here, with Chinese capabilities comparable to GPT-4, and the price is only nearly one percent of GPT-4-Turbo The world's most powerful open source MoE model is here, with Chinese capabilities comparable to GPT-4, and the price is only nearly one percent of GPT-4-Turbo May 07, 2024 pm 04:13 PM

Imagine an artificial intelligence model that not only has the ability to surpass traditional computing, but also achieves more efficient performance at a lower cost. This is not science fiction, DeepSeek-V2[1], the world’s most powerful open source MoE model is here. DeepSeek-V2 is a powerful mixture of experts (MoE) language model with the characteristics of economical training and efficient inference. It consists of 236B parameters, 21B of which are used to activate each marker. Compared with DeepSeek67B, DeepSeek-V2 has stronger performance, while saving 42.5% of training costs, reducing KV cache by 93.3%, and increasing the maximum generation throughput to 5.76 times. DeepSeek is a company exploring general artificial intelligence

AI subverts mathematical research! Fields Medal winner and Chinese-American mathematician led 11 top-ranked papers | Liked by Terence Tao AI subverts mathematical research! Fields Medal winner and Chinese-American mathematician led 11 top-ranked papers | Liked by Terence Tao Apr 09, 2024 am 11:52 AM

AI is indeed changing mathematics. Recently, Tao Zhexuan, who has been paying close attention to this issue, forwarded the latest issue of "Bulletin of the American Mathematical Society" (Bulletin of the American Mathematical Society). Focusing on the topic "Will machines change mathematics?", many mathematicians expressed their opinions. The whole process was full of sparks, hardcore and exciting. The author has a strong lineup, including Fields Medal winner Akshay Venkatesh, Chinese mathematician Zheng Lejun, NYU computer scientist Ernest Davis and many other well-known scholars in the industry. The world of AI has changed dramatically. You know, many of these articles were submitted a year ago.

Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training Apr 01, 2024 pm 07:46 PM

The performance of JAX, promoted by Google, has surpassed that of Pytorch and TensorFlow in recent benchmark tests, ranking first in 7 indicators. And the test was not done on the TPU with the best JAX performance. Although among developers, Pytorch is still more popular than Tensorflow. But in the future, perhaps more large models will be trained and run based on the JAX platform. Models Recently, the Keras team benchmarked three backends (TensorFlow, JAX, PyTorch) with the native PyTorch implementation and Keras2 with TensorFlow. First, they select a set of mainstream

Hello, electric Atlas! Boston Dynamics robot comes back to life, 180-degree weird moves scare Musk Hello, electric Atlas! Boston Dynamics robot comes back to life, 180-degree weird moves scare Musk Apr 18, 2024 pm 07:58 PM

Boston Dynamics Atlas officially enters the era of electric robots! Yesterday, the hydraulic Atlas just "tearfully" withdrew from the stage of history. Today, Boston Dynamics announced that the electric Atlas is on the job. It seems that in the field of commercial humanoid robots, Boston Dynamics is determined to compete with Tesla. After the new video was released, it had already been viewed by more than one million people in just ten hours. The old people leave and new roles appear. This is a historical necessity. There is no doubt that this year is the explosive year of humanoid robots. Netizens commented: The advancement of robots has made this year's opening ceremony look like a human, and the degree of freedom is far greater than that of humans. But is this really not a horror movie? At the beginning of the video, Atlas is lying calmly on the ground, seemingly on his back. What follows is jaw-dropping

KAN, which replaces MLP, has been extended to convolution by open source projects KAN, which replaces MLP, has been extended to convolution by open source projects Jun 01, 2024 pm 10:03 PM

Earlier this month, researchers from MIT and other institutions proposed a very promising alternative to MLP - KAN. KAN outperforms MLP in terms of accuracy and interpretability. And it can outperform MLP running with a larger number of parameters with a very small number of parameters. For example, the authors stated that they used KAN to reproduce DeepMind's results with a smaller network and a higher degree of automation. Specifically, DeepMind's MLP has about 300,000 parameters, while KAN only has about 200 parameters. KAN has a strong mathematical foundation like MLP. MLP is based on the universal approximation theorem, while KAN is based on the Kolmogorov-Arnold representation theorem. As shown in the figure below, KAN has

Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecasting Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecasting Mar 18, 2024 am 09:20 AM

Today I would like to share a recent research work from the University of Connecticut that proposes a method to align time series data with large natural language processing (NLP) models on the latent space to improve the performance of time series forecasting. The key to this method is to use latent spatial hints (prompts) to enhance the accuracy of time series predictions. Paper title: S2IP-LLM: SemanticSpaceInformedPromptLearningwithLLMforTimeSeriesForecasting Download address: https://arxiv.org/pdf/2403.05798v1.pdf 1. Large problem background model

Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! May 06, 2024 pm 04:13 PM

The latest video of Tesla's robot Optimus is released, and it can already work in the factory. At normal speed, it sorts batteries (Tesla's 4680 batteries) like this: The official also released what it looks like at 20x speed - on a small "workstation", picking and picking and picking: This time it is released One of the highlights of the video is that Optimus completes this work in the factory, completely autonomously, without human intervention throughout the process. And from the perspective of Optimus, it can also pick up and place the crooked battery, focusing on automatic error correction: Regarding Optimus's hand, NVIDIA scientist Jim Fan gave a high evaluation: Optimus's hand is the world's five-fingered robot. One of the most dexterous. Its hands are not only tactile

FisheyeDetNet: the first target detection algorithm based on fisheye camera FisheyeDetNet: the first target detection algorithm based on fisheye camera Apr 26, 2024 am 11:37 AM

Target detection is a relatively mature problem in autonomous driving systems, among which pedestrian detection is one of the earliest algorithms to be deployed. Very comprehensive research has been carried out in most papers. However, distance perception using fisheye cameras for surround view is relatively less studied. Due to large radial distortion, standard bounding box representation is difficult to implement in fisheye cameras. To alleviate the above description, we explore extended bounding box, ellipse, and general polygon designs into polar/angular representations and define an instance segmentation mIOU metric to analyze these representations. The proposed model fisheyeDetNet with polygonal shape outperforms other models and simultaneously achieves 49.5% mAP on the Valeo fisheye camera dataset for autonomous driving

See all articles