Friday, November 27, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Technology and Engineering

Genetic Algorithm Selects Demonstration Subsets to Boost Language Model Few-Shot Performance

November 27, 2026
in Technology and Engineering
Juliet Wilcox
By Juliet Wilcox Scienmag Editorial Profile - Human Genetics
Reading Time: 3 mins read
0
Genetic Algorithm Selects Demonstration Subsets to Boost Language Model Few-Shot Performance

Genetic Algorithm Selects Demonstration Subsets to Boost Language Model Few-Shot Performance

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

A genetic algorithm-based framework known as GAFS demonstrates that evaluating complete subsets of demonstration examples improves few-shot learning performance in large language models. In-context few-shot learning in large language models is highly sensitive to the selection of suitable demonstration examples. However, existing approaches commonly guide this selection through predefined retrieval methods or local criteria rather than considering the collective impact of the chosen demonstration prompts on downstream behavior.

To overcome these limitations in existing techniques, GAFS formulates few-shot example selection as a global combinatorial optimization problem. Rather than scoring and ranking candidate demonstrations independently, the GAFS method searches for fixed-size subsets of demonstrations that jointly maximize downstream task performance. This optimization strategy directly evaluates complete demonstration sets during the search process to identify combinations of examples that function effectively together.

The research team evaluated GAFS on four Spanish hate speech detection datasets, identified as HatEval, EXIST, DETESTS, and HOMO-MEX. The experimental design incorporated ten open-weight large language models representing different model families and parameter scales. For comparative assessment, the authors evaluated GAFS against three baseline methods, specifically zero-shot learning without demonstration examples, random few-shot learning, and retrieval-based few-shot learning.

Across the benchmark evaluations, the best GAFS configurations attained macro-averaged F1-scores of 68.6 on HatEval, 73.1 on EXIST, 67.6 on DETESTS, and 63.7 on HOMO-MEX. The optimization framework demonstrated consistent advantages across the diverse model families and datasets. Across the tested datasets, GAFS achieved a higher macro-averaged F1-score than random few-shot learning in 37 of 40 model-dataset configurations, and it likewise exceeded the performance of retrieval-based few-shot learning in 37 of 40 configurations.

Statistical evaluation confirmed the significance and stability of the observed performance gains over the retrieval-based baseline. An aggregate McNemar analysis comparing GAFS against retrieval-based few-shot learning identified 2,269 additional correct predictions among the discordant test cases, reaching statistical significance at p less than 0.001. Additionally, a complementary multi-seed analysis revealed that this performance pattern was largely preserved across independent evolutionary optimization runs, confirming the stability of the approach.

To isolate the precise contribution of model-specific optimization, the researchers also compared GAFS with matched-budget model-aware random search, designated as MA-RS. Neither search strategy demonstrated a systematic advantage over the other across the evaluated configurations. This parity indicates that model-aware, performance-driven evaluation of complete demonstration subsets is an important component of the gains achieved over standard few-shot baselines, rather than the evolutionary search mechanism alone.

Further analysis of the selected demonstration sets established that higher diversity, coverage, or class balance was not systematically associated with better downstream task performance. The authors concluded that global, model-aware optimization of demonstration subsets provides an effective operational strategy for few-shot learning in language models. These findings also motivate further scientific investigation into the relative advantages of different search mechanisms for selecting demonstrations.

Subject of Research: Genetic algorithm optimization for few-shot demonstration selection in language models

Article Title: GAFS: a genetic algorithm-based few-shot example selection for large language models

Article References: Bernal-Beltrán, T., Pan, R., García-Díaz, J. A., Beydoun, G., & Valencia-García, R. (2026). GAFS: a genetic algorithm-based few-shot example selection for large language models. Complex & Intelligent Systems. https://doi.org/10.1007/s40747-026-02559-y

Image Credits: AI Generated

DOI: 10.1007/s40747-026-02559-y

