TL;DR
LoMASA is a local, training-free multi-agent AI assistant that automates B2B quoting while safely delegating risky decisions to humans. By combining fast LLM judgments with hard-coded pricing rules and a novel confidence-gated delegation mechanism, it reduces salesperson workload by 80% without sacrificing accuracy or data privacy.
What Problem Does This Paper Address?
B2B quoting is a tedious "coordination task." Sales staff spend their days re-calculating quotes as customers change quantities, ask for discounts, or as underlying costs shift. While generative AI seems like a natural fit, two major barriers exist:
- Data Privacy: Pricing and customer data are highly sensitive; many companies cannot send this data to a cloud-based LLM.
- Data Scarcity: Small-to-medium sales teams rarely have the massive, labeled datasets required to fine-tune a custom model.
The authors set out to build an assistant that runs entirely on local hardware (a Mac mini), requires no training, and—most importantly—reliably knows when to step back and ask a human for help.
Methods
LoMASA uses a multi-agent architecture where agents have fixed, specialized roles. The workflow is orchestrated by a deterministic Code Harness that owns all the math and enforces "hard rules" (like margin floors) that the AI cannot override.
The system follows a "System-1/System-2" cognitive model:
- System-1 (Qwen 35B MoE): A fast model that makes initial decisions in a single forward pass.
- Confidence-Gated Delegation: Instead of asking the model "how sure are you?" in words, the system reads the log-probabilities of the answer tokens. If the confidence is below a threshold (calibrated on a small validation set), the case is escalated.
- System-2 (Qwen 27B Dense): A slower, more "thoughtful" model that reviews cases System-1 is unsure about and drafts customer replies or escalation briefs.
- Numeric Case Retrieval: To provide context, the system retrieves similar past cases from a library using numeric features (like margin and discount) rather than standard text embeddings, which often get distracted by surface-level wording.
Datasets
The authors introduced a reproducible benchmark built from three public sources:
- Costs: Derived from the
scm1dsupply-chain management game. - Orders/Customers: Sourced from
Online Retail IIandDataCo Smart Supply Chain. - Evaluation: A test split of 500 simulated episodes containing 1,512 individual decisions.
Key Insights and Ideas
- Log-probs > Verbal Confidence: One of the most striking findings is that LLMs are much better at "knowing what they don't know" through their internal token probabilities than through verbalized self-assessment. Verbalized confidence tended to be wildly overconfident.
- The "Structural Reason" for Safety: Safety isn't just a prompt; it's built into the architecture. Because the LLM only chooses from options pre-calculated and validated by the code harness, it is physically impossible for the AI to "hallucinate" a price that violates company policy.
- System-2's Niche: Surprisingly, the larger 27B model rarely changed the actual decisions made by the 35B model. Its primary value was in drafting human-facing text rather than improving the logic of the "fast" model.
- Numeric RAG: Standard RAG (Retrieval-Augmented Generation) often fails in economic tasks because text embeddings prioritize language over logic. Using standardized numeric features for k-NN retrieval significantly improved escalation accuracy.
Key Results
- Massive Time Savings: The system handled 80.5% of decisions without the salesperson. 38% were settled automatically, and 42.5% were escalated to a manager by hard rules.
- High Speed: Automated decisions had a median latency of just 2.67 seconds.
- Improved Risk Management: Compared to a standard rule-based baseline, LoMASA reduced "risky" commitments (where margins would fall below the floor the next day) from 4.53% to 2.61%.
- Calibration: The confidence scores were remarkably well-calibrated "out of the box" without any additional training.
Limitations and Future Work
- Managerial Overhead: While the system saves the salesperson time, it increases the number of cases escalated to the manager (90 unnecessary escalations in the test set). Future work could focus on reducing these "false alarms."
- Simulated Environment: The data is simulated from public sources; performance on real-world, messy sales logs remains to be seen.
- Predictability Ceiling: The system's accuracy is ultimately limited by the unpredictability of future market costs, which no model can perfectly foresee.
- Writing Quality: The authors did not formally test if the smaller 35B model could handle the drafting tasks as well as the 27B model, which could potentially simplify the architecture further.
Summary updated