atlas

Research map / Large language models / Instruction and fine-tuning

Hints-In-Browser: Benchmarking Language Models for Programming Feedback Generation

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Benchmarks LLMs for programming hint generation across quality, cost, time and privacy, and proposes in-browser hints (WebLLM, 4-bit Llama-3-8B and Phi-3-3.8B) fine-tuned with GPT-4 synthetic data.

Problem

Real-world deployment of LLM-based programming feedback is limited by running cost, latency and learner data privacy, not only feedback quality.

Approach

Run small fine-tuned LLMs directly in the learner's browser via in-browser inference (WebLLM), using a LoRA fine-tuning pipeline on GPT-4-generated synthetic buggy programs, repairs and hints to close much of the quality gap with GPT models while eliminating cost and data-sharing.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune Llama-3-8B on domain-specific synthetic dataLlama-3-8B · All domainsHGood (%): 36 -> 77Helped
Fine-tune Phi-3-3.8B on domain-specific synthetic dataPhi-3-3.8B · All domainsHGood (%): 27 -> 51Helped
Convert fine-tuned Llama-3-8B to 4-bit WebLLM (ablation)Llama-3-8B-dom · All domainsHGood (%): 77 -> 64Hurt
Convert fine-tuned Phi-3-3.8B to 4-bit WebLLM (ablation)Phi-3-3.8B-dom · All domainsHGood (%): 51 -> 36Hurt
Fine-tune Llama-3-8B on domain-specific synthetic dataLlama-3-8B · BasicAlgoHGood (%): 32 -> 64Helped
Fine-tune Phi-3-3.8B on domain-specific synthetic dataPhi-3-3.8B · BasicAlgoHGood (%): 36 -> 48Helped
Fine-tune Llama-3-8B on domain-specific synthetic dataLlama-3-8B · IntroPyNUSHGood (%): 52 -> 96Helped
Fine-tune Phi-3-3.8B on domain-specific synthetic dataPhi-3-3.8B · IntroPyNUSHGood (%): 32 -> 68Helped
Fine-tune Llama-3-8B on domain-specific synthetic dataLlama-3-8B · KarelAlgoHGood (%): 24 -> 71Helped
Fine-tune Phi-3-3.8B on domain-specific synthetic dataPhi-3-3.8B · KarelAlgoHGood (%): 14 -> 38Helped
Use n_r=3 instead of n_r=10 (ablation)Llama-3-8B-dom-web · All domainsHGood (%): 64 (10) -> 59 (14)Hurt
Use n_r=3 instead of n_r=10 (ablation)Phi-3-3.8B-dom-web · All domainsHGood (%): 36 (14) -> 33 (14)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: BasicAlgo IntroPyNUS KarelAlgo

Benchmarks: BasicAlgo IntroPyNUS KarelAlgo

Metrics: HGood% RPass% REdit inference time cost per hint

Baselines: GPT-4 GPT-4o GPT-4o mini GPT-3.5 Llama-3-8B Phi-3-3.8B

Builds on: LoRA chain-of-thought WebLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy