Skip to content
AI-generated research idea🟡Fairly easy💡Moderate InnovationNo close match found

Formal Constraint-Satisfiability Verification and Compositional Scaling in Prompt Synthesis

Replace heuristic prompt filtering with a formal constraint-satisfiability solver and compositional generator to eliminate contradictory instructions and test complex multi-constraint interactions.

Time

several weeks

Compute level

Single GPU or less

Resources

Standard CPU for constraint solving and API access to LLMs for paraphrasing and evaluation, consistent with the paper's API-based setup.

What the paper used

541 prompts across 25 verifiable instruction types evaluated via API calls to GPT-4 (Nov 2023) and PaLM 2 Small (Aug 2023); local training or inference hardware is not stated in the paper.

Prerequisites

constraint satisfaction or formal logic, Python scripting, and LLM prompting.

Scope

modify existing code

The Gap

In Section 2.1, prompts are synthesized by randomly appending one to three verifiable instructions to base prompts, followed by few-shot LLM filtering to remove illogical combinations and manual editing, yet Appendix 6 still contains contradictory instructions such as requiring no capital letters alongside a capitalized postscript marker like P.P.S.

“Then, we use few-shot prompting to identify illogical prompts and remove them.”
From the paper, Section 2.1, page 4. Matched against the PDF text.

Limitation

Few-shot LLM conflict filtering and manual inspection do not guarantee formal satisfiability across constraint parameters, and restricting prompts to at most three instructions prevents measuring how model accuracy degrades under higher compositional constraint loads.

Proposed Solution

Encode all instruction parameters and mutual dependencies into a formal constraint-satisfaction solver (such as Z3 or a typed rule graph) to automatically reject conflicting pairs like All Lowercase plus uppercase markers, and systematically vary constraint count from 1 to 6+ while verifying post-paraphrase constraint preservation.

Why This Matters

This could eliminate impossible prompts from the benchmark and provide controlled scaling curves showing how instruction-following degrades as constraint density increases.

How to Get Started

How to test it: Test whether formal satisfiability filtering eliminates 100% of contradictory prompts in the benchmark and whether multi-constraint scaling (4-6 constraints) monotonically separates model tiers compared to the 1-3 constraint IFEval baseline; stop if human verification finds >5% residual unsatisfiable prompts after solver filtering.

  1. Audit all 541 prompts in the released instruction_following_eval dataset to catalog existing intra-prompt conflicts such as pairing All Lowercase with capitalized postscript markers like P.P.S.
  2. Formalize pairwise and higher-order compatibility rules across the 25 verifiable instruction types into an SMT or constraint-satisfaction graph.
  3. Build a compositional prompt synthesizer that samples conflict-free constraint sets of size 1 to 6 and verifies satisfiability before and after LLM paraphrasing.
  4. Benchmark GPT-4 and open-weight instruction-tuned models on the newly generated multi-constraint split against the original 1-to-3-constraint IFEval baseline.

Code linked to this paper on Hugging Face: github.com/google-research/google-research

Suggested by AI. Adapt it to your setup.

Has This Been Done?

No close match in 10 results

None of the retrieved results apply formal constraint-satisfaction solvers like Z3 to prompt synthesis and instruction dependencies. While works like Planning as satisfiability: Heuristics and ChinaTravel explore planning and constraint validation, they do not use formal solvers to reject conflicting prompt parameters or handle compositional scaling of instruction constraints.

We searched OpenAlex and arXiv for “compositional instruction following constraint satisfiability solver benchmark” and “Formal Constraint-Satisfiability Verification and Compositional Scaling in Prompt Synthesis” and an AI compared the idea with the top 10 results. A small search can miss relevant work.

Source Paper

Instruction-Following Evaluation for Large Language Models

Jeffrey Zhou, Tianjian Lu, Swaroop Mishra +5 more · 2023

This paper introduces Instruction-Following Eval (IFEval), an automatic, reproducible benchmark for evaluating how well Large Language Models follow natural language instructions. It focuses on 25 types of objectively verifiable instructions across 541 prompts, using deterministic programs to verify compliance and reporting baseline results for GPT-4 and PaLM 2 Small.

Related Ideas

Is this a good idea?

Share onXLinkedIn