TRAM: Bridging Trust Regions and Sharpness Aware Minimization

Tom Sherborne, Naomi Saphra, Pradeep Dasigi, Hao Peng
2/12/2026

No official code found. Best implementation: tomsherborne/tram_optimizer (6 stars, Apache-2.0, last commit 2023-11-20).

Abstract

Sharpness-aware minimization (SAM) reports improving domain generalization by reducing the loss surface curvature in the parameter space. However, generalization during fine-tuning is often more dependent on the transferability of representations in the function space. Trust-region methods (TR) target this goal by regularizing representation curvature to reduce catastrophic forgetting of pre-trained task-agnostic information while adopting task-specific skills. We consider unifying these strategies for low curvature in both parameter space and function space to improve out-of-domain (OOD) generalization. We propose Trust Region Aware Minimization (TRAM), a SAM algorithm fine-tuning for low parameter sharpness and smooth, informative representations preserving pre-trained structure. TRAM uses a trust region bound to inform the SAM adversarial neighborhood, introducing an awareness of function curvature within optimization for flatter minima. We empirically validate TRAM in vision (cross-dataset adaptation) and text (OOD language modeling, zero-shot cross-lingual transfer) tasks where robust domain transfer and representation generality are critical. TRAM outperforms SAM- and TR-based optimization across all tasks, notably surpassing competing methods for hard transfer between anticorrelated domains. TRAM establishes a novel standard in fine-tuning for domain-generalizable models with minimal additional computation over previous sharpness-aware methods.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Trust Region Aware Minimization

60PythonOct 5, 20232 years agoApache-2.0

Cite this paper

@article{sherborne2026tram,
  title  = {TRAM: Bridging Trust Regions and Sharpness Aware Minimization},
  author = {Tom Sherborne and Naomi Saphra and Pradeep Dasigi and Hao Peng},
  year   = {2026},
  eprint = {2310.03646},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.03646},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.03646.svg)](https://codeofpaper.com/paper/2310.03646)

Discussion