Research map / Large language models / Language, safety and interpretability
Prompting with Pseudo-Code Instructions
Mayank Mishra, Prince Kumar, Riyaz Bhat, Rudra Murthy V, Danish Contractor, Srikanth Tamilselvam
IBM
Read the paperPlace an idea next to itCheck your own paper ↗
14measured effects
8improved
1no clear effect
5hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| prompt with pseudo-code instructions instead of NL instructions | CodeGen 6B · classification tasks (0-shot) | weighted F1: 0.215 -> 0.375 | Improved |
| prompt with pseudo-code instructions instead of NL instructions | BLOOM 7B · classification tasks (0-shot) | weighted F1: 0.203 -> 0.285 | Improved |
| prompt with pseudo-code instructions instead of NL instructions | CodeGen 6B · All tasks (0-shot) | ROUGE-L: 0.257 -> 0.354 | Improved |
| prompt with pseudo-code instructions instead of NL instructions | BLOOM 3B / BLOOM 7B · QA tasks (0-shot) | ROUGE-L: BLOOM 3B 0.159 -> 0.147; BLOOM 7B 0.156 -> 0.150 | Hurt |
| prompt with pseudo-code instructions instead of NL instructions | CodeGen 6B · MCQ tasks (0-shot) | ROUGE-L: 0.106 -> 0.213 | Improved |
| add docstrings and comments to pseudo-code instructions (ablation) | CodeGen 6B · All tasks (0-shot) | ROUGE-L: 0.335 -> 0.354 | Improved |
| add docstrings and comments to pseudo-code instructions (ablation) | BLOOM 7B · classification tasks (0-shot) | weighted F1: 0.247 -> 0.285 | Improved |
| add pseudo-code docstrings and comments to NL instructions (ablation) | CodeGen 6B · All tasks (0-shot) | ROUGE-L: 0.257 -> 0.275 | Improved |
| add pseudo-code docstrings and comments to NL instructions (ablation) | BLOOM 3B · All tasks (0-shot) | ROUGE-L: 0.250 -> 0.213 | Hurt |
| use only the function declaration instead of full pseudo-code (ablation) | CodeGen 6B · classification tasks (0-shot) | weighted F1: 0.375 -> 0.109 | Hurt |
| use 2-shot prompts instead of 0-shot for pseudo-code instructions | CodeGen 6B · classification tasks | weighted F1: 0.375 -> 0.292 | Hurt |
| use 2-shot examples only (NL examples, no instructions) instead of pseudo-code (ablation) | CodeGen 6B · classification tasks | weighted F1: 0.375 -> 0.001 | Hurt |
Closest papers by meaning
- Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting (ICLR 2024 · similarity 0.89)
- Scaling Prompt Synthesis for Large Language Model Reasoning (ICML 2026 · similarity 0.87)
- Prompt Sketching for Large Language Models (ICML 2024 · similarity 0.87)
- Evolving Prompts In-Context: An Open-ended, Self-replicating Perspective (ICML 2025 · similarity 0.87)
- Evaluating the Zero-shot Robustness of Instruction-tuned Language Models (ICLR 2024 · similarity 0.87)
- Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction Following (AAAI 2024 · similarity 0.87)
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.