Keywords: few-shot learning, large language models, genetic algorithms, in-context learning, demonstration selection, combinatorial optimization, hate speech detection, HatEval, EXIST dataset, DETESTS, HOMO-MEX, open-weight language models, macro-F1 score, McNemar test, model-aware random search, zero-shot learning, retrieval-based selection

Cite Scienmag News

Juliet Wilcox. (November 27, 2026). Genetic Algorithm Selects Demonstration Subsets to Boost Language Model Few-Shot Performance. Scienmag. https://scienmag.com/genetic-algorithm-selects-demonstration-subsets-to-boost-language-model-few-shot-performance/

Juliet Wilcox. "Genetic Algorithm Selects Demonstration Subsets to Boost Language Model Few-Shot Performance." Scienmag, 27 November 2026, https://scienmag.com/genetic-algorithm-selects-demonstration-subsets-to-boost-language-model-few-shot-performance/. Accessed 27 November 2026.

Juliet Wilcox. "Genetic Algorithm Selects Demonstration Subsets to Boost Language Model Few-Shot Performance." Scienmag. November 27, 2026. https://scienmag.com/genetic-algorithm-selects-demonstration-subsets-to-boost-language-model-few-shot-performance/

Tags: combinatorial optimizationdemonstration selectionDETESTSEXIST datasetFew-shot learninggenetic algorithmshate speech detectionHatEvalHOMO-MEXin-context learninglarge language modelsmacro F1-scoreMcNemar testmodel-aware random searchopen-weight language modelsretrieval-based selectionzero-shot learning
Share26Tweet16
Previous Post

Researchers Propose TASC-AutoML Framework to Audit Agricultural Machine Learning Decision Systems

Next Post

C4-Like Mutation in Wheat Enzyme Alters Stress Metabolism in Model Plants

Related Posts

Closed-Form Rocket Classifiers Accelerate Federated Time Series Analysis Across Edge Devices
Technology and Engineering

Closed-Form Rocket Classifiers Accelerate Federated Time Series Analysis Across Edge Devices

November 27, 2026
Modeled Fish and Livestock Biorefinery Avoids 76.7 Percent of Baseline Environmental Damage
Earth Science

Modeled Fish and Livestock Biorefinery Avoids 76.7 Percent of Baseline Environmental Damage

November 27, 2026
Adapting Open-Weight Language Models Cuts Toxicity in Hinglish Counter-Speech
Technology and Engineering

Adapting Open-Weight Language Models Cuts Toxicity in Hinglish Counter-Speech

November 27, 2026
Simulations Show Prior Seismic Disturbance Can Triple Severe Glacier Damage During Warming
Climate

Simulations Show Prior Seismic Disturbance Can Triple Severe Glacier Damage During Warming

November 27, 2026
Hybrid Model Achieves 98.1 Percent Accuracy in Multimodal Brain Tumor Classification
Medicine

Hybrid Model Achieves 98.1 Percent Accuracy in Multimodal Brain Tumor Classification

November 27, 2026
Bismuth Doping Detects Dirac Fermions in Lead Tin Telluride Films
Technology and Engineering

Bismuth Doping Detects Dirac Fermions in Lead Tin Telluride Films

November 27, 2026
Next Post
C4-Like Mutation in Wheat Enzyme Alters Stress Metabolism in Model Plants

C4-Like Mutation in Wheat Enzyme Alters Stress Metabolism in Model Plants

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27657 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • Closed-Form Rocket Classifiers Accelerate Federated Time Series Analysis Across Edge Devices
  • Global Solar Encroachment on Cropland Could Multiply Crop Losses by 2050
  • Magnetic Biochar Boosts Heavy Metal Capture in Cattail Wetland Treatment Systems
  • Researchers Propose Trajectory Mismatch Framework to Evaluate Paediatric Adenoid Hypertrophy

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Science News
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,151 other subscribers

© 2026 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

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

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2026 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading