Laporkan Masalah

Analisis Performa Small Langauge Models dengan Kerangka Kerja Retrieval-Augmented Generation (RAG) pada Artikel Berita Hukum dan Kriminal

Muhammad Khoirul Umamil Achyar, Widyawan, S.T., M.Sc., Ph.D.; Ir. Azkario Rizky Pratama, S.T., M.Eng., Ph.D., IPM.

2026 | Tesis | S2 Teknologi Informasi

Perkembangan masif Retrieval-Augmented Generation (RAG) membuka peluang penggunaan Small Language Models (SLMs) untuk sistem tanya jawab berbasis dokumen yang lebih efisien. Namun, pada domain artikel berita hukum dan kriminal, kualitas jawaban tidak hanya ditentukan oleh model generatif, tetapi juga oleh strategi information retrieval yang digunakan untuk mengambil konteks. Penelitian ini bertujuan menganalisis performa SLM dalam kerangka kerja RAG dengan membandingkan beberapa konfigurasi retrieval, yaitu single lexical, single semantic, hybrid balanced, hybrid lexical biased, hybrid semantic biased, serta reranking. Dataset penelitian berupa artikel berita hukum dan kriminal dari XPlore Pustaka Data UGM. Dari 3132 artikel awal, dilakukan pengelompokan topik menggunakan BERTopic, evaluasi koherensi dan kestabilan topik, serta validasi pakar, sehingga diperoleh 2773 artikel yang digunakan sebagai korpus akhir. Basis pengetahuan dibentuk melalui chunking dokumen, kemudian diuji menggunakan lima SLM, yaitu Gemma3:1B, Qwen2.5:1.5B, Llama3.2:1B, Granite3.1-moe:1B, dan Smollm2:1.7B. Evaluasi dilakukan menggunakan metrik RAGAs, yaitu faithfulness, context precision, dan context recall. Hasil penelitian menunjukkan bahwa konfigurasi hybrid retrieval secara umum lebih kompetitif dibandingkan single retrieval, meskipun pendekatan bias terbaik tidak sama pada setiap model. Qwen2.5:1.5B menunjukkan performa terbaik dengan faithfulness tertinggi pada konfigurasi hybrid lexical biased dengan reranking, sedangkan Gemma3:1B cenderung lebih baik pada hybrid semantic biased. Llama3.2:1B dan Smollm2:1.7B menunjukkan performa yang kuat pada konfigurasi hybrid, sementara Granite3.1-moe:1B memperoleh hasil paling rendah pada seluruh konfigurasi. Pada sisi retrieval, nilai context precision dan context recall secara umum tergolong tinggi, sementara reranking berperan sebagai mekanisme penyempurnaan yang manfaatnya bergantung pada konfigurasi awal. Temuan ini menunjukkan bahwa efektivitas sistem RAG berbasis SLM pada domain berita hukum dan kriminal sangat dipengaruhi oleh interaksi antara strategi retrieval, reranking, dan karakteristik model generatif. 

Massive growth in Retrieval-Augmented Generation (RAG) opens up opportunities for using Small Language Models (SLMs) in more efficient document-based question-answering systems. However, in the domain of legal and criminal news articles, the quality of answers is determined not only by the generative model but also by the information retrieval strategy used to extract context. This study aims to analyze the performance of SLMs within the RAG framework by comparing several retrieval configurations such as single lexical, single semantic, hybrid balanced, hybrid lexical biased, hybrid semantic biased, and reranking. The research dataset consists of legal and criminal news articles from the XPlore UGM Data Library. From the initial 3,132 articles, topic clustering was performed using BERTopic, followed by evaluations of coherence and topic stability, as well as expert validation, resulting in 2,773 articles used as the final corpus. The knowledge base was constructed through document chunking and then tested using five SLMs: Gemma3:1B, Qwen2.5:1.5B, Llama3.2:1B, Granite3.1-moe:1B, and Smollm2:1.7B. Evaluation was performed using RAGAs metrics: faithfulness, context precision, and context recall. The results show that the hybrid retrieval configuration is generally more competitive than single retrieval, although the direction of the best bias varies across models. Qwen2.5:1.5B demonstrates the best performance with the highest faithfulness in the lexical-biased hybrid configuration with reranking, while Gemma3:1B tends to perform better in the semantic-biased hybrid configuration. Llama3.2:1B and Smollm2:1.7B show strong performance in the hybrid configurations, whereas Granite3.1-moe:1B achieves the lowest results across all configurations. On the retrieval side, context precision and context recall values are generally high, while reranking serves as a refinement mechanism whose benefits depend on the initial configuration. These findings indicate that the effectiveness of SLM-based RAG systems in the legal and criminal news domain is significantly influenced by the interaction between retrieval strategies, reranking, and generative model characteristics. 

Kata Kunci : small language models, retrieval-augmented generation, information retrieval, reranking, artikel berita hukum dan kriminal

  1. S2-2026-541263-abstract.pdf  
  2. S2-2026-541263-bibliography.pdf  
  3. S2-2026-541263-tableofcontent.pdf  
  4. S2-2026-541263-title.pdf