search
HomeTechnology peripheralsAICost less than $100! UC Berkeley re-opens the ChatGPT-like model 'Koala': large amounts of data are useless, high quality is king

##Since Meta opened up LLaMA, various ChatGPT models have sprung up in the academic world and have begun to be released. First, Stanford proposed the 7 billion parameter Alpaca, and then UC Berkeley teamed up with CMU, Stanford, UCSD and MBZUAI to release the 13 billion parameter Vicuna, which achieved capabilities comparable to ChatGPT and Bard in more than 90% of cases. . Recently, Berkeley released a new model "Koala" . Compared with the previous use of OpenAI's GPT data for instruction fine-tuning, Koala is different. Use high-quality data obtained from the network for training.

Cost less than 0! UC Berkeley re-opens the ChatGPT-like model 'Koala': large amounts of data are useless, high quality is king

# Blog link: https://bair.berkeley.edu/blog/2023 /04/03/koala/Data preprocessing code: https://github.com/young-geng/koala_data_pipeline Evaluation test set: https://github.com/arnav-gudibande/koala-test-set Model download: https ://drive.google.com/drive/folders/10f7wrlAFoPIy-TECHsx9DKIvbQYunCfl

In the published blog post, the researchers described the model’s dataset management and training process, and also The results of a user study comparing the model to ChatGPT and Stanford University’s Alpaca model are presented. The results show that Koala can effectively answer a variety of user queries, generating answers that are often more popular than Alpaca and are as effective as ChatGPT at least half of the time. The researchers hope that the results of this experiment will further the discussion around the relative performance of large closed-source models versus small public models, particularly as the results show that for small models that can be run locally, if training data is collected carefully, The performance of large models can be achieved.


##​

Cost less than 0! UC Berkeley re-opens the ChatGPT-like model 'Koala': large amounts of data are useless, high quality is kingThis may mean that the community should invest more effort in curating high-quality data sets, which may be more helpful than simply increasing the scale of existing systems. To build safer, more practical and more capable models. It should be emphasized that Koala is only a research prototype, and while the researchers hope that the release of the model can provide a valuable community resource, it still has significant shortcomings in content security and reliability and should not be used outside of research areas. use.

Koala System Overview

After the release of large-scale language models, virtual assistants and chatbots have become more and more powerful. They can not only chat, but also write code, write poetry, and create stories. Called omnipotent. However, the most powerful language models usually require massive computing resources to train the models, and also require large-scale dedicated data sets. Ordinary people basically cannot train the models by themselves. In other words, the language model will be controlled by a few powerful organizations in the future. Users and researchers will pay to interact with the model and will not have direct access to the interior of the model to modify or improve it. On the other hand, in recent months, some organizations have released relatively powerful free or partially open source models, such as Meta's LLaMA. The capabilities of these models cannot be compared with those of closed models (such as ChatGPT), but their capabilities are It has been improving rapidly with the help of the community.

The pressure is on the open source community: Will the future see more and more integration around a small number of closed source code models? Or more open models using smaller model architectures? Can the performance of a model with the same architecture approach that of a larger closed-source model?

While open models are unlikely to match the scale of closed-source models, using carefully selected training data may bring them close to the performance of ChatGPT without fine-tuning.

In fact, the experimental results of the Alpaca model released by Stanford University and the fine-tuning of LLaMA data based on OpenAI's GPT model have shown that the correct data can significantly improve the scale of the model. A small open source model, which is also the original intention of Berkeley researchers to develop and release the Koala model, provides another experimental proof of the results of this discussion.

Koala fine-tunes free interaction data obtained from the Internet, with special attention to data including interactions with high-performance closed-source models such as ChatGPT.

Researchers fine-tuned the base LLaMA model based on conversation data extracted from the web and public datasets, including high-quality responses to user queries from other large language models, as well as question and answer Data set and human feedback data set, the Koala-13B model trained thereby shows performance that is almost the same as existing models.

The findings suggest that learning from high-quality datasets can mitigate some of the shortcomings of small models and may even rival large closed-source models in the future, meaning, The community should invest more effort in curating high-quality datasets, which will help build safer, more practical, and more capable models than simply increasing the size of existing models.

By encouraging researchers to participate in systematic demonstrations of the Koala model, the researchers hope to discover some unexpected features or flaws that will help evaluate the model in the future.

Datasets and Training

A major obstacle in building conversation models is the management of training data for all chat models including ChatGPT, Bard, Bing Chat and Claude All use specialized data sets constructed with a large number of manual annotations.

To build Koala, the researchers organized the training set by collecting conversation data from the web and public datasets, some of which include large-scale language models such as ChatGPT posted by users online. dialogue.

