ResearchPod Summary
Traditional code corpora are mined from the wild, making them uncontrolled, prone to contamination, and lacking in precise difficulty labels. Researchers often struggle to isolate whether a model fails because a coding problem is inherently difficult or because the code's presentation is unnecessarily messy. Spaghetti Architect addresses this by providing a tool that generates code datasets with strict control over semantics, complexity, and contamination.
Spaghetti Architect functions as an anti-optimization transpiler. It takes a clean, language-agnostic JSON intermediate representation (IR) and transforms it into redundant, fully-flattened code in five languages (Python, JavaScript, Go, Java, and C++). The tool uses a 'messiness' knob—a series of strictly-nested anti-pattern profiles—to increase incidental complexity while keeping the underlying semantics identical. Every generated program is compiled and verified against a reference oracle to ensure correctness by construction. The tool also implements a contamination-resistance protocol, allowing users to mint fresh, private test splits from a held-out seed, ensuring that evaluation data remains unseen by models during training.
The study demonstrates that the dataset is both usable and discriminative across a four-model capability ladder. Key results include:
By shifting from static, mined corpora to a generator-based approach, researchers can perform rigorous, contamination-aware evaluations. This tool enables the creation of bespoke benchmarks that can be updated after training cutoffs, providing a more reliable way to measure model progress in code generation and refactoring tasks.
AI-generated third-party summary by ResearchPod. Not official content or an endorsement by the paper authors or affiliated organizations.