Home  >  Article  >  Technology peripherals  >  The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

青灯夜游
青灯夜游forward
2023-03-31 22:42:151858browse

Currently, this paper has been accepted by CVPR2023.

GPT-4, which can read images, is shockingly released! But you have to queue up to use it. . .

Why not try this first~

Add a small model, you can make large language models such as ChatGPT and GPT-3 that can only understand text easilyRead pictures, all kinds of tricky details can be dealt with easily.

And train this small modelIt can be done with a single card (an RTX 3090).

As for the effect, just look at the picture.

For example, input a picture of a "music scene" to the trained GPT-3 and ask it: What activities are being held at the scene?

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

Without any hesitation, GPT-3 gave the answer to Concert.

To make it more difficult, give GPT-3 a photo of Jiang Zi and let it identify what type of material the curtain in the photo is.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

GPT-3: lace.

Bingo! (It seems that there is something on it)

This method is the latest result of a team from Hangzhou University of Electronic Science and Technology and Hefei University of Technology: Prophet, which they had already developed half a year ago Get to work on this.

The first author of the paper is Shao Zhenwei, a graduate student of Hangzhou Dianzi University. He was diagnosed with "progressive spinal muscular atrophy" when he was 1 year old. He regretted not passing Zhejiang University during the college entrance examination and chose Hangzhou Dianzi University, which is close to home. .

This paper has been accepted by CVPR2023.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

Reaching the new SOTA in cross-modal tasks

Without further ado, let’s look directly at the reading of GPT-3 with the support of Prophet’s method. Figure ability.

Let’s first take a look at its test results on the data set.

The research team tested Prophet on two visual question and answer data sets based on external knowledge, OK-VQA and A-OKVQA, and both created new SOTA.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

More specifically, on the OK-VQA data set, compared with Deepmind’s large model Flamingo with 80B parameters, Prophet reached Achieved an accuracy rate of 61.1%, successfully defeating Flamingo (57.8%).

And in terms of required computing power resources, Prophet also "beats" Flamingo.

Flamingo-80B needs to be trained on 1536 TPUv4 graphics cards for 15 days, while Prophet only requires one RTX-3090 graphics card to train the VQA model 4 days, then call the OpenAI API a certain number of times.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

In fact, there have been methods similar to Prophet to help GPT-3 handle cross-modal tasks before, such as PICa, and later KAT and REVIVE.

However, they may not be satisfactory in handling some details.

Give a chestnut, let them read the picture below together, and then answer the question: What kind of fruit will the tree in the picture bear?

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

The only information that PICa, KAT and REVIVE extracted from the picture was: a group of people walking in the square, completely ignoring that there was a coconut tree behind. The final answer can only be guessed.

This situation will not happen with Prophet. It solves the problem of insufficient image information extracted by the above method and further stimulates the potential of GPT-3.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

So how did Prophet do it?

Small model Big model

Effectively extract information and accurately answer questions. Prophet relies on its unique two-stage framework to be able to do this.

The division of labor between these two stages is also clear:

  • The first stage: Give some enlightening answers based on the questions;
  • The second stage: These answers will narrow the scope, giving GPT-3 sufficient space to realize its potential.

First, in the first stage, the research team trained an improved MCAN model (a VQA model) against a specific external knowledge VQA data set.

After training the model, extract two heuristic answers from it: answer candidates and answer-aware examples.

Among them, Answer candidates are sorted based on the confidence level output by the model classification layer, and the top10 are selected.

Answer perception example refers to using the features before the model classification layer as the potential answer features of the sample, the most similar labeled sample in this feature space.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

The next step is the second stage, which is relatively simple and crude.

Organize the "inspiring answers" obtained in the previous step into prompts, and then input the prompts to GPT-3 to complete visual question and answer questions under certain prompts.

However, although some answer hints have been given in the previous step, this does not mean that GPT-3 will be limited to these answers.

If the confidence of the answer given by the prompt is too low or the correct answer is not among those prompts, it is entirely possible for GPT-3 to generate a new answer.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

Research Team

Of course, in addition to the research results, the team behind this study also has to be mentioned.

First authorShao Zhenwei was diagnosed with "progressive spinal muscular atrophy" when he was 1 year old. It is a first-level physical disability and has no ability to take care of itself. Life and study require the full care of the mother. .

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

However, despite his physical limitations, Shao Zhenwei’s thirst for knowledge has not weakened.

In the 2017 college entrance examination, he scored a high score of 644 points and was admitted to the computer major of Hangzhou University of Electronic Science and Technology with the first place.

During this period, he also won honors such as the 2018 Chinese College Student Self-improvement Star, the 2020 National Scholarship, and the 2021 Zhejiang Province Outstanding Graduate.

During his undergraduate period, Shao Zhenwei had already started to conduct scientific research activities with Professor Yu Zhou.

In 2021, Shao Zhenwei had a chance encounter with Zhejiang University when he was preparing for postgraduate promotion, so he stayed at the school and joined Professor Yu Zhou’s research group to pursue a master’s degree. Currently, he is in the second year of graduate school, and his research direction is cross-modal learning.

Professor Yu Zhou is the second author and corresponding author of this research paper. He is the youngest professor at the School of Computer Science of Hangzhou Dianping University and a member of the “Complex System Modeling and Simulation” Laboratory of the Ministry of Education. deputy director.

For a long time, Yu Zhou has specialized in the multimodal intelligence direction, and has led the research team to win the championship and runner-up in the international visual question answering challenge VQA Challenge many times.

The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source

Most members of the research team are in Hangzhou Electronics Media Intelligence Laboratory (MIL).

The laboratory is headed by Professor Yu Jun, a National Distinguished Talent. In recent years, the laboratory has published a series of high-level journal conference papers (TPAMI, IJCV, CVPR, etc.) focusing on multi-modal learning, and has won many IEEE journal awards. Best paper award at the conference.

The laboratory has hosted more than 20 national projects such as the National Key R&D Plan and the National Natural Science Foundation of China. It has won the first prize of Zhejiang Province Natural Science Award and the second prize of Educational Natural Science Award.

The above is the detailed content of The guy from Hangzhou Electronics is the first to get the GPT image reading function. A single card can realize the new SOTA. The code has been open source. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:51cto.com. If there is any infringement, please contact admin@php.cn delete