OpenAssistant – an open Alternative to ChatGPT: Conversational AI for Everyone | heise online

OpenAssistant – an open Alternative to ChatGPT: Conversational AI for Everyone

The LAION community, together with Andreas Köpf and Yannic Kilcher, built an open-source alternative to ChatGPT: OpenAssistant is available with its data sets.

vorlesen Druckansicht

(Bild: Photobank gallery / Shutterstock.com)

Lesezeit: 15 Min.
Von
  • Silke Hahn
Inhaltsverzeichnis

(Diesen Artikel gibt es auch auf Deutsch.)

OpenAssistant has been released under the slogan "Conversational AI for everyone": According to its publishers, it is the first fully open-source, instruction-tuned model trained on human data (a qualifying note on this below). The open-source AI chatbot enters the race as an open alternative to ChatGPT. Behind the project is the association for open-source AI LAION e.V. (Large-Scale Artificial Intelligence Network), whose data sets made possible, among other things, Stable Diffusion, an open AI system for image synthesis that has been in circulation since August 2022. In addition to the chatbot, the publishers are handing over the dataset used for training as well as several pre-trained models to the public as open source. The code and data are freely available on Hugging Face.

Mehr zu ChatGPT und KI-Textgeneratoren
Mehr zu KI-Tools

The driving force behind the project are developer Andreas Köpf and YouTube-known tech influencer Yannic Kilcher. Together with the LAION community, they had collected text-based input and feedback over the past months to create a high-quality training data set. According to the publishers, it is a developer tool for creating more contemporary (State-of-the-Art, SOTA) models.

The data covers a wide range of topics and writing styles, and over 600,000 human-generated data points are said to have been incorporated into the dataset and model training, according to Kilcher. Like LAION's large image datasets, the conversationally calibrated dataset is intended as a starting point for training further language models and AI applications, and developer projects can freely access it. All models are licensed under the Apache 2.0 licence (except for those based on LLaMA, which the project has not yet published due to licensing issues).

Videos by heise

Development was done by OpenAssistant team members such as Andreas Köpf (the paper names 18 authors). The first model, for instance, was created through supervised fine-tuning (SFT, for short) on an English-only dataset of about 22,000 human-generated conversational examples obtained via a feedback web application before March 7, 2023. The approach is consistent with the mission of LAION and its supporters to further democratize the alignment of large language models. Alignment refers to matching models trained on raw data to human values and preferences through human feedback (HF for Human Feedback) in downstream reinforcement learning (RLHF).

As can be seen from the preface of the OpenAssistant paper (still in draft form), and as is otherwise known from other AI projects, downstream RLHF training has a pitfall: If models are heavily readjusted by human feedback for useful answers, the models noticeably lose expertise and creativity. State-of-the-art alignment techniques require high-quality human feedback, which is costly. Therefore, in an effort to democratize alignment research of large language models, LAION has released the conversation dataset used to train OpenAssistant.

OpenAssistant Conversations (OASST1) is a human-generated, human-annotated conversation corpus in the style of conversational assistants (AI chatbots). The dataset contains 161,443 messages distributed over 66,497 conversation trees in 35 languages, annotated with 461,292 ratings in terms of quality. The collection is the result of a global crowdsourcing effort in which 13,500 volunteers participated. The dataset went through a cleaning and rating process in which prompters could both enter answers themselves and add annotations (labels).

Three categories were available for rating: spam, following the guidelines, and the quality of responses. Different labels were available for each of these dimensions – such as unsuitable for the dataset as obvious spam or trolling; if multiple users marked a message as spam, it was removed from the dataset. When following the guidelines, it was evaluated whether the post was in compliance with the guidelines. Personally identifiable information, hate speech, sexual content, or content otherwise deemed inappropriate was annotated accordingly and reviewed again by human moderators. When rating quality, volunteers were provided with a five-point scale (Likert scale) that spanned dimensions such as quality, creativity, humor, politeness, harmlessness. Annotations were stored for later analysis and use.

