Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 10 min read Research mediumAdept

Improving Prompt Consistency with Structured Generations

LLM benchmark scores swing by roughly 10 points, and model rankings flip, under superficial prompt-format changes on MMLU. Reordering the same few-shot examples alone moves scores by up to 3 points. Constraining outputs with structured generation (regex-guided decoding in Outlines) makes results far more consistent across n-shot count and shot order. On GSM8K it cut variance and kept Mistral-7B ahead of Zephyr-7B in every setup, with 1-shot structured matching 5-shot unstructured. On GPQA diamond it raised mean accuracy (about 0.24 to 0.29–0.30), lowered standard deviation and made winner calls much more stable.

Related posts

  • What's going on with the Open LLM Leaderboard?

    Hugging Face mediumAdept

    MMLU scores for the same model vary widely depending on which implementation runs the benchmark. The original Berkeley code, Stanford HELM and the EleutherAI Harness differ in prompt formatting and in how they score answers: letter-only log-likelihood, generated text matched against the expected answer, or full-answer sequence log-likelihood. These choices change both absolute scores and model rankings. For example, LLaMA-65B scores 0.637 on HELM, 0.636 on the original implementation and 0.488 on the Harness. Benchmark numbers are only comparable when they come from the same implementation, so the Harness was updated to match the original MMLU method and the leaderboard is being re-run.

  • Introducing the Open Chain of Thought Leaderboard

    Hugging Face mediumAdept

    The Open CoT Leaderboard ranks LLMs by the accuracy gain from chain-of-thought prompting (accuracy with CoT minus loglikelihood accuracy without it) rather than by absolute accuracy, which makes it more robust to training-data contamination. Models are evaluated on LogiQA and LSAT multiple-choice reasoning tasks using six CoT generation regimes: two prompting strategies (Classic "think step by step" and Reflect) crossed with greedy, beam search and sampling decoding, and the best gain across regimes is reported. Early results across 30 models show small 7B models like Phi-2 can gain more from CoT than larger ones such as Mixtral, and instruction/chat finetuning improves both baseline accuracy and CoT gains. No single regime is best for every model and task, and CoT sometimes reduces accuracy.

  • Arabic Leaderboards: Introducing Arabic Instruction Following, Updating AraGen, and More

    Hugging Face mediumAdept

    Inception and MBZUAI launched an Arabic-Leaderboards Space hosting an updated AraGen generative benchmark (AraGen-03-25) and a new instruction-following leaderboard built on Arabic IFEval, the first public Arabic instruction-following benchmark. AraGen-03-25 grows to 340 QA pairs (question answering, reasoning, safety, grammar/orthography) and uses a refined judge prompt. Ranking analysis across dataset versions and prompts shows stable orderings, with o1 still on top, even though scores fell sharply (o1 from 82.67% to 70.25%, others from 70-78% to 51-57%). Analysis of the 3C3H metric finds correctness, helpfulness and harmlessness nearly perfectly correlated, while conciseness diverges, reflecting training that rewards verbosity.

  • Aligning LLM-as-a-Judge with Human Preferences

    LangChain easyNovice

    LangSmith evaluators now store human corrections to LLM-as-a-Judge scores as few-shot examples, optionally with explanations, and inject them into the judge prompt on later runs so the evaluator aligns with team preferences without manual prompt engineering. LLM judges work because they can see information the generator lacked, such as reference answers, and because judging is easier than generating. Common uses are detecting RAG hallucinations, RAG correctness and toxic outputs, in both online and offline evaluation. The design draws on few-shot learning and Shreya Shankar's Berkeley paper "Who Validates the Validators?".

  • 📚 3LM: A Benchmark for Arabic LLMs in STEM and Code

    Hugging Face mediumAdept

    3LM is a benchmark for evaluating Arabic LLMs on STEM reasoning and code generation, built from three datasets: 865 native MCQs extracted from Arabic grade 8–12 educational materials via OCR (with Pix2Tex for math) and LLM-assisted extraction, 1,744 synthetic mid-to-high difficulty MCQs generated with the YourBench pipeline, and Arabic translations of HumanEval+ and MBPP+ validated by backtranslation with a ROUGE-L F1 cutoff of 0.8. Across 40+ models, Qwen2.5-72B-Instruct led MCQ accuracy (71.8% native, 67.0% synthetic), Gemma-3-27B led completion-style STEM (43.2%), and GPT-4o led code (83.5% pass@1+ on HumanEval-ar, 63.6% on MBPP-ar). Arabic and English pass@1 scores correlate at about 0.97, and instruction-tuned models proved more robust than base models under distractor perturbation. Datasets and lighteval/evalplus evaluation scripts are open-sourced.

The quest for software engineering knowledge.

Look:
Layout: