Skip to content

AURA: Mitigating Subspace Interference Between LLM Reasoning and Safety Alignment with Orthogonal AdaptationSafe Context Switching for Agents in the Wild: Mitigating Subspace Interference via Orthogonal Adaptation

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.05219· Akash Das, Ishan Roy·Indexed by this site · 2026-10-06· Originally publishedAlignment

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

AURA mitigates sequential subspace interference; in Table 3, TruthfulQA penalty -23.3%, recovery +23.0% (model not specified).

Threat modelModular agents hot-swap PEFT adapters on a shared frozen backbone and retain the KV cache. High-norm residuals from previous tasks persist, which the authors call Shadow Mimicry. The paper does not specify the knowledge level of external attackers; Appendix F frames jailbreaks as obedience subspaces covering refusal subspaces.

Questions
When modular agents share the residual stream and hot-swap adapters, high-norm states from previous tasks leak into the subsequent task. The authors believe this splits reasoning and safety priors and causes interference penalties on alignment benchmarks.
Methods
In sequential LoRA training, AURA uses the Frobenius overlap between the current write matrix and the already-frozen subspace as a penalty, pushing new tasks toward the null space of previous tasks. Previous adapters are frozen, and only the current low-rank parameters are updated.
Experiments and results
On Chain Alpha, Llama-3-8B's AURA Fcos is 0.991, Qwen-2.5-14B is 0.976 (Table 1). Table 3's TruthfulQA penalty is -23.3%, recovery +23.0%, model not specified.
Limitations and future work
Appendix J states that the null space has an upper bound, with an example of Nmax around 80, and the regularization overhead grows linearly with the number of historical tasks. AURA only preserves existing alignment and does not fill gaps in the base model's semantics. Table 3 and the jailbreak figure do not specify the model; EWC and O-LoRA have no numerical values.
Experimental setupQwen-3-14B、Qwen-2.5-14B-Instruct et al. · GSM8K、IFEval et al. · Interference Penalty、Perplexity Spike et al.
Evaluated models
Qwen-3-14BQwen-2.5-14B-InstructLlama-3-8B-InstructMistral-v0.3-7B
Benchmarks
GSM8KIFEvalTruthfulQAXSumSQuAD v2.0MBPPHellaSwag
Metrics
Interference PenaltyPerplexity SpikeKL DivergenceCosine FidelityRecoveryASR
AI summaryThe study reveals a "subspace interference" phenomenon in large language models: standard fine-tuning on logical tasks such as multi-step math and code generation imposes a 23.3% interference penalty on alignment benchmarks, weakening the model's safety priors, and existing adaptation methods struggle to capture this "reasoning drift." To address this, the authors propose a spectral regularization framework, AURA (Adaptive Unique Residual Allocation), which enforces spectral independence between reasoning and safety by estimating the null space of the alignment manifold and constraining reasoning updates to its orthogonal complement. Experiments show that AURA recovers 23.0% of the lost performance while maintaining a cosine fidelity greater than 0.98 to the safety state.

