Hugging Face Trending Papers

LLMs program using Reusable and Composable Abstract Representations

arXiv AI
Sep 2

Predicting Program Exit Code with LLMs and Programming Language Semantics

The paper introduces Program Executability Prediction (PrEx), a task that asks large language models (LLMs) to determine whether a program is semantically valid or invalid and, if invalid, to identify the violated formal rule. To evaluate this, the authors create a dataset of systematically generated invalid programs derived from valid ones and test open‑source coding LLMs across different semantic formalisms, semantic shifts, and program splits (human‑written, LLM‑translated, fuzzer‑generated). Results show that LLMs rely more on pre‑training priors than on the provided semantics, performing poorly on modified semantics and with increasing program complexity.

By Lara Marinov, Aditya Thimmaiah, Jayanth Srinivasa, Junyi Jessy Li, Milos Gligoric
arXiv AI
Oct 31

Post-Training Large Language Models with LLMON

Large Language Models (LLMs) treat all context tokens uniformly, which creates prompt injection vulnerabilities and unreliable instruction execution. The paper introduces LLMON (LLM Object Notation), a post‑training framework that separates executable instructions from passive data and requires explicit identifier‑based execution. Using a 4.6 B‑token structured corpus and post‑training on Granite‑4.1 models, LLMON reduces indirect prompt‑injection success rates from 53–100 % to 0.02–5.6 % while maintaining general capabilities, and provides attention‑based interpretability metrics to diagnose failure modes.

By Basel Shbita, Michael Hind, Chad DeLuca, Nathan Fulton, Shubhi Asthana, Farhan Ahmed, Anisa Halimi, Yada Zhu, Mauro Martino, David Cox, Dan Gutfreund
arXiv AI
Sep 4

Compile by Training: Turning Natural-Language Specifications into Local Neural Functions

The paper introduces "compile by training," a method that converts natural-language specifications into reusable neural functions. By generating task-specific examples with teacher models at compile time, a small adapter is trained for a compact interpreter, eliminating the need for remote model calls during execution. The approach achieves 83.6% semantic accuracy on FuzzyBench-Hard, though it incurs a higher compile-time cost of about a minute, and is demonstrated in applications such as a multi-site website helper, a language-controlled 3D avatar, and a bidirectional English‑Claudish translator.

By Yuntian Deng, Pengyu Nie, Stuart Shieber
arXiv AI
Oct 16

LLMON: An LLM-native Markup Language to Leverage Structure and Semantics at the LLM Interface

The paper introduces LLMON, an LLM-native markup language designed to encode the structure and semantic metadata of textual inputs for large language models. By distinguishing components such as instructions and data within prompts, LLMON aims to reduce model confusion and mitigate security risks like prompt injection. The authors outline design requirements, present the language, and provide preliminary evidence that incorporating LLMON can improve model accuracy, safety, and security during training and inference.

By Michael Hind, Basel Shbita, Bo Wu, Farhan Ahmed, Chad DeLuca, Nathan Fulton, David Cox, Dan Gutfreund
arXiv AI
Sep 28

SLMFix: Leveraging Small Language Models for Domain Specific Language Error Fixing with Reinforcement Learning

SLMFix is a code‑generation pipeline that uses a small language model fine‑tuned with reinforcement learning to correct syntactic errors in programs produced by large language models for domain‑specific languages. The approach relies on interpreter feedback to guide the error‑fixing process. Experiments show that SLMFix improves validator pass rates by 40% on low‑resource programming languages and removes over 50% of syntactic errors on high‑resource DSLs, outperforming supervised fine‑tuning even for 7B models.

By David Jiahao Fu, Aryan Gupta, Aaron Councilman, Yu-Xiong Wang, Vikram Adve