Goto

Collaborating Authors

 Large Language Model


OpenAI GPT-3 Text Embeddings - Really a new state-of-the-art in dense text embeddings?

#artificialintelligence

This week, OpenAI announced an embeddings endpoint (paper) for GPT-3 that allows users to derive dense text embeddings for a given input text at allegedly state-of-the-art performance on several relevant tasks. In this post, I will be reviewing how good these new GPT-3 embeddings really are. Are they really a new state of the art? Dense text embeddings are useful for many tasks, including clustering, topic modeling, deduplication, paraphrase mining and semantic search. As part of my research, I've worked on dense text embeddings since 2019 and released my research as part of the sentence-transformers framework, which provides open & free state-of-the-art text embedding models for many use-cases.


Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classification

arXiv.org Artificial Intelligence

Large-scale multi-label text classification (LMTC) aims to associate a document with its relevant labels from a large candidate set. Most existing LMTC approaches rely on massive human-annotated training data, which are often costly to obtain and suffer from a long-tailed label distribution (i.e., many labels occur only a few times in the training set). In this paper, we study LMTC under the zero-shot setting, which does not require any annotated documents with labels and only relies on label surface names and descriptions. To train a classifier that calculates the similarity score between a document and a label, we propose a novel metadata-induced contrastive learning (MICoL) method. Different from previous text-based contrastive learning techniques, MICoL exploits document metadata (e.g., authors, venues, and references of research papers), which are widely available on the Web, to derive similar document-document pairs. Experimental results on two large-scale datasets show that: (1) MICoL significantly outperforms strong zero-shot text classification and contrastive learning baselines; (2) MICoL is on par with the state-of-the-art supervised metadata-aware LMTC method trained on 10K-200K labeled documents; and (3) MICoL tends to predict more infrequent labels than supervised methods, thus alleviates the deteriorated performance on long-tailed labels.


Set up a text summarization project with Hugging Face Transformers: Part 2

#artificialintelligence

Deployment on SageMaker is straightforward because it uses the SageMaker Hugging Face Inference Toolkit, an open-source library for serving Transformers models on SageMaker. We normally don't even have to provide an inference script; the toolkit takes care of that. In that case, however, the toolkit utilizes the Pipeline API again, and as we discussed in section 2, the Pipeline API doesn't allow us to use advanced text generation techniques such as beam search and sampling. To avoid this limitation, we provide our custom inference script. For the first evaluation of our newly trained model, we use the same parameters as in section 2 with the zero-shot model to generate the candidate summaries.


Set up a text summarization project with Hugging Face Transformers: Part 1

#artificialintelligence

When OpenAI released the third generation of their machine learning (ML) model that specializes in text generation in July 2020, I knew something was different. This model struck a nerve like no one that came before it. Suddenly I heard friends and colleagues, who might be interested in technology but usually don't care much about the latest advancements in the AI/ML space, talk about it. Even the Guardian wrote an article about it. Or, to be precise, the model wrote the article and the Guardian edited and published it. There was no denying it โ€“ GPT-3 was a game changer.


'No code' brings the power of AI to the masses

#artificialintelligence

Sean Cusack, a software engineer at Microsoft and beekeeper on the side, wanted to know if anything besides bees was going into his hives. So he built a tiny photo booth (a sort of bee vestibule) that took pictures whenever something appeared around it. But sorting through thousands of insect portraits proved tedious. Colleagues told him about a new product that the company was working on called Lobe.ai, which allows anybody to train a computer-vision system to recognize objects. Cusack used it to identify his honeybees -- but also to keep an eye out for the dreaded murder hornet.


5 AI Tools That Can Generate Code To Help Programmers

#artificialintelligence

One of the most recent advancements in natural language processing (NLP) is the emergence of large language models (LLMs) that are built using vast datasets with enormous amounts of data. There are several LLMs that are available, such as Google's BERT and OpenAI's GPT-2 and GPT-3. With these models, it is possible to generate everything from simple essays to actual financial models with these models. AI startups including OpenAI, Hugging Face, Cohere, AI21 Labs are pushing the boundaries of LLM by training models with billions of parameters. OpenAI Codex is the model based on GPT-3 that powers GitHub Copilot - a tool from GitHub to generate code within mainstream development environments including VS Code, Neovim, JetBrains, and even in the cloud with GitHub Codespaces.


Language models that can search the web hold promise -- but also raise concerns

#artificialintelligence

Did you miss a session at the Data Summit? Language models -- AI systems that can be prompted to write essays and emails, answer questions, and more -- remain flawed in many ways. Because they "learn" to write from examples on the web, including problematic social media posts, they're prone to generating misinformation, conspiracy theories, and racist, sexist, or otherwise toxic language. Another major limitation of many of today's language models is that they're "stuck in time," in a sense. Because they're trained once on a large collection of text from the web, their knowledge of the world -- which they gain from that collection -- can quickly become outdated depending on when they were deployed.


Nvidia takes the wraps off Hopper, its latest GPU architecture

#artificialintelligence

Did you miss a session at the Data Summit? After much speculation, Nvidia today at its March 2022 GTC event announced the Hopper GPU architecture, a line of graphics cards that the company says will accelerate the types of algorithms commonly used in data science. Named for Grace Hopper, the pioneering U.S. computer scientist, the new architecture succeeds Nvidia's Ampere architecture, which launched roughly two years ago. The first card in the Hopper lineup is the H100, containing 80 billion transistors and a component called the Transformer Engine that's designed to speed up specific categories of AI models. Another architectural highlight includes Nvidia's MIG technology, which allows an H100 to be partitioned into seven smaller, isolated instances to handle different types of jobs.


GPT-3, Play Chess!

#artificialintelligence

GPT-3 is a 175 billion parameter AI language model that has been trained on a large amount of data. In simple terms, a language model is an AI model that can predict the next set of words given a collection of input words (very much like the auto-complete feature in search engines). Large language models, such as GPT-3, take this a step further by being able to generate source codes or stories based just on a description or suggestion. The startup behind GPT-3, OpenAI, has made its model available to developers via an API. You may sign up for it here, and you'll get a credit of $18.


#1 AI Weekly Research News

#artificialintelligence

Thank you so much for signing up for my AI Newsletter. In the last few days, we were doing deep research in AI-related research updates and we were able to find these cool ones. But before you start reading, please Join Our Subreddit so you don't miss any updates. Researchers from Carnegie Mellon University recently published a paper that compares existing code models -- Codex, GPT-J, GPT-Neo, GPT-NeoX, and CodeParrot -- across programming languages. By comparing and contrasting various models, they want to offer more light on the landscape of code modeling design decisions, as well as fill in a major gap: no big open-source language model has been trained purely on code from several programming languages.