Following the Flow the Law Requires: Training Voice Agents to Transfer to Unseen Regulated Procedures in Debt Collection

arXiv:2610.18881 · cs.CL, cs.AI, cs.LG · Submitted 2026-10-01 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "Following the Flow the Law Requires".

Jane: The gist The study demonstrates that a single small policy can be trained once and then follow procedures that were not seen during training,

Tom: First, who's behind it and why it matters.

Paper summary: Tom: So, we're looking at this paper, "Following the Flow the Law Requires: Training Voice Agents to Transfer to Unseen Regulated Procedures in Debt Collection," and it tackles a really specific problem where just finishing a task isn't enough for voice agents in regulated areas.

Jane: Right, so the core idea here is that when you have voice agents doing things like debt collection calls, they don't just need to complete the task; they have to follow a set conversational flow dictated by law.

Tom: Exactly. In debt collection, for instance, it has to confirm it's talking to the debtor before mentioning any debt, and identify itself and the creditor, state the amount clearly—and avoid certain prohibited language.

Lu: The problem is that every single creditor creates their own procedure based on those rules and keeps revising it. So you can't just train one agent for one specific procedure because when that procedure changes, you have to retrain everything.

Meng: That’s what worries me from an engineering standpoint. Traditional flow-based chatbots guarantee the flow by design, but they break when you have a lot of real-world calls with different variations. And free-form LLM agents just can't guarantee that flow reliably on their own.

Lalam: The paper says they ask if a small, self-hosted policy can be trained once and then follow procedures it has never seen before, which is the central question they are testing here.

Jane: And the answer they propose is using something called FlowSpec, which is a machine-readable specification for each deployment that generates the policy instructions and gates the tools.

Tom: So FlowSpec defines everything: it supplies supervision, it defines the tests, and most importantly, the agent only speaks sentences from an approved catalogue.

Lu: This means the agent can only use pre-approved catalogue sentences at runtime, which keeps compliance review focused on that finite set of approved utterances.

Meng: I’m interested in how they manage that policy when it has to handle these different procedures without being completely retrained every time a client changes their rules.

Lalam: They fine-tuned a nine-billion-parameter model on two thousand five hundred six conversations from two hundred ninety-seven randomized procedures, and then they evaluated this agent on four unseen deployment procedures <ref:2610.18881#pg1,a 9-billion-parameter model on 2,506 conversations from 297 randomized>.

Jane: And the results show that these documented checks—the ones that test behavior determined by the procedure—rose from sixty seven to seventy one percent up to ninety three to one hundred percent after training.

Tom: That's a big jump, especially when they tested it against procedures from a completely withheld lineage. What surprised me was also the grounded checks, which test behavior based on what actually happens in the conversation.

Lu: Before training, those grounded checks already passed at ninety seven to one hundred percent in the related-lineage group before training started.

Meng: So they found that for documented checks, the improvement is where it really matters, and the largest measured increase was there because those conditions are explicitly set by the procedure.

Jane: They also looked at scenario pass rates, and across three related-lineage deployments, all twenty-two scenarios passed after training when they only passed seven before.

Tom: It seems like this method of training a single policy to adapt to unseen procedures offers a concrete form of transfer for voice agents in these constrained environments.

Lu: But the paper is careful about its limitations, and it states that the results support transfer only to the tested held-out lineage, not necessarily arbitrary procedures.

Meng: And they also point out that conformance to FlowSpec isn't legal compliance itself; the actual rules governing when a call gets placed are outside what this policy can control.

Jane: So while it’s a solid way to improve procedure following on known variations, it doesn't solve the whole compliance puzzle for every possible setup.

Tom: That brings us to the conclusion of "Following the Flow the Law Requires: Training Voice Agents to Transfer to Unseen Regulated Procedures in Debt Collection." The authors show that you can train a single small policy once and have it follow procedures it has never encountered, specifically improving documented procedure-following behavior on procedures from an unseen lineage while maintaining strong grounded behavior.

Lu: This suggests that for specific regulated tasks where the procedure is formalized into a specification like FlowSpec, this transfer capability is feasible with a smaller model than you might expect.

Meng: But it’s important to remember they didn't test revision scenarios or if this generalizes perfectly to every single type of regulation out there.