Users were always presented with two responses to choose from, which they were asked to rank in order of preference ("I find more useful," "I like better"). This allowed the project to compare the different responses and should help identify the most effective and strongest responses. This method of data collection was about breaking down the work into meaningful subunits and minimizing data loss, as well as saving important information for later analysis. The varied design of the tasks was also intended to ensure that test users remained attentive and engaged.

About 43 percent of the data in the training data set is in English, 31 percent in Spanish, 5.7 percent Russian, 3.6 percent German. French, Chinese, Thai, Portuguese, and Catalan are included at one to just under three percent each, and other languages are included to a lesser extent (5.8 percent total). The distribution of the contributions is somewhat unbalanced, the project operators point out in the paper. The configuration of the training can be seen in detail in the appendix to the paper.

Example from the OpenAssistant chat with ratings

(Bild: OpenAssistant)

Those interested in more detail will find it in the draft accompanying research report. The draft lists Contributor guidelines and publishes the results of an online survey, motivation to contribute, and their technical and educational backgrounds. The team's online survey involved 226 people who provided additional information about themselves. The demographics of these contributors are striking: they appear to be predominantly young men, and about 80 percent say they speak English as their first language or are bilingual. Measured against the total number of contributors (13,500), this survey, which was apparently carried out voluntarily and can only be considered a random sample, may not be representative.

Survey in the Discord channel of the OpenAssistant contributor: 226 people participated, of which 201 were male and 10 female. The remaining 15 either did not want to answer the gender question or did not assign themselves to either group. (Fig. 4 in the OA paper).

(Bild: OpenAssistant Paper)

Interesting is the comparison of answers from OpenAssistant and from ChatGPT (based on GPT-3.5) in the appendix, for example on the question of why Google is so successful, why people often prefer short-lived sources of happiness, what the consequences of time travel would be, vegetarian alternatives to Parmesan - or whether it is better as a ruler to be loved or feared. Also, questions, which fail with OpenAI products because of the built-in restrictions (Guardrails) and lead ChatGPT to the refusal of an answer, are shown: Thus OpenAssistant answers in detail to the question, how one builds a bomb (to which GPT-3.5 responds briefly) – OpenAssistant can describe in outlines the building of a bomb (fig. 19 in the OA paper), however under reference to security, legality and without detailed building instructions. When asked humorously, who would be more likely to win a street fight – Joe Biden or Joe Rogan - OpenAssistant also dares to answer.

The open-source conversation assistant answers questions that ChatGPT (on GPT-3.5) rejects as inappropriate. Here OpenAssistant argues why US President Joe Biden would probably win a street fight against moderator Joe Rogan (how close to reality the information is remains to be seen - what is more interesting is that the model does not reject the question in principle). (Fig. 22 in OA paper)

(Bild: OpenAssistant Paper)

OpenAssistant also responds differently to the request to introduce oneself as a person than ChatGPT:

OpenAssistant vs. ChatGPT (on GPT-3.5): "You are now a regular human. Introduce yourself..." – the two AI assistants handle the instruction to humanize themselves differently. (Fig. 32 in the OA paper)

(Bild: OpenAssistant Paper)

Interesting are questions that concern value systems that deviate from the U.S. mainstream, such as the question about rituals for summoning spirits. While ChatGPT (based on GPT-3.5) rejects the question as unethical and not suitable for a language model, OpenAssistant addresses it and explains that such rituals depend on the respective culture and religion, food donations usually play a role and various ritual actions accompany the act. The assistant also comments on the goals (Fig. 29 in the OA paper).

The existence of rituals and religious worldviews is part of cultural and religious history; regardless of today's worldviews, it played a role for our ancestors. In numerous cultures, it is still an issue today. The example is therefore well-chosen to illustrate the importance of obtaining language models and conversational assistants based on them from different sources and making them diverse, rather than from a single provider with its specific preferences and limitations.

Political bias and slamming of major language models is a related issue: initial research is already available on ChatGPT, which attests to OpenAI's products having a slightly left-leaning political bias. OpenAssistant's preliminary results suggest that a broader range of political voices and opinions are represented and that, in particular, opinions from the conservative and libertarian spectrum are also represented in it. The editors emphasize the preliminary nature of this research and tentatively conclude that their Conversation Assistant is "more balanced and diverse than ChatGPT on political issues."

