TL;DR
PA3 introduces a multi-stage alignment framework that teaches LLM agents to internalize and selectively recall business policies during reasoning. By replacing massive in-context policy prompts with a "recall-on-demand" Chain-of-Thought (CoT) approach, the authors achieve higher accuracy than traditional methods while reducing token usage by 40%.
What Problem Does This Paper Address?
Modern AI assistants are great at using tools, but they often stumble when forced to follow complex, company-specific rules—like a 15-day return window versus a 30-day one. The standard solution is to cram every possible policy into the model's prompt (in-context learning).
However, business policy documents can be massive, ranging from 10k to 90k tokens. This creates three major headaches:
- High Latency and Cost: You pay for those thousands of tokens on every single turn of the conversation.
- Performance Degradation: Long contexts trigger the "needle-in-a-haystack" problem, where models lose track of specific details buried in the middle of a prompt.
- Inflexibility: It is difficult to scale agents that need to juggle hundreds of distinct, conditional rules.
PA3 asks: Can we teach a model to "know" the policies and only "think" about the relevant ones when needed?
Methods
The authors propose a three-stage alignment recipe to move policy knowledge from the prompt into the model's weights:
-
High-Quality CoT Generation: To train the model, they first needed perfect examples of "policy-aware reasoning." They developed a generate-branch-evaluate-refine loop. A teacher model (DeepSeek-R1) generates reasoning traces which are then scored by four specialized evaluator agents based on Atomicity, Completeness, Faithfulness, and Style. If a trace fails, it’s refined until it passes.
Figure 2: Overview of our multi-stage CoT refinement loop, consisting of Generation, Rubric Evaluation, CoT Evaluation, Targeted Refinement. -
Multi-Stage Training:
- Stage 1 (Continual SFT): Fine-tuning on general tool-use and policy-adherent data with policies still in-context.
- Stage 2 (CoT-Augmented SFT): The "internalization" phase. The model is trained on the high-quality CoT traces from step 1, but the business policies are removed from the input prompt.
- Stage 3 (RL with GRPO): Reinforcement learning using Group-Relative Policy Optimization to sharpen the model's precision.
- Novel Reward Functions: To prevent the model from "reward hacking" (e.g., just listing every policy it knows to ensure it hits the right one), the authors introduced:
- PolicyRecall Reward: Uses a Jaccard score to reward the model for recalling only the necessary policies.
- Hallucination Penalty: Penalizes the model for mentioning rules that don't exist in the source document.
-
Length Penalty: Discourages excessively long reasoning blocks.
Figure 1: While traditional policy-adherence agents need in-context business policies which can range from 10k to 90k tokens, our method only recalls the relevant policies. For each request, the relevant policies can ex- tend up to 150-400 tokens, which uses up to 225x fewer policy tokens per request than the traditional method.
Datasets
The researchers utilized several key benchmarks:
- $\tau$-Bench: A standard benchmark for policy-based tool-use in Airline and Retail domains.
- APIGen-MT: Used for generating multi-turn training trajectories.
- ActionStudio-98k (GFC): A general function-calling dataset used to maintain the model's core capabilities during fine-tuning.
Key Insights and Ideas
- Selective Recall is Key: The model doesn't need to memorize the whole document word-for-word; it needs to learn the mapping between a user's request and the specific policy ID or rule.
- The "Airline" vs. "Retail" Gap: The model showed a massive 141% improvement in the Airline domain compared to only 12% in Retail. Why? Retail policies (like "30-day returns") are common in pre-training data. Airline policies in $\tau$-Bench are highly specific and "out-of-distribution," proving that the model was actually learning new information rather than just relying on prior knowledge.
- Reasoning as a Compression Tool: By forcing the model to "think" before it acts, the CoT block acts as a dynamic filter, pulling only the relevant 150-400 tokens of policy into the active workspace.
Key Results
The final model, PA3, demonstrated significant efficiency and performance gains:
- Accuracy: Outperformed the "no-policy" baseline by 16 points and even beat top-tier models like Qwen-2.5-32B (using full in-context policies) by 3 points.
- Efficiency: Reduced the total word count per trajectory by 40% compared to in-context baselines.
- Token Savings: As shown in Figure 1, while traditional methods might use ~10k tokens of policy per request, PA3 uses fewer than 50 tokens in the prompt and ~150 tokens in the reasoning block—a massive reduction in compute cost.
Limitations and Future Work
- Upfront Cost: The multi-stage filtering and RL training require significant initial compute (roughly 896 H200-hours). This is a one-time cost but a high barrier to entry.
- Policy Updates: If a business changes its rules daily, the model may require frequent retraining or "over-tuning." The authors found that their model struggled slightly to follow "override" policies provided in-context if they contradicted the internalized ones.
- Output Latency: While input tokens are reduced, the model must now generate a "thinking" block, which adds some time to the output phase. Future work may explore compressing these reasoning traces into latent (hidden) tokens to speed up generation.
Summary updated