We recently closed an $875K pre-seed round with investments from the Jacobs Institute at Cornell Tech and Focal VC. Read more →

← Home

The Long Tail of Details

A systems-level approach to machine intelligence for data interoperability

Abstract

Data interoperability, or the ability of disparate data systems to exchange and use data while preserving meaning, goes well-beyond tasks like matching schemas and fields. In production settings, translating between systems requires joint reasoning over artifacts like documentation, real-world constraints, and data-system specific logic, like custom business logic.

This article describes a systems-level approach to machine intelligence for data interoperability, illustrated through a production deployment of AI tooling connecting systems across multiple businesses, also called B2B integrations (B2Bi). Our approach uses conditional task decomposition, task-specific modeling, non-linear workflows, and training sandboxes. This work was implemented with a large B2Bi company, and reduced mapping workflow cycle time by up to 74.5%.

Interoperability is a systems-level problem

Every data system encodes the world differently—systems may even represent the same concept using different formats, structures, and semantics. In this article, we will be considering B2B integrations (B2Bi), where the goal is to connect data systems that come from different business systems.

  • A toy example: imagine that two companies want to send invoices and purchase orders back and forth, but they use different date formats in their internal data systems.
  • Let’s make it more complex: imagine now that one company represents a date as a single entry, while the other breaks it up into its components day, month, and year.
  • Now imagine that both companies include a delivery date—but for one company, delivery date means the expected delivery date, while for another it means the promised delivery date, where there are real consequences if the date is missed.

As you can see, this task is deceptively simple. In practice, for companies to seamlessly exchange invoices or purchase orders between one another, there are often teams of 10s or hundreds of integration engineers and data mappers who live behind the scenes and build out the appropriate mappings.

Electronic Data Interchange (EDI). Notably, there are attempts at solving the interoperability problem without the need for extensive manual mapping, the most prevalent of which is imposing common standards or “data languages”, like X12 EDI. However, even under a common data language like EDI, there are challenges posed by real-world implementation details and custom business logic—like the delivery date example from above.

The long tail of details. Importantly, these difficult cases concentrate “in the long tail.” Through the lens of the 80-20 rule, one could say that 80% of integration work is spent mapping 20% of the data elements. Even when an integration engineer can rely on a pre-built mapping or template, the engineer still has to sort through documentation, rely on their domain knowledge, and talk with subject-matter experts to correctly set up mappings.

0%50%80%90%95%99%100%151015202528Case rank (lowest → highest)Task accuracyBaselineCandidate
Interoperability performance is not limited by the easy or medium cases, where perfect accuracy is often achievable with enough training. The real challenge lies in the long tail: rare, difficult tasks where small gaps compound. The chart shows results from a single training run on a sandbox containing 28 highly challenging tasks. Performance is ordered from lowest to highest, and shows the drop-off that occurs when trying to be perfect across all cases.

Building systems-level machine intelligence

Because interoperability is a systems-level problem, we aim to build systems-level machine intelligence. Practically, this means we consider embedding machine intelligence into the full end-to-end workflow, rather than as discrete tasks.

Trading partner onboarding. To make this concrete, take the example of trading partner onboarding in Electronic Data Interchange (EDI) networks. When two companies exchange business documents, like purchase orders or invoices, they don’t always interpret the EDI standard exactly the same way. Their “implementation guidelines” typically live in long PDF implementation guides or in sample files. Typically, an integration engineer has to manually interpret these documents and produce a map, which may be made up of scripts for field-level transformations, validation rules, and structural overrides to convert the partner’s data into an internal model.

Automating this workflow with a single AI model fails because (1) the task is too complex, and (2) from a practical perspective, the context needed to build the mappings is often too large for a single AI model to store.

Building machine intelligence. Instead we take a different, systems-level perspective on data interoperability. This includes a few different components:

  • Conditional task decomposition. While we decompose the workflow into sub-tasks like document interpretation, data mapping, schema matching, and entity resolution, we condition these tasks on one another. Put another way, knowledge is shared across discrete tasks.
  • Task-specific modeling. Once tasks are decomposed, we focus on deploying models that “best fit” the task. For example, we have found that fine-tuned “small” encoder models, like those from the BERT family, trained on historical mapping examples, can be highly effective at field matching.
  • Non-linear workflows. Integration engineers often work iteratively, reworking mappings as they build—our machine intelligence does the same.
  • Training sandboxes, reinforcement learning, and fine-tuning. At times, we treat entire end-to-end workflows as a “multi-armed bandit” problem—meaning the underlying machine intelligence remain a black-box that is trained on well-selected reward functions.

Case study: AI-assisted trading partner onboarding

At L2 Labs, we work with a top-three global EDI and integration company who has applied this approach to their trading partner onboarding workflow. The company onboards more than 150 partners per month, which prior to this project, were all done almost entirely manually. Integration engineers and mappers worked directly from partner implementation guides—the long PDFs described above—and built the map out in a mapping tool.

We embedded machine intelligence over the end-to-end process. Rather than mappers reading the partner implementation guides, the guides are interpreted by the system and a draft mapping is created.

System details. The system ingests PDF implementation guides, schemas, canonical data models, and historical mappings, and produces field-to-field maps, transformation logic, confidence scores, and review points for human users. Outputs are validated in three ways: (1) they are compared against X12 standards, (2) they are validated against custom business rules, and (3) confidence thresholds are used to determine where human attention is required.

Measurement. To measure the effectiveness of our solution, we measured the mapping workflow cycle time from the integration request to map go-live. We were able to conduct a pseudo-random trial of the tooling in production over a 6 week period, and found that over 100+ production maps, workflow time was reduced by up to 74.5%.

Alongside cycle time, we also maintain an internal regression benchmark of mapping accuracy across a representative set of historical partner cases. The figure below compares a recent candidate version of the system against the prior baseline.

Broader implications

This case study suggests a broader pattern for applied AI in interoperability. The path forward is systems-level thinking that can handle the “long tail of details” in data mapping.

For EDI and API integration platforms, this points toward a new kind of automation layer: one that reduces manual onboarding work, improves consistency across mapping decisions, and becomes more capable as it observes production feedback. For enterprise integration teams, the same architecture applies to APIs, ERP transformations, B2B workflows, canonical data models, and other connected data systems.

The long tail of interoperability will not disappear. With the right machine intelligence, however, it is learnable.