The study reveals a "subspace interference" phenomenon in large language models: standard fine-tuning on logical tasks such as multi-step math and code generation imposes a 23.3% interference penalty on alignment benchmarks, weakening the model's safety priors, and existing adaptation methods struggle to capture this "reasoning drift." To address this, the authors propose a spectral regularization framework, AURA (Adaptive Unique Residual Allocation), which enforces spectral independence between reasoning and safety by estimating the null space of the alignment manifold and constraining reasoning updates to its orthogonal complement. Experiments show that AURA recovers 23.0% of the lost performance while maintaining a cosine fidelity greater than 0.98 to the safety state.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Sequential tasks collide in the shared residual stream; AURA writes new tasks into the null space of existing subspaces.

    During sequential switching, the high-variance residuals needed for reasoning and safety constraints collide geometrically in the shared residual stream.

    • Scenario: The authors believe LLMs are moving toward modular agents: hot-swapping PEFT adapters on a frozen backbone and retaining the KV cache to reduce latency. The residual stream is a shared channel; high-norm features from previous tasks do not disappear when adapters are replaced.
    • Existing limitations: Ordinary fine-tuning only minimizes task loss and does not constrain the subspace where the solution lies. The authors claim that logical task gradients are almost never orthogonal to safety objectives in practice. Clearing the KV cache loses context and causes recomputation; prompts cannot block high-norm internal activations.
    • Core observation: The authors call this Sequential Subspace Interference, and the activation hygiene failure Shadow Mimicry, rather than catastrophic forgetting where weights are overwritten. The abstract states that logical fine-tuning causes a -23.3% Interference Penalty (Chain α in Table 3, model unspecified).
    • This paper's approach: Proposes AURA (Adaptive Unique Residual Allocation). During training, it restricts the write updates of new tasks to the orthogonal complement of existing subspaces, to separate reasoning expression from safety constraints.
    • Threat model:
      • Goal: The later task is not overridden by previous residuals. The example in Figure 1 is that after switching from safety analysis to external liaison, the embargo is still biased by technical residuals.
      • Knowledge: The paper does not specify whether external attackers are white-box, black-box, or no-box. The main setting is sequential task switching during deployment.
      • Capability: Multiple lightweight adapters share a frozen backbone and persistent KV cache. The authors claim that clearing the cache destroys context.
      • Victim system: The high-frequency modular agent in the introduction; the contaminated component is the shared residual stream, not mutually independent adapter weights.
  2. What related research exists?

    Related work involves PEFT, weight merging, and continual learning; the authors move the orthogonality constraint to the residual stream.

    The authors position their work in terms of adapter fine-tuning, weight geometry, and continual learning, and shift the constrained object from weights to the residual stream.

    PEFT and intrinsics

    • LoRA (Hu et al., 2022): Task updates lie in a low intrinsic dimension; swapping lightweight weights on a frozen backbone changes tasks. The authors claim that subsequent adapters often treat each task as an isolated optimization and do not handle interference during dynamic interaction.

    Adapter composition and weight geometry

    • Mixing and vector editing: AdapterFusion (Pfeiffer et al., 2020) learns how to mix adapter outputs. Task Arithmetic (Ilharco et al., 2023) and Ties-Merging (Yadav et al., 2023) directly modify weight vectors to handle interference.
    • Manifolds and chaining: StelLA (Li et al., 2025) constrains low-rank matrices to the Stiefel manifold. aLoRA (Greenewald et al., 2025) reuses the base cache to speed up intrinsic chaining. The authors claim aLoRA addresses chaining speed, not the representational hygiene of shared memory.

    Continual learning

    • EWC (Kirkpatrick et al., 2017): Uses Fisher information to constrain weight updates, targeting weight overwriting. The authors claim that failures on frozen backbones are activation interference in the KV cache, not weight forgetting.

    Baselines and benchmarks

    • Baselines: Naive LoRA, EWC, and O-LoRA (Wang et al., 2023). The paper states that O-LoRA orthogonalizes adapter weights, not residual stream activations.
    • Benchmarks: Chain Alpha is GSM8K→IFEval→TruthfulQA; Chain Beta is XSum→SQuAD v2.0; Chain Gamma is MBPP→HellaSwag.

    The authors change weight geometry to residual stream geometry, making the memory footprint of previous tasks invisible to the read heads of later tasks.

  3. How does the paper address this problem?

    AURA penalizes the Frobenius overlap between the current write matrix and previously frozen subspaces in sequential LoRA.

    AURA treats sequential switching as geometric resource allocation on the residual stream: the write subspace of a new task must leave the directions occupied by existing tasks.

    Geometry of low-rank adapters

    • The backbone weights are denoted W, and the LoRA update is ΔW=BA, with rank r much smaller than the output dimension. The authors do not define task geometry on A, but on the column space of the output projection B.
    • This subspace is Sτ=span(B), located on the Grassmann manifold G(r, d_out), representing the task's write scope on the residual stream.
    • Interference between task k and previous task j is represented by the principal angles Θ. The authors claim that unconstrained gradients drive the angles toward 0, causing different adapters to crowd into the low-curvature principal directions of the backbone, maximizing projection overlap.

    Orthogonality penalty

    • The authors aim to maximize the chordal distance beyond the task loss. This distance is written as r minus the squared Frobenius norm of the cross term, and requires the columns of B to be orthogonal.
    • The spectral penalty is LAURA=∑j=1k−1|Bk⊤ Bj|F2. Minimizing it pushes the principal angles toward π/2. The total loss is the cross-entropy plus λ times this penalty.
    • The gradient of the write matrix is the task gradient plus 2λ times the term where the projection of previous subspaces acts on B_k. The projection term penalizes updates that fall into the "shadow" of previous tasks. The method section and the appendix algorithm describe AURA as a training loss; the text on the right side of Figure 1 additionally mentions projecting residuals into the null space at inference, but does not provide the implementation or threshold for this step.

    Sequential freezing and hyperparameters

    • When training the k-th adapter, previous adapters still participate in the forward pass, but gradients are disabled, and only A_k and B_k are updated. After convergence, B_k is registered as a hard constraint for subsequent tasks. Appendix A provides pseudocode.
    • The constraint is applied to all linear layers in self-attention and MLP: Wq, Wk, Wv, Wo, Wgate, Wup, Wdown. The main text sets r=64, α=128, λ=0.5, optimizer AdamW, and cosine learning rate decay.
    • Appendix C also states global batch 128, micro-batch 4, gradient accumulation 32, peak learning rate 2×10^-4, warmup ratio 0.03, weight decay 0.01, sequence length 4096, and BF16. The projection is computed every step, and the subspace objective is written as Residual Stream (X).

    Pollution chains and evaluation

    • Chain-of-Pollution: first perform the source task, write high-norm features into the residual, do not clear internal state, then perform the target task requiring different capabilities.
    • Chain Alpha: multi-step math from GSM8K, then format constraints from IFEval, finally TruthfulQA. The authors hypothesize that earlier reasoning residuals harm later discrimination of safety prompts.
    • Chain Beta: XSum summarization followed by SQuAD v2.0 with unanswerable questions, to see whether the compression mode causes factual drift. Chain Gamma: MBPP code followed by HellaSwag, to see whether syntax leaks into commonsense completion.
    • Stability is measured by the perplexity increase P∆ over the switching window, the KL divergence between output distributions of clean and polluted histories, and the cosine fidelity Fcos of the last hidden states between the two. Functional scores are relative to Oracle, i.e., the target task's performance when the KV cache is cleared.

    Theoretical explanation given by the authors

    • Proposition in Appendix B states: if the gradients of two tasks come from the same pretraining distribution, the expected cosine similarity of the update subspaces is positive, because updates are biased toward the top singular vectors of the backbone. This is the authors' derivation, not an experimental measurement.
    • The authors describe the update as soft Gram-Schmidt, subtracting components parallel to previous subspaces. The complexity example uses r=32, L=2048, b=4, claiming a relative overhead of about 10^{-3}, training increase of less than 0.5%, and no additional inference latency. The experimental configuration is r=64, sequence length 4096; the paper does not report measured time differences on that configuration.
  4. What experiments did the paper conduct?

    In Table 1, AURA's KL is 0.45 to 0.58, Fcos up to 0.991.

    Experimental Setup

    • Models: §4.2 uses Qwen-3-14B, Qwen-2.5-14B-Instruct, Llama-3-8B-Instruct, Mistral-v0.3-7B. Table 1 writes Qwen-2.5-14B, Llama-3-8B. Appendix C.1 checkpoint strings are Qwen/Qwen3-14B, Qwen/Qwen2.5-14B, meta-llama/Meta-Llama-3-8B, mistralai/Mistral-7B-Instruct-v0.3. The paper does not explain the naming differences.
    • Data: The three chains are as in the previous question. Appendix Table 8 training counts are GSM8K 7,500, IFEval 5,000, TruthfulQA 3,200, MBPP 4,000, HellaSwag 8,000, XSum 10,000, SQuAD v2.0 12,000. The paper does not report evaluation counts.
    • Baselines: §4.4 defines Naive LoRA, EWC, O-LoRA. Tables only give Naive, AURA, and Oracle in the capability tables. EWC and O-LoRA have no values.
    • Metrics: P∆, DKL, Fcos; capability tables write Accuracy/F1, without scoring details for each benchmark, and no separate judge model is used.
    • Replication: Appendix C states quantitative results are averaged over 3 random seeds. Main experiments are calculated as (14+10+8) hours times 3 seeds, totaling about 120 GPU hours for the project.

    Main Results

    The table below is from Table 1, Chain Alpha (Reasoning→Safety). Model names follow that table.

    Swipe horizontally to read the table

    ModelNaive P∆AURA P∆Naive KLAURA KLFcos (Naive / AURA)
    Qwen-3-14B+14.2%+0.8%6.820.510.852 / 0.984
    Qwen-2.5-14B+15.1%+0.9%7.140.580.831 / 0.976
    Llama-3-8B+12.5%+0.7%5.920.450.884 / 0.991
    Mistral-v0.3-7B+13.8%+0.8%6.450.530.865 / 0.982
    • The authors state that Naive across the four architecture types shows PPL Spike above 12%, and merely increasing parameters cannot eliminate geometric interference. The four Naive P∆ values in the table are +12.5% to +15.1%.
    • The authors state that Qwen-3 has only marginal resistance relative to Qwen-2.5 (Naive KL 6.82 vs. 7.14), and both degrade under GSM8K contamination.
    • The authors state that AURA reduces the mean KL from 6.58 to 0.52. This table has no Oracle row. The authors write Fcos>0.98 in §5.3; in the table, Qwen-2.5-14B's AURA is 0.976, the rest are 0.984, 0.991, 0.982.

    Capability Stability

    Appendix D's Table 3 does not specify the model. Oracle clears the KV cache; both Naive and AURA carry the contaminated history.

    • Chain α / TruthfulQA: Oracle 58.4%, Naive 35.1%, penalty -23.3%, AURA 58.1%, recovery +23.0%. The authors state 58.1% is statistically indistinguishable from Oracle, but the paper gives no test.
    • Chain β / SQuAD v2.0: 64.2%, 41.2%, -23.0%, 63.8%, +22.6%. The authors state the penalty comes from hallucination drift: the model does not exit summarization mode and gives fabricated details rather than abstaining on factual questions.
    • Chain γ / HellaSwag: 62.1%, 38.5%, -23.6%, 61.9%, +23.4%. The authors state the penalty comes from syntactic leakage. The main text says detailed stability results for Beta and Gamma are in Appendix C with consistent trends; the attached Appendix C is implementation details, and the three-chain capability scores are in Table 3.

    Spectrum, Trajectory, and Confidence

    • Figure 3: Naive off-diagonal is 1.60, 1.29, 1.88, caption writes I≈1.29; AURA off-diagonal is 0.03 or 0.02, caption writes I<0.03。作者称无约束时安全与推理挤进同一子空间。未写模型。
    • Figure 4:轴为PC1、PC2,图例含Naive、AURA、Oracle与95% Confidence Region。作者称Naive沿PC2分散,AURA沿PC1位移但体积更小。坐标未以文字给出。
    • Figure 5:图内标注Pearson r=0.9846,正文与图注写r=0.98,并写y=x。作者称正交不降低推理置信度。未写模型与任务。

    长程、越狱与上下文

    • 五步链(Math→Code→Logic→Creative→Safety;Logic与Creative的数据集未说明):Figure 9中Naive在Task 5的PPL Spike为32.5%,AURA从1.2%到6.8%。作者称有限宽度不能无限正交。Figure 10中Naive的Task 1从98%降到68%;作者称AURA的Task 1在四次后续更新后为93%。未写模型。
    • 越狱:附录F用Direct、Roleplay、Code Injection、Base64四类模板,此处不复述原文。Figure 11标注Naive ASR为48%、58%、52%、45%,AURA为22%、32%、25%、21%。作者称约55%对约25%,并称约2倍。未写模型。作者称非零部分是基座语义弱点,几何本身修不了。
    • 上下文:Figure 12在32k token噪声下Naive准确率55%,AURA 88%;作者称AURA从98%降到88%。4k、8k、16k的读数未以文字给出。

    其他消融与分析

    • λ:Figure 6的可用区间为[0.3, 0.8];附录E.2.1写λ>2.0, main task retention drops from 99% to 62%. Experiments use λ=0.5.
    • Rank: The authors state Naive overlap rises with r, AURA is roughly flat; at r=256, AURA overlap is about 0.12. The caption states Naive summarization chain overlap is highest.
    • Modules: Figure 8, r=64, Chain α. Overlaps in the figure are labeled 1.45, 0.65, 0.02. The text writes stability about 41.2%, 52.8%, 58.1%, and states MLP is another +11.6% relative to Attention, All Linear relative to Oracle 58.4%.
    • Spectrum and convergence: The authors state in Figure 13 that Naive's 64-dimensional spectrum decays faster. In Figure 14, both losses plateau at about step 600; the authors state about 3.5 hours. No step comparison with EWC or A-GEM is given.
    • Qualitative: Appendix H uses three generation comparisons to illustrate optimization bias, syntactic rigidity, and hallucination drift, without reproducing prompts and outputs.
  5. What are some points that can be further explored?

    The authors state in Appendix J the null space upper bound, the historical length overhead, and that geometric constraints do not create alignment.

    Limitations and Future Directions Noted by the Authors

    • Null space capacity: Appendix J.1 states the null space is finite. The authors give the example of backbone dimension d=5120, r=64, where the upper bound on orthogonal tasks is Nmax≈d/r=80. The authors state that without subspace recycling or model expansion, AURA is not a solution for infinite-lifetime learning. This example is written for Llama-3-14B, not the Llama-3-8B used in experiments.
    • History length computation: Appendix J.1 states the regularization term complexity is O(t·d·r^2). The authors state it is negligible when t<10, but no longer negligible for very long runs, possibly requiring storing only the top-k principal components of history.
    • Does not create alignment: Appendix J.1 states AURA is a geometric firewall, not a semantic understanding module. If the base model does not understand the jailbreak, preserving the subspace will not fill the capability gap. The authors state it preserves alignment, not creates it.
    • Lock-in side effects: Appendix J.2 states the same mechanism can also lock harmful behavior or bias into the geometric core, making it harder for subsequent fine-tuning to remove. The authors require developers to carefully choose the constraints initially locked in.

    Experimental Coverage

    • The tested models are the four models from §4.2; Table 1 reports their P∆, KL, and Fcos on Chain Alpha.
    • Capability scores cover TruthfulQA, SQuAD v2.0, HellaSwag for Chains α/β/γ (Table 3). Appendix F additionally has the five-step chain, 32k context, and four jailbreak template types.
    • §4.4 defines EWC and O-LoRA, but tables give no values for either. Table 3 and Figures 3 through 12 do not specify the model.
    • Quantitative results are averaged over 3 seeds (Appendix C). The paper does not report evaluation counts, the judge model for each capability score, or judge-human agreement.
    • Main configuration is all linear layers, r=64, α=128, λ=0.5. Appendix E varies λ and rank, and compares Attention, MLP, and All Linear. The datasets for the Logic and Creative two-step chains are not specified in the paper.
  6. Summarize the main content of the paper

    AURA separates sequential tasks using subspace orthogonality; the authors claim it preserves inference capacity and maintains the safety state.

    AURA is a sequential LoRA regularizer for shared-backbone agents, used to separate the residual subspaces of previous and subsequent tasks.

    • Problem: When hot-swapping adapters and retaining the KV cache, high-norm features from previous tasks remain in the residual stream. The authors call this Shadow Mimicry and separate it from weight forgetting.
    • Approach: Tasks are written as the column space of B, and the Frobenius overlap between the current write matrix and the frozen subspace is added to the task loss. Previous adapters are frozen, and new tasks are pushed toward the null space. Main configuration r=64, α=128, λ=0.5.
    • Stability: On Chain Alpha in Table 1, AURA's KL is 0.45, 0.51, 0.53, 0.58, corresponding to Naive's 5.92, 6.82, 6.45, 7.14. Fcos is 0.991, 0.984, 0.982, 0.976; the last item belongs to Qwen-2.5-14B, below the >0.98 written in the main text.
    • Capability scores: Table 3 does not specify the model. On TruthfulQA, Naive's penalty relative to Oracle is -23.3%, AURA recovers +23.0% (58.1% vs. Oracle 58.4%). SQuAD v2.0 and HellaSwag penalties are -23.0% and -23.6%, recoveries +22.6% and +23.4%.
    • Boundary experiments: At the end of the five-step chain, Naive's PPL Spike is 32.5%, AURA's is 6.8% (Figure 9). Under four jailbreak template types, AURA's ASR is 22%, 32%, 25%, 21% (Figure 11, model not specified). The authors state geometric isolation cannot fill the gap when the base model does not understand the jailbreak.
    • Authors' conclusion: The authors state that scaling parameters alone does not resolve geometric conflict, and orthogonality constraints can write safety into protected regions without crowding out reasoning capacity. Appendix J also states the null space has an upper bound, and the mechanism can also lock in harmful constraints. The code is planned for release after acceptance.
Read originalarxiv.org