Previous-Token Prediction
A task that predicts the preceding token based on the current and subsequent tokens. It can be regarded as the time reversal of standard next-token prediction, requiring adjustment of attention direction or reversed-sequence training, and can be used for LLM inversion attacks.
Timeline (last 90 days)
A study discussed on Hacker News proposes an LLM inversion technique based on Previous-Token Prediction, attempting to reconstruct prompts from model outputs.
The key idea of this research is to transform the inversion problem into a prediction task, using preceding-token prediction to infer the input sequence.
Preceding-token prediction refers to the task of predicting the previous token based on the current and subsequent tokens, which can be viewed as the time-reversal of standard next-token prediction.
To implement preceding-token prediction, one usually needs to adjust the attention direction (e.g., use bidirectional or reverse attention), or reverse the sequence before training.
Preceding-token prediction can be used for inversion attacks because the model's conditional dependencies between tokens encode local structural information of the input sequence.
Compared with gradient-based inversion methods, preceding-token prediction is closer to the model's native prediction interface and is more operable when only output access is available.
The reconstruction accuracy of preceding-token prediction depends heavily on the model's strength in modeling the input sequence.
All Facts (7)
To implement preceding-token prediction, one usually needs to adjust the attention direction (e.g., use bidirectional or reverse attention), or reverse the sequence before training.
50%UnverifiedThe key idea of this research is to transform the inversion problem into a prediction task, using preceding-token prediction to infer the input sequence.
50%UnverifiedPreceding-token prediction refers to the task of predicting the previous token based on the current and subsequent tokens, which can be viewed as the time-reversal of standard next-token prediction.
50%UnverifiedThe reconstruction accuracy of preceding-token prediction depends heavily on the model's strength in modeling the input sequence.
50%UnverifiedPreceding-token prediction can be used for inversion attacks because the model's conditional dependencies between tokens encode local structural information of the input sequence.
50%UnverifiedCompared with gradient-based inversion methods, preceding-token prediction is closer to the model's native prediction interface and is more operable when only output access is available.
50%UnverifiedA study discussed on Hacker News proposes an LLM inversion technique based on Previous-Token Prediction, attempting to reconstruct prompts from model outputs.
50%