Загрузка видео...

Не удалось загрузить видео

На главную

LLMs have complex joint beliefs about all sorts of quantities. And my postdoc James Requeima visualized them! In this thread we show LLM predictive distributions conditioned on data and free-form text. LLMs pick up on all kinds of subtle and unusual structure: 🧵

193,732 просмотров • 1 год назад •via X (Twitter)

Комментарии: 15

Фото профиля David Duvenaud
David Duvenaud1 год назад

This is fun because LLMs can condition on free-form side information, and make predictions about anything. This turns qualitative knowledge into quantitative predictions. Here we condition Llama 3 on two datapoints, plus text. Changing the text changes the meaning of the data.

Фото профиля David Duvenaud
David Duvenaud1 год назад

What are we visualizing, exactly? It's pretty simple: first we convert the dataset to a single long string, ending with the location we want to predict at. Then we evaluate the LLM's logits on each possible output value to get its probability given the data.

Фото профиля David Duvenaud
David Duvenaud1 год назад

LLM posteriors have all sorts of interesting structure that you don’t normally see in e.g. Gaussian Processes. For instance, here Gemma 2 expects that values might be rounded to the nearest 5 or 10, resulting in horizontal lines:

Фото профиля David Duvenaud
David Duvenaud1 год назад

LLM posteriors also automatically account for all kinds of data corruption and preprocessing. Here, we clipped all data above 50, and the model noticed and put very little probability above that threshold, even when it went against the trend:

Фото профиля David Duvenaud
David Duvenaud1 год назад

These visualizations use tricks from our LLM processes paper, which worked out some of the details of how to format numerical data and elicit continuous distributions from LLMs: Code:

Фото профиля David Duvenaud
David Duvenaud1 год назад

also did follow-up work on time series with @ServiceNowRSRCH. This included benchmarking big LLMs on time series tasks where conditioning on side information was crucial: Paper: Code:

Фото профиля David Duvenaud
David Duvenaud1 год назад

That paper showed that getting good performance from LLMs is really simple: Just concatenate all your data and any extra info you have together, and ask the LLM to make predictions in the same format. This tweet laid it out nicely:

Фото профиля David Duvenaud
David Duvenaud1 год назад

You can really stick any kind of data into this method. LLMs implicitly define joint distributions over tables with any kind of data, and as usual, benefit from extra side information. Paper: Code:

Фото профиля David Duvenaud
David Duvenaud1 год назад

We’re all ears for ideas of where to take these tools next. Reply with ideas for prompts and data to try this on! E.g.: “Per-year earnings of someone who discovered Factorio at age 30” “Sexual partners per year of someone who joined a cult and then led another cult”

Фото профиля David Duvenaud
David Duvenaud1 год назад

It's also clear that token-based LLMs aren't coherent or consistent in many ways. One opening for future work is to get them to handle continuous values and distributions more natively.

Фото профиля David Duvenaud
David Duvenaud1 год назад

Some people who might be interested in these LLM posterior visualizations: @OwainEvans_UK @repligate @andrewgwils @StatModeling @NeelNanda5 @ch402 @SamuelAckerma18 @ZoubinGhahrama1 @fhuszar @NicolasChapados @alexandredrouin @arjunashok37 @CluelessAndrew @alex_lacoste_

Фото профиля David Duvenaud
David Duvenaud1 год назад

Also, @jamesrequeima is on the job market. Hit him up!

Фото профиля David Duvenaud
David Duvenaud1 год назад

This work was inspired by Andrew Gelman’s criticism of subjective Bayes: “Why should I believe your subjective prior? If I really believed it, then I could just feed you some data and ask you for your subjective posterior.” We say: Actually, that’s a great idea for LLMs!

Фото профиля David Duvenaud
David Duvenaud1 год назад

We don’t use humans’ subjective posteriors because they can’t update correctly on reams of data. You’d need some sort of galaxy brain who had endlessly practiced updating on all kinds of datasets and making calibrated predictions. But that’s what LLMs are!

Фото профиля Rainmaker
Rainmaker2 лет назад

🚀 Discover how Reinforcement Learning can transform trading strategies! Check out my free Substack for full code and backtest of the completed Q-learning algorithm. Don't miss out! 📈✨

Похожие видео

3D-LLM: Injecting the 3D World into Large Language Models paper page: Large language models (LLMs) and Vision-Language Models (VLMs) have been proven to excel at multiple tasks, such as commonsense reasoning. Powerful as these models can be, they are not grounded in the 3D physical world, which involves richer concepts such as spatial relationships, affordances, physics, layout, and so on. In this work, we propose to inject the 3D world into large language models and introduce a whole new family of 3D-LLMs. Specifically, 3D-LLMs can take 3D point clouds and their features as input and perform a diverse set of 3D-related tasks, including captioning, dense captioning, 3D question answering, task decomposition, 3D grounding, 3D-assisted dialog, navigation, and so on. Using three types of prompting mechanisms that we design, we are able to collect over 300k 3D-language data covering these tasks. To efficiently train 3D-LLMs, we first utilize a 3D feature extractor that obtains 3D features from rendered multi- view images. Then, we use 2D VLMs as our backbones to train our 3D-LLMs. By introducing a 3D localization mechanism, 3D-LLMs can better capture 3D spatial information. Experiments on ScanQA show that our model outperforms state-of-the-art baselines by a large margin (e.g., the BLEU-1 score surpasses state-of-the-art score by 9%). Furthermore, experiments on our held-in datasets for 3D captioning, task composition, and 3D-assisted dialogue show that our model outperforms 2D VLMs. Qualitative examples also show that our model could perform more tasks beyond the scope of existing LLMs and VLMs.

AK

249,798 просмотров • 3 лет назад