paper-with-me

Papers

A Rose by Any Other Name Would Smell as Sweet: Categorical Homotopy Theory for Large Language Models

2025-08-07 · Sridhar Mahadevan arxiv

Natural language is replete with superficially different statements, such as `Charles Darwin wrote" and Charles Darwin is the author of", which carry the same meaning. Large language models (LLMs) should generate the same next-token probabilities in such cases, but usually do not. Empirical workarounds have been explored, such as using k-NN estimates of sentence similarity to produce smoothed estimates. In this paper, we tackle this problem more abstractly, introducing a categorical homotopy framework for LLMs. We introduce an LLM Markov category to represent probability distributions in language generated by an LLM, where the probability of a sentence, such as Charles Darwin wrote" is defined by an arrow in a Markov category. However, this approach runs into difficulties as language is full of equivalent rephrases, and each generates a non-isomorphic arrow in the LLM Markov category. To address this fundamental problem, we use categorical homotopy techniques to capture `weak equivalences" in an LLM Markov category. We present a detailed overview of application of categorical homotopy to LLMs, from higher algebraic K-theory to model categories, building on powerful theoretical results developed over the past half a century.

📄 PDF Abstract BibTeX arXiv:2508.10018

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

What's in an embedding? Would a rose by any embedding smell as sweet?

2024-06-11 · Venkat Venkatasubramanian

Large Language Models (LLMs) are often criticized for lacking true "understanding" and the ability to "reason" with their knowledge, being seen merely as autocomplete systems. We believe that this assessment might be mis…

Sniff AI: Is My 'Spicy' Your 'Spicy'? Exploring LLM's Perceptual Alignment with Human Smell Experiences

2024-11-11 · Shu Zhong, Zetao Zhou, Christopher Dawes, Giada Brianz 외

Aligning AI with human intent is important, yet perceptual alignment-how AI interprets what we see, hear, or smell-remains underexplored. This work focuses on olfaction, human smell experiences. We conducted a user study…

Empirical Analysis on Effectiveness of NLP Methods for Predicting Code Smell

2021-08-08 · Himanshu Gupta, Abhiram Anand Gulanikar, Lov Kumar, Lalita Bhanu Murthy Neti

A code smell is a surface indicator of an inherent problem in the system, most often due to deviation from standard coding practices on the developers part during the development phase. Studies observe that code smells m…

Feature Engineering

Code Smells in Machine Learning Systems

2022-03-02 · Jiri Gesi, SiQi Liu, Jiawei Li, Iftekhar Ahmed 외

As Deep learning (DL) systems continuously evolve and grow, assuring their quality becomes an important yet challenging task. Compared to non-DL systems, DL systems have more complex team compositions and heavier data de…

BIG-bench Machine Learning

Law Smells: Defining and Detecting Problematic Patterns in Legal Drafting

2021-10-15 · Corinna Coupette, Dirk Hartung, Janis Beckedorf, Maximilian Böther 외

Building on the computer science concept of code smells, we initiate the study of law smells, i.e., patterns in legal texts that pose threats to the comprehensibility and maintainability of the law. With five intuitive l…