Skip to content

DOG-DPO: Geometric Dynamic Optimization for Safety AlignmentDOG-DPO:Dynamic Optimization in Geometry for Safety Alignment

arXiv· arXiv:2606.07678· Yi Nian, Tiankai Yang, Yudi Zhang, Qi Pan, Zelong Xu, Shenzhe Zhu, Qingqing Luan, Yue Huang, Xiangliang Zhang, Yue ZhaoUniversity of Southern California; Iowa State University; University of Wisconsin–Madison; UT Austin; University of Notre Dame; FigworkIndexed by this site · 18 days ago· Originally publishedDefenses

Quick read

Defenses

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

The authors propose the training-free data selection framework DOG-DPO, which performs coverage-based sample selection using the geometric directions of preference pairs; the authors claim that using only 11.6% of preference pairs approaches the safety performance of full DPO on two backbones.

Questions
Safety alignment relies on preference data, but existing data selection methods score each sample independently, compressing directional preference information into a scalar, and in multi-dataset settings cannot distinguish shared anchor directions from dataset-specific residual risks; moreover, training-signal-based methods are computationally expensive.
Methods
The authors propose DOG-DPO: it represents each preference pair as the difference vector between the embeddings of the preferred and rejected responses, uses the PCA basis of the largest dataset as the anchor and the residual subspaces of each dataset as supplements, and then greedily selects samples with a quality-weighted log-det diversity objective, all training-free and without a teacher model.
Experiments and results
On six safety benchmarks and two backbones, the authors report that DOG-D achieves the best robustness–utility trade-off among Tier-1/2 methods using only 11.6% of preference pairs; under LLaMA3.1-8B LoRA, AutoDAN-GPT ASR is 0.2%; XSTest and MMLU checks show that safety was not obtained by over-refusal or sacrificing general capability.
Limitations and future work
In the Limitations section, the authors note: at large scale, representation extraction and subset optimization still incur overhead; the method is validated on multi-dataset safety corpora, and whether it generalizes to other domains has not been systematically tested; validation across more model families, larger backbones, and non-safety preference domains is left for future work.
Experimental setupGemma-3-1B、LLaMA-3.2-3B et al. · AutoDAN-HGA、WildJailbreak et al. · ASR、Robustness (1−ASR) et al.
Evaluated models
Gemma-3-1BLLaMA-3.2-3BLLaMA-3.1-8B-Instruct
Benchmarks
AutoDAN-HGAWildJailbreakJailbreakBenchHarmBenchTruthfulQA-MC2ToxiGenXSTestMMLUAutoDAN-GPT
Metrics
ASRRobustness (1−ASR)UtilityOverallORRMMLU accuracy
AI summaryThe researchers propose a training-free data selection framework, DOG-DPO, which on six safety benchmarks and two model backbones recovers most of the safety gains of full-data training using only 11% of the preference data pairs, and achieves a good trade-off between utility and robustness. To address the problem that existing pipelines score preference pairs independently as scalars and lose directional preference information, this method represents each preference pair as a direction in the model's representation space, decomposes the preference geometry of multiple datasets into a global anchor subspace and dataset-specific residual subspaces, and then selects a non-redundant subset for DPO training by maximizing diversity coverage. The authors state that the framework requires no teacher model and no training at all, and is significantly faster than representative data selection baselines.

