Smart prompt evolution beats brute force optimization for teaching LLMs complex math.
This paper introduces Evolutionary Pre-Prompt Optimization (EPPO), a method that enhances mathematical reasoning in LLMs by optimizing Chain-of-Thought prompts using evolutionary algorithms. EPPO achieves 10% better exact match scores on GSM8k and MathQA benchmarks while providing theoretical guarantees against overfitting.
-----
https://arxiv.org/abs/2412.04291
π€ Original Problem:
LLMs struggle with complex mathematical reasoning tasks despite their size. Current prompt optimization methods lack theoretical guarantees and often overfit on small training datasets.
-----
π§ Solution in this Paper:
β EPPO uses evolutionary algorithms to select optimal Chain-of-Thought examples as pre-prompts for mathematical reasoning tasks
β The method requires only binary comparisons between pre-prompts, enabling information-theoretic generalization bounds
β EPPO optimizes a small set of 2-16 examples that remain fixed for the entire downstream task
β The algorithm employs comparison-based optimization to minimize overfitting risks
β Integration with self-consistency voting further amplifies performance gains
-----
π‘ Key Insights:
β 4-shot prompts perform better than 8-shot prompts due to reduced overfitting
β Evolutionary optimization outperforms random search for prompt selection
β Pre-prompts transfer well across different models and mathematical tasks
β Limited data feedback helps prevent overfitting compared to gradient-based methods
-----
π Results:
β 10% improvement in exact match scores on GSM8k and MathQA
β 64% prediction accuracy on test sets
β Sharpe ratio of 2.21 on sector rotation strategy
β Successful transfer from 7B to 70B parameter models










