Podcast

Cohere Large Language Model at Scale

Nils Reimers, CohereEpisode 158 · 1:14:53 · May 2023 · 672 viewsHosted by Abi Aryan
Thumbnail for Cohere Large Language Model at Scale Watch on YouTube
TL;DR
  1. 1

    Nils Reimers argues that search should supply changing facts to language models because retraining on enough examples to update one fact is slow and expensive.

  2. 2

    Cohere provides language models through APIs and on-premises deployments, with a focus on text understanding, search, classification, and multilingual use cases.

  3. 3

    Large language model work has to account for cost, latency, security, data privacy, and practical user needs rather than only benchmark scores.

Summary

Nils Reimers explains how his move from IT security and academic research led him toward building machine learning systems for users. He discusses security risks around language models, including poisoned training data, private information, phishing, hate speech, and the tension between privacy and abuse detection. For keeping models current, he prefers combining generation with search because a search index can reflect new information immediately, while retraining may require millions of examples. He describes Cohere's API and on-premises offerings, along with its work on text understanding, semantic search, classification, aggregation, and multilingual models. The discussion also covers streaming, smaller draft models, quantization, and hardware as ways to reduce latency. Reimers is direct about the limits of academic benchmarks. Teams should ask what users need, how fast a system must respond, and whether it saves or makes money. He expects access to company data and practical integrations to shape competition among model providers.

Key ideas
10:47

Security experience led Nils Reimers toward machine learning systems he could measure

Nils Reimers moved from IT security into machine learning because security work often made value hard to measure. A company could pay for antivirus software or stronger encryption without knowing whether it prevented an attack. He preferred building something users could touch and use. A Berkeley AI class taught by Dan Klein, built around programming Pac-Man agents, showed him the appeal of watching a system improve through iterations. He was also drawn to language because human knowledge is stored in Wikipedia, books, and news articles, and a computer that could understand that material would be useful.

14:47

Language models create security risks alongside productivity gains

Nils Reimers describes several risks created by large language models. Training data can be poisoned with harmful content, and models can expose private information such as phone numbers, credit card numbers, or security numbers. Bad actors can use models to produce personalized spam, phishing messages, or hate speech at scale. He frames privacy as a difficult trade-off. Protecting users from monitoring can also make it harder to identify someone using a model to target millions of people. He expects society to develop new ways to judge which messages and sources deserve trust, just as people learned to treat unexpected bank emails with suspicion.

22:32

Search is a better way to keep fast-changing facts current

Reimers says language models struggle to update knowledge. A model may still associate Corona with beer or identify Barack Obama as the US president because its training data is old. Humans can update a fact from one example, while a generative model may need millions of occurrences before treating a new fact as reliable. Search can provide a current document immediately after an event is recorded. Reimers therefore favors combining a model trained for reading comprehension with a search component. The model can retrieve a current Wikipedia article or other source, then write an answer grounded in that material.

28:52

Search also matters for software documentation that changes over time

Abi Aryan asks whether historical data is sufficient for code-related questions. Reimers agrees that basic Python concepts may remain stable, but APIs and frameworks change. A question about PyTorch could produce instructions for an older version if the model relies on historical training data. He says engineers should know when to search documentation, use an IDE, or check the version they are working with instead of memorizing every detail. At Cohere, models are being taught to recognize information gaps, formulate a search query, inspect the result, and reason over the retrieved material.

33:08

Streaming and smaller models reduce the latency users feel

Cohere reduced perceived latency by streaming generated text as soon as words are produced, so a user can begin reading while the rest of the response is generated. Reimers says model size also affects actual speed, although smaller models can reduce quality. Hardware and numerical formats are another part of the solution, with the field moving from float 32 toward float 16, int 8, and float 8. He also describes using a small model to propose a shortlist of likely next tokens, allowing a larger model to choose among that shortlist instead of evaluating the full vocabulary at every step.

38:53

Cohere combines model APIs with private deployments and text understanding

Reimers describes Cohere as a company building foundational NLP models. Its generative models produce text from prompts, while its text-understanding models support search, recommendation, classification, and analysis of customer reviews. Cohere offers API access and on-premises deployments through AWS SageMaker, so customers can keep sensitive data in their own environment. He describes the models as building blocks that developers still need to connect to their own products and business use cases. A search system could index millions of messages, identify common feature requests, and then use a generative model to summarize the findings.

43:37

Vector search can ground generated answers in an organization's documents

For a podcast archive or Slack workspace, Reimers describes first converting text into vector representations with an embedding model and storing them in a vector database such as Weaviate or Pinecone. A user could search for discussions about security and language models and receive the relevant episode and timestamp. A later step would connect those results to a generative model. That model could use retrieved material to explain how to remove credit card numbers, security numbers, email addresses, and phone numbers from data. Cohere also planned aggregation and analysis features that could identify the questions people ask most often across community channels.

48:05

Open models face funding, maintenance, and misuse problems

Reimers expects many foundational models to remain behind closed APIs because training them costs tens of millions of dollars and companies need a way to fund ongoing development. Open source models can also struggle to maintain consistent effort when development depends on academics or individual contributors. Releasing a model openly makes access easier for everyone, including people who want to generate hate speech, political misinformation, or abusive images. He compares this with cloud infrastructure, where developers often accept closed services such as AWS when the service meets their needs. The unresolved issue is how companies should be held responsible for misuse.

01:00:36

Cohere differentiates itself through data placement and multilingual text understanding

Reimers says Cohere wants to bring its models to the customer's data rather than require the data to move into a particular cloud. The company is also focused on text understanding, including search, classification, aggregation, and multilingual applications. Its multilingual model can accept a query in French and find a Chinese document without translation. This could help multinational companies search across documents written in different languages. He also describes hate-speech detection across languages as a practical use case. Near the end, he returns to product needs: teams should care about what users need, how systems perform in practice, and whether machine learning saves or makes money instead of chasing small benchmark gains.

"Often you find when you talk with people that other things are more relevant than really these leaderboard chasing."Nils Reimers52:55
Who should watch
  • You are building an application on top of a language model and need to decide between hosted APIs, private deployment, and search over your own data.
  • Your model answers questions about changing information, software versions, or internal documents, and you need a practical approach to retrieval and updates.
  • You care about production cost, response latency, multilingual search, or the security consequences of exposing language models to users.