The researchers propose a training-free data selection framework, DOG-DPO, which on six safety benchmarks and two model backbones recovers most of the safety gains of full-data training using only 11% of the preference data pairs, and achieves a good trade-off between utility and robustness. To address the problem that existing pipelines score preference pairs independently as scalars and lose directional preference information, this method represents each preference pair as a direction in the model's representation space, decomposes the preference geometry of multiple datasets into a global anchor subspace and dataset-specific residual subspaces, and then selects a non-redundant subset for DPO training by maximizing diversity coverage. The authors state that the framework requires no teacher model and no training at all, and is significantly faster than representative data selection baselines.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    To address the loss of directional information and the neglect of multi-dataset structure in preference data selection, the authors propose the geometric training-free selection framework DOG-DPO.

    Core problem: how can preference data selection for safety alignment substantially compress data volume while preserving the directional alignment signal in preference pairs and the heterogeneous structure across multiple datasets.

    • Problem setting: The authors point out that mainstream alignment pipelines rely on large-scale human preference pairs for reward modeling or DPO, but collecting and training on large safety datasets is expensive, noisy, and inefficient; prior research suggests that only a small portion of alignment data is truly necessary, with substantial redundancy.
    • Shortcomings of existing methods: The authors argue that existing data selection methods (distribution diversity, training signal analysis, heuristic scoring) are sample-centric, scoring each preference pair independently and compressing information into a scalar, thereby losing two structural properties: preference signals are inherently directional; and under multiple datasets, preference data simultaneously contains a shared anchor geometry and dataset-specific residual variations. In addition, training-signal-based methods require additional forward/backward passes or reference DPO runs, which are computationally expensive and coupled with the training process.
    • Core observation: The authors represent each preference pair (x, y+, y−) as the difference vector between the embeddings of the preferred and rejected responses, yielding a directional alignment signal; the authors state that across heterogeneous sources these directions can be approximately decomposed into a shared anchor geometry and dataset-specific residual variations, so data selection becomes a geometric coverage problem.
    • Proposed approach: DOG-DPO, a training-free, teacher-free data selection framework: it constructs anchor/residual coordinates, selects a subset using a determinant-based diversity criterion, and then performs DPO training. The authors claim that using only 11.6% of the preference pairs can compete with training on the full data, and that it is 15–35× faster than representative selection baselines (Figure 3).
  2. What related research exists?

    The paper groups related work on preference data selection into three categories: distribution/representation, training signal, and scalar scoring, and uses KMeans, Laser, DEITA, RM-RS, SDPO, etc. as baselines.

    Distribution- and representation-driven methods

    • Yang et al. (2025b)'s diversity measure, Mirza et al. (2025)'s stratified sampling, QDIT (Bukharin et al., 2024)—model the dataset as a distribution in embedding space and select samples by maximizing diversity and coverage.
    • Sparse autoencoder methods (Yang et al., 2025a)—learn latent factors and prioritize underrepresented dimensions. The paper notes that such methods improve coverage in representation space but at a coarse granularity, and do not explicitly characterize alignment-related preference structure.

    Methods based on training signals

    • TAGCOS (Zhang et al., 2025)—clusters by gradient embeddings to preserve diversity in parameter update directions.
    • Principled data selection (Gao et al., 2025)—analyzes sample difficulty and filters unstable samples. The paper notes that such methods usually require additional training or repeated model updates to obtain reliable signals, are computationally expensive, and are coupled with the training process.

    Scalar scoring and heuristic filtering

    • DEITA (Liu et al., 2024a)—combines quality, complexity, and diversity signals, often relying on an external teacher model or LLM judge.
    • Less-Is-More (Liu et al., 2024b)—ranks by model-internal value signals such as difficulty or influence. The paper notes that such methods are simple and efficient but treat samples independently and ignore structural redundancy, making them prone to biased selection and dataset collapse.

    Baselines and benchmarks

    • Baseline methods: unaligned backbone (Base), Random, KMeans, Laser, DEITA, RM-RS, SDPO (requires running a reference DPO first), full-data DPO (Whole); divided into Tier 1/2/3 by compute requirements.
    • Evaluation benchmarks: AutoDAN-HGA, WildJailbreak, JailbreakBench, HarmBench, TruthfulQA-MC2, ToxiGen, supplemented by XSTest and MMLU; preference data come from five datasets—CValues-English, PKU-SafeRLHF, HH-RLHF, Egida-DPO, Safer-Instruct—259k pairs in total.

    Positioning of this paper: The authors state that, unlike the above work, this paper explicitly models safety preference data as structured geometric objects in representation space, decomposing them into anchor and residual components, and achieves both structural coverage and redundancy suppression within a unified framework.

  3. How does the paper address this problem?

    DOG-DPO represents preference pairs as direction vectors, constructs an anchor plus residual basis, greedily selects K samples using a quality-weighted log-det volume objective, and then performs DPO.

    Overall idea: treat each preference pair as a direction in representation space, use the PCA basis of the largest dataset as the anchor and the orthogonal residual bases of each dataset as supplements, and then perform greedy subset selection with a D-optimal-design-style log-det diversity objective, all without requiring a teacher LLM, reference DPO runs, or iterative validation.

    Problem setting and directional signal

    • A preference dataset consists of triples (x, y+, y−); DPO aligns the policy by minimizing Li = −log σ(mi), where mi is the preference margin.
    • Define the preference pair difference vector zi := hθ(xi, yi+) − hθ(xi, yi−), i.e., the difference between the last-layer hidden states (mean-pooled over response tokens) of the preferred and rejected responses.
    • Via a first-order local approximation, the margin can be written as mi ≈ w⊤ zi, where w is the local reward-sensitive direction; based on this, the authors treat zi as a reference-free directional proxy: aligned zi are redundant, while near-orthogonal zi provide complementary signal.

    Anchor and residual basis construction

    • The encoder h is a frozen pretrained backbone; for each dataset Dv, top-k PCA is performed on the centered preference vectors to obtain the basis Uv (k=50).
    • The anchor dataset is the one with the largest sample size, v* = arg max |Dv| (in practice CValues-English, 130,575 pairs), the anchor basis is B = Uv*, and r = k. The authors' stated reasons are statistical reliability (the estimation error of the principal subspace shrinks with sample size) and domain breadth (the largest dataset covers the broadest range of harm categories), and they state that an anchor rotation ablation shows the results are insensitive to this choice.
    • The residual basis of each dataset is Rv = (I − BB⊤)Uv, Tv = orth(Rv), capturing dataset-specific directions not explained by the anchor.

    Directional features and quality-weighted kernel

    • zi is projected onto the anchor and residual bases; the anchor block uses the raw squared coefficients, while the residual block is modulated by a Mahalanobis typicality weight wtyp (favoring representative residual signals over outliers), concatenated into the feature vector ϕi, with quality qi = ∥ϕi∥2.
    • On a candidate subset S, a quality-weighted RBF kernel LS is used, with Lij = qi qj Kij, where Kij captures directional redundancy and the diagonal entries inject sample signal strength.

    Selection objective and two variants

    • The objective is the log-determinant volume criterion J(S) = log det(LS + ε I), rewarding large and non-redundant preference signal; the greedy rule is F(S, i) = θqi + (1−θ)gi, where gi is the log-det gain and θ = 0.1.
    • DOG-D (main method) optimizes the full quality–diversity objective; DOG (ablation variant) removes the log-det term and performs Pareto-frontier selection only on the two scalar scores (sanchor, sres).
    • Proposition 1 gives a quality-energy upper bound and a λmin lower bound for det(LS): the authors use this to explain that the greedy rule first improves the worst-covered directions through diversity (spanning phase), and then fills in high-quality samples to approach the quality-energy upper bound (filling phase).

    Pipeline and evaluation protocol

    • Pipeline (Algorithm 1): extract difference vectors → PCA per dataset → determine anchor and residual bases → compute directional features and quality scores → greedily select K samples via log-det → perform DPO on the selected subset.
    • The main experimental budget is K=30k (11.6% of the 259k pool), with an additional K=10k; the representation extractor defaults to the same frozen backbone as the downstream DPO model.
    • Success criteria: robustness is the average of 1−ASR across the attack benchmarks, utility is the average of TruthfulQA-MC2 and ToxiGen, and Overall is the mean of the two.
  4. What experiments did the paper conduct?

    Comparing 9 methods on two backbones and six benchmarks, the authors report that DOG-D achieves the best robustness–utility trade-off among Tier-1/2 with 11.6% of the data, and they conduct an 8B LoRA extension, over-refusal checks, and MMLU checks.

    Experimental setup

    • Models evaluated: Gemma-3-1B (google/gemma-3-1b-it) and LLaMA-3.2-3B (unsloth/Llama-3.2-3B-Instruct) with full-parameter DPO; LLaMA3.1-8B-Instruct with LoRA (r=16, α=32) extension.
    • Preference data: five datasets—CValues-English, PKU-SafeRLHF, HH-RLHF, Egida-DPO, Safer-Instruct—totaling 259k preference pairs; the main budget is K=30k (11.6%), with K=10k also tested.
    • Baselines: Base, Random, KMeans, Laser, DEITA, RM-RS, DOG (ablation), SDPO, Whole; Tier 3 (SDPO, Whole) requires full DPO training or uses the full data, and the authors treat them as upper-bound references rather than fair comparisons at equal compute.
    • Metrics: Robustness = mean of 1−ASR across four attack benchmarks (AutoDAN-HGA, WildJailbreak, JailbreakBench, HarmBench); Utility = mean of TruthfulQA-MC2 and ToxiGen; Overall is the mean of the two.
    • Evaluation method: HarmBench reports ASR under both keyword and GPT judging; XSTest uses a GPT-4o-mini judge, with partial refusals counted as 0.5; the paper does not specify the exact model version used for GPT judging (other than XSTest).
    • Training configuration: DPO β=0.1, 3 epochs, effective batch 64, 1,408 steps at K=30k, seed 42, 4×A800-80GB (Table 8); the paper does not report multiple repetitions or variance.

    Main results

    According to Table 1 (R=Robustness, U=Utility; Tier 3 is an upper-bound reference):

    Swipe horizontally to read the table

    MethodGemma 10k R/UGemma 30k R/ULLaMA 10k R/ULLaMA 30k R/U
    Base0.6155/0.4104same as left0.7460/0.5245same as left
    Random0.6788/0.42750.6920/0.43500.8095/0.53800.8113/0.5405
    KMeans0.7130/0.44850.7485/0.48650.9071/0.55150.8983/0.5695
    Laser0.7320/0.46050.7650/0.45550.8965/0.56300.8600/0.5630
    DEITA0.6765/0.41440.6765/0.43470.8026/0.54380.8286/0.5464
    RM-RS0.6745/0.43550.7165/0.45950.8560/0.54850.9603/0.5590
    DOG‡0.7270/0.43800.7690/0.46200.9083/0.55700.9608/0.5720
    DOG-D0.7650/0.45800.7725/0.47100.9563/0.55800.9657/0.5760
    SDPO†0.7438/0.55650.7888/0.56250.9358/0.55650.9163/0.5625
    Whole†0.7438/0.4589same as left0.9768/0.6025same as left
    • The authors claim that DOG-D achieves the highest aggregate robustness among Tier-1/2 on both backbones and both budgets, and the best Tier-2 utility at 30k.
    • Exceptions: on Gemma3-1B at 10k, Laser's utility is slightly higher than DOG-D (0.4605 vs. 0.4580), but its robustness is lower (0.7320 vs. 0.7650); on LLaMA at 30k, RM-RS's robustness (0.9603) is close to DOG-D.
    • Gap to Tier-3: on LLaMA at 30k, Whole's R/U is 0.9768/0.6025, higher than DOG-D, with the gap concentrated in TruthfulQA-MC2 (0.5890 vs. 0.6380); SDPO leads on individual robustness metrics (LLaMA 10k WildJailbreak ASR 0.1650 vs. 0.1150; note that these values are in ASR terms, and the authors' original text makes this comparison).

    8B LoRA extension (Table 2)

    • What was tested: LLaMA3.1-8B-Instruct + LoRA, K=30k, reporting ASR (×100) for AutoDAN-GPT, WildJailbreak, HarmBench, and XSTEST.
    • Results: DOG-D's AutoDAN-GPT ASR is 0.2 (Base 81.7, next-best Laser 2.3), HB-GPT is 0.0, XSTEST-ASR 5.2 (tied with Laser); SDPO's ASR on the four attacks is near zero (0.0/0.0/0.0/11.7).
    • Authors' interpretation: The authors claim that the diversity selection signal transfers across model scales and adapter fine-tuning; they also note that SDPO over-refuses 39% of benign WildJailbreak prompts, whereas Tier-1/2 pre-selection methods do not exhibit this phenomenon.

    Over-refusal and general capability checks (Appendix F)

    • XSTest over-refusal rate (Table 4, K=30k): On LLaMA-3.2-3B, DOG-D's ORR is 15.71%, roughly on par with KMeans (15.69%) and Laser (16.12%), and lower than Whole (16.33%); on Gemma-3-1B, DOG-D is 22.27%, lower than all other DPO-trained methods (SDPO 26.87, Whole 25.00, Random 24.40).
    • 5-shot MMLU (Table 5, K=30k): DOG-D is within ±0.3 percentage points of Base, KMeans, SDPO, and Whole on both backbones (e.g., LLaMA-3.2-3B: Base 0.6071/0.6055, DOG-D 0.6080/0.6050).
    • MMLU under 8B LoRA (Table 6): All pre-selection methods drop by about 1 percentage point relative to Base (DOG-D −0.92 pp, Laser −0.93 pp); the authors state this is a common phenomenon of LoRA-DPO at this rank and not specific to DOG-D.

    Other ablations and analyses

    • Diversity term ablation: On LLaMA-3.2-3B at K=30k, the gap between DOG and DOG-D is HB-kw 0.235 vs. 0.090 and AutoDAN 0.037 vs. 0.027; the authors state this shows that structured features alone are insufficient and that directional redundancy must be explicitly suppressed.
    • Anchor rotation (Figure 5, LLaMA-3.2-3B, K=10k): The three anchors CVALUES, PKU_SAFE_RLHF, and HH_HARMLESS_BASE differ by within 1.5 percentage points on the four safety metrics, with WJ-asr going from 0.115 to 0.130; the authors state the differences are within seed noise.
    • Quality weight θ (Figure 6): θ ∈ {0, 0.1, 0.5, 1.0}; θ=0.1 improves HarmBench-kw by 22% and HarmBench-GPT by 50% at K=30k; at θ=1.0, WJ rises from 0.105 to 0.255 and AutoDAN-GPT from 0.029 to 0.214.
    • Runtime (Figure 3, Table 9): The authors claim the selection stage is 15–35× faster than judge-based and gradient-based baselines; end-to-end (extraction + selection + 30k DPO) takes about 61 minutes (Gemma)/114 minutes (LLaMA), a speedup of about 6.4×/6.8× relative to full 259k DPO.
    • Dynamic behavior (Figure 4): The authors claim that DOG-D continues to select geometrically complementary samples throughout the ranking sweep, with log det staying near zero, whereas DOG saturates after covering the Pareto frontier and log det decreases.
  5. What are some points that can be further explored?

    The authors list three limitations: large-scale overhead, unverified domain applicability, and insufficient validation across model families; the experiments cover two full-parameter backbones plus one 8B LoRA setting.

    Limitations and future directions noted by the authors

    • Large-scale overhead (Section 5 Limitations): The authors note that DOG-DPO still requires representation extraction and subset optimization over a candidate pool, which may become expensive at very large scales.
    • Domain applicability (Section 5): The method was designed and validated on multi-dataset safety corpora, in which preferred and refusal responses are usually clearly distinguishable; whether the same geometric method is effective in other domains has not been systematically tested.
    • Broader validation left for future work (Section 5): Evaluation focuses mainly on safety alignment benchmarks; the LLaMA-3.1-8B LoRA extension provides only preliminary evidence, and validation across more model families, larger backbones, and non-safety preference domains is future work.

    Scope of experimental coverage

    • The models tested are Gemma-3-1B, LLaMA-3.2-3B (full-parameter DPO), and LLaMA3.1-8B-Instruct (LoRA, r=16), three in total (Sections 3.1, 3.3).
    • Preference data come from five safety datasets, 259k pairs in total; selection budgets are K=10k and K=30k (Section 3.1).
    • Evaluation benchmarks include four attack benchmarks (AutoDAN-HGA, WildJailbreak, JailbreakBench, HarmBench), two utility benchmarks (TruthfulQA-MC2, ToxiGen), supplemented by XSTest (250 safety prompts) and 5-shot MMLU (57 subjects, 14,042 questions) (Section 3.1, Appendix F).
    • The comparison baselines are Random, KMeans, Laser, DEITA, RM-RS, SDPO, and Whole, seven in total, divided into Tier 1/2/3 by compute (Section 3.1).
    • The paper does not report means and variances over multiple repetitions (the seed is fixed at 42 in the training configuration, Table 8); apart from GPT-4o-mini for XSTest, the paper does not state the specific model used for GPT judging on benchmarks such as HarmBench.
  6. Summarize the main content of the paper

    DOG-DPO performs training-free data selection using the geometric directions of preference pairs; the authors claim that 11.6% of the data can approach the safety performance of full DPO without over-refusal.

    A paper on data-efficient safety alignment proposing a training-free data selection framework, DOG-DPO.

    • Problem addressed: the authors argue that existing preference data selection methods are sample-centric, compress directional preference information into scalars, and cannot distinguish shared anchor directions across multiple datasets from dataset-specific residual risk; methods based on training signals are also computationally expensive.
    • Method highlights: each preference pair is represented as the difference vector between the chosen and rejected response embeddings; the top-50 PCA basis of the largest dataset (CValues-English) serves as anchors, supplemented by orthogonal residual bases from each dataset; a quality-weighted log-det volume objective (θ=0.1) greedily selects K samples followed by DPO, with no teacher model and no reference DPO run throughout.
    • Main results: on Gemma-3-1B and LLaMA-3.2-3B, at K=30k (11.6% of the 259k pool), DOG-D has the highest aggregate robustness among Tier-1/2 methods (LLaMA 30k R=0.9657, Table 1); under LLaMA3.1-8B LoRA, AutoDAN-GPT ASR is 0.2% (Table 2).
    • Supplementary evidence: on XSTest, DOG-D's over-refusal rate is no higher than that of comparison methods (15.71% for LLaMA-3.2-3B, Table 4); MMLU differs from Base by within ±0.3 percentage points (Table 5); the authors report that the selection procedure is 15–35× faster than representative baselines and 6.4–6.8× faster end-to-end than DPO on the full dataset.
    • Authors' conclusion: the authors argue that effective alignment depends not only on data scale but also on exploiting the structured geometry of heterogeneous preference data; they also note that the method's applicability to other domains and larger models has not been systematically verified.

Related papers

Show 3 more papers
Read originalarxiv.org