Back to search

Nanyang Technological University

Knowledge distillation for building task-specific LLM

Abstract

dc:description.abstract

This study addresses the challenges of high training costs, data scarcity, and unstable reasoning in medical question answering (MedQA) by proposing a two-stage task-specific knowledge distillation framework. In the first stage, text-level distillation transfers medical knowledge and answer patterns from the teacher model through soft targets, improving data efficiency and language generation. The second stage performs intermediate-layer distillation, aligning semantic representations and reasoning processes to enhance generalization and robustness. Experiments show that the student model achieves higher BLEU and BERTScore after both stages, confirming effective semantic transfer. The quantized student model maintains only 12.6 GB memory usage and about 5 tokens/s inference speed—much lighter than the fp16 teacher model—while preserving strong reasoning ability. Overall, this approach achieves a practical trade-off between performance and efficiency, enabling reliable MedQA systems under limited computational resources.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wang, Ziyu
Advisor dc:contributor.supervisor
  • Mao Kezhi

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/205257

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Wang, Ziyu. Knowledge distillation for building task-specific LLM. Nanyang Technological University, 2025. https://hdl.handle.net/10356/205257