Related Experiment Video
Updated: Jun 3, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Enhancing semantical text understanding with fine-tuned large language models: A case study on Quora Question Pair
Sifei Han1, Lingyun Shi1, Fuchiang Rich Tsui1,2,3,4
1Department of Biomedical and Health Informatics, Tsui Laboratory, Children's Hospital of Philadelphia, Philadelphia, PA, United States of America.
Fine-tuning a 7B LLaMA model (qLLaMA_LoRA-7B) on the Quora Question Pairs dataset achieved the best performance in text similarity tasks. This approach significantly improved upon previous models and demonstrated the effectiveness of supervised fine-tuning for large language models.
Area of Science:
- Natural Language Processing (NLP)
- Machine Learning
- Artificial Intelligence
Background:
- Semantic text understanding is crucial in NLP, with datasets like Quora Question Pairs (QQP) used for evaluation.
- A previous study developed a Siamese Convolutional Neural Network (S-CNN) achieving an 82.02% F1 score for text similarity.
Purpose of the Study:
- To explore the effectiveness of large language models (LLMs) in text similarity tasks.
- To compare various fine-tuning approaches for LLMs, including prompt engineering, n-shot learning, and supervised learning with Low-Rank Adaptation (LoRA).
Main Methods:
- Leveraged 5 pretrained LLMs and compared their performance using F1 score.
- Employed 10-fold cross-validation for supervised model training and evaluation, mirroring a previous study's design and dataset.
- Conducted a secondary study comparing 7B and 70B parameter LLMs using the GLUE benchmark after fine-tuning with a corpus.
Main Results:
- The fine-tuned LLaMA 7B model (qLLaMA_LoRA-7B) achieved the highest F1 score of 84.9% on the QQP dataset, outperforming Alpaca_LoRA-65B and the S-CNN model.
- The fine-tuned LLaMA3.1-70B model (qLLaMA3.1_LoRA-70B) achieved an F1 score of 74.4% on the GLUE benchmark, outperforming the 7B model (71.9%).
- Task-specific supervised fine-tuning improved LLM performance compared to larger pretrained models without fine-tuning or with n-shot learning.
Conclusions:
- An effective LLM fine-tuning framework was demonstrated, highlighting the importance of fine-tuning for improved performance.
- Supervised fine-tuning of LLMs yields better results than using larger models without fine-tuning or with n-shot learning.
- Fine-tuning larger LLMs further enhances performance compared to smaller ones, with potential applications in various document similarity tasks.
More Related Videos
Related Concept Videos
Improving Translational Accuracy
Detection of Gross Error: The Q Test
Mismatch Repair
The Mutator Protein Family Plays a Key Role in DNA Mismatch Repair
The human genome has more than 3 billion base pairs of DNA per cell. Prior to cell division, that vast amount of genetic...
Gene Duplication and Divergence
The duplicated copies of the gene are called Paralogs. Paralogs with similar sequences and functions form a gene family. Across several species, a large number of gene families are...
Second Uniqueness Theorem
In contrast, consider that the electric field is non-unique and apply Gauss's law in divergence form in the region between the conductors and the integral form to the...
Comparing Copy Number Variations and SNPs
Copy number variations or CNVs are the structural variations that cover more than 1kb of DNA sequence. The single nucleotide polymorphism (SNP), on the other hand, is a single nucleotide change or a point mutation that is found in more than 1%...

