DualOptim+: Bridging Shared and Decoupled Optimizer States for Better Machine Unlearning in Large Language Models

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Large Language Models · Depth: Expert, extended

Summary

DualOptim+ is a novel optimization framework designed to enhance machine unlearning in large language models (LLMs). It introduces a base state to capture common representations shared by forgetting and retaining objectives, alongside decoupled delta states that preserve objective-specific residuals. This architecture adaptively bridges shared and decoupled states based on directional gradient conflicts. The framework also offers DualOptim+ 8bit, a quantized variant that reduces memory overhead without performance compromise. Extensive experiments across fictitious and real-world unlearning, safety alignment, and multi-task learning tasks demonstrate DualOptim+'s consistent achievement of a superior trade-off between different objectives, outperforming baselines like Joint, Alternate, and DualOptim. For instance, DualOptim+ 8bit reduces memory to 33.68 GB/GPU from 39.04 GB/GPU for its 32-bit counterpart.

Key takeaway

For AI Scientists and ML Engineers tackling LLM unlearning or multi-objective optimization, DualOptim+ offers a robust solution to balance conflicting goals. You should implement DualOptim+ for a superior trade-off between knowledge erasure and model utility, especially with dynamic gradient conflicts. Its 8-bit quantized variant provides significant memory savings, making it practical for resource-constrained environments without sacrificing performance.

Key insights

DualOptim+ adaptively balances shared and decoupled optimizer states for superior LLM unlearning.

Principles

Method

DualOptim+ updates a base state with joint gradients and delta states with residuals (gradient minus base state). Parameters combine base and respective delta states. This adapts to gradient conflict.

In practice

Topics

Code references

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.