Jane: And for anyone listening, the main thing is that we have a concrete way to make these voice agents robust against procedure changes without needing a massive retraining effort every time the client updates their rules.

Conclusion: Tom: So, we’re wrapping up this look at "Following the Flow the Law Requires: Training Voice Agents to Transfer to Unseen Regulated Procedures in Debt Collection." Basically, this paper shows how you can train one small policy once and have it follow procedures it has never seen before.

Jane: Right, so instead of retraining everything every time a client changes their rules, you get transfer capability across those different procedures. That’s the core idea here.

Lu: The methodology uses this thing called FlowSpec, which is a machine-readable specification that defines the flow and gates the tools for each deployment. It forces a structured action space on the AI.

Meng: I like that part about FlowSpec because it makes the procedure explicit in code, not just buried in a prompt. That’s something we need when we're shipping these things at scale.

Lalam: The numbers show that documented checks, which are based on the procedure itself, jumped from sixty seven percent to ninety three to one hundred percent after training on unseen procedures.

Tom: That jump is significant because those checks test the exact behavior the law requires, not just some random guess about what sounds right.

Jane: And they also showed that scenario pass rates went up pretty high too, moving from seven out of twenty-two scenarios before training to all twenty-two after.

Lu: It’s interesting how much improvement they got on the documented checks because the reference condition is explicitly determined by the procedure, which you can see in their specification audit.

Meng: The audit showed there were some defects in those procedures that even their own metrics didn't catch, so it reminds us that formal specification needs deep checking.

Tom: So what this means for us is that we might be able to deploy a single agent policy and have it adapt to new client procedures with just a small fine-tuning run.

Jane: It’s not saying the AI suddenly understands every law, but it gives us a path forward for making voice agents more flexible in regulated fields.

Lu: The limitation they mention is that this transfer works best on procedures from the tested lineage, so we can't just assume it works for any completely new industry or regulation yet.

Meng: Exactly. It’s about transfer within a known family of procedures, not magic across entirely different domains.

Tom: So while we have a way to improve documented procedure following significantly, the real question is how do we test this robustly when the procedure itself is constantly evolving?

Jane: And that leads us right into how these specification documents actually get updated and managed in a production environment.

Petmongkon Pornpichitsuwan, Krittin Pachtrachai, Touchapon Kraisingkorn

Amity Research and Application Center (ARAC) · Amity AI Holdings Company Ltd.

cs.CL, cs.AI, cs.LG

Submitted: 2026-10-01

Updated: 2026-10-01

License: http://creativecommons.org/licenses/by-sa/4.0/

Importance score: 78/100

The gist: The gist The study demonstrates that a single small policy can be trained once and then follow procedures that were not seen during training, specifically improving documented procedure-following

Key concepts

FlowSpec
This is a machine-readable specification, like a JSON document, that defines an entire regulated procedure. It dictates the dialogue flow (states), which tools are available at each step, and exactly which approved sentences the agent can use. It acts as the single source of truth for how the agent must behave.
Documented Checks
These checks test if the agent follows rules explicitly defined in FlowSpec, such as using a specific tool when entering a certain dialogue state or closing the call with a required disposition. These are behavior tests based purely on the procedure's formal structure, not what was actually said during training.
Grounded Checks
These checks test if the agent's behavior matches what is observed in real conversations. For example, they verify if an argument passed to a tool correctly matches the input from the caller. These tests measure how well the agent mimics natural conversational outcomes.
Transfer to Unseen Procedures
This refers to the ability of a single, pre-trained policy model to successfully apply its learned procedural knowledge when faced with a new procedure it has never been trained on. The research demonstrated that this transfer is successful for documented rules, showing the model can adapt its behavior based on the formal specification.

Summary

The gist The study demonstrates that a single small policy can be trained once and then follow procedures that were not seen during training, specifically improving documented procedure-following behaviour on procedures from an unseen lineage while maintaining strong grounded behaviour.

The Problem Addressed

