55 points · by farahg · 4y ago · 19 comments
We’ve seen a shift in paradigm in recent years in ML: the “code” has become a commodity: many powerful ML models are open source today. The real challenge is to grow and curate quality data. This raises the need for new data centric tools: IDEs, debuggers, monitoring. Dioptra is a data centric tool that helps debug models and fix them by systematically curating and growing the best data, at scale.
We experienced this problem, first hand, deploying and retraining models. Once a model was in production, maintenance was a huge pain. First, it was hard to assess model performance. Accessing the right production data to diagnose was complicated. We had to build custom scripts to connect to DBs, download production data (Compliance, look the other way!) and analyze it.
Second, it was hard to translate the diagnosis into concrete next steps: find the best data to fix and retrain my model. It required another set of scripts to sample new data, label it and retrain. With a large enough labeling budget, we were able to improve our models, but it wasn’t optimal: labeling is expensive, and random data sampling doesn’t yield the best results. And since the process relied on our individual domain expertise (aka gut feelings) it was inconsistent from one data scientist to the next and not scalable.
We talked to a couple hundred ML practitioners who helped us validate and refine our thinking (we thank every single one of them!). For example, one NLP team had to read more than 10 long legal contracts per week per person. The goal was to track any model errors. Once a month, they synthesized an Excel sheet to detect patterns of errors. Once detected, they had to read more contracts to build their retraining dataset! There were multiple issues with that process. First, the assessment of errors was subjective since it depended on individual interpretations of the legal language. Second, the sourcing of retraining data was time consuming and anecdotal. Finally, they had to spend a lot of time coaching new members to minimize subjectivity.
Processes like this highlight how model improvement needs to be less anecdotal and more systematic. A related problem is lack of tooling, which puts a huge strain on ML teams that are constantly asked to innovate and take on new projects.
Dioptra computes a comprehensive set of metrics to give ML teams a full view of their model and detect failure modes. Teams can objectively prioritize their efforts based on the impact of each error pattern. They can also slice and dice to root-cause errors, zero in on faulty data, and visualize it. What used to take days of reading can now be done in a couple hours. Teams can then quality check and curate the best data for retraining using our embedding similarity search or active learning techniques. They can easily understand, customize and systematically engineer their data curation strategy with our automation APIs in order to get the best model at each iteration and stay on top of the latest production patterns. Additionally, Dioptra fits within any ML stack. We have native integrations with major deep learning frameworks.
Some of our customers reduced their data ops costs by 30%. Others improved their model accuracy by 20% in one retraining cycle thanks to Dioptra.
Active Learning, which has been around for a while but was sort of confidential until recently, makes intentional retraining possible. This approach has been validated by ML organizations like Tesla, Cruise and Waymo. Recently, other companies like Pinterest started building similar infrastructure. However it is costly to build and requires specialized skills. We want to make it accessible to everybody.
We created an interactive demo for HN: https://capture.navattic.com/cl4hciffr2881909mv2qrlsc9g
Please share any feedback and thoughts. Thanks for reading!
** reads more into the blurb**
Use our APIs to improve your models! Blech, not interested anymore. I can't hand out access to a 3rd party server for our data for legal reasons. Your startup can't afford to jump through the hoops to sell to my employer either, not that I would even recommend the app right now without trialing it myself.
I need something I can afford to purchase individually through my manager's discretionary budget (or myself) and run on our own servers. Most ML startups are SAAS and fail this test for me.
I am afraid any information at all about data or models can't go to a 3rd party server. Practically speaking stuff has to be able to run on firewalled servers that are only accessible on the company network. Exceptions would have to go through the legal department and at least 6 months of meetings where you would be repeatedly told no, unless it is vital to the product, which a dashboard isn't, even if it could theoretically be allowed.
I feel like any own-infrastructure per-seat license is going to be way beyond that. Maybe as a marketplace app. [1]
This was for one time purchases only. Recurring charges i.e. SaaS offerings would need to go up to the division head for approval, which means effectively no unless it was essential stuff like Jira/Bitbucket, Office, etc.
> “code” has become a commodity: many powerful ML models are open source today. The real challenge is to grow and curate quality data.
The main recent improvements in translation and speech recognition were all new mathematical methods that enable us to use uncurated random data and still get good results. CTC loss allows to use un-aligned text as groundtruth. wav2vec allows to use random sound without text for pre-training. OPUS is basically a processing pipeline for generating bilingual corpora. Word embeddings allow to use random monolingual text for pre-training. We've also seen a lot of one-shot or zero-shot methods. Plus XLS-R was all about transfer learning to reuse knowledge from cheap abundant data for resource-constrained environments.
My prediction for the future of ML would be that we'll soon need so little training data that a single person can label it on a weekend.
On the other hand, I know first-hand that almost nobody can use the "open source" ML model and deploy it effectively in production. Doing so requires sparsity, quantization, conversions, and in many cases l33t C++ skillz to implement optimized fused SSE ops so that a model will run with decent speed on cheap CPU hardware rather than mandating expensive GPU servers.
And we agree with your prediction. That's why we started Dioptra: to come up with a systematic way to curate high quality data so you can annotate just the data that matters.
P.S. not trying to compare the product or the company/team, but was hoping for a more technical understanding. only reason i even mentioned those names is cos they were all launched here on HN.
I generally term this space as "algorithmic labeling" and there are many approaches here - https://paperswithcode.com/paper/machine-learning-algorithms... . Any kind of algorithms or domains that work well for you...or dont work well ?
There is a great talk from Tesla [1] on what they call the "Data Engine" (that probably inspired some of us :)). One of the things we took from it was that in order to truly close the loop on the ML data flywheel, we needed to turn production into a reliable datasource. It had to become accessible, understandable and minable. To achieve this we took the approach of combining ML observability with Active Learning mining frameworks. Combining both is important in our view because Observability tells how the model behaves in the real world and Active Learning finds the right samples to fix / improve the model on real world data. They go hand in hand.
Technically, it means that we integrate with serving and labeling platforms. We ingest data both in streaming and batch. We can mine on production streams including on device (for iot use-cases where accessing data is a challenge). We have an extensive set of metrics to understand model behavior in the wild and solve use cases like data drift (detecting it, triggering mining and sending the data for labeling/retraining). And we are geared toward automation.
Regarding which data sampling works well and which doesn't, we found that it's not a one size fits all. Combining uncertainty sampling and diversity sampling is very powerful in a lot of use-cases and can perform as good as random sampling with 10x less data some times. But model based sampling strategies can also underperform on drifted datasets (essentially a model can be very confidently wrong on new kind of sample), hence the need to also have similarity sampling techniques.
Overall, we were able to show that we can intentionally drive specific model performance metrics, either globally or locally, by picking one technique vs another. Happy to share more if you want.
hold on - are you saying you look at production serving data ...and are able to determine what was the problem in training data that caused it ? That is pretty cool.
Consider simple language model case. In order to learn some specific phrases you need to see them in the training, and phrases of interest are rare (usually 1-2 cases per terabytes of data). You simply can not select a half.
A semi-supervised learning and self-supervised learning are more reasonable and widely used. You still consider all the data for training. You just don't annotate it manually.
[1]: https://towardsdatascience.com/https-towardsdatascience-com-... [2]: https://arxiv.org/abs/1904.03122