Digitala Vetenskapliga Arkivet

Planned maintenance
A system upgrade is planned for 17/11-2026, at 12:00-13:00. During this time DiVA will be unavailable.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Task Vectors as semantic sliders for text generation
Uppsala University, Disciplinary Domain of Humanities and Social Sciences, Faculty of Languages, Department of Linguistics and Philology.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

This study investigates how task vectors, computed as the difference in weightsbetween a pretrained language model and its finetuned counterpart, can be usedto modulate model behavior in a controlled and interpretable way. Through aseries of experiments, we explore the effects of scaling individual task vectors andcombining multiple vectors on output characteristics such as toxicity, coherence,and stylistic content. Our findings show that scaling task vectors influencesmodel behavior in a generally monotonic manner, with small to moderate scalingfactors preserving output coherence while allowing for meaningful behavioraladjustments. Toxicity levels increase non-linearly with higher positive scaling,while perplexity remains relatively stable within a certain range, suggestinga “sweet spot” for effective modulation. Furthermore, combining task vectorsproduces partially additive effects, with some interactions resulting in dominantor unpredictable behaviors. These results support the idea that task vectors offera semantically meaningful and partially navigable subspace for guiding languagemodel outputs.

Place, publisher, year, edition, pages
2025.
Keywords [en]
Task vectors, Weight space manipulation, Large language model, Stylistic control
National Category
Natural Language Processing
Identifiers
URN: urn:nbn:se:uu:diva-561319OAI: oai:DiVA.org:uu-561319DiVA, id: diva2:1974435
Educational program
Master Programme in Language Technology
Supervisors
Examiners
Available from: 2025-07-08 Created: 2025-06-23 Last updated: 2025-07-08Bibliographically approved

Open Access in DiVA

fulltext(2897 kB)281 downloads
File information
File name FULLTEXT01.pdfFile size 2897 kBChecksum SHA-512
f575b6a157a6d1ae8c5811302ab0102ad15294fa3625850f5c07f77cbf73ba5cded4721d0b21c1349146c9b15acea2b827f51ac1dc41f2075c1747be6bf0d04a
Type fulltextMimetype application/pdf

By organisation
Department of Linguistics and Philology
Natural Language Processing

Search outside of DiVA

GoogleGoogle Scholar
Total: 283 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 319 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf