Learning Graph Structure With A Finite-State Automaton Layer

被引:0
|
作者
Johnson, Daniel D. [1 ]
Larochelle, Hugo [1 ]
Tarlow, Daniel [1 ]
机构
[1] Google Res, Mountain View, CA 94043 USA
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Graph-based neural network models are producing strong results in a number of domains, in part because graphs provide flexibility to encode domain knowledge in the form of relational structure (edges) between nodes in the graph. In practice, edges are used both to represent intrinsic structure (e.g., abstract syntax trees of programs) and more abstract relations that aid reasoning for a downstream task (e.g., results of relevant program analyses). In this work, we study the problem of learning to derive abstract relations from the intrinsic graph structure. Motivated by their power in program analyses, we consider relations defined by paths on the base graph accepted by a finite-state automaton. We show how to learn these relations end-to-end by relaxing the problem into learning finite-state automata policies on a graph-based POMDP and then training these policies using implicit differentiation. The result is a differentiable Graph Finite-State Automaton (GFSA) layer that adds a new edge type (expressed as a weighted adjacency matrix) to a base graph. We demonstrate that this layer can find shortcuts in grid-world graphs and reproduce simple static analyses on Python programs. Additionally, we combine the GFSA layer with a larger graph-based model trained end-to-end on the variable misuse program understanding task, and find that using the GFSA layer leads to better performance than using hand-engineered semantic edges or other baseline methods for adding learned edge types.
引用
收藏
页数:12
相关论文
共 50 条
  • [1] CLOSURE OF FINITE-STATE AUTOMATON LANGUAGES
    SU, L
    MO, ZW
    [J]. FUZZY SETS AND SYSTEMS, 1995, 75 (03) : 393 - 397
  • [2] AN EXECUTIVE SYSTEM IMPLEMENTED AS A FINITE-STATE AUTOMATON
    HEISTAND, RE
    [J]. COMMUNICATIONS OF THE ACM, 1964, 7 (11) : 669 - 677
  • [3] Does a rock implement every finite-state automaton?
    Chalmers, DJ
    [J]. SYNTHESE, 1996, 108 (03) : 309 - 333
  • [4] Diagnosability of faults using Finite-State Automaton Model
    Xi, YX
    Lim, KW
    Ho, WK
    Preisig, HA
    [J]. IEEE 2000 TENCON PROCEEDINGS, VOLS I-III: INTELLIGENT SYSTEMS AND TECHNOLOGIES FOR THE NEW MILLENNIUM, 2000, : A367 - A371
  • [5] Finite-State Automaton To/From Regular Expression Visualization
    Morazan, Marco T.
    Seton, Tijana Minic
    [J]. ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2024, (405): : 36 - 55
  • [6] A multi-step finite-state automaton for arbitrarily deterministic Tsetlin Machine learning
    Abeyrathna, Kuruge Darshana
    Granmo, Ole-Christoffer
    Shafik, Rishad
    Jiao, Lei
    Wheeldon, Adrian
    Yakovlev, Alex
    Lei, Jie
    Goodwin, Morten
    [J]. EXPERT SYSTEMS, 2023, 40 (04)
  • [7] An automatic acquisition method of statistic finite-state automaton for sentences
    Suzuki, M
    Makino, S
    Aso, H
    [J]. ICASSP '99: 1999 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, PROCEEDINGS VOLS I-VI, 1999, : 737 - 740
  • [8] The Behavior of a Finite-State Automaton in a Fuzzy Environment: Theory and Applications
    Stefanyuk, V. L.
    [J]. SCIENTIFIC AND TECHNICAL INFORMATION PROCESSING, 2015, 42 (06) : 426 - 431
  • [9] Fault diagnosis using dynamic finite-state automaton models
    Xi, YX
    Lim, KW
    Ho, WK
    Presisig, HA
    [J]. IECON'01: 27TH ANNUAL CONFERENCE OF THE IEEE INDUSTRIAL ELECTRONICS SOCIETY, VOLS 1-3, 2001, : 484 - 489
  • [10] ON LEARNING FINITE-STATE QUANTUM SOURCES
    Juba, Brendan
    [J]. QUANTUM INFORMATION & COMPUTATION, 2012, 12 (1-2) : 105 - 118