NewsBytes
    Hindi Tamil Telugu
    More
    In the news
    Narendra Modi
    Amit Shah
    Box Office Collection
    Bharatiya Janata Party (BJP)
    OTT releases
    Hindi Tamil Telugu
    NewsBytes
    User Placeholder

    Hi,

    Logout


    India Business World Politics Sports Technology Entertainment Auto Lifestyle Inspirational Career Bengaluru Delhi Mumbai Visual Stories Find Cricket Statistics Phones Reviews Fitness Bands Reviews Speakers Reviews

    Download Android App

    Follow us on
    • Facebook
    • Twitter
    • Linkedin
     
    Home / News / Technology News / Why ChatGPT can't crack coding problems after 2021
    In brief
    Simplifying... Inbrief
    • A study tested AI ChatGPT's coding skills, revealing it can generate efficient code but struggles with error correction and security.
    • The AI's code was found to be more efficient than half of human solutions, but it often misunderstood algorithm problems, leading to mistakes.
    • To improve its performance, developers are advised to provide more information to the AI, especially about potential vulnerabilities.
    Was a long read? Making it simpler...
    Next Article
    Next Article
    Why ChatGPT can't crack coding problems after 2021
    Success rates vary from 0.66% to 89%

    Why ChatGPT can't crack coding problems after 2021

    By Dwaipayan Roy
    Jul 08, 2024
    04:28 pm
    What's the story

    A study published in IEEE Transactions on Software Engineering has evaluated the code generated by OpenAI's ChatGPT. It found that ChatGPT's performance dropped when solving coding problems post-2021, possibly due to unfamiliarity with these problems in the training dataset. Notably, the study revealed a wide range of success rates for ChatGPT's ability to produce functional code, from as high as 89% to as low as 0.66%. Factors like task difficulty and programming language used also influenced results.

    Worrying

    Limitations in code generation

    The research team tested GPT-3.5's ability to solve 728 coding problems from the LeetCode testing platform, in five programming languages. Tang noted that ChatGPT demonstrated proficiency, especially with problems existing on LeetCode before 2021. Yutian Tang, a lecturer at the University of Glasgow involved in the study, emphasized understanding ChatGPT's strengths and limitations for improved generation techniques.

    Performance insights

    ChatGPT's efficiency and error correction capabilities

    Interestingly, the study found that ChatGPT generated code with lesser runtime and memory overheads than at least 50% of human solutions to the same problems. However, Tang noted that when it came to correcting its own mistakes, ChatGPT was less successful. He explained that "ChatGPT may generate incorrect code because it does not understand the meaning of algorithm problems, thus, this simple error feedback information is not enough."

    Security analysis

    Security concerns and complexity in AI-generated code

    The study also highlighted certain security concerns with AI-generated code. The researchers found that ChatGPT-generated code had a fair amount of vulnerabilities, like a missing null test, but many of these were easily fixable. Tang noted that the generated code in C was the most complex, followed by C++ and Python, which had similar complexity to human-written code.

    Developer guidance

    Recommendations for developers using ChatGPT

    Tang suggested that developers using ChatGPT should offer additional information, to help the AI better understand problems and avoid possible vulnerabilities. He advised, "When encountering more complex programming problems, developers can provide relevant knowledge as much as possible, and tell ChatGPT in the prompt which potential vulnerabilities to be aware of." This guidance aims to enhance the functionality and security of AI-generated code.

    Facebook
    Whatsapp
    Twitter
    Linkedin
    Related News
    Latest
    OpenAI
    ChatGPT
    Artificial Intelligence and Machine Learning

    Latest

    Ducati launches world's most powerful single-cylinder bike at ₹16.5 lakh Ducati
    'Didn't get along': 'Sarfira' director Sudha on working with Akshay Akshay Kumar
    Sanath Jayasuriya appointed Sri Lanka's interim head coach: Details here Sanath Jayasuriya
    Is everything over between Natasa Stankovic-Hardik Pandya? Insider claims so Hardik Pandya

    OpenAI

    AI's billion dollar barrier: Training costs hit $1bn and beyond Artificial Intelligence and Machine Learning
    AI industry needs big bucks: $600 billion to keep up Artificial Intelligence and Machine Learning
    Are robots taking over car factories? BMW says yes BMW
    Data breach at OpenAI: AI secrets exposed in 2023 hack ChatGPT

    ChatGPT

    iOS 18.4 to bring Apple Intelligence, enhanced Siri in 2025 Apple
    'Synthetic cancer': This virus is using ChatGPT to spread itself Artificial Intelligence and Machine Learning
    GPT-5: Sam Altman promises 'significant leap' in OpenAI's next LLM OpenAI
    OpenAI releases fix for ChatGPT Mac app exposing user conversations macOS

    Artificial Intelligence and Machine Learning

    The future of radio? YouTube Music experiments with AI-curated stations YouTube Music
    China's Qinglong: A revolution in automation on the horizon China
    US supermarkets now sell bullets at AI-powered vending machines United States of America
    Meta AI can now reply to photos on WhatsApp WhatsApp
    Next Article

    Live

    Indian Premier League (IPL) Celebrity Hollywood Bollywood UEFA Champions League Tennis Football Smartphones Cryptocurrency Upcoming Movies Premier League Cricket News Latest automobiles Latest Cars Upcoming Cars Latest Bikes Upcoming Tablets
    About Us Privacy Policy Terms & Conditions Contact Us Ethical Conduct Grievance Redressal News News Archive Topics Archive Download DevBytes Find Cricket Statistics
    Follow us on
    Facebook Twitter Linkedin
    All rights reserved © NewsBytes 2024
    filled star
    half filled star