A fifth of an AI defense kept most of its protection, too close to call at 80%

Keeping only a selected fifth of an AI defense retained 80.7% of its protection, but the registered test could place that neither above nor below its 80% threshold. Removing that part still left at least half of the protection, and whether keeping only that part has a smaller side effect on source checking than turning the whole defense down to comparable protection remains unresolved.

By Kazuki Nakayashiki

6 min read

In short

  • A fifth of the defense kept most of its protection. The selected part kept 80.7% of measured protection, but the registered test could place that neither above nor below 80%.
  • The rest still protects. With the selected part removed, the adapter retained 64.0% of protection, enough to show it kept at least half.
  • A better trade-off is not shown. Keeping the selected part was not shown to beat the defense's scaling knob at comparable protection. The memory test measures a first source request, not the outcome of a later action.

An AI assistant reading a document has to keep the user's instructions apart from instructions planted inside the document. A defense against these prompt injections can help it ignore the planted text. But changing how a model follows instructions can also change how it uses legitimate directions, including a note telling it which source to check before acting.

We studied Meta-SecAlign-8B, a trained add-on to Llama-3.1-8B-Instruct. This add-on, called a LoRA adapter, changes the model through an update to its weights. It comes with a scaling knob that adjusts the update's strength. We asked whether keeping only part of that update could preserve protection while reducing its effect on source checking.

More protection changes how a trusted memory directs checking

We tested source checking in 243 families of constructed memory scenarios, and protection on injected tasks from the SEP benchmark. Every number here is an aggregate. In the memory task, an assistant inherits short notes linked to source records and may request one record before acting. A direction in its trusted memory names the record to check first, either through a criterion or through that same criterion followed by the record's identifier.

The full defense left a smaller identifier effect: 6.6 percentage points, against 20.4 without the adapter (Figure 1). That shrinkage came from both directions. With the identifier included, the defended assistant requested the target less often. With the criterion alone, it requested the target more often. Turning the knob down trades some protection for more of the identifier's extra effect on checking.

Figure 1

The identifier adds less to checking under the full defense

Bars show how much adding the target's identifier changes the chance that it is requested first. Each bar subtracts the criterion-only rate from the criterion-plus-identifier rate; the table gives both rates.Source: Section 2; supplementary knob results.
Show the numbers
Model conditionCriterion aloneCriterion plus identifierIdentifier effect
No adapter13.1%33.5%20.4 percentage points
Full adapter20.2%26.8%6.6 percentage points

Alone, the selected part kept most of the protection, too close to call

We first compared 19 broad edits of the adapter, keeping or removing groups of projections. None was shown to beat the knob. After seeing the results, we noticed that the five edits with low attack success all kept the same MLP projections. These are transformations inside the model's feed-forward blocks, here those of layers 8-15; we call them the selected part. Together they account for 20.1% of the adapter's parameters. Each of those five edits also kept projections outside that group, so we tested the selected part by itself. All edits kept their selected updates at the trained strength and set the other updates to zero.

We then registered a direct test of that part on 3,000 fresh SEP items. The decision rule was fixed before these items were tested, after we had seen the earlier results. Keeping only the selected part left 16.3% attack success, compared with 2.9% for the full adapter and 72.5% without it.

That edit kept 80.7% of the protection the adapter adds. The registered test could place the share neither above nor below the 80% threshold (Figure 2). Its reported 95% interval spans 78.9% to 82.5%.

Figure 2

The selected part straddles its threshold; the rest still keeps at least half

Dots show the share of protection retained relative to the full adapter; whiskers are the reported 95% descriptive intervals. The grey dot marks the selected part's registered threshold. The removal test has its own threshold, shown in the table.Source: Section 4 and Figure 1(a) of the paper.
Show the numbers
Adapter editProtection retained95% intervalRegistered test
Selected part only80.7%78.9% to 82.5%80% threshold: unresolved
Selected part removed64.0%61.9% to 66.2%50% threshold: keeps at least half

Removing the selected part gave a clearer answer about what remains. This was a separate registered secondary test, with its threshold set at half of the protection. The rest of the adapter retained 64.0%, and the test showed it kept at least half. These shares are not slices of a whole to add together. They describe different model edits, each tested on its own; the effect of a part alone differs from its effect inside the complete adapter.

The selected part had lower attack success than 42 of 43 tested alternatives

