atlas

Research map / Large language models / Language, safety and interpretability

VeriLoC: Line-of-Code Level Prediction of Hardware Design Quality from Verilog Code

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Data and evaluation methodology · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Predicts line-level congestion/timing and module-level WNS directly from Verilog by concatenating CL-Verilog-13B hidden-state embeddings of lines, neighbors, and modules, then classifying with XGBoost/LightGBM.

Problem

Early-stage prediction of design-quality metrics (timing violations and routing congestion) at individual line-of-code granularity directly from Verilog RTL, which prior work did only at module level and mostly via intermediate representations like AIGs.

Approach

Use penultimate/last-layer hidden-state embeddings from a Verilog-specialized code LLM (CL-Verilog) for each line and for the whole module, reduce them with an encoder, concatenate with neighboring-line embeddings (context window p), and train gradient-boosted tree classifiers/regressors for line-level labels and min-over-lines module WNS.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add neighboring-line context (length 5) rather than using no context (ablation)VeriLoC with XGBoost · OpenABCD line-level congestion detectionF1: 0.50 -> 0.85Helped
Add neighboring-line context (length 5) rather than using no context (ablation)VeriLoC with LightGBM · OpenABCD line-level timing detectionF1: 0.83 -> 0.95Helped
Use XGBoost instead of FNN with context length 5VeriLoC · OpenABCD line-level congestion detectionF1: 0.77 -> 0.85Helped
Use LightGBM instead of FNN with context length 5VeriLoC · OpenABCD line-level timing detectionF1: 0.83 -> 0.95Helped
Add line-level embeddings to module embeddings (ablation)VeriLoC module-level WNS predictor · OpenABCD module-level WNS predictionR²: 0.91 -> 0.94Helped
Add line-level embeddings to module embeddings (ablation)VeriLoC module-level WNS predictor · OpenABCD module-level WNS predictionMAPE: 0.08 -> 0.06Helped
Use the last decoder layer rather than earlier hidden layers (ablation)CL-Verilog embeddings for VeriLoC · Timing predictionR²: 0.66 -> 0.89Helped
Use the last decoder layer rather than earlier hidden layers (ablation)CL-Verilog embeddings for VeriLoC · Congestion predictionMAPE: 18.13 -> 11.66Helped
Increase encoder hidden dimension from 32 to 128 (ablation)VeriLoC with XGBoost · OpenABCD line-level timing detectionprecision: 0.77 -> 0.94Helped
Increase encoder hidden dimension from 128 to 256 (ablation)VeriLoC with XGBoost · OpenABCD line-level timing detectionprecision: 0.94 -> 0.94No clear effect
Include RTL comments in module embeddings (ablation)VeriLoC with FNN · OpenABCD line-level timing detectionF1: 0.70 -> 0.76Helped
Include RTL comments in module embeddings (ablation)VeriLoC with LightGBM · OpenABCD line-level congestion detectionF1: 0.85 -> 0.86Helped

Surprising findings

Limitations

Experimental setup

Datasets: OpenABCD

Benchmarks: OpenABCD

Metrics: F1 precision recall R2 MAPE

Baselines: MasterRTL RTL-Timer VeriDistill GNN-based netlist predictor GPT-4o CircuitFusion VeriLoC-mod FNN head

Builds on: CL-Verilog XGBoost LightGBM MasterRTL RTL-Timer

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy