Saturday, May 17, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Are GPTs Good Embedding Models. A surprising experiment to show that… | by Yu-Cheng Tsai | May, 2024

May 18, 2024
in AI Technology
Reading Time: 2 mins read
0 0
A A
0
Share on FacebookShare on Twitter



A surprising experiment to demonstrate the importance of details in machine learning applications

With the plethora of embedding models available, selecting the right one can be a daunting task. Luckily, the MTEB leaderboard offers a wide array of ranking metrics for various natural language processing tasks.

Top 5 embedding models from the MTEB leaderboard as of May 17th, 2024

Upon visiting the site, it becomes apparent that the top five embedding models are Generative Pre-trained Transformers (GPTs). This might lead one to believe that GPT models are the superior choice for embeddings. However, is this assumption accurate? Let’s conduct an experiment to find out.

Embeddings are tensor representations of texts that convert text token IDs into tensor space projections. By inputting text into a neural network model and conducting a forward pass, embedding vectors can be obtained. But the process is slightly more intricate. Let’s break it down step by step:

1. Convert the text into token IDs
2. Pass the token IDs into a neural network
3. Retrieve the outputs of the neural network

To demonstrate this process, I will use a tokenizer to convert the text content “some questions” into tensor representation.

The second step involves passing the model inputs into a neural network for a forward pass to obtain the logits of generated tokens.

The third step is more complex due to the autoregressive nature of GPT models. The last token of a completed sentence contains affinity scores from preceding tokens, making it a crucial output to consider.

To measure the quality of GPT embeddings, cosine similarity can be utilized. Higher cosine similarity indicates closer semantic meaning between sentences.

By conducting an experiment using Mistral 7b v0.1 instruct, cosine similarities were calculated for various question and answer pairs. The results highlighted the limitations of using GPT models for embeddings without fine-tuning.

Further evaluation with a different model, e5-mistral-7b-instruct, revealed significant improvements in cosine similarity for relevant question and answer pairs. This enhancement was attributed to the use of contrastive loss in fine-tuning the model.

Understanding the importance of fine-tuning GPT models with customized loss functions like contrastive loss can lead to more meaningful and discriminative embeddings. By considering the strengths and limitations of GPT models, informed decisions can be made when selecting embedding models for machine learning projects. This experiment sheds light on the significance of attention to detail in machine learning applications and the impact of tailored approaches in model optimization.



Source link

Tags: embeddingExperimentGoodGPTsmodelsShowsurprisingthatâTsaiYuCheng
Previous Post

11 Best Life Coaching Schools In 2024

Next Post

Unfortunate News for Super Micro Computer Stock Investors

Related Posts

How insurance companies can use synthetic data to fight bias
AI Technology

How insurance companies can use synthetic data to fight bias

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset
AI Technology

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
How Game Theory Can Make AI More Reliable
AI Technology

How Game Theory Can Make AI More Reliable

June 9, 2024
Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper
AI Technology

Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper

June 9, 2024
Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs
AI Technology

Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs

June 9, 2024
Deciphering Doubt: Navigating Uncertainty in LLM Responses
AI Technology

Deciphering Doubt: Navigating Uncertainty in LLM Responses

June 9, 2024
Next Post
Unfortunate News for Super Micro Computer Stock Investors

Unfortunate News for Super Micro Computer Stock Investors

Crypto Analyst Says ETFSwap (ETFS) Will Lead The 2024 Bull Run Ahead Of Dogecoin (DOGE) And Shiba Inu (SHIB) – Blockchain News, Opinion, TV and Jobs

Crypto Analyst Says ETFSwap (ETFS) Will Lead The 2024 Bull Run Ahead Of Dogecoin (DOGE) And Shiba Inu (SHIB) – Blockchain News, Opinion, TV and Jobs

This AI Paper Introduces Rational Transfer Function: Advancing Sequence Modeling with FFT Techniques

This AI Paper Introduces Rational Transfer Function: Advancing Sequence Modeling with FFT Techniques

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
Porfo: Revolutionizing the Crypto Wallet Landscape

Porfo: Revolutionizing the Crypto Wallet Landscape

October 9, 2023
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

May 19, 2024
Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

November 20, 2023
Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

December 6, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In