Evaluating Language Models for Computer Graphics Code Completion

Evaluation benchmarks are essential for developing and training language models, providing both comparison and optimization targets. Existing code completion benchmarks, often based on standalone Python functions and unit tests, are overly simplistic, contaminated, and fail to reflect real-world scenarios. In this paper we present ShaderMatch, a novel benchmark for code completion in computer graphics programming. The benchmark is derived from real-world fragment shaders in OpenGL Shading Language (GLSL) from the Shadertoy platform, forming a zero-shot function completion task with 467 function headers and user-written comments as input. Besides, we propose a two-step evaluation metric: static code comparison followed by frame rendering comparison. Additionally, ShaderMatch introduces eight fine-grained labels for deeper insights. We evaluate over 20 open-source code-specific models and highlight notable performance outliers. Results show that even top models fail to generate working code in 31% of cases, highlighting the challenge posed by GLSL, a low-resource language rarely found in pretraining datasets. ShaderMatch provides a well-annotated, extendable dataset for future research. Data, code, leaderboard, and discussions are available at: https://hf.co/spaces/Vipitis/shadermatch.

Authors

Institutions

Publication Details

Published
2025-05-03
DOI
https://doi.org/10.1109/llm4code66737.2025.00017
Primary Topic
Model-Driven Software Engineering Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evaluating Language Models for Computer Graphics Code Completion

Abdelhalim Hafedh Dahou, Brigitte Mathiak, Jan Kels
Model-Driven Software Engineering Techniques
article

Evaluating Language Models for Computer Graphics Code Completion

Abdelhalim Hafedh Dahou, Brigitte Mathiak, Jan Kels
article en

Abstract

Evaluation benchmarks are essential for developing and training language models, providing both comparison and optimization targets. Existing code completion benchmarks, often based on standalone Python functions and unit tests, are overly simplistic, contaminated, and fail to reflect real-world scenarios. In this paper we present ShaderMatch, a novel benchmark for code completion in computer graphics programming. The benchmark is derived from real-world fragment shaders in OpenGL Shading Language (GLSL) from the Shadertoy platform, forming a zero-shot function completion task with 467 function headers and user-written comments as input. Besides, we propose a two-step evaluation metric: static code comparison followed by frame rendering comparison. Additionally, ShaderMatch introduces eight fine-grained labels for deeper insights. We evaluate over 20 open-source code-specific models and highlight notable performance outliers. Results show that even top models fail to generate working code in 31% of cases, highlighting the challenge posed by GLSL, a low-resource language rarely found in pretraining datasets. ShaderMatch provides a well-annotated, extendable dataset for future research. Data, code, leaderboard, and discussions are available at: https://hf.co/spaces/Vipitis/shadermatch.

GESIS - Leibniz Institute for the Social Sciences (DE), Heinrich Heine University Düsseldorf (DE)
Openalex Percentile: Top 87%
Model-Driven Software Engineering Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Evaluating Language Models for Computer Graphics Code Completion — Abdelhalim Hafedh Dahou, Brigitte Mathiak, et al. · (2025) | TGRS Research Map | TGRS