Let theÂ OSS Enterprise newsletterÂ guide yourÂ openÂ sourceÂ journey!Â Sign up here.
Intel today open-sourced ControlFlag, a tool that uses machine learning to detect problems in computer code â€” ideally to reduce the time required to debug apps and software. In tests, the companyâ€™s machine programming research team says that ControlFlag has found hundreds of defects in proprietary, â€œproduction-qualityâ€ software, demonstrating its usefulness.
â€œLast year, ControlFlag identified a code anomaly in Client URL (cURL), a computer software project transferring data using various network protocols over one billion times a day,â€ Intel principal AI scientist Justin Gottschlich wrote in a blog post on LinkedIn. â€œMost recently, ControlFlag achieved state-of-the-art results by identifying hundreds of latent defects related to memory and potential system crash bugs in proprietary production-level software. In addition, ControlFlag found dozens of novel anomalies on several high-quality open-source software repositories.â€
The demand for quality code draws an ever-growing number of aspiring programmers to the profession. After years of study, they learn to translate abstracts into concrete, executable programs â€” but most spend the majority of their working hours not programming. A recent study found that the IT industry spent an estimated $2 trillion in 2020 in software development costs associated with debugging code, with an estimated 50% of IT budgets spent on debugging.
ControlFlag, which works with any programming language containing control structures (i.e., blocks of code that specify the flow of control in a program), aims to cut down on debugging work by leveraging unsupervised learning. With unsupervised learning, an algorithm is subjected to â€œunknownâ€ data for which no previously defined categories or labels exist. The machine learning system â€” ControlFlag, in this case â€” must teach itself to classify the data, processing the unlabeled data to learn from its inherent structure.
ControlFlag continually learns from unlabeled source code, â€œevolvingâ€ to make itself better as new data is introduced. While it canâ€™t yet automatically mitigate the programming defects it finds, the tool provides suggestions for potential corrections to developers, according to Gottschlich.
â€œIntel is committed to making software more robust and less cumbersome to maintain while retaining excellent performance without introducing security vulnerabilities. We hope that projects like ControlFlag can substantially reduce the time it takes to develop software globally,â€ Gottschlich wrote. â€œDue to the overwhelming amount of time spent on debugging, even a small savings of time in this space could result in time and monetary savings and thereby allow us â€” as a community â€” to accelerate the advancement of technology.â€
AI-powered coding tools like ControlFlag, as well as platforms like Tabnine, Ponicode, Snyk, and DeepCode, have the potential to reduce costly interactions between developers, such as Q&A sessions and repetitive code review feedback. IBM and OpenAI are among the many companies investigating the potential of machine learning in the software development space. But studies have shown that AI has a ways to go before it can replace many of the manual tasks that human programmers perform on a regular basis.