Hybrid Text Classification: Labeling with LLMs and Dense Neural Networks

Abstract: 

Labeling text data is a foundational step in many machine learning workflows, yet it can be a costly and time-consuming process when relying solely on premium LLMs (Large Language Models). In this workshop, participants will learn how to efficiently combine the power of premium LLMs with open-source tools to create labeled datasets, extract embeddings, and train neural network classifiers.

By the end of this session, you will:
- Understand how to use LLM APIs for initial labeling.
- Learn techniques to generate vector embeddings of text using open-source models.
- Train a neural network classifier capable of fast, cost-effective classifications.
- Apply these techniques to real-world text classification tasks, achieving significant cost savings while maintaining accuracy.

Session Outline:

Lesson 1: Introduction to LLM-Assisted Labeling
- Understand the benefits and limitations of using LLMs for text labeling.
- Hands-on exercise: Use OpenAI APIs to label a small dataset and analyze the output.
Lesson 2: Vector Embeddings for Text Representation
- Learn what vector embeddings are and why they are critical for text classification.
- Use open-source models (e.g., Sentence Transformers) to extract embeddings from labeled text data.
- Hands-on exercise: Generate embeddings for a labeled dataset and visualize them in embedding space.
Lesson 3: Training a Neural Network Classifier
- Understand the architecture and workflow of a neural network for text classification.
- Train a classifier using the embeddings from Lesson 2.
- Evaluate the classifier's performance and compare it to results obtained using only premium LLMs.
- Hands-on exercise: Train and test a neural network classifier using a provided dataset.

Learning Objectives and Tools:

OpenAI API, Google Colab, Using Sentence Transformers like 'all-MiniLM-L6-v2', Keras

Background Knowledge:

Some python and neural network background

Bio: 

Mohammad is specialized in data science and AI. His work integrates academic research and practical implementation, focusing on the intersection of AI, macroeconomic forecasting, computer vision in the cancer domain, and high-performance computing. He is also actively involved in advancing cloud computing education as a Google Cloud Faculty Expert and leading data science initiatives as the founding chair of the American Physical Society's data science unit.

Open Data Science

 

 

 

Open Data Science
One Broadway
Cambridge, MA 02142
info@odsc.com

Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from - Youtube
Vimeo
Consent to display content from - Vimeo
Google Maps
Consent to display content from - Google