Voice agents built on large language models (LLMs) must follow a conversational flow set by law in regulated applications like debt collection, where simply completing the task is insufficient The agent must confirm it is speaking to the debtor before mentioning the debt, identify itself and the creditor, state the amount, and avoid prohibited language Every creditor turns these rules into its own procedure and revises it An agent that says the right things in the wrong order is still non-compliant Neither of the two established ways of building such agents is satisfactory, as a free-form LLM agent cannot guarantee the flow Traditional flow-based chatbots and voicebots guarantee the flow by construction, but their hand-authored intent classifiers and state machines break on the variety of real calls The legal requirements are shared, but each creditor turns them into its own procedure, with its own disclosure order, tool names, payment-request limits A policy trained for one procedure must be retrained and revalidated when the procedure changes, and it does not carry over to a new client

The Proposed Method: FlowSpec

The central design principle is that the four consumers are not independently maintained artefacts but are four representations derived from the same machine-readable procedure (Fig. 1) Each deployment is represented by one JavaScript Object Notation (JSON) document loaded through a common interface A representative procedure contains 15 states, 7 tools, 15 customer events, 35 constraints, and a 57-entry utterance catalogue States define the dialogue flow and specify the utterances allowed in that phase and the tools that must run on entry Tools are explicitly declared in the procedure rather than assumed by deployment-specific code, specifying their name, argument schema, and gating conditions Speaking is represented as a call to a reply tool whose argument is a list of catalogue identifiers, which are declared as an enumeration containing exactly the catalogue entries available in that conversation This design ensures that an approved catalogue entry is the only text that can be spoken by construction, meaning compliance review applies to a finite catalogue of approved sentences

Training and Population Generation

The policy is fine-tuned on 2,506 conversations from 297 generated procedures derived from 7 base lineages Identifiers, tool names and flow structure are randomized per example while one complete lineage is held out The population of 340 procedures is generated with seed 42 using eight base lineages to construct the synthetic procedure population A mutation pass generates synthetic procedures by rewriting the procedure document rather than perturbing its rendered prompt Two properties are randomized independently for every generated conversation, including catalogue identifiers and their order, to encourage transfer across procedures The agent side of the conversation generator is deterministic with respect to the procedure, walking the state machine rather than using an LLM to generate agent behaviour Conversations that violate a constraint are rescored and removed before training, ensuring the resulting training data is guaranteed to follow the flow structure

Evaluation and Results

The evaluation separates checks into documented checks, which test behaviour determined by the procedure, and grounded checks, which test behaviour determined by the observed conversation Documented checks test behaviour whose expected condition is determined by the procedure, such as which tools a state requires and which disposition closes the call Grounded checks test behaviour whose expected condition is determined by the observed conversation, such as whether a tool argument matches what the caller said Before training, the policy passes 97–100% of grounded checks but only 67–71% of documented ones Training raises documented performance to 93–100%, including on the withheld lineage The main difference between the two groups is that the untrained policy already passes 97% and 100% of grounded checks in the related-lineage and whole-lineage groups, leaving relatively little room for improvement on those checks The largest measured improvement is therefore on documented checks, whose reference conditions are explicitly determined by the procedure Scenario-level pass rates show that across the three related-lineage deployments, 7 of 22 scenarios pass before training and all 22 pass after training On the whole-lineage holdout, the scenario-level pass rate increases from 8/21 to 18/21

Conclusion and Limitations

The results support the feasibility of training a single small policy across multiple procedures, but they do not establish that every component of the proposed design is necessary or that the result generalizes to arbitrary procedures Training therefore produces its largest measured improvement on behaviour whose expected condition is explicitly determined by the procedure The evaluation measures conformance to the formalised procedure rather than correctness against an independently constructed ground truth, and specification defects can remain invisible to the metric derived from that specification Conformance to FlowSpec is not legal compliance, as rules governing when a call is placed are outside the policy’s scope The study does not isolate the contribution of individual components of the training design, and it does not evaluate procedure revisions The results support a narrower conclusion than general-purpose procedure following, demonstrating transfer to the tested held-out lineage rather than establishing general transfer across arbitrary procedures Overall, the study demonstrates a concrete form of transfer where a single 9B policy can improve its documented procedure-following behaviour on procedures from an unseen lineage while maintaining strong grounded behaviour

Appendix A

