# Magneto: Combining Small and Large Language Models for Schema Matching

Magneto: 스키마 매칭을 위해 소형 및 대형 언어 모델 결합

Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · arXiv · 2024년 12월 11일

- **연구 문제** 스키마 매칭은 이질적인 바이오의학 테이블 사이에서 정답 열을 찾기 어려우며, 기존 방법은 정확도나 비용 면에서 한계를 보입니다.
- **연구 방법** Magneto는 SLM으로 후보를 검색하고 LLM으로 상위 후보를 재순위화하며, LLM이 생성한 데이터로 SLM을 미세조정합니다.
- **주요 결과** GDC 벤치마크에서 Magneto 변형들은 MRR과 Recall@GT가 비교 방법보다 높았고, LLM 재순위화를 결합한 ft-llm 조합이 가장 높았습니다.

## 스키마 매칭의 어려움과 연구 문제

스키마 매칭은 두 테이블의 열 사이에서 의미상 같은 대응 관계를 찾는 과제입니다. 이 논문이 다루는 상황은 여러 코호트 데이터를 국립암연구소의 Genomic Data Commons 표준으로 옮기는 바이오의학 데이터 통합입니다. 원문 예시에서 한 소스 열 patient\_age는 age\_at\_diagnosis, days\_to\_birth, age\_at\_index 등 여러 그럴듯한 후보를 가지며, 열 이름과 값만으로는 정답을 고르기 어렵습니다. 저자들은 이름, 데이터 타입, 값에 기반한 유사도 방법이 이런 이질성 때문에 실패하기 쉽다고 설명합니다. 원문에 따르면 최고 기법도 평균 역순위(MRR) 0.45 이하에 그치고 계산 비용이 높았습니다.

소형 언어 모델(SLM)은 학습 데이터가 필요하고, 대형 언어 모델(LLM)은 컨텍스트 창 제약과 높은 지연·비용이 문제입니다. Magneto는 이 두 한계를 함께 줄이려는 시도입니다.

![Table 1: Examples of candidate matches between source ta- bles and the GDC that highlight schema heterogeneity](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6/figures/figure-a2c69b33aa8a86a04b3a8e01471949b7.png?thumb=512)

**Table 1** : Examples of candidate matches between source ta- bles and the GDC that highlight schema heterogeneity.