Instead of pursuing crawling as much web data as possible to maximize data volume, the researchers focused on collecting a small, high-quality dataset, using public datasets to answer Questions, human feedback (rated both positive and negative), and dialogue with existing language models.

ChatGPT distilled data

Share conversations with public users of ChatGPT (ShareGPT): About sixty thousand conversations shared by users on ShareGPT were collected using the public API.

Cost less than 0! UC Berkeley re-opens the ChatGPT-like model 'Koala': large amounts of data are useless, high quality is king

Website link: https://sharegpt.com/

In order to ensure data quality, research The staff removed duplicate user queries and deleted all non-English conversations, leaving approximately 30,000 samples.

Human ChatGPT Comparative Corpus (HC3): Using human and ChatGPT reply results from the HC3 English dataset, which contains about 60,000 human answers and 27,000 of about 24,000 questions ChatGPT answers, a total of about 87,000 question and answer samples were obtained.

Open Source Data

Open Instruction Generalist (OIG): Using a manually selected subset of components from the LAION-curated Open Instruction General Data Set, Including primary school mathematics guidance, poetry to songs, and plot-script-book-dialogue data sets, a total of about 30,000 samples were obtained.

Stanford Alpaca: Includes the dataset used to train the Stanford Alpaca model.

This data set contains approximately 52,000 samples, generated by OpenAI's text-davinci-003 following the self-instruct process.

It is worth noting that the HC3, OIG and Alpaca data sets are single-round question and answer, while the ShareGPT data set is a multi-round conversation.

Anthropic HH: Contains human ratings of the harmfulness and helpfulness of the model output.

The dataset contains approximately 160,000 human-evaluated examples, where each example consists of a pair of responses from the chatbot, one of which is human-preferred. The dataset is Model offers functionality and extra security.

OpenAI WebGPT: This dataset includes a total of about 20,000 comparisons, where each example includes a question, a pair of model answers, and metadata, answer Scored by humans based on their own preferences.

OpenAI Summarization: Contains approximately 93,000 examples containing feedback from humans on model-generated summaries, with human evaluators choosing from two options Better summary results.

When using open source datasets, some datasets may provide two responses, corresponding to a rating of good or bad (AnthropicHH, WebGPT, OpenAI summary).

Previous research results demonstrated the effectiveness of conditional language models on human preference labels (useful/useless) to improve performance, with researchers placing models on positive or negative labels based on preference labels For labeling, use positive labeling for the dataset if there is no human feedback. During the evaluation phase, the prompt is written to include positive tags.

Koala is based on the open source framework EasyLM (pre-training, fine-tuning, serving and evaluating various large-scale language models) and implemented using JAX/Flax; the training equipment is an Nvidia DGX server and 8 A100 GPU requires 6 hours of training to complete 2 epochs.

On a public cloud computing platform, the expected training cost is no more than $100.

Initial evaluation

In experiments, the researchers evaluated two models: Koala-Distill, which uses only distilled data; Koala-All, which uses all data, including Distilled and open source data.

The purpose of the experiment is to compare the performance of the models and evaluate the impact of distilled and open source datasets on the final model performance; perform human evaluation of the Koala model and compare Koala-All with Koala- Distill, Alpaca and ChatGPT are compared.

Cost less than 0! UC Berkeley re-opens the ChatGPT-like model 'Koala': large amounts of data are useless, high quality is king

The test set of the experiment consists of Stanford's Alpaca Test Set and Koala Test Set, including 180 test queries

The Alpaca test set consists of user prompts sampled from the self-isntruct data set and represents the distributed data of the Alpaca model; in order to provide a more realistic evaluation protocol, the Koala test set contains 180 real users published online The queries, which span different topics and are usually conversational, are more representative of actual use cases based on chat systems, and in order to reduce possible test set leaks, queries with a BLEU score greater than 20% are finally filtered out from the training set.

In addition, since the research team is more proficient in English, the researchers deleted non-English and encoding-related prompts to provide more reliable annotation results, and finally analyzed the results on the Amazon crowdsourcing platform. Approximately 100 annotators conduct a blind test, providing each rater with an input prompt and the output of both models in the scoring interface, and then asking to judge which output is better using criteria related to response quality and correctness (allowing the same good).

In the Alpaca test set, Koala-All performs on par with Alpaca.

In the Koala test set (containing real user queries), Koala-All is better than Alpaca in nearly half of the samples, and exceeds or is the same as Alpaca in 70% of the cases Well, there must be a reason why the Koala training set and test set are more similar, so this result is not particularly surprising.

