arXiv Machine Learning By Pirzada Suhail, Nagasai Saketh Naidu, Atanu R Sinha, Amit Sethi

PTP: Previous-Token Prediction based LLM Inversion for Near-Exact Prompt Reconstruction

Read the original on arXiv Machine Learning →

arXiv:2607. 29378v1 Announce Type: cross Abstract: Large language models (LLMs) generate text by auto-regressively sampling the next token.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv Computation and Language
Aug 31

Learning a Single Token to Replace Long System Prompts in LLMs

arXiv:2511.23271v2 Announce Type: replace Abstract: Long system prompts are widely used to steer Large Language Models (LLMs), but repeatedly processing them at inference time is inefficient and cons...

By Jiancheng Dong, Pengyue Jia, Jingyu Peng, Maolin Wang, Yuhao Wang, Lixin Su, Xin Sun, Shuaiqiang Wang, Dawei Yin, Xiangyu Zhao
Hugging Face Trending Papers
Jul 6

How Much is Left? LLMs Linearly Encode Their Remaining Output Length

Large language models generate one token at a time, yet their responses show remarkably consistent length structure: step-by-step solutions converge in predictable token counts, retrievals stop after a few sentences, retractions extend responses by measurable amounts. We ask whether the model carries an internal estimate of how much response remains.

arXiv AI
Oct 19

GPT, But Backwards: Exactly Inverting Language Model Outputs

The paper introduces Sparse One-hot Discrete Adam (SODA), a white‑box search algorithm that can reconstruct textual inputs from partial knowledge of a language model’s output logits. SODA can recover natural sequences of up to 17 tokens with no false positives, outperforming prior methods by a factor of four in exact‑match reconstruction. The authors demonstrate that input length and vocabulary size are more critical to inversion difficulty than model size, and provide proof‑of‑concept security applications, including recovering backdoor triggers and personally identifiable information from a poisoned LLM and synthetic user‑chatbot interactions.

By Adrians Skapars, Edoardo Manino, Youcheng Sun, Lucas C. Cordeiro
arXiv Machine Learning
Jul 7

How Much is Left? LLMs Linearly Encode Their Remaining Output Length

arXiv:2607. 05316v1 Announce Type: cross Abstract: Large language models generate one token at a time, yet their responses show remarkably consistent length structure: step-by-step solutions converge in predictable token counts, retrievals stop after a few sentences, retractions extend responses by measurable amounts.

By Mohamed Amine Merzouk, Dmitri Carpov, Mirko Bronzi, Damiano Fornasiere, Adam Oberman