Efficient Multi-Task Inferencing: Model Merging with Gromov-Wasserstein Feature Alignment

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Fang, Luyang, Latif, Ehsan, Lu, Haoran, Zhou, Yifan, Ma, Ping, Zhai, Xiaoming
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929757190356992
author Fang, Luyang
Latif, Ehsan
Lu, Haoran
Zhou, Yifan
Ma, Ping
Zhai, Xiaoming
author_facet Fang, Luyang
Latif, Ehsan
Lu, Haoran
Zhou, Yifan
Ma, Ping
Zhai, Xiaoming
contents Automatic scoring of student responses enhances efficiency in education, but deploying a separate neural network for each task increases storage demands, maintenance efforts, and redundant computations. To address these challenges, this paper introduces the Gromov-Wasserstein Scoring Model Merging (GW-SMM) method, which merges models based on feature distribution similarities measured via the Gromov-Wasserstein distance. Our approach begins by extracting features from student responses using individual models, capturing both item-specific context and unique learned representations. The Gromov-Wasserstein distance then quantifies the similarity between these feature distributions, identifying the most compatible models for merging. Models exhibiting the smallest pairwise distances, typically in pairs or trios, are merged by combining only the shared layers preceding the classification head. This strategy results in a unified feature extractor while preserving separate classification heads for item-specific scoring. We validated our approach against human expert knowledge and a GPT-o1-based merging method. GW-SMM consistently outperformed both, achieving a higher micro F1 score, macro F1 score, exact match accuracy, and per-label accuracy. The improvements in micro F1 and per-label accuracy were statistically significant compared to GPT-o1-based merging (p=0.04, p=0.01). Additionally, GW-SMM reduced storage requirements by half without compromising much accuracy, demonstrating its computational efficiency alongside reliable scoring performance.
format Preprint
id arxiv_https___arxiv_org_abs_2503_09774
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Efficient Multi-Task Inferencing: Model Merging with Gromov-Wasserstein Feature Alignment
Fang, Luyang
Latif, Ehsan
Lu, Haoran
Zhou, Yifan
Ma, Ping
Zhai, Xiaoming
Computation and Language
Automatic scoring of student responses enhances efficiency in education, but deploying a separate neural network for each task increases storage demands, maintenance efforts, and redundant computations. To address these challenges, this paper introduces the Gromov-Wasserstein Scoring Model Merging (GW-SMM) method, which merges models based on feature distribution similarities measured via the Gromov-Wasserstein distance. Our approach begins by extracting features from student responses using individual models, capturing both item-specific context and unique learned representations. The Gromov-Wasserstein distance then quantifies the similarity between these feature distributions, identifying the most compatible models for merging. Models exhibiting the smallest pairwise distances, typically in pairs or trios, are merged by combining only the shared layers preceding the classification head. This strategy results in a unified feature extractor while preserving separate classification heads for item-specific scoring. We validated our approach against human expert knowledge and a GPT-o1-based merging method. GW-SMM consistently outperformed both, achieving a higher micro F1 score, macro F1 score, exact match accuracy, and per-label accuracy. The improvements in micro F1 and per-label accuracy were statistically significant compared to GPT-o1-based merging (p=0.04, p=0.01). Additionally, GW-SMM reduced storage requirements by half without compromising much accuracy, demonstrating its computational efficiency alongside reliable scoring performance.
title Efficient Multi-Task Inferencing: Model Merging with Gromov-Wasserstein Feature Alignment
topic Computation and Language
url https://arxiv.org/abs/2503.09774