[원문](https://arxiv.org/abs/2412.08194v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · Magneto: Combining Small and Large Language Models for Schema Matching · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## SLM 검색과 LLM 재순위화의 결합

Magneto는 두 단계 구조를 사용합니다. 첫 단계인 후보 검색기는 SLM의 열 임베딩 사이 코사인 유사도로 각 소스 열에 대한 타깃 후보의 순위 목록을 만들고, 두 번째 단계인 재순위화기는 소스 열 하나와 SLM이 고른 상위 k개 타깃 후보를 LLM 프롬프트에 넣어 0.00에서 1.00 사이 점수를 받습니다. 점수로 후보를 내림차순 정렬하므로 LLM 호출은 전체 스키마가 아니라 상위 후보에만 적용됩니다. 열 표현에는 열 이름, 데이터 타입, 우선순위 샘플링으로 고른 기본 10개 값이 들어갑니다. 우선순위 샘플링은 난수 해시 h와 빈도 freq(v\_i)로 R\_i = freq(v\_i)/h(v\_i)를 계산하고 값이 큰 순서대로 고르는 방식으로 설명됩니다.

재순위화기 대안으로 이분 그래프와 할당 알고리즘을 쓰는 Magneto-bp도 제시되며, 이는 LLM 없이 실행할 수 있습니다.

![Figure 2: Magneto takes source and target tables and identifies matches in two phases: an SLM retrieves and ranks candi- dates, then an LLM assesses and rerank…](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6/figures/figure-a179256e7127e99d503c098210222003.png?thumb=512)

**Figure 2** : Magneto takes source and target tables and identifies matches in two phases: an SLM retrieves and ranks candi- dates, then an LLM assesses and reranks them. This enables efficient matching and cross-domain generalization, with customizable strategies based on method combinations.

[원문](https://arxiv.org/abs/2412.08194v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · Magneto: Combining Small and Large Language Models for Schema Matching · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

![Figure 10: Ablation of rerankers. Absolute accuracy improve- ment using Magneto-zs-bp over Magneto-zs](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6/figures/figure-0e52d3525471994f3b3affd75e6aa7cf.png?thumb=512)

**Figure 10** : Ablation of rerankers. Absolute accuracy improve- ment using Magneto-zs-bp over Magneto-zs.

[원문](https://arxiv.org/abs/2412.08194v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · Magneto: Combining Small and Large Language Models for Schema Matching · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## LLM이 만든 데이터로 SLM을 대조 학습하는 방법

fine-tuning 단계에서는 LLM을 학습 데이터 생성에만 사용합니다. 앵커 열의 이름과 샘플 값을 프롬프트에 주면 LLM이 의미는 같지만 구문이 다른 열 이름과 값을 만들고, 이 합성 열은 같은 클래스의 양성 예가 됩니다. 여기에 무작위 샘플링, 셔플링, 이름의 문자 교체 같은 구조 기반 증강을 함께 씁니다. 학습은 MPNet을 대상으로 하며 Batch Hard triplet loss와 온라인 triplet mining을 사용합니다. 이 손실은 각 앵커에 대해 배치 안에서 가장 먼 양성과 가장 가까운 음성을 골라 앵커-양성 거리를 줄이고 앵커-음성 거리를 늘립니다. 검증 점수는 MRR과 Recall@GT의 평균입니다.

학습은 타깃 테이블 열에만 적용되며, 정답이 알려지지 않은 소스 열을 음성으로 쓰면 임베딩 공간에 오류가 생기므로 제외합니다. 실행 시점에는 이 미세조정된 SLM이 LLM 호출 없이 후보를 검색합니다.

![Figure 3: LLM-Powered Fine-tuning Pipeline](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6/figures/figure-a5bfaedd641ea3f855e8ac623c7a9cc1.png?thumb=512)

**Figure 3** : LLM-Powered Fine-tuning Pipeline

[원문](https://arxiv.org/abs/2412.08194v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · Magneto: Combining Small and Large Language Models for Schema Matching · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Table 2: Examples of the provided data to LLM-based reranker and the generated data](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6/figures/figure-051b3f217e829c5285a3fd42604fa860.png?thumb=512)

**Table 2** : Examples of the provided data to LLM-based reranker and the generated data.

[원문](https://arxiv.org/abs/2412.08194v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · Magneto: Combining Small and Large Language Models for Schema Matching · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## GDC 벤치마크에서의 정확도 비교

검증의 핵심은 새로 구축한 GDC 벤치마크입니다. 이 벤치마크는 10개의 소스-타깃 테이블 쌍으로 구성되고 타깃 스키마는 736개 열을 가집니다. 평가 지표는 열별 순위를 보는 MRR과 전역 순위에서 상위 \|G\|개 안의 정답 비율을 보는 Recall@GT입니다. 네 가지 Magneto 조합인 zs-bp, ft-bp, zs-llm, ft-llm을 비교한 결과, 저자들은 Magneto 변형들이 두 지표 모두에서 다른 방법보다 높았고 ft-llm이 가장 높았다고 보고합니다. 재순위화 LLM은 GPT-4o-mini이고 검색기는 MPNet 기반입니다. fine-tuning은 GDC에서 30 epoch, margin 0.5로 실행되었습니다.

이 결과는 해당 벤치마크와 이 모델 조합에 대한 것이며, 원문은 Valentine 데이터에서는 Magneto가 기준선과 같거나 나은 수준이라고 함께 보고합니다.

![Table 3: Statistics of the datasets used for experiments](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6/figures/figure-0b91e1951006a4697e729cd1b43f554b.png?thumb=512)

**Table 3** : Statistics of the datasets used for experiments.

[원문](https://arxiv.org/abs/2412.08194v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · Magneto: Combining Small and Large Language Models for Schema Matching · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 샘플링·직렬화·데이터 생성의 절제 결과

샘플링 절제에서는 Magneto-zs-bp에 Srepeat 직렬화를 고정하고 Priority, Coordinated, Weighted, Frequency, Random을 비교했습니다. GDC에서 Priority는 Recall@GT 0.344±0.081, MRR 0.591±0.094를 보였고, 상위 세 기법이 비슷한 수준이라고 원문은 설명합니다. 직렬화 절제는 Default, Verbose, Repeat, Header only를 비교하며, zero-shot에서는 Srepeat가 우세하고 fine-tuning 후에는 Verbose와 Default가 더 높은 이득을 보였다고 보고합니다. 데이터 생성 절제에서는 llm-aug가 struct-aug보다 GDC의 MRR을 높였으나, 이 효과가 Valentine 데이터에서는 제한적이었습니다.

각 결과는 해당 표의 지표와 설정에 한정되어 읽어야 합니다.

![Table 5: Ablation of data generation techniques. LLM- powered data generation is effective, and better performance can be achieved by combining multiple techni…](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6/figures/figure-546d0dbd08a6b37122b7f42208bbd0cd.png?thumb=512)

**Table 5** : Ablation of data generation techniques. LLM- powered data generation is effective, and better performance can be achieved by combining multiple techniques.

[원문](https://arxiv.org/abs/2412.08194v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire · Magneto: Combining Small and Large Language Models for Schema Matching · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 한계와 적용 범위

원문은 Magneto의 정확도가 SLM 검색 단계에서 정답이 상위 k에 포함되는지에 달려 있다고 밝힙니다. 정답이 상위 k에서 빠지면 재순위화가 이를 복구할 수 없습니다. 또한 LLM 기반 재순위화는 정확도를 높이지만 추가 비용을 발생시키며, 저자들은 더 작은 효율적 LLM을 향후 과제로 제시합니다. 프롬프트 의존성도 한계로 언급됩니다. 반면 GDC 결과는 이 벤치마크와 선택된 모델 설정에서 얻은 것이며, 다른 도메인이나 다른 LLM에 대한 일반화는 본문 근거만으로 확정할 수 없습니다.

## 논문 정보

- **저자**: Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 12월 11일
- **등록일**: 2026년 11월 6일
- **수정일**: 2025년 6월 17일
- **버전**: v2
- **arXiv**: 2412.08194
- **분류**: cs.DB · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2412.08194v2) · [원문 PDF ↗](https://arxiv.org/pdf/2412.08194v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Recent advances in language models opened new opportunities to address complex schema matching tasks. Schema matching approaches have been proposed that demonstrate the usefulness of language models, but they have also uncovered important limitations: Small language models (SLMs) require training data (which can be both expensive and challenging to obtain), and large language models (LLMs) often incur high computational costs and must deal with constraints imposed by context windows. We present Magneto, a cost-effective and accurate solution for schema matching that combines the advantages of SLMs and LLMs to address their limitations. By structuring the schema matching pipeline in two phases, retrieval and reranking, Magneto can use computationally efficient SLM-based strategies to derive candidate matches which can then be reranked by LLMs, thus making it possible to reduce runtime without compromising matching accuracy. We propose a self-supervised approach to fine-tune SLMs which uses LLMs to generate syntactically diverse training data, and prompting strategies that are effective for reranking. We also introduce a new benchmark, developed in collaboration with domain experts, which includes real biomedical datasets and presents new challenges to schema matching methods. Through a detailed experimental evaluation, using both our new and existing benchmarks, we show that Magneto is scalable and attains high accuracy for datasets from different domains.

## 원문 인용

Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire (2024). Magneto: Combining Small and Large Language Models for Schema Matching. arXiv:2412.08194v2. https://arxiv.org/abs/2412.08194v2

**BibTeX**

```
@misc{liu2024magneto,
  title = {{Magneto: Combining Small and Large Language Models for Schema Matching}},
  author = {Yurong Liu and Eduardo Pena and Aecio Santos and Eden Wu and Juliana Freire},
  year = {2024},
  eprint = {2412.08194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.08194v2}
}
```

## 이 논문의 용어

- [Triplet loss](https://refivu.com/terms/6b3cf5362b16-triplet-loss)
- [Mean Reciprocal Rank](https://refivu.com/terms/5cee33207fc4-mean-reciprocal-rank)
- [MPNet](https://refivu.com/terms/58e24bc3b8bb-mpnet)

## 다른 논문 해설

- [A Survey on Symbolic Knowledge Distillation of Large Language Models](https://refivu.com/papers/f241672c-9b14-44b9-add1-4ff2986962e6-a-survey-on-symbolic-knowledge-distillation-of-large.md)
- [Structural Persistence in Language Models: Priming as a Window into Abstract Language Representations](https://refivu.com/papers/4a3185c1-66c5-4086-aa6f-406fd69ad22d-structural-persistence-in-language-models-priming-as-a.md)
- [Pretrained LLMs as Real-Time Controllers for Robot Operated Serial Production Line](https://refivu.com/papers/1bd9b543-0a29-40d4-9fd8-4d0c6dbb0982-pretrained-llms-as-real-time-controllers-for-robot.md)
- [Large Language Models "Ad Referendum": How Good Are They at Machine Translation in the Legal Domain?](https://refivu.com/papers/d43bb792-cfb5-436e-9deb-723131ebb7a2-large-language-models-ad-referendum-how-good-are.md)
- [JARVIS-1: Open-World Multi-task Agents with Memory-Augmented Multimodal Language Models](https://refivu.com/papers/cf00e122-bac5-4b1b-869d-88ddc3860800-jarvis-1-open-world-multi-task-agents-with.md)
- [Large language models predict human sensory judgments across six modalities](https://refivu.com/papers/9aa2c809-2caf-4837-9f90-b62ba45e52a6-large-language-models-predict-human-sensory-judgments-across.md)
- [Smart placement, faster robots-a comparison of algorithms for robot base-pose optimization](https://refivu.com/papers/2480e9e8-8d93-49c2-85f5-c860cc80e50a-smart-placement-faster-robots-a-comparison-of-algorithms.md)
- [Deep Learning for fully automatic detection, segmentation, and Gleason Grade estimation of prostate cancer in multiparametric Magnetic Resonance Images](https://refivu.com/papers/85c3f509-d887-4269-b0d6-8ad8be0c0a75-deep-learning-for-fully-automatic-detection-segmentation-and.md)
- [RemixIT: Continual self-training of speech enhancement models via bootstrapped remixing](https://refivu.com/papers/ece6cee0-2c9f-4929-a773-721f2744cab0-remixit-continual-self-training-of-speech-enhancement-models.md)
- [Deep Reinforcement Learning Based Placement for Integrated Access Backhauling in UAV-Assisted Wireless Networks](https://refivu.com/papers/e44358ae-37cd-4f06-bb08-1b42c988b1af-deep-reinforcement-learning-based-placement-for-integrated.md)
- [A comparison between single-stage and two-stage 3D tracking algorithms for greenhouse robotics](https://refivu.com/papers/45a49502-8312-47d2-a7dd-fa5214c14d7f-a-comparison-between-single-stage-and-two-stage.md)
- [Neural Architecture Search as Multiobjective Optimization Benchmarks: Problem Formulation and Performance Assessment](https://refivu.com/papers/38cf19f6-661f-4fc6-8022-3bbdae52fbae-neural-architecture-search-as-multiobjective-optimization.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/311374b0-0d8e-4fc1-aeff-cbaa2e5c70e6-magneto-combining-small-and-large-language-models-for)
