Paulo Kuriki, MD (@kuriki) header
Paulo Kuriki, MD (@kuriki) profile picture

Neuroradiologist | Imaging Informatics | Code lover | AI enthusiast | Results-driven

Dallas, TX
Joined April 2009
Paulo Kuriki, MD retweeted
Our AIR-Hub team held its first AI Radiology Hackathon! Residents had 90 minutes to tackle real-world workflow challenges, using coding assistants to turn their clinical ideas into working prototypes. Six challenges. Six prototypes. Lots of innovation. 👏 #radiology 📸@kuriki
1
2
10
546
Tomorrow, our residents @UTSW_RadRes will attend a hands-on lecture on “Using LLMs to Classify Reports” During this session, they will learn how to use Llama and OpenAI to extract clinical information and classify reports. @AliTejaniMD @UTSW_Radiology @ivpedrosa @KarunaMRaj
2
25
2,629
SIIM 2024 is starting today at National Harbor, MD! If you’re attending, I highly recommend visiting the AI Playground. We’ve prepared three activities where you can: 1.Play with multimodal models 2.Build your own brain hemorrhage AI 3.Be challenged to manage resources to build an AI algorithm During these activities, you can submit your results and see your model on our leaderboard. @SIIM_Tweets @BrdKhsrv @FelipeKitamura @eduardomjfarina @ManaMSF94 @ShahriarFaghani @AliTejaniMD @UTSW_Radiology
4
2
17
7,353
Paulo Kuriki, MD retweeted
At @AcrDsi summit on #SIIM2024, Surrounded by the some most brilliant minds in radiology A.I. to come out of #Brazil. So proud to call you friends and mentors. @BernardoBizzo @FelipeKitamura @eduardomjfarina @kuriki
1
5
34
1,565
Paulo Kuriki, MD retweeted
This week, Google announced a doubling of Gemini Pro 1.5's input context window from 1 million to 2 million tokens, and OpenAI released GPT-4o, which generates tokens 2x faster and 50% cheaper than GPT-4 Turbo and natively accepts and generates multimodal tokens. I view these developments as the latest in an 18-month trend. Given the improvements we've seen, best practices for developers have changed as well. Since the launch of ChatGPT in Nov 2022, with key milestones that include the releases of GPT-4, Gemini 1.5 Pro, Claude 3 Opus, and Llama 3-70B, many model providers have improved their capabilities in two important ways: (i) reasoning, which allows LLMs to think through complex concepts and and follow complex instructions; and (ii) longer input context windows. The reasoning capability of GPT-4 and other advanced models makes them quite good at interpreting complex prompts with detailed instructions. Many people are used to dashing off a quick, 1- to 2-sentence query to an LLM. In contrast, when building applications, I see sophisticated teams frequently writing prompts that might be 1 to 2 pages long (my teams call them “mega-prompts”) that provide complex instructions to specify in detail how we’d like an LLM to perform a task. I still see teams not going far enough in terms of writing detailed instructions. For an example of a moderately lengthy prompt, take a look at Claude 3’s system prompt. It’s detailed and gives clear guidance on how Claude should behave. This is a very different style of prompting than we typically use with LLMs’ web user interfaces, where we might dash off a quick query and, if the response is unsatisfactory, clarify what we want through repeated conversational turns with the chatbot. Further, the increasing length of input context windows has added another technique to the developer’s toolkit. GPT-3 kicked off a lot of research on few-shot in-context learning. For example, if you’re using an LLM for text classification, you might give a handful — say 1 to 5 examples — of text snippets and their class labels, so that it can use those examples to generalize to additional texts. However, with longer input context windows — GPT-4o accepts 128,000 input tokens, Claude 3 Opus 200,000 tokens, and Gemini 1.5 Pro 1 million tokens (2 million just announced in a limited preview) — LLMs aren’t limited to a handful of examples. With many-shot learning, developers can give dozens, even hundreds of examples in the prompt, and this works better than few-shot learning. When building complex workflows, I see developers getting good results with this process: - Write quick, simple prompts and see how it does. - Based on where the output falls short, flesh out the prompt iteratively. This often leads to a longer, more detailed, prompt, perhaps even a mega-prompt. - If that’s still insufficient, consider few-shot or many-shot learning (if applicable) or, less frequently, fine-tuning. - If that still doesn’t yield the results you need, break down the task into subtasks and apply an agentic workflow. I hope a process like this will help you build applications more easily. If you’re interested in taking a deeper dive into prompting strategies, I recommend Microsoft's Medprompt paper (Nori et al., 2023), which lays out a complex set of prompting strategies that can lead to very good results. [Original text (with links): deeplearning.ai/the-batch/is… ]
64
536
66
2,797
506,403
Happy to have won 2nd place for Education and Quality posters at UTSW Radiology Research Day! 🎉 RadPointGPT, powered by LLM and RAG, enables natural language queries within SOP documents. We also showcased demos of the protocol classifier, QA automated pipeline, and clinical scheduler, which uses LLM for natural language interactions.
6
2
42
3,095
Today, I'll lecture Radiology Residents on techniques to fine-tune LLMs for use in medicine. Happy to be @UTSW_Radiology , which offers an excellent learning environment and is a great place to stay in touch with the latest AI. @UTSW_RadRes @Brewington_UTSW @ivpedrosa
2
1
21
1,150
Paulo Kuriki, MD retweeted
AI will be one of the most crucial skills for the next 20 years. If I were starting today, I'd learn these: • Python • LLMs • Retrieval Augmented Generation (RAG) Here are 40+ free lessons and practical projects on building advanced RAG applications for production: 1/4
37
337
12
1,940
343,152
Nice to have a paper published in @Radiology_AI. Thanks, Leo Canela, @FelipeKitamura, @kuriki, and Nitamar Abadala for working together on this project. GPT has many capabilities for medical data and we need to test it
Prospective exploratory study on ChatGPT’s ability to answer questions from Brazilian Radiology Board exams doi.org/10.1148/ryai.230103 @FelipeKitamura @eduardomjfarina @CBRadiologia #GPT4 #AI #ML
3
2
17
2,199
Paulo Kuriki, MD retweeted
A few thoughts on how OpenAI is implementing RAG in the new Assistants Retrieval tool before I was locked out. 1. They're splitting on newlines. You can tell because they forget to insert the newlines back between the splits when giving you the reference (red squiggles). 2. The reference is contiguous. I haven't tried more complicated questions so can't rule out that they would do some kind of subquestion decomposition, but the queries I tried all just gave a single reference. 3. The number of chunks returned is variable. This indicates some kind of "small to big" strategy where they retrieve more context than they match. Perhaps something similar to our AutoMergingRetriever docs.llamaindex.ai/en/stable… w/ some kind of similarity cutoff but worth a bit more investigation. 4. They have some trouble handling UTF-8. In general, very bleeding edge still, but look forward to seeing how this evolves.
7
61
14
413
83,061
Paulo Kuriki, MD retweeted
Retrieval Augmented Generation is such a hack. 🔨 Why would an embedding of your prompt coincide in the embedded space with with documents needed to answering it? Meanwhile Transformers already have a key/query mechanism build in! 🔋 Can we just put all the key/value pairs into a vector database and extend the context window to infinity? ♾ We recently experimented with this, and the results on open-book Q&A are really promising. A big issue is how to handle positional encodings. Previous papers trying this approach had to fine-tune the models to not be confused by the extra key/value pairs included in the MHA. We found that using ✨ AliBi✨ linear biases is a great way to handle this, as they have a natural representation of "distance = very far" that we don't find in RoPE etc. Some of my favorite queries that RAG struggles with, but our method (EMT) does not, are "What are the important differences between these two large documents?"; and another I got from @jeremyphoward: given a vast collection of arxiv papers: "What are all the ways we can make inference more efficient?"
Extended Mind Transformers (EMTs) are a new approach to working with very large contexts and external data sources developed by @KlettPhoebe, @thomasahle, Normal's AI team. Inspired by the Extended Mind Thesis, we modify Multihead Attention to directly query a vector database.
19
70
6
569
274,944
It's worth a try for folks doing RAG over clinical data.
🔎 If you are doing retrieval-augmented generation (RAG) for biomedicine, please consider using MedCPT as the text retriever! (available on Hugging Face) 📚 MedCPT is contrastively pre-trained by 255M query-article pairs from real & anonymized PubMed click logs. It achieved SOTA on various biomedical IR tasks, outperforming baselines such as OpenAI's embedding models. 🤗 Please check out the MedCPT resources: - Code: github.com/ncbi/MedCPT - Query encoder: huggingface.co/ncbi/MedCPT-Q… - Article encoder: huggingface.co/ncbi/MedCPT-A… - PubMed embeddings: ftp.ncbi.nlm.nih.gov/pub/lu/… - Paper: academic.oup.com/bioinformat…
19
1,077