Topology-Enhanced Alignment for Large Language Models: Trajectory Topology Loss and Topological Preference Optimization
On the map: LLM alignment / RLHF / preference optimisation → LLM preference optimization methods
Abstract (arXiv)
Alignment of large language models (LLMs) via SFT and RLHF/DPO typically ignores the global geometry of the representation space, relying instead on local token likelihoods or scalar scores. We view generation as tracing a semantic trajectory in hidden space and propose a topology-enhanced alignment framework that regularizes these trajectories using 0-dimensional persistent homology. First, for SFT, we introduce Trajectory Topology Loss (TTL). Treating prompt and gold-answer embeddings as a mixed point cloud, we use a 0D persistent homology algorithm to extract "prompt-answer bridges." TTL aligns the model's actual update direction with these topological bridges rather than arbitrary directions. Second, for DPO, we propose Topological Preference Optimization (TPO). TPO constructs topic-specific semantic preference vectors and aligns the improvement direction between rejected and chosen responses with these vectors in an intermediate hidden layer. We also introduce a dynamic weighting scheme to balance DPO and TPO losses. Evaluating on Qwen2.5-7B-Instruct using UltraChat and Anthropic HH-RLHF, our topology-enhanced objectives consistently outperform strong non-topological baselines (e.g., per-example, nearest-neighbor, random regularizers) on automatic preference metrics and LLM-judge evaluations, while maintaining or improving toxicity. Results show persistent homology and trajectory geometry offer a promising direction for controllable alignment.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in LLM preference optimization methods, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 19 of its 32 references that are in the map. First posted on arXiv 8 May 2026.
Builds on
19 of 32 references.
Closest ancestors · 1
Same direction, newest first
Other references · 18
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2020Learning to summarize from human feedbackcited by 2,588
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
- 2017Network Dissection: Quantifying Interpretability of Deep Visual Representationscited by 708
6 more
- 2015Persistence Images: A Stable Vector Representation of Persistent Homologycited by 236
- 2017Emergence of Invariance and Disentanglement in Deep Representationscited by 215
- 2017Deep Learning with Topological Signaturescited by 114
- 2018Neural Persistence: A Complexity Measure for Deep Neural Networks Using Algebraic Topologycited by 73
- 2020Neural Anisotropy Directionscited by 17
- 2023Topological Data Analysis for Neural Network Analysis: A Comprehensive Surveycited by 9
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Topological Alignment of Shared Vision-Language Embedding Space
- 2026Topology-Aware Layer Pruning for Large Vision-Language Models
- 2025DiffPO: Diffusion-styled Preference Optimization for Efficient Inference-Time Alignment of Large Language Models
- 2026Mechanistic Analysis of Alignment Algorithms in Language Models
- 2026Topology-Aware Representation Alignment for Semi-Supervised Vision-Language Learning
- 2026TDA-RC: Task-Driven Alignment for Knowledge-Based Reasoning Chains in Large Language Models
- 2026Inference-Aware Meta-Alignment of LLMs via Non-Linear GRPO
- 2025LifeAlign: Lifelong Alignment for Large Language Models with Memory-Augmented Focalized Preference Optimization