But as long as these hints are more like the downstream use cases of these models, it means that Koala will perform better in assistant-like applications, indicating that using the samples published on the Internet is equivalent to Interacting with language models is an effective strategy to give these models effective instruction execution capabilities.

What is more surprising is that the researchers found that in addition to distilled data (Koala-All), training on open source data is better than training on only ChatGPT distilled data (Koala-Distill). Training performance is slightly worse.

While the difference may not be significant, this result suggests that the quality of ChatGPT conversations is so high that even including twice as much open source data would not yield a significant improvement .

The initial hypothesis is that Koala-All should perform better, so Koala-All is used as the main evaluation model in all evaluations, and finally it can be found that effective Instructions and auxiliary models can be obtained from large language models, as long as these prompts are representative of the diversity of users in the testing phase.

So the key to building strong conversational patterns may lie more in managing high-quality conversational data, which varies in terms of user queries and cannot simply be There are datasets reformatted into questions and answers.

Limitations and Security

Like other language models, Koala also has limitations that, if misused, may cause harm to users.

Researchers observed that Koala would hallucinate and respond non-factually in a very confident tone, possibly as a result of dialogue fine-tuning, in other words, smaller The fact that the model inherits the confident style of the larger language model does not inherit the same level requires focused improvement in the future.

When misused, Koala’s phantom replies can facilitate the spread of misinformation, spam, and other content.

Cost less than 0! UC Berkeley re-opens the ChatGPT-like model 'Koala': large amounts of data are useless, high quality is king

Koala is able to hallucinate inaccurate information in a confident and convincing tone. In addition to hallucinations, Koala has other chatbots. The shortcomings of language models. These include:

  • Bias and StereotypesImpression: The model inherited biased training conversation data, including Stereotyping, discrimination and other harm.
  • Lack of common senseAlthough large language models can generate seemingly coherent and Grammatically correct texts, but they often lack common sense knowledge that people take for granted, which can lead to ridiculous or inappropriate responses.
  • Limited Understanding
  • : Large language models may struggle to understand the context and nuances of conversations The difference is also difficult to recognize as sarcasm or irony, which can lead to misunderstandings.
  • To address Koala’s security concerns, researchers included adversarial hints in the datasets of ShareGPT and AnthropicHH to make the model more robust and harmless.

To further reduce potential abuse, OpenAI’s content moderation filters were also deployed in the demo to flag and remove unsafe content.

Future work

The researchers hope that the Koala model can become a useful platform for future academic research on large-scale language models: the model is sufficient to demonstrate the many capabilities of modern language models, At the same time, it is small enough to be fine-tuned or used with less calculation. Future research directions may include:

    Security and Consistency
  • : Further research on the security of language models and better consistency with human intentions.
  • Model bias
  • See: Better understanding bias in large language models, The presence of spurious correlations and quality issues in conversation datasets, and ways to mitigate this bias.
  • Understand large language models
  • Type:Because Koala’s reasoning can be done relatively cheaply Executed on the GPU, the internals of the conversational language model can be better inspected and understood, making the black-box language model easier to understand.

The above is the detailed content of Cost less than $100! UC Berkeley re-opens the ChatGPT-like model 'Koala': large amounts of data are useless, high quality is king. 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
从VAE到扩散模型:一文解读以文生图新范式从VAE到扩散模型:一文解读以文生图新范式Apr 08, 2023 pm 08:41 PM

1 前言在发布DALL·E的15个月后,OpenAI在今年春天带了续作DALL·E 2,以其更加惊艳的效果和丰富的可玩性迅速占领了各大AI社区的头条。近年来,随着生成对抗网络(GAN)、变分自编码器(VAE)、扩散模型(Diffusion models)的出现,深度学习已向世人展现其强大的图像生成能力;加上GPT-3、BERT等NLP模型的成功,人类正逐步打破文本和图像的信息界限。在DALL·E 2中,只需输入简单的文本(prompt),它就可以生成多张1024*1024的高清图像。这些图像甚至

找不到中文语音预训练模型?中文版 Wav2vec 2.0和HuBERT来了找不到中文语音预训练模型?中文版 Wav2vec 2.0和HuBERT来了Apr 08, 2023 pm 06:21 PM

Wav2vec 2.0 [1],HuBERT [2] 和 WavLM [3] 等语音预训练模型,通过在多达上万小时的无标注语音数据(如 Libri-light )上的自监督学习,显著提升了自动语音识别(Automatic Speech Recognition, ASR),语音合成(Text-to-speech, TTS)和语音转换(Voice Conversation,VC)等语音下游任务的性能。然而这些模型都没有公开的中文版本,不便于应用在中文语音研究场景。 WenetSpeech [4] 是

