
Assistant professor of #health #datascience at @amsterdamumc, location @UvA_Amsterdam
Amsterdam, The Netherlands
Joined May 2014
- Tweets1.3K
- Following665
- Followers311
- Likes944
Iacopo Vagliano retweeted
Don't do RAG
Proposes cache-augmented generation (CAG) to eliminate retrieval latency and minimize retrieval errors.
What is CAG?
CAG aims to leverage the capabilities of long-context LLMs by preloading the LLM with all relevant docs in advance and precomputing the key-value (KV) cache.
The preloaded context helps the model to provide contextually accurate answers without the need for additional retrieval during runtime.
When to apply CAG?
It's a useful alternative to RAG for cases where the documents/knowledge for retrieval are of limited, manageable size.
My thoughts: As LLMs advance in capabilities, I suspect that what we know as RAG today could change significantly either architecturally or how it's optimized. CAG is one in a growing list of developments and new ideas that have emerged recently to address limitations like poor retrieval relevancy and latency. There could also be hybrid methods that combine preloading with selective retrieval.
Don't sleep on long-context LLMs. They are here to stay.
Iacopo Vagliano retweeted
The data science revolution is getting closer. TabPFN v2 is published in Nature: nature.com/articles/s41586-0… On tabular classification with up to 10k data points & 500 features, in 2.8s TabPFN on average outperforms all other methods, even when tuning them for up to 4 hours🧵1/19
Iacopo Vagliano retweeted
Thank you for tuning in!
Slides for my talk "Integrating Graph Neural Networks and Large Language Models"
dropbox.com/scl/fi/pzgk789j1…
Starting soon: our third keynote lecture by Prof. @xbresson from @NUSingapore!
Graphs
Transformers
LLMs
Come join us on Zoom (link in LoG Slack) or Youtube:
Iacopo Vagliano retweeted
🚨 Are PostDocs Alright? 🚨
Join us on 27.11.2024, for a joint event by @LeibnizPostDocs & German Postdoc Network as we discuss the latest findings from the Leibniz PostDoc survey!
🕛12:00-13:00 CET
Register now: bit.ly/40SQ6GA
#postdocs #IchBinHanna
Iacopo Vagliano retweeted
Meet Tülu 3 -- a set of state-of-the-art instruct models with fully open data, eval code, and training algorithms.
We invented new methods for fine-tuning language models with RL and built upon best practices in the community to scale synthetic instruction and preference data.
Demo, GitHub, technical report, and models below 👇
Iacopo Vagliano retweeted
.@MistralAI launched a ton of new AI features/models today!
The best part? It's all absolutely free.
Here's everything you need to know: 👇
Iacopo Vagliano retweeted
📢 Call for Papers: Exploring the History of the Web, from Inception to Present @TheWebConf 2025 @TheOfficialACM
📃 2-4 pages paper submission 12/12/2024
👉 www2025.thewebconf.org/histo…
#TheWebConf25 #WebHistory #InternetHistory #www
cc @w3c @CERN @Inria @timberners_lee @oshaniws
Iacopo Vagliano retweeted
G-Retriever (medium.com/@xxhe/graph-retri…) that leverages the strengths of GraphRAG, LLMs, and GNNs, has now been integrated into the PyG library.
Thanks to @jure and the @PyG_Team team for making this possible!
🚀 PyG 2.6 is here: GNNs + LLMs, PyTorch 2.4 and more! 🎉
We’re excited to announce the release of PyG 2.6.0, packed with incredible updates for graph learning!
Here’s a quick rundown of what’s new:
✨ Key Highlights:
-- GNNs + LLMs: New models like GRetriever that co-train LLaMA2 with GNNs for enhanced knowledge graph tasks.
-- PyTorch 2.4 Compatibility: Full support for PyTorch 2.4 across platforms!
-- Efficient Index Tensor Representation: Simplifying 1D indices with the new Index class for seamless interactions in GNN message passing.
-- Plus, there are new tutorials, multi-GPU examples, and various improvements to elevate your GNN workflows! 🚀
Check out the full changelog and get started with PyG 2.6 today!
github.com/pyg-team/pytorch_…
Iacopo Vagliano retweeted
Great read - "Understanding LLMs: A Comprehensive Overview from Training to Inference"
The journey from self-attention mechanism to the final LLMs.
This paper reviews the evolution of large language model training techniques and inference deployment technologies.
--------
→ The evolution of LLMs and current training paradigm
Training approaches have evolved from supervised learning to pre-training and fine-tuning, now focusing on cost-efficient deployment. Current focus is on achieving high performance through minimal computational resources.
→ Core architectural components enabling LLMs' success
The Transformer architecture with its self-attention mechanism forms the backbone. Key elements include encoder-decoder or decoder-only designs, enabling parallel processing and handling long-range dependencies.
→ Key challenges in training and deployment
Main challenges include massive computational requirements, extensive data preparation needs, and hardware limitations. Solutions involve parallel training strategies and memory optimization techniques.
→ The role of data and preprocessing in LLM development
High-quality data curation and preprocessing are crucial. Steps include filtering low-quality content, deduplication, privacy protection, and bias mitigation.
🔍 Critical Analysis & Key Points:
→ Data preparation strategies drive model quality
Processing raw data through sophisticated filtering, deduplication and cleaning pipelines directly impacts model performance.
→ Parallel training techniques enable massive scale
Using data parallelism, model parallelism and pipeline parallelism allows training billion-parameter models efficiently.
→ Memory optimization is crucial for inference
Techniques like quantization, pruning and knowledge distillation help deploy large models with limited resources.
Iacopo Vagliano retweeted
Consolidated insights on LLM fine-tuning - a long read across 114 pages.
"Ultimate Guide to Fine-Tuning LLMs"
Worth a read during the weekend.
Few ares it covers 👇
📊 Fine-tuning Pipeline
→ Outlines a seven-stage process for fine-tuning LLMs, from data preparation to deployment and maintenance.
🧠 Advanced Fine-tuning Methods
→ Covers techniques like Proximal Policy Optimization (PPO) and Direct Preference Optimization (DPO) for aligning LLMs with human preferences.
🛠️ Parameter-Efficient Fine-Tuning (PEFT) Techniques
→ Discusses methods like LoRA, QLoRA, and adapters that enable efficient fine-tuning by updating only a subset of model parameters.
🔬 Evaluation metrics and benchmarks for assessing fine-tuned LLMs
→ Includes perplexity, accuracy, and task-specific measures. Benchmarks like GLUE, SuperGLUE, TruthfulQA, and MMLU assess various aspects of LLM performance. Safety evaluations using frameworks like DecodingTrust are also crucial for ensuring responsible AI deployment.
💻 Explores various deployment approaches and optimization techniques to enhance LLM performance and efficiency in real-world applications.
🌐 Examines the extension of fine-tuning techniques to multimodal models and domain-specific applications in fields like medicine and finance.
Note, the content's value stands on its merit, even though possibly the authors leveraged AI assistance in some parts of the paper's creation.
🧵 1/n
Iacopo Vagliano retweeted
Text classification is one of the fundamental building blocks that language models enable for software systems. It is the first application that LLM-book.com starts covering with Chapter 4.
And while text generation LLMs can classify text, it's important for builders to realize that representation models are the better choice for a lot of situations where we want to restrict compute/time/latency of a task.
Two possible ways of creating a classifier from a text representation language model are:
1- Fine-tuning a task-specific model for a particular task. (more accuracy, takes more time)
2- Fitting a simpler classifier (e.g., logistic regression) on top of a high-quality text embedding model (perhaps lower accuracy, takes less time and training compute).
We then go into the details and code of building such classifiers (with both representation and generation LMs) and how to evaluate them by looking at the confusion matrix and scikit learn's classification report.
This chapter is the first in Part 2 which covers language model applications.
Iacopo Vagliano retweeted
What can #syntheticdata do to transform healthcare? In our @SciReports paper, we built synthetic versions of the UK Biobank – to explore the vast potential of synthetic data for privacy-preserving clinical risk prediction. More info: vanderschaar-lab.com/what-ca…
Iacopo Vagliano retweeted
Happy to announce that our survey paper on #AI tools for literature reviews is now published in #OpenAccess by AI Review! We analyse 32 groundbreaking tools and discuss key challenges. #LLMs are revolutionizing the field!
Paper: link.springer.com/article/10…
Iacopo Vagliano retweeted
4 Million pageviews and 6 years after publishing The Illustrated Transformer, it's time for an update.
That is exactly what Chapter 3 of the LLM-book.com is.
We updated the description to focus on text generation (decoder) Transformers and we cover how they have evolved in the last seven years.
We break down how the LLM processes its inputs (like the original post), while covering practical efficiency methods like key/value caching.
An entire section is dedicated to intuitive explanation of self-attention and its recent popular variants, like Grouped-Query Attention.
Which brings us to the schematic of the 2024-era Transformer
These are merely four of the 33 original images in the chapter (out of 300 in the whole book).
The print copy is available today on Amazon! @MaartenGr and I hope you all find it useful!
Iacopo Vagliano retweeted
Replying to @NobelPrize
David Baker's most cited paper:
"The study explores new neural network architectures for accurately predicting protein structures from amino acid sequences. It is motivated by the impressive performance of DeepMind's AlphaFold2 in the recent CASP14 competition."
full paper: openread.academy/en/paper/re…
Demis Hassabis & John M. Jumper most renowned paper:
"The paper discusses the problem of predicting the 3D structure of proteins based on their amino acid sequence. This is an important problem in biology as understanding a protein's structure can help understand its function. However, experimentally determining a protein's structure is a slow and difficult process. The paper introduces a new computational method called AlphaFold that can accurately predict protein structures."
full paper: openread.academy/en/paper/re…
Iacopo Vagliano retweeted
The final talk in the 'Women in RecSys' keynote series is on Wednesday October 9, delivered by Ding Tong: "Behind the Stream: Towards A Healthy Recommendation Ecosystem at Netflix"
Keep an eye on our website for the details:
recsys.acm.org/recsys24/wome…
#RecSys2024
Iacopo Vagliano retweeted
Hey, we got a minor update. Just a little something.
Ok, here it goes: THE PROCEEDINGS OF THE 18TH ACM CONFERENCE ON RECOMMENDER SYSTEMS ARE OUT:
dl.acm.org/doi/proceedings/1…
Well deserved all caps. #RecSys2024
Iacopo Vagliano retweeted
The 2024 #NobelPrize in Physiology or Medicine focuses on the discovery of a vital regulatory mechanism used in cells to control gene activity. Genetic information flows from DNA to messenger RNA (mRNA), via a process called transcription, and then on to the cellular machinery for protein production. There, mRNAs are translated so that proteins are made according to the genetic instructions stored in DNA. Since the mid-20th century, several of the most fundamental scientific discoveries have explained how these processes work.
In 1993, this year's Nobel Prize laureates published unexpected findings describing a new level of gene regulation, which turned out to be highly significant and conserved throughout evolution. They discovered microRNA, a new class of tiny RNA molecules that play a crucial role in gene regulation.
Read more: bit.ly/4dlPE6f
Iacopo Vagliano retweeted
Oggi, venerdì 20 settembre, è l’ultimo giorno utile per iscriversi ad Advances In Artificial Intelligence, l’International Summer School di AIxIA che si svolgerà a Como, dal 23 al 27 settembre.
👉Potete saperne di più visitando il sito web: sites.google.com/unimib.it/a…





































