DEV Community

Shawdai Marie
Shawdai Marie

Posted on AI-assisted

One customer can leak across a split

This field note and its illustration were prepared with AI assistance.

Imagine training on a complaint and testing on the agent’s paraphrase of the same complaint. A model can look unusually competent. Assign the entire conversation to one partition, then check for near-duplicates across the boundary.

Try this six-message fixture. Training customers are A, B and C. The three test messages come from A, D and B. Every message ID is distinct, yet two of three test messages belong to customers seen in training. For a new-customer product, I’d split on customer ID and make the empty intersection a release check.

const train = new Set(["A", "B", "C"]);
const test = ["A", "D", "B"];
console.log(test.filter(id => train.has(id)).length, "/", test.length); // 2 / 3
Enter fullscreen mode Exit fullscreen mode

Reading: Datasheets for Datasets

Research and discussion: Microsoft Research, Jennifer Wortman Vaughan.

One customer can leak across a split. Group split example. Ticket 17: user message: Train. Ticket 17: agent reply: Train. Ticket 22: new incident: Test. Conversation ID. Group assignment. Train or test.

AI-assisted illustration. Both messages from Ticket 17 stay in the training partition.

Top comments (0)