普林斯顿陈丹琦:如何让「大模型」变小普林斯顿陈丹琦:如何让「大模型」变小Apr 08, 2023 pm 04:01 PM

“Making large models smaller”这是很多语言模型研究人员的学术追求,针对大模型昂贵的环境和训练成本,陈丹琦在智源大会青源学术年会上做了题为“Making large models smaller”的特邀报告。报告中重点提及了基于记忆增强的TRIME算法和基于粗细粒度联合剪枝和逐层蒸馏的CofiPruning算法。前者能够在不改变模型结构的基础上兼顾语言模型困惑度和检索速度方面的优势;而后者可以在保证下游任务准确度的同时实现更快的处理速度,具有更小的模型结构。陈丹琦 普

解锁CNN和Transformer正确结合方法,字节跳动提出有效的下一代视觉Transformer解锁CNN和Transformer正确结合方法,字节跳动提出有效的下一代视觉TransformerApr 09, 2023 pm 02:01 PM

由于复杂的注意力机制和模型设计,大多数现有的视觉 Transformer(ViT)在现实的工业部署场景中不能像卷积神经网络(CNN)那样高效地执行。这就带来了一个问题:视觉神经网络能否像 CNN 一样快速推断并像 ViT 一样强大?近期一些工作试图设计 CNN-Transformer 混合架构来解决这个问题,但这些工作的整体性能远不能令人满意。基于此,来自字节跳动的研究者提出了一种能在现实工业场景中有效部署的下一代视觉 Transformer——Next-ViT。从延迟 / 准确性权衡的角度看,

Stable Diffusion XL 现已推出—有什么新功能,你知道吗?Stable Diffusion XL 现已推出—有什么新功能,你知道吗?Apr 07, 2023 pm 11:21 PM

3月27号,Stability AI的创始人兼首席执行官Emad Mostaque在一条推文中宣布,Stable Diffusion XL 现已可用于公开测试。以下是一些事项:“XL”不是这个新的AI模型的官方名称。一旦发布稳定性AI公司的官方公告,名称将会更改。与先前版本相比,图像质量有所提高与先前版本相比,图像生成速度大大加快。示例图像让我们看看新旧AI模型在结果上的差异。Prompt: Luxury sports car with aerodynamic curves, shot in a

五年后AI所需算力超100万倍!十二家机构联合发表88页长文:「智能计算」是解药五年后AI所需算力超100万倍!十二家机构联合发表88页长文:「智能计算」是解药Apr 09, 2023 pm 07:01 PM

人工智能就是一个「拼财力」的行业,如果没有高性能计算设备,别说开发基础模型,就连微调模型都做不到。但如果只靠拼硬件,单靠当前计算性能的发展速度,迟早有一天无法满足日益膨胀的需求,所以还需要配套的软件来协调统筹计算能力,这时候就需要用到「智能计算」技术。最近,来自之江实验室、中国工程院、国防科技大学、浙江大学等多达十二个国内外研究机构共同发表了一篇论文,首次对智能计算领域进行了全面的调研,涵盖了理论基础、智能与计算的技术融合、重要应用、挑战和未来前景。论文链接:​https://spj.scien

​什么是Transformer机器学习模型?​什么是Transformer机器学习模型?Apr 08, 2023 pm 06:31 PM

译者 | 李睿审校 | 孙淑娟​近年来, Transformer 机器学习模型已经成为深度学习和深度神经网络技术进步的主要亮点之一。它主要用于自然语言处理中的高级应用。谷歌正在使用它来增强其搜索引擎结果。OpenAI 使用 Transformer 创建了著名的 GPT-2和 GPT-3模型。自从2017年首次亮相以来,Transformer 架构不断发展并扩展到多种不同的变体,从语言任务扩展到其他领域。它们已被用于时间序列预测。它们是 DeepMind 的蛋白质结构预测模型 AlphaFold

AI模型告诉你,为啥巴西最可能在今年夺冠!曾精准预测前两届冠军AI模型告诉你,为啥巴西最可能在今年夺冠!曾精准预测前两届冠军Apr 09, 2023 pm 01:51 PM

说起2010年南非世界杯的最大网红,一定非「章鱼保罗」莫属!这只位于德国海洋生物中心的神奇章鱼,不仅成功预测了德国队全部七场比赛的结果,还顺利地选出了最终的总冠军西班牙队。不幸的是,保罗已经永远地离开了我们,但它的「遗产」却在人们预测足球比赛结果的尝试中持续存在。在艾伦图灵研究所(The Alan Turing Institute),随着2022年卡塔尔世界杯的持续进行,三位研究员Nick Barlow、Jack Roberts和Ryan Chan决定用一种AI算法预测今年的冠军归属。预测模型图

See all articles

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)