Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

1/ First, how do you benchmark an AI model? You give different models the same test cases, and score them. You can do the same with voice models using Word Error Rate (WER). You generate the audio, transcribe it with a speech recognition (ASR) model, and compare that transcript...

10,184 Aufrufe • vor 23 Tagen •via X (Twitter)

7 Kommentare

Profilbild von Cartesia
Cartesiavor 23 Tagen

We're rigorous about model evals at Cartesia because there's no shortcut. Quality is multidimensional, and no single number captures it. Here’s why benchmarking TTS is extremely difficult ⬇

Profilbild von Cartesia
Cartesiavor 23 Tagen

2/ WER has another problem. The score depends on the ASR model you use to transcribe the audio. If the ASR struggles with an accent, language or domain-specific word, the TTS model gets penalized for the ASR's mistake. The inverse can happen too. A strong ASR can infer unclear speech and make a bad generation look better than it sounds.

Profilbild von Cartesia
Cartesiavor 23 Tagen

3/ Which means we should also measure whether the audio actually sounds good. One way to do that at scale is to get another model to listen to the audio and predict its quality. But these automated quality scores have blind (deaf) spots too. In one study, researchers added increasingly wrong Japanese pitch accents to generated speech. Human ratings dropped from 4.00 to 2.16. But the automated scores didn’t move, or even went up in some cases.

Profilbild von Cartesia
Cartesiavor 23 Tagen

4/ Which is why human evals are still the gold standard. Artificial Analysis, for example, gets people to listen to two samples and choose which one they prefer. Those preferences are then used to rank the models. But human scores aren't completely stable. Results can change based on who's listening, the instructions they're given, headphones vs speakers, volume, or even how tired they are.

Profilbild von Cartesia
Cartesiavor 23 Tagen

5/ Then there's what you actually test. Most TTS evals use short clips because they're easier to generate, listen to and score. But a model can sound great for a few seconds and start breaking over a longer conversation. The speaker can drift, or the accent and pace can change. And when speech is streamed in real time, you get completely different failures like awkward joins, repeated words or cut-off sounds.

Profilbild von Cartesia
Cartesiavor 23 Tagen

6/ A model can also perform really well on generic speech and fall apart on medical terms, legal text, chemistry, gaming or customer support. Each domain has different expectations around pronunciation, pacing and what’s correct. And gets harder across languages, where what counts as an “error” can change by language and locale. So being good on one benchmark doesn't necessarily mean being good on your use case.

Profilbild von Cartesia
Cartesiavor 23 Tagen

7/ So don't just read the leaderboard. Listen for yourself. Test the model for the language, context and product you're actually building. That being said, we're still #1 though :)

Ähnliche Videos

Small Language Models (SML) are the future of AI. "Small" (SML) instead of "Large" (LLM). These small models are highly specialized models with superhuman abilities on specific tasks. Here are two techniques to build these models: • Spectrum • Model Merging I give you a short introduction in the attached video, but here is a quick summary: Spectrum helps us identify the most relevant layers to solve one specific task. We can ignore everything else and focus on fine-tuning these layers. Using Spectrum, we can fine-tune models in a heartbeat. Model Merging combines multiple models into a unique, much better model than any of the individual input models. You can also combine models specialized in different tasks and get a model with multiple abilities. This is the state of the art of productizing models. It's what Arcee.ai's platform does behind the scenes. Arcee collaborated with me on this post and is sponsoring it. There are three main steps to produce a model for your particular use case: 1. You create a dataset by uploading your data. 2. You train a model. At this step, Arcee uses Spectrum and Model Merging to produce a highly specialized model for your task. 3. You can deploy that model to any environment you want. Three important notes: • Training process is 2x faster and 2x cheaper than regular fine-tuning. • Resultant models are smaller and have higher accuracy. • They create these specialized models from open-source models. Check this site so you can fully appreciate how this works: If you want to fine-tune an open-source model, consider Arcee's platform. This is the state of the art.

Santiago

164,162 Aufrufe • vor 2 Jahren

How can you solve complex tasks using a Large Language Model? Here is a 2-minute introduction to everything you need to know to 10x the quality of your results. Let's talk about three techniques, in order of complexity, starting with the easiest one: • In-Context Learning • Indexing + In-Context Learning • Fine-tuning In-Context Learning The team that trained GPT-3 found something they couldn't explain: You can condition a model using examples of how you want it to behave. I included an example prompt in the attached video. You can "teach" the model how you want it to interpret questions, select the correct answers, and format the results by giving a few examples. You can also give specific knowledge to the model that will be helpful when formulating answers. We call this approach "grounding the model." There's another example in the video. Indexing + In-Context Learning Unfortunately, there is a limit to how much data you can include in a prompt. We call this the "context size." One version of GPT-4 supports a context of approximately 6,000 words, while the other supports 25,000 words. Although this sounds like a lot, many applications need more than that. Imagine you wrote a book and want to build an application to answer any questions about your story. What happens if your book is longer than the context? That's where Indexing comes in. Using a model, you can turn every book passage into an embedding. These are vectors, numbers that "encode" the passage's text. You can then store these embeddings in a particular database that supports fast retrieval of these vectors. You can then turn any question into an embedding and search the database for the list of passages that are similar to that query. Instead of using the entire book to ask the model, you can now use the relevant passages as in-context information, effectively working around the context size limitation. Fine-tuning Fine-tuning can give you an extra boost to get reliable outputs from your LLM. It is, however, the most complex approach on the list. There are different approaches to fine-tuning a model with your data. A popular technique is to process your data with your LLM and use the outputs to train a new classifier that solves your specific task. Notice that here you aren't modifying the LLM. Instead, you are chaining it with your trained classifier. Another approach is to modify the parameters of the LLM using your data. Think of this as "rewiring" the model in a way that solves your particular task. The results and costs will vary depending on how many layers you want to fine-tune from the original model. Many companies think that fine-tuning is the solution to their problems. In my experience, many will benefit from exploring the other two approaches. I love explaining Machine Learning and Artificial Intelligence ideas. If you enjoy in-depth content like this, follow me Santiago so you don't miss what comes next.

Santiago

384,573 Aufrufe • vor 3 Jahren