Akimasa Morihata
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Akimasa Morihata has a total of 16 co-authors. Here are the top co-authors by number of shared publications:
- Jeonghun Baek
The University of Tokyo, Tokyo, Japan
3 shared publications - Junichiro Mori
The University of Tokyo, Tokyo, Japan
3 shared publications - Kenjiro Taura
The University of Tokyo, Tokyo, Japan
3 shared publications - Shigeru Chiba
The University of Tokyo, Tokyo, Japan
3 shared publications - Tetsuro Yamazaki
The University of Tokyo, Tokyo, Japan
3 shared publications - Yoko Yamakata
The University of Tokyo, Tokyo, Japan
3 shared publications
Latest Publications
- Open Access
- 23 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 83-93
Synthesizing Recursive Functional Programs via Structure-Element Separation
- 23 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 83-93
Open AccessSynthesizing Recursive Functional Programs via Structure-Element Separation
- 12 May 2026
- Published by Springer Nature
- p. 257-273
Test Your Polymorphic Functions with Boolean Values
- 12 May 2026
- Published by Springer Nature
- p. 257-273
Test Your Polymorphic Functions with Boolean Values
- Open Access
- 19 February 2026
- Published by Elsevier in Information Processing Letters
- Vol. 193
LR parsing for strings with placeholders
- 19 February 2026
- Published by Elsevier in Information Processing Letters
- Vol. 193
Open AccessLR parsing for strings with placeholders
- Open Access
- 17 February 2026
- Published by Association for Computing Machinery (ACM)
- p. 1227-1228
MaskingAgent: Preventing LLM Tutor from Providing Full Solutions in Python Programming Courses
- 17 February 2026
- Published by Association for Computing Machinery (ACM)
- p. 1227-1228
Open AccessMaskingAgent: Preventing LLM Tutor from Providing Full Solutions in Python Programming Courses
- Open Access
- 17 February 2026
- Published by Association for Computing Machinery (ACM)
- p. 80-86
LLM-Based Explainable Detection of LLM-Generated Code in Python Programming Courses
- 17 February 2026
- Published by Association for Computing Machinery (ACM)
- p. 80-86
Open AccessLLM-Based Explainable Detection of LLM-Generated Code in Python Programming Courses
- 1 October 2025
- Published by Springer Nature
- p. 359-377
Synthesizing Accumulative Functions Via Program Transformation
- 1 October 2025
- Published by Springer Nature
- p. 359-377
Synthesizing Accumulative Functions Via Program Transformation
- Open Access
- 18 February 2025
- Published by Association for Computing Machinery (ACM)
- p. 1369-1370
Leveraging LLM for Detecting and Explaining LLM-generated Code in Python Programming Courses
As large language models (LLMs) have become more advanced, generating code to solve exercises in programming courses has become significantly easier. However, this convenience raises the concern of over-reliance on these tools, potentially hindering students from developing independent coding skills. To address this concern, we introduce an LLM-based detector that not only detects LLM-generated code but also explains the reasons for its judgments. These reasons provide insight into the characteristics of LLM-generated code, enhancing transparency in the detection process. We evaluate the detector in an introductory Python programming course, achieving over 99% accuracy. Additionally, instructors manually reviewed the reasons provided by the detector and verified that 64.7% of reasons for classifying code as LLM-generated were appropriate. These reasons can also serve as feedback, helping students improve their coding skills by understanding the characteristics of expert-level LLM-generated code.
- 18 February 2025
- Published by Association for Computing Machinery (ACM)
- p. 1369-1370
Open AccessLeveraging LLM for Detecting and Explaining LLM-generated Code in Python Programming Courses
As large language models (LLMs) have become more advanced, generating code to solve exercises in programming courses has become significantly easier. However, this convenience raises the concern of over-reliance on these tools, potentially hindering students from developing independent coding skills. To address this concern, we introduce an LLM-based detector that not only detects LLM-generated code but also explains the reasons for its judgments. These reasons provide insight into the characteristics of LLM-generated code, enhancing transparency in the detection process. We evaluate the detector in an introductory Python programming course, achieving over 99% accuracy. Additionally, instructors manually reviewed the reasons provided by the detector and verified that 64.7% of reasons for classifying code as LLM-generated were appropriate. These reasons can also serve as feedback, helping students improve their coding skills by understanding the characteristics of expert-level LLM-generated code.
- Open Access
- 24 May 2023
- Published by Springer Nature in New Generation Computing
- Vol. 41 (3) , 523-531
When does 0–1 Principle Hold for Prefix Sums?
Knuth’s 0–1 principle argues that the correctness of any swap-based sorting network can be verified by testing arbitrary sequences over Boolean values (i.e., 0 and 1). Voigtländer (Proceedings of the 35th ACM SIGPLAN-SIGACT symposium on principles of programming languages, POPL 2008, San Francisco, California, USA, January 7–12, 2008. ACM, New York, NY, pp 29–35, 2008. https://doi.org/10.1145/1328438.1328445) proved a similar result for prefix-sum networks that consist of associative binary operators: the correctness can be verified by testing arbitrary sequences and associative binary operators over three values, namely 0, 1, and 2. He raised the question of whether testing over Boolean values is sufficient if the binary operator is idempotent in addition to associative. This paper answers his question. First, there is an incorrect prefix-sum network for associative idempotent operators, the flaw of which cannot be detected by testing over Boolean values. Second, testing over Boolean values is sufficient if the binary operators are restricted to commutative in addition to associative and idempotent.
- 24 May 2023
- Published by Springer Nature in New Generation Computing
- Vol. 41 (3) , 523-531
Open AccessWhen does 0–1 Principle Hold for Prefix Sums?
Knuth’s 0–1 principle argues that the correctness of any swap-based sorting network can be verified by testing arbitrary sequences over Boolean values (i.e., 0 and 1). Voigtländer (Proceedings of the 35th ACM SIGPLAN-SIGACT symposium on principles of programming languages, POPL 2008, San Francisco, California, USA, January 7–12, 2008. ACM, New York, NY, pp 29–35, 2008. https://doi.org/10.1145/1328438.1328445) proved a similar result for prefix-sum networks that consist of associative binary operators: the correctness can be verified by testing arbitrary sequences and associative binary operators over three values, namely 0, 1, and 2. He raised the question of whether testing over Boolean values is sufficient if the binary operator is idempotent in addition to associative. This paper answers his question. First, there is an incorrect prefix-sum network for associative idempotent operators, the flaw of which cannot be detected by testing over Boolean values. Second, testing over Boolean values is sufficient if the binary operators are restricted to commutative in addition to associative and idempotent.
- Open Access
- 1 January 2023
- Published by Information Processing Society of Japan in Journal of Information Processing
- Vol. 31, 21-32
Conjuring Fusion Laws via Relational Calculus
Wadler demonstrated that several laws, called “free theorems”, about polymorphic functions can be derived from their types alone. Free theorems form the foundations of many program transformations, including function fusions particularly. Walder's approach requires systematic but cumbersome reasoning, which makes it difficult for non-experts to apply. To alleviate this problem, Voigtländer proposed a conjuring lemma. This lemma derives free theorems from an expression containing polymorphic functions but whose type does not contain polymorphic type variables. Unfortunately, it cannot derive function fusion laws. In this work, we generalize the conjuring lemma on the basis of Bird and de Moor's relational calculus. This calculus uses non-deterministic computations for uniformly describing and thereby relating specifications and implementations. To make the generalized conjuring lemma easier to use, we develop simpler corollaries by borrowing intuitions from the worker/wrapper transformations. The effectiveness of our approach is demonstrated through experiments with the derivation of three well-known fusion laws. While the original conjuring lemma cannot derive any of them, the generalization can systematically derive all.
- 1 January 2023
- Published by Information Processing Society of Japan in Journal of Information Processing
- Vol. 31, 21-32
Open AccessConjuring Fusion Laws via Relational Calculus
Wadler demonstrated that several laws, called “free theorems”, about polymorphic functions can be derived from their types alone. Free theorems form the foundations of many program transformations, including function fusions particularly. Walder's approach requires systematic but cumbersome reasoning, which makes it difficult for non-experts to apply. To alleviate this problem, Voigtländer proposed a conjuring lemma. This lemma derives free theorems from an expression containing polymorphic functions but whose type does not contain polymorphic type variables. Unfortunately, it cannot derive function fusion laws. In this work, we generalize the conjuring lemma on the basis of Bird and de Moor's relational calculus. This calculus uses non-deterministic computations for uniformly describing and thereby relating specifications and implementations. To make the generalized conjuring lemma easier to use, we develop simpler corollaries by borrowing intuitions from the worker/wrapper transformations. The effectiveness of our approach is demonstrated through experiments with the derivation of three well-known fusion laws. While the original conjuring lemma cannot derive any of them, the generalization can systematically derive all.
- Open Access
- 20 January 2022
- Published by Cambridge University Press (CUP) in Journal of Functional Programming
- Vol. 32
Fregel: a functional domain-specific language for vertex-centric large-scale graph processing
The vertex-centric programming model is now widely used for processing large graphs. User-defined vertex programs are executed in parallel over every vertex of a graph, but the imperative and explicit message-passing style of existing systems makes defining a vertex program unintuitive and difficult. This article presents Fregel, a purely functional domain-specific language for processing large graphs and describes its model, design, and implementation. Fregel is a subset of Haskell, so Haskell tools can be used to test and debug Fregel programs. The vertex-centric computation is abstracted using compositional programming that uses second-order functions on graphs provided by Fregel. A Fregel program can be compiled into imperative programs for use in the Giraph and Pregel+ vertex-centric frameworks. Fregel’s functional nature without side effects enables various transformations and optimizations during the compilation process. Thus, the programmer is freed from the burden of program optimization, which is manually done for existing imperative systems. Experimental results for typical examples demonstrated that the compiled code can be executed with reasonable and promising performance.
- 20 January 2022
- Published by Cambridge University Press (CUP) in Journal of Functional Programming
- Vol. 32
Open AccessFregel: a functional domain-specific language for vertex-centric large-scale graph processing
The vertex-centric programming model is now widely used for processing large graphs. User-defined vertex programs are executed in parallel over every vertex of a graph, but the imperative and explicit message-passing style of existing systems makes defining a vertex program unintuitive and difficult. This article presents Fregel, a purely functional domain-specific language for processing large graphs and describes its model, design, and implementation. Fregel is a subset of Haskell, so Haskell tools can be used to test and debug Fregel programs. The vertex-centric computation is abstracted using compositional programming that uses second-order functions on graphs provided by Fregel. A Fregel program can be compiled into imperative programs for use in the Giraph and Pregel+ vertex-centric frameworks. Fregel’s functional nature without side effects enables various transformations and optimizations during the compilation process. Thus, the programmer is freed from the burden of program optimization, which is manually done for existing imperative systems. Experimental results for typical examples demonstrated that the compiled code can be executed with reasonable and promising performance.