WhoBuilt

Navigating Challenges and Technical Debt in LLMs Deployment

Dec 31, 2024· 16 min· 2.0K views·Watch on YouTube

Speaker

Ahmed Menshawy of Mastercard’s AI engineering team discusses LLM deployment challenges and technical debt at an AI Engineer event.

From structured data to organizational knowledge

Menshawy says much of AI’s value over the past 10 to 15 years came from structured data, although more than 80% of organizational data is unstructured and 71% of organizations struggle to manage and secure it. LLMs can use that data as an extended memory to answer questions grounded in an organization’s domain.

Augmentation, current risks, and LLM limits

At Mastercard, Menshawy frames generative AI as a way to augment productivity. He urges attention to risks AI systems pose today and says autoregressive LLMs can amplify errors because each new token depends on earlier output. He also notes that next-token prediction predates ChatGPT, whose conversational interface made language models easier to use.

What production GenAI applications require

Menshawy says Mastercard has used generative AI to boost fraud detection by 300% in some cases. Production applications need access to foundation models, an environment for customization, usable build and deployment tools, and infrastructure that can scale to serve users. He says enterprise environments often are not designed for large models, while newer application tools and inference compute add challenges.

RAG addresses grounding and revision needs

Menshawy lists operational concerns including confident hallucinations, lack of attribution, stale information, and difficulty revising models when information must be removed. Retrieval-augmented generation adds domain-specific external memory, which can ground answers, provide sources, and allow information to be updated through vector indices. He argues that retrievers and generators should be optimized together, rather than treated as unrelated components.

The work and safeguards around LLM code

Menshawy says the LLM code or foundation model accounts for less than 10% of an end-to-end LLM application, with the surrounding work making up the rest. That work includes collecting domain data while preserving enterprise access controls, building specialized models, and adding safeguards. Mastercard’s responsible AI principles cover privacy, security, and reliability, with governance to support their use.

Takeaways

  • Budget for the end-to-end pipeline: model code is a small share of production AI work.
  • Treat data access controls as part of retrieval design so an LLM cannot expose information users should not access.
  • Use retrieval to ground answers, cite sources, and update information without retraining the foundation model.
  • Evaluate hallucination, attribution, staleness, and revision needs before operationalizing a model.
  • Track present-day risks and put privacy, security, reliability, and governance safeguards in place.

Mentioned in this talk

Search inside this talk

What was claimed 3

  • metric
    Mastercard: Generative AI boosted fraud detection by 300% in some cases
    “used generative AI to boost fraud detection in some cases by 300%”
    YouTube
    Unverified1 source· Talk
  • feature
    RAG: Adds domain-specific context to ground model responses and improve factual recall
    “This grounds the model and improves factual recall”
    YouTube
    Unverified1 source· Talk
  • feature
    RAG: Retrieved sources can provide attribution for generated text or decisions
    “you can go back and understand why the model generated certain text”
    YouTube
    Unverified1 source· Talk

Related talks