Manuscript Offprint

arXiv:2610.22928

Multiple Turns, Short Horizons: Measuring Effective-Horizon Compression in Jailbreaks

Zhipeng Wei, Michael Lee, N. Benjamin Erichson

Abstract

Multi-turn jailbreaks use feedback from a victim large language model to adapt their queries over several turns. However, once an effective trajectory has been found, it is unclear how much of the earlier query history is still needed. In this work, we study this by removing early attacker queries and running the remaining queries again in a new conversation while regenerating the victim's responses. We define the effective horizon as the shortest remaining query sequence that recovers the same attack progress. Empirically, we find that roughly half of the original query sequence is sufficient on average to recover the same attack progress. We call this phenomenon effective-horizon compression. We show that this shorter history can recover the best point reached during an unsuccessful attack and provide a better starting point for continuing the attack. It also helps identify which earlier queries should receive less learning signal during attacker training, and downweighting those queries improves performance. We further find that short reward-propagation windows preserve calibrated defense performance close to full-trajectory returns. These results show that multi-turn attacks can contain more queries than are needed to recover the progress reached later in the interaction.

Correspondence: Zhipeng Wei @ zwei@icsi.berkeley.edu and N. Benjamin Erichson @erichson@icsi.berkeley.edu.

1 Introduction

Large language models (LLMs) are vulnerable to jailbreak attacks that can make them produce harmful responses despite safety alignment [28, 19, 4]. Multi-turn jailbreaks are especially effective because each turn gives the attacker information that can steer the queries that follow [17, 25, 16, 15]. However, this adaptivity can make the attack slow and costly, since the attacker may need several rounds of interaction before finding a query sequence that works.

Multi-turn attacks can be viewed as an adaptive search over possible attack trajectories. The attacker uses feedback from each interaction to decide how to proceed, often taking several steps before reaching an effective query sequence. However, once such a trajectory has been found, some of its earlier queries may no longer be needed. A shorter sequence of the later queries may be enough to recover the same attack progress. We therefore ask:

How much prior query history is needed to recover the same attack progress at a later turn?

To study this question, we remove earlier queries from successful attack trajectories and test whether the remaining queries can recover the same attack progress. As illustrated in Figure 1, we take the last few attacker queries from an existing trajectory and run them again in a new conversation. The attacker queries are kept exactly the same, while the victim generates new responses to them. If this shorter sequence reaches the same level of attack progress as the original trajectory, within a small tolerance, then the removed queries were not needed for the retained queries to remain effective. We define the effective horizon as the length of the shortest sequence that satisfies this condition.

We find that the effective horizon is often much shorter than the original trajectory generated by either X-Teaming [15] or TROJail [24]. Across our evaluated settings, roughly half of the original query sequence is sufficient on average to recover the same attack progress. We refer to this reduction as effective-horizon compression. An attack trajectory can therefore often be shortened substantially while remaining similarly effective. This suggests that the full sequence of queries used to produce an attack may contain more history than is ultimately needed for the attack to remain effective.

This differs from shortening an attack by rewriting it. M2S [7], for example, uses a multi-turn dialogue to construct a new single-turn jailbreak prompt. Such a prompt can incorporate information from the entire dialogue. We leave the original attacker queries unchanged and only remove queries that came before them. The effective horizon therefore measures how much of the original query sequence is still needed to recover the same attack progress.

Effective-horizon compression also gives us a way to make better use of unsuccessful attacks. A failed trajectory may have made substantial progress at an earlier turn before later queries moved the attack in a worse direction. Rather than continuing from the end of such a trajectory, we return to its highest-scoring turn. We then use the effective horizon to keep only the

Figure

Figure 1 A later point in a multi-turn attack may require less query history than the full trajectory that led to it. We measure this by removing the earliest attacker queries and running the remaining queries again in a new conversation, while the victim generates new responses. The effective horizon is the shortest remaining query sequence that recovers the same attack progress reached at the target turn. In this example, the first two queries can be removed and the later queries still recover the same progress.

shortest query history needed to recover the progress reached at that turn, and continue the attack from there. We call this Effective-Horizon Context Recovery (EH-CR). Across X-Teaming [15] and ActorBreaker [16], EH-CR improves attack continuation compared with both keeping the complete failed trajectory and returning to the highest-scoring turn with its full history.

Effective-horizon compression also suggests a different way to train multi-turn attackers. When an attack succeeds, the training algorithm must decide which of the queries in the trajectory should be reinforced for producing that outcome. TROJail [24] uses the final attack outcome as a learning signal for every attacker query in the trajectory. If the same attack progress can be recovered from only the last few queries, however, much earlier queries may not deserve the same learning signal. This does not mean that the earlier queries were useless, since they may have helped the attacker discover what to ask later. It does suggest that their contribution is different. We therefore introduce Effective-Horizon Credit Assignment (EH-CA), which keeps the full learning signal for queries within the effective horizon and reduces it for earlier queries. Across nine victim-model and benchmark pairs, this partial downweighting improves ASR@3 by 6.9 points on average over TROJail's original credit assignment.

We ask whether the same idea also matters for defense training. TurnGate [18] assigns a reward to each PASS or BLOCK decision, but trains an earlier decision using both its own reward and the rewards obtained at later turns. In the original method, this learning signal extends through the entire remaining conversation. We test whether such long-range reward propagation is actually necessary by limiting each decision to rewards from only a short number of subsequent turns. After calibrating the decision threshold, performance changes very little across these different reward windows. In particular, F1ϕ2F1_{\phi_2} has a standard deviation of only 0.16%, and even using only the reward from the current turn performs nearly the same as using rewards from the full remaining trajectory. This suggests that a long interaction does not necessarily require learning signals to propagate across the entire conversation. Together with our attacker-training results, it shows that the useful range of a training signal can be much shorter than the trajectory in which it was generated.

Our contributions are:

  • Later attack progress often requires only part of the query history. We introduce the effective horizon, the shortest sequence of later attacker queries that recovers the same attack progress as the original trajectory. Across X-Teaming and TROJail, roughly half of the original query sequence is sufficient on average. We call this effective-horizon compression (section 3).

  • Shorter histories can provide better starting points for continuing an attack. An unsuccessful attack may reach a promising point and then move away from it. EH-CR returns to the highest-scoring turn and keeps only the query history needed to recover that progress. This improves continuation over the failed trajectory and the full history leading to the same turn (section 4).

• Learning signals need not extend across the full interaction. Effective-Horizon Credit Assignment (EH-CA) reduces the learning signal given to queries before the effective horizon and improves attacker training across all nine evaluated settings. In defense training, calibrated performance also changes little when rewards are propagated over much shorter ranges. The useful range of a training signal can therefore be shorter than the trajectory that produced it (section 5).

References (27)