CLAIFeb 11

Language Model Inversion through End-to-End Differentiation

arXiv:2602.11044v1h-index: 20
Originality Incremental advance
AI Analysis

This addresses the challenge of prompt engineering for users of language models, though it is incremental as it builds on existing gradient-based techniques.

The paper tackles the problem of inverting language models to find input prompts that produce a desired output sequence, proposing a gradient-based optimization method that treats LMs as functions on token distributions. The result shows reliable and efficient prompt optimization for lengths up to 80 with targets of length 20 across several white-box LMs.

Despite emerging research on Language Models (LM), few approaches analyse the invertibility of LMs. That is, given a LM and a desirable target output sequence of tokens, determining what input prompts would yield the target output remains an open problem. We formulate this problem as a classical gradient-based optimisation. First, we propose a simple algorithm to achieve end-to-end differentiability of a given (frozen) LM and then find optimised prompts via gradient descent. Our central insight is to view LMs as functions operating on sequences of distributions over tokens (rather than the traditional view as functions on sequences of tokens). Our experiments and ablations demonstrate that our DLM-powered inversion can reliably and efficiently optimise prompts of lengths $10$ and $80$ for targets of length $20$, for several white-box LMs (out-of-the-box).

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes