paper-with-me

홈 › Papers

Statistical investigations into the geometry and homology of random programs

2024-07-05 · Jon Sporring, Ken Friis Larsen

AI-supported programming has taken giant leaps with tools such as Meta's Llama and openAI's chatGPT. These are examples of stochastic sources of programs and have already greatly influenced how we produce code and teach programming. If we consider input to such models as a stochastic source, a natural question is, what is the relation between the input and the output distributions, between the chatGPT prompt and the resulting program? In this paper, we will show how the relation between random Python programs generated from chatGPT can be described geometrically and topologically using Tree-edit distances between the program's syntax trees and without explicit modeling of the underlying space. A popular approach to studying high-dimensional samples in a metric space is to use low-dimensional embedding using, e.g., multidimensional scaling. Such methods imply errors depending on the data and dimension of the embedding space. In this article, we propose to restrict such projection methods to purely visualization purposes and instead use geometric summary statistics, methods from spatial point statistics, and topological data analysis to characterize the configurations of random programs that do not rely on embedding approximations. To demonstrate their usefulness, we compare two publicly available models: ChatGPT-4 and TinyLlama, on a simple problem related to image processing. Application areas include understanding how questions should be asked to obtain useful programs; measuring how consistently a given large language model answers; and comparing the different large language models as a programming assistant. Finally, we speculate that our approach may in the future give new insights into the structure of programming languages.

📄 PDF Abstract BibTeX arXiv:2407.04854

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModellingLarge Language ModelTopological Data Analysis

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 제목 키워드 기반

Learning Significant Persistent Homology Features for 3D Shape Understanding

2026-02-15 · Prachi Kudeshia, Jiju Poovvancheri arxiv

Geometry and topology constitute complementary descriptors of three-dimensional shape, yet existing benchmark datasets primarily capture geometric information while neglecting topological structure. This work addresses t…

Point Cloud Classification

Topology Applied to Machine Learning: From Global to Local

2021-03-10 · Henry Adams, Michael Moy

Through the use of examples, we explain one way in which applied topology has evolved since the birth of persistent homology in the early 2000s. The first applications of topology to data emphasized the global shape of a…

BIG-bench Machine LearningSurvey

Approximating Persistent Homology for Large Datasets

2022-04-19 · Yueqi Cao, Anthea Monod

Persistent homology is an important methodology from topological data analysis which adapts theory from algebraic topology to data settings and has been successfully implemented in many applications. It produces a statis…

Topological Data Analysisvalid

Fruit flies and moduli: interactions between biology and mathematics

2015-08-21

Possibilities for using geometry and topology to analyze statistical problems in biology raise a host of novel questions in geometry, probability, algebra, and combinatorics that demonstrate the power of biology to influ…

How high is `high'? Rethinking the roles of dimensionality in topological data analysis and manifold learning

2025-05-22 · Hannah Sansford, Nick Whiteley, Patrick Rubin-Delanchy

We present a generalised Hanson-Wright inequality and use it to establish new statistical insights into the geometry of data point-clouds. In the setting of a general random function model of data, we clarify the roles p…

Topological Data Analysis