Reproduce “LM4OPT: Unveiling the Potential of Large Language Models in Formulating Mathematical Optimization Problems” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Tasnim Ahmed, Salimur Choudhury

Researchers from Queen's University benchmarked leading large language models on formulating mathematical optimization problems from natural language descriptions. GPT-4 attained an F1-score of 0.6330, surpassing existing baselines, and a progressive fine-tuning framework called LM4OPT significantly improved Llama-2-7b's performance to an F1-score of 0.1259 on this task.

Key insights

  • Larger proprietary LLMs like GPT-4 exhibit advanced contextual understanding, achieving an F1-score of 0.6330 and outperforming a specialized baseline that used named entity information.
  • The LM4OPT framework, incorporating progressive fine-tuning and NEFTune, substantially improves smaller LLMs like Llama-2-7b, yielding an F1-score of 0.1259 compared to 0.0036 without tuning.
  • Instruction length and few-shot examples have differential impacts: one-shot prompting benefits larger models, but longer prompts for smaller models (Llama-2-7b) can lead to issues like hallucination and format inconsistency.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.