paper-with-me

Papers

ELECTRA and GPT-4o: Cost-Effective Partners for Sentiment Analysis

2024-12-29 · James P. Beno

Bidirectional transformers excel at sentiment analysis, and Large Language Models (LLM) are effective zero-shot learners. Might they perform better as a team? This paper explores collaborative approaches between ELECTRA and GPT-4o for three-way sentiment classification. We fine-tuned (FT) four models (ELECTRA Base/Large, GPT-4o/4o-mini) using a mix of reviews from Stanford Sentiment Treebank (SST) and DynaSent. We provided input from ELECTRA to GPT as: predicted label, probabilities, and retrieved examples. Sharing ELECTRA Base FT predictions with GPT-4o-mini significantly improved performance over either model alone (82.50 macro F1 vs. 79.14 ELECTRA Base FT, 79.41 GPT-4o-mini) and yielded the lowest cost/performance ratio (\$0.12/F1 point). However, when GPT models were fine-tuned, including predictions decreased performance. GPT-4o FT-M was the top performer (86.99), with GPT-4o-mini FT close behind (86.70) at much less cost (\$0.38 vs. \$1.59/F1 point). Our results show that augmenting prompts with predictions from fine-tuned encoders is an efficient way to boost performance, and a fine-tuned GPT-4o-mini is nearly as good as GPT-4o FT at 76% less cost. Both are affordable options for projects with limited resources.

📄 PDF Abstract BibTeX arXiv:2501.00062

Code (1)

jbeno/sentiment 공식 구현 pytorch

Tasks

Sentiment AnalysisSentiment Classification

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Discriminative Fine-Tuning Discriminative Fine-Tuning is a fine-tuning strategy that is used for ULMFiT type models. Instead of using the same learning rate…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Linear Warmup With Cosine Annealing Linear Warmup With Cosine Annealing is a learning rate schedule where we increase the learning rate linearly for $n$ updates and then anneal according to a cosine schedule…

Similar Papers 제목 키워드 기반

Privacy Preserving Topic-wise Sentiment Analysis of the Iran Israel USA Conflict Using Federated Transformer Models

2026-03-13 · Md Saiful Islam, Tanjim Taharat Aurpa, Sharad Hasan, Farzana Akter arxiv

The recent escalation of the Iran Israel USA conflict in 2026 has triggered widespread global discussions across social media platforms. As people increasingly use these platforms for expressing opinions, analyzing publi…

Federated LearningSentiment Analysis

AraELECTRA: Pre-Training Text Discriminators for Arabic Language Understanding

2020-12-31 · EACL (WANLP) 2021 4 · Wissam Antoun, Fady Baly, Hazem Hajj

Advances in English language representation enabled a more sample-efficient pre-training task by Efficiently Learning an Encoder that Classifies Token Replacements Accurately (ELECTRA). Which, instead of training a model…

Language ModelingLanguage ModellingMasked Language Modelingnamed-entity-recognition+4

Are ELECTRA's Sentence Embeddings Beyond Repair? The Case of Semantic Textual Similarity

2024-02-20 · Ivan Rep, David Dukić, Jan Šnajder

While BERT produces high-quality sentence embeddings, its pre-training computational cost is a significant drawback. In contrast, ELECTRA provides a cost-effective pre-training objective and downstream task performance i…

Semantic Textual SimilaritySentenceSentence EmbeddingsSTS+2

Benchmarking Transformer-based Language Models for Arabic Sentiment and Sarcasm Detection

2021-04-01 · EACL (WANLP) 2021 4 · Ibrahim Abu Farha, Walid Magdy

The introduction of transformer-based language models has been a revolutionary step for natural language processing (NLP) research. These models, such as BERT, GPT and ELECTRA, led to state-of-the-art performance in many…

BenchmarkingSarcasm Detection

Improving Aspect-Based Sentiment with End-to-End Semantic Role Labeling Model

2023-07-27 · Pavel Přibáň, Ondřej Pražák

This paper presents a series of approaches aimed at enhancing the performance of Aspect-Based Sentiment Analysis (ABSA) by utilizing extracted semantic information from a Semantic Role Labeling (SRL) model. We propose a …

Aspect-Based Sentiment AnalysisAspect-Based Sentiment Analysis (ABSA)Semantic Role LabelingSentiment Analysis