For each of those 42, the paired tests showed the difference. The exception was an overlapping window of the same MLP projections, shifted earlier (Figure 3). It covers layers 4-11 and shares four layers with the selected part. We had registered tests in the selected part's favor only, so there was no registered reverse test for that earlier window. Its observed attack success was lower: 10.0% against 16.3%.

Four of the others were the same MLP projections in other eight-layer windows. The window of layers 12-19, which shares the selected part's other four layers, kept 11.3% of the protection, and layers 0-7 kept 28.4%; layers 16-23 and 24-31 kept none (0.0% and −1.7%). The rest used randomly chosen projections matched for parameter count and update size, or complete MLPs from eight randomly chosen layers. Those comparisons hold different properties close to the selected part: how much of the adapter is kept, or how its projections are grouped. Neither family matches both grouping and update size at once.

Figure 3

An earlier, overlapping window has lower observed attack success

Shorter bars mean fewer tasks where an injection succeeds, on the same fresh SEP items. The earlier window was the alternative the selected part did not beat. Its lower observed rate is descriptive; no test in its favor was registered.Source: Section 4; supplementary protection and paired-test results.
Show the numbers
Adapter editAttack successProtection retained
Full adapter2.9%100.0%
MLPs of layers 4-11 only10.0%89.8%
MLPs of layers 8-15 only16.3%80.7%

Against turning the knob down, the gain is too uncertain to call

The selected part gives up some protection, so we compared its identifier effect with the best the knob could retain at equal or better protection, interpolating between its measured settings. At that protection level, the knob's effect was 13.9 percentage points and the selected part's was 15.8. The estimated gain was 1.9 points (Figure 4).

Before running this test, we chose a gain of 5 points as worth acting on. The registered bounds allow both no gain and the chosen gain: they span −0.4 to 6.1 points.

Figure 4

The bounds allow both no gain and the gain chosen in advance

The blue dot is the estimated gain over the best knob setting at equal or better protection. Its line joins the registered lower and upper bounds, which use different one-sided error levels shown in the table. The grey dot is the gain chosen in advance as worth acting on.Source: Section 5 and Figure 1(b) of the paper.
Show the numbers
QuantityPercentage pointsHow to read it
Estimated gain1.915.8 for the selected part minus 13.9 for the knob = 1.9
Lower bound−0.42.5% one-sided error level
Upper bound6.11.25% one-sided error level
Gain chosen in advance5Margin fixed before the test

The gain also mixes two changes: 1.2 points came from more target requests with the identifier, and 0.7 from fewer with the criterion alone. Before calling this an improvement, the registered rule also required more target requests with the identifier and no large drop with the criterion alone, compared with the full adapter. Both checks remained uncertain. An assistant can increase the gap by checking less often when its only guide is the criterion.

What this study does not show

  • One adapter on one model. The result concerns this released update at its trained strength. Keeping other parts, editing individual neurons or changing a different defense could behave differently. General task performance of the selected part remains unmeasured.
  • Protection is measured within a response limit. Each task faces four fixed, non-adaptive attacks, and responses stop at 512 tokens. A telltale word appearing later is missed, and the adapter changes how often responses hit that cap.
  • The memory task records a first request. These are constructed scenarios with a small lookup budget. Empty and invalid answers count as misses. We did not measure the later decision or the outcome of the agent's task.
  • Fresh attack items, reused memory scenarios. The protection test used fresh items; the memory comparison reused earlier families and the knob's earlier measurement. Only the full adapter was measured again alongside the new edits. The comparison assumes stability across runs and independence between selecting the part and its new memory outcomes.

The paper

The MLPs of Layers 8-15 of Meta-SecAlign-8B and Its Scaling Knob: An Unresolved Registered Test

Kazuki Nakayashiki · October 2026 · doi:10.5281/zenodo.23506228

Cite
@misc{nakayashiki2026protectivecore,
  title  = {The MLPs of Layers 8-15 of Meta-SecAlign-8B and Its Scaling Knob: An Unresolved Registered Test},
  author = {Nakayashiki, Kazuki},
  year   = {2026},
  doi    = {10.5281/zenodo.23506228},
  url    = {https://doi.org/10.5281/zenodo.23506228}
}

This is a plain-language summary of the paper above. More studies are on the Glasp Research page. Glasp is a social web highlighter: see how it works.