Zhyper: Factorized Hypernetworks for Conditioned LLM Fine-Tuning

M. H. I. Abdalla, Zhipin Wang, Christian Frey, Steffen Eger, Josif Grabocka
10/22/2025
cs.CLcs.LG

No official code found. Best implementation: machinelearningnuremberg/Zhyper (1 star, Apache-2.0, last commit 2025-10-22).

Abstract

Large Language Model (LLM) conditioning refers to instructing an LLM to generate content in accordance with the norms and values of a specific culture, beliefs of a particular political orientation, or any desired text-specified semantic conditioning. Unfortunately, prompt engineering does not ensure that LLMs behave in accordance with a desired conditioning due to the inductive bias of the pre-training and alignment datasets. Prior works have focused on fine-tuning LLMs by directly conditioning the LoRA weights; however, such methods introduce a large number of parameters. As a remedy, we propose Zhyper, a parameter-efficient factorized hypernetwork framework that generates context-aware LoRA adapters from textual descriptions. Experiments on multiple benchmarks show that Zhyper achieves competitive performance with up to 26x fewer parameters than the state-of-the-art baselines. Furthermore, we extend Zhyper to cultural alignment, demonstrating improved generalization to out-of-domain settings and a better capturing of fine-grained contextual values.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Zhyper: Factorized Hypernetworks for Conditioned LLM Fine-Tuning

10Jinja, ShellJul 1, 202512 months agoApache-2.0

Similar Papers

Cite this paper

@article{abdalla2025zhyper,
  title  = {Zhyper: Factorized Hypernetworks for Conditioned LLM Fine-Tuning},
  author = {M. H. I. Abdalla and Zhipin Wang and Christian Frey and Steffen Eger and Josif Grabocka},
  year   = {2025},
  eprint = {2510.19733},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.19733v2}
}

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/2510.19733.svg)](https://codeofpaper.com/paper/2510.19733)

Discussion