Procedure Schema and Action Space. Six top-level keys are required: flow id, events, tools, states, faq routing and constraints The schema recognizes eleven constraint types, including max occurrences, once per call, forbid after event, require tool before end and tool pair States do not directly reference catalogue entries by their identifiers; instead, they reference a semantic fine state label that is resolved against the catalogue at rendering time The environment reads these declarations directly, so no company-specific tool branches are required The policy uses a structured action space throughout the call: at = (tool, arguments) Speaking is represented as a call to a reply tool whose argument is a list of catalogue identifiers

Appendix D

Specification Audit. Table VIII lists each defect found in the procedure definitions and their derived evaluation artefacts, its scope, and whether the derived metric exposed it Defect 7, a balance disclosed to an unverified caller, is the kind of disclosure that the Thai Debt Collection Act prohibits (Section I) The audit qualifies the scores in Section IV and does not change them Total 11 defects 8 exposed · 3 not exposed

Appendix C

Training Configuration and Seeding. The policy is Qwen3.5-9B with a rank-32 LoRA adapter (alpha = 64, dropout 0) on all linear layers Training runs for three epochs (468 steps) in bfloat16 on one H100 for about five hours; final training loss is 0.022 and validation loss 0.068 The population of 340 procedures is generated with seed 42 Decoding uses temperature 0, but the runtime is not fully deterministic (Section IV-A4)

Appendix B

The Evaluation Checks. Table VII lists the twelve checks, the class each is assigned according to the source of its reference condition The documented and grounded checks are aggregated in Table III Grounded denominators differ between arms because they count actions the policy emitted The two grounded checks, args and no off flow beats, are defined with respect to the structured action space in Section III-A3

Appendix C

Training Configuration and Seeding. The policy is Qwen3.

Improvements for AI systems

  1. A small, self-hosted dialogue policy can be trained once and then follow regulated procedures it has never seen. The improved system can deploy a single 9B policy trained on a population of randomized procedures to reliably adhere to unseen regulatory flows, achieving documented check performance improvements from 67–71% to 93–100%.

  2. A formulation of regulated voice-agent behaviour as procedure following, in which one machine-readable specification drives the instruction, the tool contract, the supervision and the tests. This allows for a single machine-readable specification (FlowSpec) to generate all necessary components—policy instruction, tool gating, supervision targets, and evaluation checks—ensuring consistency across training and deployment.

  3. The policy selects canonical actions [a t = (tool, arguments)], while the environment maps those actions to the deploymentspecific tool names, limits, disclosure order, and closing rules defined by the procedure. The system will enforce compliance by ensuring an approved catalogue entry is the only text that can be spoken by construction, making prohibited language exclusion a structural guarantee rather than a probabilistic outcome.

  4. The evaluation should be understood as measuring how consistently the policy follows the behaviour formalised by the specification. This mandates that legal compliance validation must include auditing both the policy's conformance to the specification, and whether the specification accurately represents the intended behaviour, preventing metric blind spots where a defect in the specification can propagate into both training and evaluation without necessarily appearing as a model error.

  5. The main measured gain from training is concentrated in behaviour explicitly determined by the procedure. The system will prioritize training efforts on documented checks, whose expected conditions are determined by the procedure, as this component shows substantial improvement, while acknowledging that grounded checks begin near ceiling in this evaluation, leaving substantially less room for measurable improvement.

Abstract

Voice agents built on large language models (LLMs) now handle customer calls, but in regulated applications completing the task is not enough: the agent must follow a conversational flow set by law. In debt collection, it must confirm it is speaking to the debtor before mentioning the debt, identify itself and the creditor, state the amount, and avoid prohibited language. Every creditor turns these rules into its own procedure and revises it. We ask whether a small, self-hosted policy can be trained once and then follow regulated procedures it has never seen. One machine-readable specification per deployment, FlowSpec, generates the policy instruction, gates the tools, supplies the supervision and defines the tests; the agent speaks only approved catalogue sentences. We fine-tune a 9-billion-parameter model on 2,506 conversations from 297 randomized procedures and evaluate a Thai outbound-call agent on four unseen deployment procedures (three debt collection, one non-debt), one from a wholly withheld lineage. Documented checks, fixed by the procedure, rise from 67--71 percents to 93--100 percents, while grounded checks, fixed by the conversation, already pass at 97--100 percents before training; scenario pass rate rises from 15/43 to 40/43. An audit of the shared specification finds 11 defects, 3 of which its own metric did not expose.

Sources

Related papers