Professional Documents
Culture Documents
1995
Vasant Honavar
Iowa State University
Recommended Citation
Chen, Chun-Hsien and Honavar, Vasant, "A Neural Network Architecture for High-Speed Database Query Processing" (1995).
Computer Science Technical Reports. 43.
http://lib.dr.iastate.edu/cs_techreports/43
This Article is brought to you for free and open access by the Computer Science at Iowa State University Digital Repository. It has been accepted for
inclusion in Computer Science Technical Reports by an authorized administrator of Iowa State University Digital Repository. For more information,
please contact digirep@iastate.edu.
A Neural Network Architecture for High-Speed Database Query
Processing
Abstract
Artificial neural networks (ANN), due to their inherent parallelism and potential fault tolerance offer an
attractive paradigm for robust and efficient implementations of large modern database and knowledge base
systems. This paper explores a neural network model for efficient implementation of a database query system.
The application of the proposed model to a high-speed library query system for retrieval of multiple items is
based on partial match of the specified query criteria with the stored records. The performance of the ANN
realization of the database query module is analyzed and compared with other techniques commonly in
current computer systems. The results of this analysis suggest that the proposed ANN design offers an
attractive approach for the realization of query modules in large database and knowledge base systems,
especially for retrieval based on partial matches.
Disciplines
OS and Networks | Systems Architecture | Theory and Algorithms
Abstract
Articial neural networks (ANN), due to their inherent parallelism
and potential fault tolerance oer an attractive paradigm for robust
and ecient implementations of large modern database and knowl-
edge base systems. This paper explores a neural network model for
ecient implementation of a database query system. The applica-
tion of the proposed model to a high-speed library query system for
retrieval of multiple items is based on partial match of the specied
query criteria with the stored records. The performance of the ANN
realization of the database query module is analyzed and compared
with other techniques commonly in current computer systems. The
results of this analysis suggest that the proposed ANN design oers
an attractive approach for the realization of query modules in large
database and knowledge base systems, especially for retrieval based
on partial matches.
This research was partially supported by the National Science Foundation through
the grant IRI-9409580 to Vasant Honavar. A preliminary version of this paper [Chen
and Honavar, 1995c] appears in the Proceedings of the 1995 World Congress on Neural
Networks.
1
1 Introduction
Articial neural networks (ANN) oer an attractive computational model
for a variety of applications in pattern classication, language processing,
complex systems modelling, control, optimization, prediction and automated
reasoning for a variety of reasons including: potential for massively parallel,
high-speed processing, resilience in the presence of faults (failure of compo-
nents) and noise. Despite a large number of successful applications of ANN
in pattern classication, signal processing, and control, their use in complex
symbolic computing tasks (including storage and retrieval of records in large
databases, and inference in deductive knowledge bases) is only beginning to
be explored (Honavar, & Uhr, 1994; Sun, 1994; Levine & Aparicioiv, 1994;
Goonatilake & Khebbal, 1995).
This paper explores the application of neural networks to database query
processing. Database query can be viewed as a process of table lookup which
is used in a wide variety of computing applications. Examples of such lookup
tables include: routing tables used in routing of messages in communication
networks, symbol tables used in compiling computer programs written in high
level languages, and lexicons or dictionaries used in in natural language pro-
cessing. Many applications require the lookup mechanism or query processing
system to be capable of retrieving items based on partial matches or retrieval
of multiple records matching the specied query criteria. This capability is
computationally rather expensive in many current systems. The ANN-based
approach to database query processing that is proposed in this paper exploits
the fact that the database lookup task can be viewed at an abstract level,
in terms of binary mappings which can be eciently and robustly realized
using ANNs (Chen & Honavar, 1994; Chen & Honavar, 1995a).
The rest of the paper is organized as follows:
Section 2 reviews the mathematical model of multiple recall from par-
tially specied input pattern in a neural network proposed in (Chen &
Honavar, 1995a).
Section 3 develops an ANN design for a high-speed library query system
in detail based on the model described in section 2.
Section 4 compares the performance of the proposed ANN-based query
processing system with that of several currently used techniques.
Section 5 concludes with a summary of the paper.
...
... ... ... output neurons
...
input input bus
Figure 1 shows a modular design of the proposed ANN memory for easy
expansion. This 1-dimensional array structure can be easily extended to 2
or 3-dimensional array structures.
It is rather straightforward to modify the proposed database query system
to make it case-insensitive. The following shows ASCII codes of English
characters, which are denoted in hexadecimal and binary codes.
A = 41 = 0100 0001 , ... , Z = 5A = 0101 1010
16 2 16 2
a = 61 = 0110 0001 , ... , z = 7A = 0111 1010
16 2 16 2
The binary codes for the capital case and small case of every same English
character only dier at the 3rd bit counted from left hand side. If that bit is
viewed as \don't care", this query system will be case insensitive. This eect
can be achieved by treating the corresponding input value as though it was
unavailable.
4 Comparison with Other Database Query
Processing Techniques
This section compares the anticipated performance of the proposed neural
architecture for database query processing with other approaches that are
widely used at present. Such a performance comparison takes into account
the performance of hardware that is used in these systems and the process
used for locating data items. First the performance of the proposed neural
network is estimated, based on current CMOS technology for realizing neural
networks. Next, the operation of conventional database systems is examined,
and their performance is estimated and compared to that of the proposed
neural architecture.
Then, onn average, half of the 240 bits of key are compared in every visit).
Suppose the speed of the 64-bit processor is 100 MIPS (million instructions
per second). This overhead will be about 0:5M 10 10ns = 50M ns (=
1050 ns if M = 21) which is far more than 100ns. Once again, note that
this is only the cost for locating a single record. The cost for locating several
related records using user-entered data for multiple elds (could be partially
specied) is examined in next section.
The Cost of Partial-Match Queries
One of the most commonly used data structures for processing partial-match
queries on multiple elds is k-d-tree (Bentley, 1975). In the worst case, the
number of visited nodes in an ideal k-d-tree containing M nodes (one for each
record stored) for locating the desired records for a partial-match query is
(J + 2)2K,J , , 1 [(M + 1) K,J =K , 1] O(M K,J =K )
1
( ) ( )
2K ,J , 1
where K is the number of elds used to construct the k-d-tree, and J out
of K elds are explicitly specied with query criteria by user. For typical
values of M , K , and J , the performance of such systems is far worse than
that of the proposed ANN based model.
References
J. L. Bently, Multidimensional Binary Search Trees Used for Associative
Searching, Communications of the ACM, vol. 18, no. 9, pp. 507-517,
1975.
C. Chen & V. Honavar, Neural Network Automata, Proc. of World Congress
on Neural Networks, vol. 4, pp. 470-477, San Diego, 1994.
C. Chen and V. Honavar, Neural Associative Memories for Content as well
as Address-Based Storage and Recall: Theory and Applications, To ap-
pear. Preliminary version available as Iowa State University Dept. of
Computer Science Tech. Rep. ISU-CS-TR 95-03.
C. Chen and V. Honavar, Neural Network Architecture for Parallel Set Op-
erations In preparation.
C. Chen and V. Honavar, A Neural Network Archictecture for a High-Speed
Database Query Processing System. Proc. of World Congress on Neural
Networks, Washington, D.C. 1995.
Goonatilake, S. and Khebbal, S. (Ed.) Intelligent Hybrid Systems. Wiley,
London, 1995.
S. M. Gowda et al., Design and Characterization of Analog VLSI Neural
Network Modules, IEEE Journal of Solid-State Circuits, vol. 28, no. 3,
pp. 301-313, 1993.
H. P. Graf and D. Henderson, A Recongurable CMOS Neural Network,
ISSCC Dig. Tech. Papers, pp. 144-145, San Francisco, CA, 1990.
D. Grant et al., Design, Implementation and Evaluation of a High-Speed Inte-
grated Hamming Neural Classier, IEEE Journal of Solid-State Circuits,
vol. 29, no. 9, pp. 1154-1157, 1994.
R. L. Greene, Connectionist Hashed Associative Memory, Articial Intelli-
gence 48, pp. 87-98, 1991.
A. Hamilton et al., Integrated Pulse Stream Neural Networks: Results, Is-
sues, and Pointers, IEEE Transactions on Neural Networks, vol. 3, no.
3, pp. 385-393, 1992.
V. Honavar and L. Uhr (Ed.) Articial Intelligence and Neural Networks:
Steps Toward Principled Integration. Academic Press, New York, 1994.
T. Kohonen, Content-Addressable Memories, 2nd ed., Springer-Verlag,
Berlin, 1987.
R. Kumar, NCMOS: A High Performance CMOS Logic, IEEE Journal of
Solid-State Circuits, vol. 29, no. 5, pp. 631-633, 1994.
D. Levine and M. Aparicioiv (Ed.) Neural Networks for Knowledge Repre-
sentation and Inference. Lawrence Erlbaum, Hillsdale, NJ, 1994.
J. B. Lont and W. Guggenbuhl, Analog CMOS Implementation of a Multi-
layer Perceptron with Nonlinear Synapses, IEEE Transactions on Neural
Networks, vol. 3, no. 3, pp. 457-465, 1992.
F. Lu and H. Samueli, A 200-MHz CMOS Pipelined Multiplier-Accumulator
Using a Quasi-Domino Dynamic Full-Adder Cell Design, IEEE Journal
of Solid-State Circuits, vol. 28, no. 2, pp. 123-132, 1993.
L. W. Massengill and D. B. Mundie, An Analog Neural Network Hardware
Implementation Using Charge-Injection Multipliers and Neuron-Specic
Gain Control, IEEE Transactions on Neural Networks, vol. 3, no. 3, pp.
354-362, 1992.
M. Minsky and S. Papert, Perceptrons: An Introduction to Computational
Geometry, MIT Press, Massachusetts, 1969.
G. Moon et al., VLSI Implementation of Synaptic Weighting and Summing
in Pulse Coded Neural-Type Cells, IEEE Transactions on Neural Net-
works, vol. 3, no. 3, pp. 394-403, 1992.
M. Raquzzaman and R. Chandra, Modern Computer Architecture, Chapter
3, West Publishing Company, St. Paul, Minnesota, 1988.
M. E. Robinson et al., A Modular CMOS Design of a Hamming Network,
IEEE Transactions on Neural Networks, vol. 3, no. 3, pp. 444-456, 1992.
R. Sedgewick, Algorithms, 2nd ed., Addison-Wesley, 1988.
R. Sun and L. Bookman (Ed.) Computational Architectures Integrating Sym-
bolic and Neural Processes. Kluwer, New York, 1994.
K. Uchimura et al., An 8G Connection-per-second 54mW Digital Neural Net-
work with Low-power Chain-Reaction Architecture, ISSCC Dig. Tech.
Papers, pp. 134-135, San Francisco, CA, 1992.
J. D. Ullman, Principles of Databases and Knowledge-base Systems, vol. I,
Chapter 6, Computer Science Press, Maryland, 1988.
T. Watanabe et al., A Single 1.5-V Digital Chip for a 10 Synapse Neural
6