Sign In

Kenneth Leung

Data Scientist at AXA • MSc Business Analytics • Pharmacist

Kenneth Leung is a proficient data scientist and pharmacist located in Singapore with a diverse background in data science, business analytics, clinical care, and digital innovation.

With a strong passion for continuous learning and problem-solving, Kenneth has a proven track record of successful intrapreneurial innovation projects, particularly in leveraging data and technology to address industry challenges, specifically in healthcare and insurance sectors.

Kenneth Leung has been recognized for his exceptional contributions, receiving prestigious awards such as the SG Postgraduate Scholarship in 2019 and the Mrs Tan Shook Fong-PSS Innovation and Scientific Research Award in 2018.

Kenneth actively engages with the professional community through various speaking engagements, mentorships, and moderations in reputable events and forums, highlighting his thought leadership and expertise in the field.

In terms of education, Kenneth holds a Master's degree in Business Analytics from the National University of Singapore (NUS) and a Bachelor of Science in Pharmacy from the same institution, complemented by a Summer Exchange program at Newcastle University.

Kenneth's professional journey includes roles at prominent organizations such as AXA, where he serves as a Data Scientist, reflecting his proficiency in applying data-driven insights in a corporate setting.

Prior to his current position, Kenneth held various roles ranging from Contributing Author at Medium to Founder & Lead at MediView, showcasing his versatility and adaptability across different domains within the healthcare and technology sectors.

Kenneth's rich experience includes positions as a Data Science Intern at Holmusk, Data Analyst at Khoo Teck Puat Hospital, Web Developer at Gingercode, and various roles at Khoo Teck Puat Hospital, including Deputy Head (Inpatient Pharmacy), Senior Pharmacist, and Pharmacist.

Kenneth Leung's active involvement in numerous speaking engagements, forums, and seminars underscores his commitment to sharing knowledge and driving innovation within the healthcare and technology landscapes, positioning him as a prominent figure in the industry.

Highlights

Jul 16 · linkedin

OpenAI offers an excellent guide on 𝐨𝐩𝐭𝐢𝐦𝐢𝐳𝐢𝐧𝐠 𝐋𝐋𝐌 𝐚𝐜𝐜𝐮𝐫𝐚𝐜𝐲, with focus on improving correctness and consistency of model responses.

Instead of viewing LLM accuracy optimization as a simplistic linear process (i.e., prompt engineering -> retrieval-augmented generation (RAG) -> fine-tuning), it is more effective to see it as a multidimensional challenge involving diverse strategies.

It can be conceptualized as a matrix of two dimensions: What the LLM needs to know (context) and How the LLM needs to act (behavior).

1️⃣ 𝐖𝐡𝐚𝐭 𝐭𝐡𝐞 𝐋𝐋𝐌 𝐧𝐞𝐞𝐝𝐬 𝐭𝐨 𝐤𝐧𝐨𝐰: Optimize for context when (i) the model lacks contextual knowledge because the information was not in the training dataset, (ii) its knowledge is out of date, or (iii) it requires knowledge of proprietary information. This dimension maximizes 𝐫𝐞𝐬𝐩𝐨𝐧𝐬𝐞 𝐚𝐜𝐜𝐮𝐫𝐚𝐜𝐲.

2️⃣ 𝐇𝐨𝐰 𝐭𝐡𝐞 𝐋𝐋𝐌 𝐧𝐞𝐞𝐝𝐬 𝐭𝐨 𝐚𝐜𝐭: Optimize for behavior when (i) the model is producing inconsistent results with incorrect formatting, (ii) tone or style of speech is not correct, or (iii) reasoning is not being followed consistently. This dimension maximizes 𝐛𝐞𝐡𝐚𝐯𝐢𝐨𝐫 𝐜𝐨𝐧𝐬𝐢𝐬𝐭𝐞𝐧𝐜𝐲.

With this mental model, we can decide whether to enrich the context and/or improve the consistency of model behavior.

The guide also includes numerous valuable practical tips, such as best practices for continual evaluation, stacking fine-tuning with RAG, balancing cost against accuracy, and many more.

Recommended for anyone looking to deepen their understanding of working with LLMs. Check it out here: https://lnkd.in/gVVqub-Q

#generativeai #datascience #openai #llm #machinelearning #rag #gpt

Apr 4 · linkedin

The development of new techniques to improve retrieval augmented generation (RAG) has been advancing relentlessly.

A practical approach to navigating and staying abreast of this field is to categorize these developments according to the key stages of RAG, as depicted in this intuitive diagram by Lance from LangChain.

These stages include:

  1. 𝐐𝐮𝐞𝐫𝐲 𝐭𝐫𝐚𝐧𝐬𝐥𝐚𝐭𝐢𝐨𝐧: Translation of input question into a richer representation by either expanding or simplifying it
  2. 𝐑𝐨𝐮𝐭𝐢𝐧𝐠: Dynamically direct queries to the most relevant information sources or databases
  3. 𝐐𝐮𝐞𝐫𝐲 𝐜𝐨𝐧𝐬𝐭𝐫𝐮𝐜𝐭𝐢𝐨𝐧: Convert natural language queries into a query format compatible with stored data
  4. 𝐈𝐧𝐝𝐞𝐱𝐢𝐧𝐠: Create highly efficient data structures that map a vast corpus of information, enabling fast and precise retrieval
  5. 𝐑𝐞𝐭𝐫𝐢𝐞𝐯𝐚𝐥: Query pre-indexed data sources to fetch the most relevant data 
  6. 𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐢𝐨𝐧: Synthesize coherent and contextually relevant output based on retrieved data

A recent development that can be added into the Generation stage is RAFT (Retrieval Augmented FineTuning), a training recipe that adapts LLMs to domain-specific RAG, thereby improving the quality of generated answers from retrieved context. (https://lnkd.in/gjuBZwU7)

**Click to view higher-resolution image

#generativeAI #datascience #machinelearning #RAG #retrieval #llm #genai #ai

Kenneth Leung
Add to my network

Location

Singapore, Singapore