paper-with-me

Papers

Density estimation with LLMs: a geometric investigation of in-context learning trajectories

2024-10-07 · Toni J. B. Liu, Nicolas Boullé, Raphaël Sarfati, Christopher J. Earls

Large language models (LLMs) demonstrate remarkable emergent abilities to perform in-context learning across various tasks, including time series forecasting. This work investigates LLMs' ability to estimate probability density functions (PDFs) from data observed in-context; such density estimation (DE) is a fundamental task underlying many probabilistic modeling problems. We leverage the Intensive Principal Component Analysis (InPCA) to visualize and analyze the in-context learning dynamics of LLaMA-2 models. Our main finding is that these LLMs all follow similar learning trajectories in a low-dimensional InPCA space, which are distinct from those of traditional density estimation methods like histograms and Gaussian kernel density estimation (KDE). We interpret the LLaMA in-context DE process as a KDE with an adaptive kernel width and shape. This custom kernel model captures a significant portion of LLaMA's behavior despite having only two parameters. We further speculate on why LLaMA's kernel width and shape differs from classical algorithms, providing insights into the mechanism of in-context probabilistic reasoning in LLMs.

📄 PDF Abstract BibTeX arXiv:2410.05218

Code (0)

등록된 구현이 없습니다.

Tasks

Density EstimationIn-Context LearningTime Series Forecasting

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

3D Density-Gradient based Edge Detection on Neural Radiance Fields (NeRFs) for Geometric Reconstruction

2023-09-26 · Miriam Jäger, Boris Jutzi

Generating geometric 3D reconstructions from Neural Radiance Fields (NeRFs) is of great interest. However, accurate and complete reconstructions based on the density values are challenging. The network output depends on …

Edge DetectionNeRFObject

Density-aware Soft Context Compression with Semi-Dynamic Compression Ratio

2026-03-26 · Yijiong Yu, Shuai Yuan, Jie Zheng, Huazheng Wang 외 arxiv

Soft context compression reduces the computational workload of processing long contexts in LLMs by encoding long context into a smaller number of latent tokens. However, existing frameworks apply uniform compression rati…

Robust Kernel Density Estimation by Scaling and Projection in Hilbert Space

2014-11-17 · NeurIPS 2014 12 · Robert A. Vandermeulen, Clayton D. Scott

While robust parameter estimation has been well studied in parametric density estimation, there has been little investigation into robust density estimation in the nonparametric setting. We present a robust version of th…

Density Estimationparameter estimation

Sparse or Dense? A Mechanistic Estimation of Computation Density in Transformer-based LLMs

2026-01-30 · Corentin Kervadec, Iuliia Lysova, Marco Baroni, Gemma Boleda arxiv

Transformer-based large language models (LLMs) are comprised of billions of parameters arranged in deep and wide computational graphs. Several studies on LLM efficiency optimization argue that it is possible to prune a s…

Reasoning in Large Language Models: A Geometric Perspective

2024-07-02 · Romain Cosentino, Sarath Shekkizhar

The advancement of large language models (LLMs) for real-world applications hinges critically on enhancing their reasoning capabilities. In this work, we explore the reasoning abilities of large language models (LLMs) th…