Skip to content
Sprint projectJul 28, 2025Waterloo, Canada

Dual-RG Alignment: Probing Safety Phase Transitions in Language Models

Anindita Maiti, Pranjal Ralegankar, Kuntal Pal · Team Schrödinger's Coders

Submitted to AI Safety x Physics Grand Challenge. Sprint projects are early-stage work by participants, not Apart Research publications.

Read the report

Report: Dual-RG Alignment: Probing Safety Phase Transitions in Language Models

Code (opens in new tab)
Share

Modern language models (LMs) often appear well-behaved until a tiny change, such a clever jailbreak prompt, a lightweight fine-tune, or a higher sampling temperature, suddenly causes them to ignore safety policies. In physics such ``abrupt flips'' are classic signs of a phase transition, often described in terms of {renormalization group (RG) flow}. We introduce a virtual RG-step, known as coarse-graining, on attention heads to predict the proximity of such tipping-point(s) for state-of-the-art LM architectures, without requiring massive training hours. The coarse-graining method systematically limits the amount of input details the attention heads get exposed to, thereby, gradually degrades the safety metrics and inference abilities. We show that these coarse-graining effects, independent and sometimes competing in nature to training-induced coarse-graining or pruning of model weights, induce smooth degradations to safety metrics of Gemma-2b-it, an indicator deep-rooted AI alignments.

Reviews

Judging this Sprint?

Review this project

Your public critique appears on this page without your name. Your private critique is not published; only the Apart team reads it. If you agree below, we share your review with grantmaking.ai (opens in new tab) and the Transformative AI Fund so strong projects can be funded.

Not shown on this page.

Shown on this page, without your name.

Only the Apart team reads this, and funders if you agree below.

Share my name publicly on grantmaking.ai *
Share my private critique with funders *

How rigorous is your physics methodology and how feasible is your approach? Is your theoretical framework sound and your empirical work well-designed? Can your proposed methods be implemented and validated?

How clearly does your work address important AI safety challenges? What is the potential impact on ensuring beneficial AI development? Does your approach offer meaningful insights for AI alignment research?

How novel and creative is your approach to bridging physics and AI safety? Do you introduce new theoretical connections or methodological innovations? What makes your work distinct from existing research?

  1. Interesting premise that removes long range interactions by shrinking the size of the context window an attention head can attend to. The project is small but ambitious enough for a hackathon, looking at training and inference with a small amount of theory from physics and some sanity checks on natural language examples. The choice of b as an experimental knob is clean, and the authors note that the critical value should also depend on other parameters (they name N &T, but should include the overall capacity across layers, etc.), and sketch follow-up work comparing weight-based RG with this 'context RG'.

    However, the framing as 'RG' (or even coarse graining)seems misguided, as masking attention removes long-range interactions rather than aggregating or filtering out fine ones. Moreover, these long-range interactions will be rebuilt when many layers are stacked together. The claim that this coarse graining leads to a metric for 'depth of alignment' (smoothness in the chosen order parameter) seems weak. Smooth degradation could also signal an insensitive metric, and the authors don't motivate the choice of this metric (which likely does not measure meaningful alignment). The phase transition narrative is also unsubstantiated, since no comparison to a model displaying non-analytic behavior was provided. Finally, checking the presence of the phase transition across models (universality) and normalizing so that every O(b) was shown relative to the full context ('UV complete') score, could have made the argument stronger. That said, with heavy tweaking and a better understanding of meaningful alignment metrics, follow-up work could be strong.

    Conflict of interest: I am familiar with the authors' prior work and have been thinking about similar ideas in the renormalization for AI safety program.

    Read full reviewShow less
  2. This approach resembles established techniques like attention pruning or LoRA, where modifying heads leads to performance drops. To test how the other metrics behave, I evaluated google/gemma-3-27b on GSM8K and mmlu ( I wrote own script, was not able to run gemma from repo provided) with Gemma under similar parameters show comparable smooth declines, suggesting observations may stem from general capability loss rather than safety-specific transitions—especially given sparse circuits across tokens (verifiable via Neuronpedia). The choice of sliding window (last n tokens) for coarse-graining feels a bit arbitrary without ablations comparing to alternatives (e.g., MLP replacements or random pruning): topics like this are quite well-studied: how does some masking of attention head affect model capabilities - a more natural thing would be to remove singular values from attention matrix and look at performance drop when removing first couple of directions, an even more interesting direction might be to explore general circuit sparsity Topics like head pruning are well-explored, reducing novelty, but the physics framing and real results make it a promising test for safety robustness. I agree—this could evolve into a diagnostic tool for monitoring alignment during scaling, perhaps by integrating sparsity analyses or broader benchmarks. Improvements: fix gemma code, compare to non-safety tasks for specificity, and derive the RG analogy more rigorously (e.g., why span b maps to coarse-graining scale). Discuss scalability to larger models and real-world impact, like detecting deceptive alignment. With the repo, reproducibility improves, boosting potential for publication or accelerator support. To summarise I think its a good work with reasonable results exploring an interesting question except that methodology for attention mask seems a little random to me and the physics analogy is not super natural.

    Read full reviewShow less
  3. The authors conjecture that in LLMs of fixed total size, the size b of the attention head’s receptive field could provide a useful scale along which to look for phase transitions. In particular, they conjecture that “R_refusal(b) - R_jailbreak(b)”, with R_refusal the refusal rate on harmless prompts and R_jailbreak the success rate on standard jailbreak prompts, could serve as a useful order parameter for alignment, with a spike in its derivative indicating that a model is close to catastrophic misalignment. They evaluate this order parameter across six window sizes on Gemma-2B-it and find that both it and its derivative vary smoothly. Hence, Gemma-2B-it is deeply aligned per their conjecture.

    This paper introduced a novel metric for alignment with a clear physics-inspired motivation. The proposal was accompanied by a clean implementation on an example model, and plans to generalize to more comprehensive tests were clearly laid out in the discussion. The quality of supporting experiments was on the strong side among the proposals that I rated. The work targets a core AI safety concern, that current models’ performance and safety metrics can suddenly degrade under small perturbations. However, the paper lacked an explanation of why the proposed order parameter should be the “right” RG scale to capture safety phase transitions among many continuous scales that one could imagine varying in a model’s architecture. Either a clear conceptual motivation for this point or empirical evidence that different behavior of the order parameter tracks qualitatively different behavior of underlying models could elevate this work from a weekend hackathon project to a genuinely promising seed for a full research project.

    Read full reviewShow less
  4. The idea that safety-relevant properties of an AI system could be described as a macroscopic order parameter and potentially exhibit phase transitions is interesting and may be a fruitful research direction. For future work, it may be rewarding to carefully consider the interpretation of the measured variables. In particular, it seemed unclear in this project whether the attention window b was supposed to represent a system coarse-graining scale, or an external variable (analogous to temperature or external magnetic field in physics).

Cite this project

@misc{maiti2025dualrg,
  title = {{Dual-RG Alignment: Probing Safety Phase Transitions in Language Models}},
  author = {Anindita Maiti and Pranjal Ralegankar and Kuntal Pal},
  year = {2025},
  month = jul,
  note = {Submitted to AI Safety x Physics Grand Challenge, an Apart Research Sprint},
  howpublished = {\url{https://apartresearch.com/sprints/projects/dualrg-alignment-probing-safety-phase-transitions-in-language-models-fu9i}},
  url = {https://apartresearch.com/sprints/projects/dualrg-alignment-probing-safety-phase-transitions-in-language-models-fu9i}
}

Build something like this at the next Sprint

AI Collusion Research Sprint · Oct 23 - 25, 2026