Reproduce “Efficient Refusal Ablation in LLM through Optimal Transport” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Geraldin Nanfack, Eugene Belilovsky, Elvis Dohmatob

Researchers at Concordia University and Mila introduced an optimal transport-based framework for efficiently circumventing Large Language Model safety mechanisms by transforming internal activation distributions. This method achieves higher attack success rates while preserving model utility and demonstrates that refusal behaviors are localized to specific network layers rather than being broadly distributed.

Key insights

  • Refusal mechanisms in LLMs appear to localize to a specific range of middle layers (approximately 40-60% of network depth), challenging assumptions of widely distributed safety features.
  • Optimal transport, by explicitly accounting for both mean and covariance structures, offers a more principled and effective approach to manipulating activation distributions than methods focusing solely on directional components.
  • Utilizing a small number of principal components (K=1 or K=2) for optimal transport effectively captures essential distributional differences while mitigating overfitting to noise in high-dimensional spaces.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.