paper-with-me

홈 › Papers

MetaLint: Easy-to-Hard Generalization for Code Linting

2025-07-15 · Atharva Naik, Lawanya Baghel, Dhakshin Govindarajan, Darsh Agrawal, Yiqing Xie, Daniel Fried, Carolyn Rose arxiv

Large language models excel at code generation but struggle with code linting, particularly in generalizing to unseen or evolving best practices beyond those observed during training. We introduce MetaLint, a meta-learning framework that formulates code linting as an instruction-following task, where a model evaluates whether code adheres to a natural language specification of best practices. In contrast to prior work that trains models to detect violations from a fixed set of best practices, MetaLint evaluates code against a provided natural language specification, enabling test-time control over which practices to enforce and generalization to unseen or evolving rules without retraining. We demonstrate that models trained solely on synthetic data generated from automatic linters still generalize to harder, context-dependent best practices for which such linters are not available. To evaluate generalization beyond such easy signals, we introduce a human-curated benchmark of hard best practices inspired by Python Enhancement Proposals (PEPs). On this benchmark, MetaLint substantially improves performance without explicit fine-tuning on target best practices and exhibits strong, easy-to-hard generalization. Qwen3-4B achieves a 2.7x detection F-score gain (25.9% -> 70.4%), the highest recall, and a 26.7% localization F-score, matching larger models such as o3-mini. These gains generalize across programming languages, model families, scales, reasoning settings, and linter sources. We release the code and benchmark to support reproducibility and future work.

📄 PDF Abstract BibTeX arXiv:2507.11687

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

The Unreasonable Effectiveness of Easy Training Data for Hard Tasks

2024-01-12 · Peter Hase, Mohit Bansal, Peter Clark, Sarah Wiegreffe

How can we train models to perform well on hard test data when hard training data is by definition difficult to label correctly? This question has been termed the scalable oversight problem and has drawn increasing atten…

General KnowledgeIn-Context LearningQuestion Answering

Datasets for Studying Generalization from Easy to Hard Examples

2021-08-13 · Avi Schwarzschild, Eitan Borgnia, Arjun Gupta, Arpit Bansal 외

We describe new datasets for studying generalization from easy to hard examples.

Empirical Study of Easy and Hard Examples in CNN Training

2019-11-25 · ICLR 2019 5 · Ikki Kishida, Hideki Nakayama

Deep Neural Networks (DNNs) generalize well despite their massive size and capability of memorizing all examples. There is a hypothesis that DNNs start learning from simple patterns and the hypothesis is based on the exi…

Easy-to-Hard Generalization: Scalable Alignment Beyond Human Supervision

2024-03-14 · Zhiqing Sun, Longhui Yu, Yikang Shen, Weiyang Liu 외

Current AI alignment methodologies rely on human-provided demonstrations or judgments, and the learned capabilities of AI systems would be upper-bounded by human capabilities as a result. This raises a challenging resear…

MathReinforcement Learning (RL)RerankingRe-Ranking

Easy2Hard-Bench: Standardized Difficulty Labels for Profiling LLM Performance and Generalization

2024-09-27 · Mucong Ding, ChengHao Deng, Jocelyn Choo, Zichu Wu 외

While generalization over tasks from easy to hard is crucial to profile language models (LLMs), the datasets with fine-grained difficulty annotations for each problem across a broad range of complexity are still blank. A…