Utilize este identificador para referenciar este registo: https://hdl.handle.net/1822/89919

Registo completo
Campo DCValorIdioma
dc.contributor.authorRibeiro, Francisco José Torrespor
dc.contributor.authorMacedo, José Nuno Castropor
dc.contributor.authorTsushima, Kanaepor
dc.contributor.authorAbreu, Ruipor
dc.contributor.authorSaraiva, Joãopor
dc.date.accessioned2024-03-25T09:48:42Z-
dc.date.available2024-03-25T09:48:42Z-
dc.date.issued2023-
dc.identifier.isbn979-8-4007-0396-6-
dc.identifier.urihttps://hdl.handle.net/1822/89919-
dc.description.abstractType systems are responsible for assigning types to terms in programs. That way, they enforce the actions that can be taken and can, consequently, detect type errors during compilation. However, while they are able to ag the existence of an error, they often fail to pinpoint its cause or provide a helpful error message. Thus, without adequate support, debugging this kind of errors can take a considerable amount of effort. Recently, neural network models have been developed that are able to understand programming languages and perform several downstream tasks. We argue that type error debugging can be enhanced by taking advantage of this deeper understanding of the language’s structure. In this paper, we present a technique that leverages GPT-3’s capabilities to automatically fix type errors in OCaml programs. We perform multiple source code analysis tasks to produce useful prompts that are then provided to GPT-3 to generate potential patches. Our publicly available tool, Mentat, supports multiple modes and was validated on an existing public dataset with thousands of OCaml programs. We automatically validate successful repairs by using Quickcheck to verify which generated patches produce the same output as the user-intended fixed version, achieving a 39% repair rate. In a comparative study, Mentat outperformed two other techniques in automatically fixing ill-typed OCaml programs.por
dc.description.sponsorshipThis work is financed by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia, within project UIDP/50014/2020. Francisco Ribeiro and José Nuno Macedo acknowledge FCT PhD grants SFRH/BD/144938/2019 and 2021.08184.BD, respectively. Additional funding: JSPS KAKENHI-JP19K20248.por
dc.language.isoengpor
dc.publisherAssociation for Computing Machinery (ACM)por
dc.relationinfo:eu-repo/grantAgreement/FCT/6817 - DCRRNI ID/UIDP%2F50014%2F2020/PTpor
dc.relationinfo:eu-repo/grantAgreement/FCT/POR_NORTE/SFRH%2FBD%2F144938%2F2019/PTpor
dc.relation2021.08184.BDpor
dc.relationJSPS KAKENHI-JP19K20248por
dc.rightsopenAccesspor
dc.subjectAutomated Program Repairpor
dc.subjectGPT-3por
dc.subjectFault Localizationpor
dc.subjectCode Generationpor
dc.titleGPT-3-powered type error debugging: investigating the use of large language models for code repairpor
dc.typeconferencePaperpor
dc.peerreviewedyespor
dc.relation.publisherversionhttps://dl.acm.org/doi/10.1145/3623476.3623522por
oaire.citationStartPage111por
oaire.citationEndPage124por
dc.identifier.doi10.1145/3623476.3623522por
sdum.conferencePublicationSLE 2023 - Proceedings of the 16th ACM SIGPLAN International Conference on Software Language Engineering, Co-located with: SPLASH 2023por
Aparece nas coleções:HASLab - Artigos em atas de conferências internacionais (texto completo)

Ficheiros deste registo:
Ficheiro Descrição TamanhoFormato 
3623476.3623522.pdf471,6 kBAdobe PDFVer/Abrir

Partilhe no FacebookPartilhe no TwitterPartilhe no DeliciousPartilhe no LinkedInPartilhe no DiggAdicionar ao Google BookmarksPartilhe no MySpacePartilhe no Orkut
Exporte no formato BibTex mendeley Exporte no formato Endnote Adicione ao seu ORCID