Optimizing and Fine-tuning Large Language Model for Urban Renewal

Xi Wang, Xianyao Ling, Tom Zhang, Xuecao Li, Shaolan Wang, Zhixing Li, Liang Zhang, Peng GongarXiv 2023 · DOI

Introduction

Urban renewal represents a "wicked problem"—a complex intersection of engineering, social policy, and economic optimization. While general-purpose Large Language Models (LLMs) have demonstrated remarkable capabilities, they often lack the specialized domain knowledge required for professional urban planning tasks. This research addresses two primary challenges in the field: the scarcity of high-quality, domain-specific question-answering (QA) datasets and the prohibitive computational costs associated with full fine-tuning of multi-billion parameter models.

Methodology

Self-Instruct Data Generation

To overcome data scarcity, the researchers implemented a self-instruct pipeline. They curated a corpus of 70-80 scientific papers focused on urban renewal. Using an open-source 6.2-billion parameter model, ChatGLM, as a base, the team prompted the model to act as a research expert, generating QA pairs directly from the literature. This process resulted in a specialized dataset of 1,360 high-quality QA pairs, which were then cleaned to remove noise such as figure captions and table data.

Joint Fine-tuning Strategy

The core innovation of this study is a joint fine-tuning approach that combines two parameter-efficient techniques: Prefix-tuning and Low-Rank Adaptation (LoRA).

  • Prefix-tuning: This method adds a set of trainable "virtual tokens" to the input prefix, guiding the model's internal context and response structure.
  • LoRA: This technique injects small, trainable rank-decomposition matrices into the model's layers, allowing for the injection of professional knowledge without modifying the original pretrained weights.
The LoRA mechanism injects trainable low-rank matrices (A and B) into the model architecture, allowing for efficient adaptation.

By combining these methods, the researchers aimed to leverage the structural guidance of Prefix-tuning alongside the generalization power of LoRA.

Experimental Results

The researchers evaluated the "Urban Renewal LLM" against the base ChatGLM model and individual fine-tuning methods using Bleu and Rouge metrics. The joint approach demonstrated a significant synergy effect, achieving a Bleu-4 score of 43.78% and a Rouge-1 score of 64.05%.

Comparative performance of the base ChatGLM model against individual Prefix and LoRA fine-tuning methods.

Notably, the joint Prefix-LoRA method outperformed the base model by 15-20% across all metrics while only requiring the training of 5.36 million parameters—approximately 0.0899% of the total model size. This extreme efficiency proves that deep domain expertise can be successfully injected into LLMs with minimal computational overhead.

Conclusion

This research demonstrates that a combination of self-instructed data generation and joint parameter-efficient fine-tuning can effectively specialize LLMs for complex fields like urban renewal. Future work will focus on expanding the literature corpus and testing the joint fine-tuning strategy across diverse model architectures such as LLaMA and Qwen.

Summary updated

BibTeX
@misc{wang2023optimizing,
  author = {Xi Wang and Xianyao Ling and Tom Zhang and Xuecao Li and Shaolan Wang and Zhixing Li and Liang Zhang and Peng Gong},
  title = {{Optimizing and Fine-tuning Large Language Model for Urban Renewal}},
  year = {2023},
  eprint = {2311.15490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.15490},
}
Figure