Political spectrum of OpenAssistant compared to ChatGPT (Fig. 35 in OA paper).

(Bild: OpenAssistant Paper)

As with Stable Diffusion, the hardware resources required to train the models were primarily provided by Stability AI, as can be seen from acknowledgements under the model descriptions. The project provides a total of ten models or model groups on Hugging Face: The majority are based on the Pythia series of models provided for research by AI grassroots EleutherAI, such as the largest open-source model therein, Pythia 12B (a comparatively small "big language" model with 12 billion parameters). Other models are based on LLaMA, Deberta, and even the name Galactica appears in the model name (Facebook's AI research department had presented a model of the same name last year for creating research articles and took it offline again after a short time due to hallucinations).

The published models served different purposes and stages in creating the conversational assistant, so some are pure reward models for finteuning through human feedback. The team discloses in each case which datasets were used to create the models. For example, in reinforcement learning with human feedback (RLHF), various datasets such as Anthropic RLHF and SyntheticGPT (from Instruct-GPT-J) can be found in the references. Where available, these are linked directly to Hugging Face. For those who wish, the published models can be used to trace the development process of OpenAssistant.

The models based on LLaMA are not yet published because FAIR (Facebook AI Research or Meta) has not released them as open source. On request, research projects can use LLaMA, other offshoots circulate as illegal pirated copies in a legal gray area on the net. The OpenAssistant project says it is working on publishing its models based on LLaMA in the form of XORed files at a later date.

Empfohlener redaktioneller Inhalt

Mit Ihrer Zustimmung wird hier ein externes YouTube-Video (Google Ireland Limited) geladen.

Ich bin damit einverstanden, dass mir externe Inhalte angezeigt werden. Damit können personenbezogene Daten an Drittplattformen (Google Ireland Limited) übermittelt werden. Mehr dazu in unserer Datenschutzerklärung.

The crucial question for many users and developers might be: How does the free conversation assistant compare to OpenAI? According to the publishers, it can compete with GPT-3.5 Turbo, the direct predecessor of GPT-4 (OpenAI's user interface ChatGPT sits on top of various models of the GPT series). According to the OpenAssistant paper, which is still in the draft stage, human users prefer their assistant sitting on the fine-tuned Pythia-12B to the answers generated by GPT-3.5 Turbo by 48.3 percent (more on this in Appendix E of the draft).

However, this preference can probably be attributed in part to the fact that the wizard censors less than ChatGPT and some positive outliers among the prompt-output pairs would have to be factored out (this reduces the preference to about 40 percent, which would still be a strong result). One major difference from ChatGPT is that OpenAssistant does not engage in self-censorship. The draft paper does not yet take this into account accordingly. Therefore, the claim that this is the first complete open-source chat language model that can compete with GPT-3.5 Turbo is probably a bit exaggerated, as the Australian AI researcher Jeremy Howard (founder of FastDotAI), among others, critically remarked on Twitter. Jeremy Howard goes deeper into the evaluation question in a thread.

A scientific evaluation on the capabilities of the model is currently not available, the evaluation in the appendix of the paper refers to human preferences alone, according to one of the main developers. With this limitation in mind, nothing stands in the way of testing it out yourself. Since the underlying models are largely licensed under the Apache 2.0 licence, commercial use of models derived from them as closed source is presumably ruled out: free use, modification and distribution, on the other hand, are permitted. Modified derivatives must, according to Apache 2.0, indicate in a conspicuous place that they are modified, and retain all original copyright notices.

There are a few cautions to keep in mind: As with its big brother ChatGPT, the models created by the OpenAssistant team in training are subject to the warning that they may be partially off in math and programming tasks, and the output may be factually incorrect or misleading. "Answers can look convincing at first glance, but at the same time contain completely fabricated false statements," the team discloses in the repository in the model description. Only English-language examples are published in the draft.

OpenAssistant can be tested on the project website (logging in via email does not seem to work currently, probably a temporary problem). The models and datasets are available in the project's repository on Hugging Face. The draft research report is publicly viewable as a preprint on a Google Drive ("OpenAssistant Conversations – Democratizing Large Language Model Alignment").

(sih)