Optimize Debit Card Interchange Routing with DSPy and Compiled Prompts
Shifting debit interchange regulations require dynamic routing choices across Visa, Mastercard, and regional EFT networks. Create a compiled DSPy optimization agent that minimizes transaction processing fees while adhering to federal routing mandate constraints.
What you are building
Use DSPy to compile and optimize multi-stage debit card interchange routing prompts to lower processing fees.
How work is evaluated
Evaluates processing fee reduction and regulatory compliance across payment streams.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
Durbin Compliance Test
Selection must be compliant with Durbin dual-network rules.
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Interchange Cost Reduction
Percentage reduction in processing costs versus baseline default network. • target: 0.15 • range: 0.1-0.25
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Define DSPy Signatures and Modules for multi-network debit routing logic.
Compile DSPy signatures using Teleprompter modules to maximize routing cost savings.
Enforce Durbin Amendment dual-network routing compliance automatically.
Achieve fee reductions of over 12% across synthetic merchant processing workloads.
Resources
Synthetic debit transaction stream labeled with network interchange schedule rates.
Challenge setup
Evaluates processing fee reduction and regulatory compliance across payment streams.
Challenge input
JSON with ticket_size, card_bin, available_networks, merchant_mcc
DSPy
Compiles structured routing modules into optimal few-shot prompts.
Evaluated output
JSON with selected_network, estimated_interchange_bps, durbin_compliant (boolean)
- Selection must be compliant with Durbin dual-network rules.
- Percentage reduction in processing costs versus baseline default network. • target: 0.15 • range: 0.1-0.25
- Benchmark: DebitRoutingBench
- Interchange Cost Reduction target: 0.15
- 1 public reference case
- Python execution harness
- Python sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- DSPy · Required
- DSPy · Required
- DSPy · Required
Evaluation contract
- Durbin Compliance Test · Weight 1
- Interchange Cost Reduction · Weight 1
Metrics
- Interchange Cost Reduction · Target 0.15
Benchmarks
- DebitRoutingBench
- security
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON with ticket_size, card_bin, available_networks, merchant_mcc
Output: JSON with selected_network, estimated_interchange_bps, durbin_compliant (boolean)
Execution harness: Python
Evaluation tools
- DSPy · Prompt Optimization Framework
Recipe freeze marker
No recipe freeze time is recorded.