Type-Compliant Adaptation Cascades: Adapting Programmatic LM Workflows to Data
Not on the map. Why?
Abstract (arXiv)
Reliably composing Large Language Models (LLMs) for complex, multi-step workflows remains a significant challenge. The dominant paradigm -- optimizing discrete prompts in a pipeline -- is notoriously brittle and struggles to enforce the formal compliance required for structured tasks. We introduce Type-Compliant Adaptation Cascades (TACs), a framework that recasts workflow adaptation as learning typed probabilistic programs. TACs treat the entire workflow, which is composed of parameter-efficiently adapted LLMs and deterministic logic, as an unnormalized joint distribution. This enables principled, gradient-based training even with latent intermediate structures. We provide theoretical justification for our tractable optimization objective, proving that the optimization bias vanishes as the model learns type compliance. Empirically, TACs significantly outperform state-of-the-art prompt-optimization baselines. Gains are particularly pronounced on structured tasks, improving FinQA from 12.0% to 24.7% for a Qwen 3 8B model, MGSM-SymPy from 57.1% to 75.9% for a Gemma 2 27B model, MGSM from 1.6% to 27.3%, and MuSR from 36.5% to 62.6% for a Gemma 7B model. TACs offer a robust and theoretically grounded paradigm for developing reliable, task-compliant LLM systems.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 43 of its 64 references that are in the map. First posted on arXiv 25 Aug 2025.
Builds on
43 of 64 references.
References · 43
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2025Qwen3 Technical Reportcited by 8,820
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
31 more
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 940
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2021FinQA: A Dataset of Numerical Reasoning over Financial Datacited by 562
- 2022Language Models are Multilingual Chain-of-Thought Reasonerscited by 530
- 2018Pyro: Deep Universal Probabilistic Programmingcited by 380
- 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 318
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 263
- 2024ReFT: Reasoning with Reinforced Fine-Tuningcited by 239
- 2023MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoningcited by 201
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 197
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2014Neural Variational Inference and Learning in Belief Networkscited by 117
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 101
- 2024XGrammar: Flexible and Efficient Structured Generation Engine for Large Language Modelscited by 75
- 2014Reweighted Wake-Sleepcited by 66
- 2018An Introduction to Probabilistic Programmingcited by 63
- 2015Structured Prediction Energy Networkscited by 59
- 2020Limitations of Autoregressive Models and Their Alternativescited by 55
- 2024Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Togethercited by 40
- 2024On the Worst Prompt Performance of Large Language Modelscited by 38
- 2023Neurosymbolic Models for Computer Graphicscited by 28
- 2017Deep Probabilistic Programmingcited by 24
- 2021PyGlove: Symbolic Programming for Automated Machine Learningcited by 19
- 2024MORL-Prompt: An Empirical Analysis of Multi-Objective Reinforcement Learning for Discrete Prompt Optimizationcited by 16
- 2018Neural Particle Smoothing for Sampling from Conditional Sequence Modelscited by 7
- 2023Long-Form Speech Translation through Segmentation with Finite-State Decoding Constraints on Large Language Modelscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.