Method and system for adjusting hardware performance for high frequency securities trading
By dynamically adjusting hardware performance in high-frequency securities trading systems based on context information, the method optimizes resource allocation and workload distribution, addressing computational challenges and ensuring efficient order data generation and reduced latency.
Patent Information
- Application Number
- JP2023042519
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-01-02
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-03-17
AI Technical Summary
High-frequency securities trading systems face challenges in managing computational complexity and resource allocation for machine learning models, leading to variable throughput and latency, which can result in delayed order data generation and potential hardware failures.
A method and system for dynamically adjusting hardware performance by receiving context information, determining the need for performance changes, and reallocating resources such as clock speed and voltage to dedicated accelerators based on market data traffic and computational complexity, ensuring optimal workload distribution for machine learning models.
This approach enhances system throughput by providing necessary resources when needed, preventing delays in order data generation, minimizing hardware failures, and optimizing workload scheduling for high-frequency securities trading.
Smart Images

Figure 0007548513000002 
Figure 0007548513000010 
Figure 0007548513000015
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a method and system for adjusting hardware performance for high frequency securities trading, and in particular to a method and system for adjusting hardware performance based on at least one of data traffic, computational complexity of machine learning, or available resources of the hardware. [Background technology]
[0002] Securities such as stocks, bonds, derivatives, etc. are actively traded online. Prices of securities fluctuate from time to time, so traders can monitor price fluctuations and buy or sell securities that reach a target price or stop loss price. Such buying and selling of securities can also be carried out automatically through algorithms.
[0003] Additionally, high frequency trading, which predicts minute price fluctuations and executes trades at high frequency within a short period of time, is occurring in the securities market. High frequency trading is a trading method in which transactions are executed at high frequency (e.g., hundreds to thousands of times per second) within a short period of time by taking advantage of minute price fluctuations in securities such as stocks, bonds, and derivatives. Rapid processing is extremely important in high frequency trading. Generally, the shorter the time it takes to process and output a trading algorithm based on input information, the greater the advantage in trading.
[0004] Meanwhile, machine learning models are used in high frequency securities trading. High frequency securities trading techniques using machine learning models analyze a large amount of data obtained from the market, so when predicting the market price of a particular item, more factors are considered than with classical algorithms, and the accuracy of market price prediction is also superior. However, in order to analyze a large amount of data using a machine learning model, a large amount of storage space and processing resources may be required for the operation of the machine learning model.
[0005] In addition, since a machine learning model requires complex calculations on a large amount of data, the calculation speed for a securities order may change depending on the amount of data and the calculation complexity using the machine learning model. For example, when the amount of data is small, the calculation speed of the machine learning model increases, and when the calculation complexity is high, the calculation speed of the machine learning model decreases. That is, the throughput and / or latency of a system including a machine learning model may change depending on the amount of data and / or the calculation complexity. When the delay time for order data increases due to an increase in the amount of data or an increase in the calculation complexity, there is a risk of delaying the generation of order data in high frequency securities trading. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Korean Patent Publication No. 10-2001-0016454 Summary of the Invention [Problem to be solved by the invention]
[0007] The present disclosure provides a hardware performance adjustment method, computer program, and device (system) for high frequency securities trading to solve the above problems. [Means for solving the problem]
[0008] The present disclosure may be embodied in numerous ways, including as a method, an apparatus (system), and / or a computer program stored on a computer readable storage medium.
[0009] According to one embodiment of the present disclosure, a method for adjusting performance of hardware for high frequency securities trading performed by at least one processor may include receiving context information including at least one of market data traffic for one or more target items or computational complexity using a machine learning model performed based on the market data, determining whether to change processing performance for the hardware based on the received context information, and changing resources provided to the hardware based on a result of the determination to change the processing performance.
[0010] According to one embodiment of the present disclosure, a method for adjusting performance of hardware for high frequency securities trading, performed by at least one processor, may include the steps of acquiring a plurality of input data for high frequency securities trading, determining a workload for an inference operation of a machine learning model based on an allowable time for completing the work and available resources of the hardware, selecting at least one input data from the plurality of input data based on the determined workload, and applying the selected at least one input data to the machine learning model.
[0011] A computer program for executing a method for controlling performance of hardware according to an embodiment of the present disclosure on a computer is provided.
[0012] According to one embodiment of the present disclosure, an information processing system may include a memory storing one or more instructions; and a processor configured to execute the one or more instructions in the memory to receive context information including at least one of market data traffic for one or more target items or computational complexity using a machine learning model performed based on the market data, determine whether to modify processing performance for hardware based on the received context information, and modify resources provided to the hardware based on a result of the determination to modify the processing performance.
[0013] According to one embodiment of the present disclosure, an information processing system may include a memory storing one or more instructions; and a processor configured to execute the one or more instructions in the memory to obtain a plurality of input data for high frequency securities trading, determine a workload for an inference operation of a machine learning model based on an allowable time for completion of the operation and available resources of hardware, select at least one input data from the plurality of input data based on the determined workload, and apply the selected at least one input data to the machine learning model. Effect of the Invention
[0014] According to some embodiments of the present disclosure, a large amount of resources can be provided to the hardware when high performance is required, thereby improving the throughput of the hardware and enabling the calculation for generating the order data to be performed quickly and without delay.
[0015] According to some embodiments of the present disclosure, it is possible to accurately predict resources for which hardware processing performance should be changed, and when such changes should be made, based on context information including at least one of market data traffic or the computational complexity of a machine learning model.
[0016] According to some embodiments of the present disclosure, more resources are allocated to a dedicated accelerator with a high load among multiple dedicated accelerators, thereby preventing a situation in which the generation of order data is delayed due to a dedicated accelerator with a concentrated load.
[0017] According to some embodiments of the present disclosure, hardware may be restricted from operating at or above a certain performance value for a predetermined period of time, thereby minimizing or eliminating hardware failures that may occur when hardware that exceeds its performance value continues to operate.
[0018] According to some embodiments of the present disclosure, an optimal workload for an inference operation of a machine learning model may be determined, and at least one input data having a batch size based on the determined workload may be applied to the machine learning model, thereby generating a maximum number or amount of order data for high-frequency securities trading within an allowable time.
[0019] According to some embodiments of the present disclosure, if there are remaining available resources after resources are provided to one or more dedicated accelerators, the remaining available resources can be provided to the dedicated accelerator that should provide the maximum performance, thereby preventing the remaining available resources from being wasted and effectively providing the performance of the system for performing high frequency securities trading.
[0020] According to some embodiments of the present disclosure, the dedicated accelerator can be provided with the minimum resources within the allowable range before performing work scheduling, thereby maximizing the available resources of the hardware before performing work scheduling, and by utilizing the maximizing available resources, work scheduling for efficient high-frequency orders can be performed.
[0021] The effects of the present disclosure are not limited to these, and other effects not mentioned should be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains (hereinafter referred to as a "person skilled in the art") from the description in the claims. [Brief description of the drawings]
[0022] BRIEF DESCRIPTION OF THE DRAWINGS Examples of the present disclosure will now be described, without limitation, with reference to the accompanying drawings, in which like reference numerals refer to like elements and in which: FIG. [Figure 1] FIG. 1 is a schematic diagram illustrating an example of operation of an information processing system according to an embodiment of the present disclosure. [Diagram 2] 1 is a block diagram showing an internal configuration of an information processing system according to an embodiment of the present disclosure. [Diagram 3] FIG. 2 is a diagram illustrating an internal configuration of a processor according to an embodiment of the present disclosure. [Figure 4] FIG. 13 is a diagram showing an example in which a machine learning model according to an embodiment of the present disclosure outputs output data based on input data. [Diagram 5] FIG. 1 is a diagram illustrating an example of the configuration of input data for a machine learning model according to an embodiment of the present disclosure. [Figure 6] FIG. 2 is a diagram illustrating an example of an artificial neural network model according to an embodiment of the present disclosure. [Figure 7] FIG. 1 is a diagram illustrating an example of an internal configuration of an information processing system according to an embodiment of the present disclosure. [Figure 8] FIG. 13 is a diagram illustrating an example of an internal configuration of an information processing system according to another embodiment of the present disclosure. [Figure 9] FIG. 2 is a diagram illustrating examples of various lookup tables used for hardware resource control according to one embodiment of the present disclosure. [Figure 10] 1 is a flow chart illustrating a method for dynamically adjusting hardware performance for high frequency securities trading according to one embodiment of the present disclosure. [Figure 11] 1 is a flowchart illustrating a method in which minimal resources are provided to hardware according to an embodiment of the present disclosure. [Figure 12] 1 is a flowchart illustrating a method for scheduling work for high frequency securities trading according to one embodiment of the present disclosure. [Figure 13] 13 is a flowchart for explaining step S1220 of FIG. 12 in more detail according to an embodiment of the present disclosure. [Figure 14] 1 is a flowchart illustrating a method for additionally providing available resources to an NPU according to an embodiment of the present disclosure. [Figure 15] FIG. 2 is a block diagram of any computing device associated with securities exchange generation in accordance with one embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] <Summary of the Invention> According to one embodiment of the present disclosure, modifying the resource may include modifying at least one of a speed or a voltage of a clock provided to the hardware.
[0024] In addition, the step of determining whether to change the processing performance may include a step of determining the processing performance required of the hardware based on the received context, and the step of changing the resources may include a step of adjusting at least one of the speed or voltage of a clock supplied to the hardware based on the determined processing performance of the hardware.
[0025] The hardware may also include a plurality of dedicated accelerators for operation of the machine learning model, and the step of adjusting at least one of the clock speed or voltage may include identifying one or more dedicated accelerators among the plurality of dedicated accelerators based on the determined processing performance, and adjusting at least one of the clock speed or voltage supplied to the identified one or more dedicated accelerators.
[0026] The hardware may also include at least one of a dedicated accelerator, a memory, or a processor, wherein at least one of the dedicated accelerator, the memory, or the processor is partitioned into a plurality of processing regions associated with a plurality of layers included in the machine learning model, and the step of adjusting at least one of the clock speed or voltage may include identifying one or more processing regions among the plurality of processing regions based on the determined processing performance, and adjusting at least one of the clock speed or voltage supplied to the identified one or more processing regions.
[0027] Additionally, the step of adjusting at least one of the clock speed or voltage may include a step of controlling one or more clock sources of a plurality of clock sources to be active in order to provide the hardware with a target clock speed corresponding to the determined processing performance.
[0028] Additionally, adjusting at least one of the clock speed or voltage may include controlling one or more voltage sources of a plurality of voltage sources to be active to supply a target voltage to the hardware corresponding to the determined processing performance.
[0029] Additionally, the step of determining whether to change the processing performance may include determining a performance grade of the hardware required to process the market data based on the context information, and determining that a change in the processing performance of the hardware is required if the determined performance grade differs from a previously determined performance grade.
[0030] In addition, the method for controlling the performance of hardware may further include, after the step of changing the resource, a step of determining whether the changed resource is equal to or greater than a predetermined threshold, a step of measuring a time for which the changed resource is supplied if the changed resource is equal to or greater than the predetermined threshold, and a step of controlling so that a resource lower than the threshold is supplied to the hardware if the measured time reaches a threshold time.
[0031] Additionally, receiving the context information may include receiving the identified traffic based on at least one of a number of times the market data is received per unit time, or a volume of the market data received per unit time.
[0032] In addition, the hardware includes a processor for data preprocessing, the processor for data preprocessing includes a data preprocessing unit, and the step of determining whether to change the processing performance can determine that a change in the processing performance of the data preprocessing unit is requested when the received traffic is equal to or greater than a predetermined threshold.
[0033] Additionally, receiving the context information may include receiving a computational complexity measured based on at least one of a hardware load or a magnitude of a parameter used in the computation of the machine learning model.
[0034] The hardware may also include an accelerator for computing the machine learning model, the accelerator including a computing module, and the step of determining whether to change the processing performance may include determining that a change in processing performance for the computing module is requested when the received computational complexity is greater than or equal to a predetermined threshold.
[0035] <Detailed Description of the Invention> Hereinafter, specific contents for carrying out the present disclosure will be described in detail with reference to the accompanying drawings. However, in the following description, detailed descriptions of known functions and configurations will be omitted if there is a risk of unnecessarily obscuring the gist of the present disclosure.
[0036] In the accompanying drawings, the same or corresponding components are given the same reference numerals. In addition, in the following description of the embodiments, duplicated descriptions of the same or corresponding components may be omitted. However, omission of a description of a component does not intend that such a component is not included in a certain embodiment.
[0037] The advantages and features of the disclosed embodiments and the methods of achieving them will become apparent from the following examples, taken in conjunction with the accompanying drawings. However, the present disclosure is not limited to the embodiments disclosed below, and may be embodied in various different forms. The embodiments are merely provided to make the disclosure complete and to allow those skilled in the art to accurately recognize the category of the invention.
[0038] The terms used in this disclosure will be briefly explained, and the disclosed embodiments will be specifically described. Regarding the terms used in this specification, general terms currently widely used as much as possible have been selected while taking into consideration the functions in this disclosure, but this may change depending on the intentions or precedents of engineers engaged in related fields, the emergence of new technologies, etc. In addition, in certain cases, there may be terms arbitrarily selected by the applicant, but the meanings of these will be described in detail in the description of the invention. Therefore, the terms used in this disclosure should be defined based on the meanings of the terms and the overall content of this disclosure, rather than simply the names of the terms.
[0039] In this disclosure, unless otherwise clearly specified in the context, the singular expression may include the plural expression, and the plural expression may include the singular expression. Throughout the specification, when a part "comprises" a certain element, this does not exclude other elements, and means that other elements may also be included, unless otherwise specified to the contrary.
[0040] In addition, the term "module" or "unit" as used in the specification means a software or hardware component, and the "module" or "unit" performs a certain function. However, the term "module" or "unit" is not limited to software or hardware. The "module" or "unit" may be configured to be in an addressable storage medium or to execute one or more processors. Thus, as an example, a "module" or "unit" may include components such as software components, object-oriented software components, class components, and task components, as well as at least one of a process, a function, an attribute, a procedure, a subroutine, a segment of program code, a driver, firmware, microcode, a circuit, data, a database, a data structure, a table, an array, or a variable. The components and "modules" or "units" may be combined into a smaller number of components and "modules" or "units" or the functions provided therein may be further separated into additional components and "modules" or "units".
[0041] According to an embodiment of the present disclosure, a "module" or a "unit" may be embodied with a processor and a memory. A "processor" should be broadly construed to include a general purpose processor, a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a controller, a microcontroller, a state machine, and the like. In some environments, a "processor" may also refer to an application specific semiconductor (ASIC), a programmable logic device (PLD), a field programmable gate array (FPGA), and the like. For example, an application specific semiconductor may include a neural network processing unit (NPU), and the like. A "processor" may also refer to a combination of processing devices, such as a combination of a CPU, an NPU, and an FPGA, a combination of a DSP and a microprocessor, a combination of multiple microprocessors, a combination of one or more microprocessors in conjunction with a DSP core, or any other such configuration. Additionally, a "memory" should be broadly construed to include any electronic component capable of storing electronic information. "Memory" may refer to various types of processor-readable media such as Random Access Memory (RAM), Read Only Memory (ROM), Non-Volatile Random Access Memory (NVRAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory, magnetic or optical data storage devices, registers, etc. Memory is said to be in electronic communication with a processor when the processor can read information from the memory and write information to the memory that it reads. Memory that is integrated into a processor is in electronic communication with the processor.
[0042] In the present disclosure, a "system" may include, but is not limited to, at least one of a server device and a cloud device. For example, the system may be comprised of one or more server devices. As another example, the system may be comprised of one or more cloud devices. As yet another example, the system may be operated by both a server device and a cloud device. As yet another example, the system may be a client device for high frequency securities orders.
[0043] Furthermore, terms such as 1, 2, A, B, (a), (b), etc. used in the following examples are used merely to distinguish one component from another, and are not intended to limit the essence, order, etc. of the components.
[0044] In addition, in the following examples, etc., when a certain component is described as being "coupled," "coupled," or "connected" to another component, it should be understood that the component may be directly coupled or connected to the other component, but other components may also be "coupled," "coupled," or "connected" between each component.
[0045] Furthermore, when used in the following examples, etc., "comprises" and / or "comprising" refers to a referenced component, step, operation and / or element, it does not exclude the presence or addition of one or more other components, steps, operations and / or elements.
[0046] In the present disclosure, "each of a plurality of A's" can refer to each of all of the components included in the plurality of A's, or each of some of the components included in the plurality of A's.
[0047] In this disclosure, "hardware" refers to any device used to implement the high frequency trading method, and may include, but is not limited to, a central processing unit (e.g., a CPU), a reprogrammable or redesignable processor (e.g., an FPGA), an accelerator (e.g., an NPU, a GPU, etc.), memory, etc. Such hardware may be included in or be in close proximity to an information processing system.
[0048] In this disclosure, "resource" may refer to any resource provided to hardware in order for the hardware to operate, and may include, for example, voltage, clock frequency, and the like.
[0049] In this disclosure, the term "item" may refer to a classification of securities, such as stocks, bonds, and derivatives (such as options and futures), that are traded on the securities market, based on their content and type. Items may include, in addition to individual items, index-related items, industry sector-related items, items for specific commodities (e.g., crude oil, agricultural products, gold, etc.), currency-related items, etc.
[0050] In this disclosure, a "stock exchange" may refer to a place where securities circulating in at least one country are traded and where securities issued by companies, governments, etc. are listed and made available for trading. In one embodiment, a stock exchange may include a stock exchange system.
[0051] In this disclosure, an “Order Book (OB)” may include a list that records information about buy or sell orders (such as bids, quantities, and information about the buyers or sellers) of buyers and sellers in the securities market.
[0052] In this disclosure, "Top of the Book" (ToB) may include information regarding the highest bid and lowest ask prices.
[0053] In this disclosure, "market data" may include data for instruments traded on a securities exchange. For example, market data may include order books, public announcements, news, etc. for (at least a portion of) instruments traded on a securities exchange.
[0054] In the present disclosure, a "machine learning model" may include any model used to infer an answer to a given input. According to one embodiment, the machine learning model may include an artificial neural network model including an input layer, a number of hidden layers, and an output layer, where each layer may include a number of nodes. Also, in the present disclosure, the machine learning model may be referred to as an artificial neural network model, and the artificial neural network model may be referred to as a machine learning model.
[0055] In this disclosure, "instructions" may refer to a sequence of computer-readable instructions, grouped together according to function, that are components of a computer program and that are executed by a processor.
[0056] In this disclosure, "context information" may refer to any information associated with the amount of data used to generate the order data, the frequency of data generation, the hardware load, the system environment, etc. For example, the context information may include at least one of the traffic of the market data or the computational complexity of using a machine learning model performed based on the market data.
[0057] Various embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0058] FIG. 1 is a schematic diagram illustrating an example of the operation of an information processing system 110 according to an embodiment of the present disclosure. According to an embodiment, the information processing system 110 can predict market conditions at one or more future times (near future times, for example, after a predetermined time) based on market data, generate orders for a target item based on the market data, and transmit the orders to a target stock exchange (second stock exchange). In high-frequency securities trading, it is very important to generate and transmit orders quickly based on market data. Therefore, in high-frequency securities trading, latency in the order of microseconds must be taken into consideration, and in order to reduce the latency, the information processing system 110 can be colocated near a server of the target stock exchange (second stock exchange).
[0059] According to one embodiment, the information processing system 110 can receive market data from the first stock exchange 120. Additionally or alternatively, the information processing system 110 can receive market data from a website or application other than the first stock exchange 120. Here, the website or application can be a website or application that aggregates market data generated by one or more exchanges, or can be a website or application independently operated by a private company. The market data can include order books, announcements, news, etc. for multiple instruments. In one embodiment, the market data can include data for a target instrument. For example, the market data can include the top of the order book for the target instrument, a list of (active) orders for the target instrument, responses of the first stock exchange 120 to previous orders for the target instrument, etc.
[0060] Market data may be dynamically received at regular intervals. That is, the size or number of market data received from the information processing system 110 per unit time may vary depending on the securities market environment. For example, if the securities market is highly volatile, the size or number of market data received per unit time may be large. That is, if the volatility of the securities market increases, the size or number of fluctuations in the order book also increases, and therefore the size or number of market data received from the information processing system 110 per unit time also increases.
[0061] Although the first stock exchange 120 is shown in Figure 1 as being a single stock exchange, this is for convenience of explanation and the first stock exchange 120 may include one or more stock exchanges. Also, although the first stock exchange 120 is shown in Figure 1 as being a separate and distinct exchange from the second stock exchange 130, this is also for convenience of explanation and the first stock exchange 120 may include the second stock exchange 130, or the second stock exchange 130 may include the first stock exchange 120.
[0062] According to an embodiment, the information processing system 110 may generate orders by analyzing market data. For example, the information processing system 110 may analyze the market data and / or data generated based on the market data to predict market conditions (e.g., the price of a target item) at one or more future times (e.g., n seconds later, where n is a positive real number) and generate orders based thereon. Here, the process of analyzing the market data and / or data generated based on the market data may be performed by a machine learning model (e.g., DNN, etc.).
[0063] Meanwhile, in high-frequency securities trading, it is very important to quickly analyze market data and generate orders, but a general processor does not have storage space and computing resources to support complex and large-scale calculations of a machine learning model, so there is a problem that processing speed and / or efficiency is reduced when a machine learning model is driven using a general processor. Therefore, the information processing system 110 according to an embodiment of the present disclosure may include a dedicated accelerator (e.g., a Neural Processing Unit (NPU)) for the machine learning model, and the dedicated accelerator may be embodied as an integrated circuit (e.g., an Application-Specific Integrated Circuit (ASIC)) for the neural processing unit.
[0064] Meanwhile, in order to use the machine learning model, appropriate pre / post processing processes may be required. For example, a process of generating input data for the machine learning model from market data, or generating order data based on data output from the machine learning model may be required. Such pre / post processing processes may be continuously changed according to changes in market conditions, rules, compensation regulations for market makers, etc. When a processor that processes such pre / post processing processes is embodied in an application specific semiconductor (e.g., ASIC), there is a problem that when the pre / post processing processes are changed, the processor for performing the changed pre / post processing processes must be remanufactured because redesign is not possible. Therefore, processes other than the operation of the machine learning model may be performed by a processor that can be reprogrammed and / or redesigned (e.g., a processor embodied in a Field Programmable Gate Array (FPGA)).
[0065] As described above, the processor that drives the machine learning model can be made of a dedicated accelerator (e.g., a dedicated accelerator implemented in an ASIC) to quickly and efficiently process the computation of the machine learning model. In addition, the pre- and post-processing processes can be flexibly changed according to continuously changing market conditions by processing the pre- and post-processing processes using a processor (e.g., an FPGA) that can be reprogrammed or redesigned. In this way, by using two or more different processors suitable for processing high-frequency securities trading, it is possible to simultaneously realize flexible implementation of the pre- and post-processing processes and rapid and efficient computation of the machine learning model.
[0066] Fig. 2 is a block diagram showing an internal configuration of an information processing system 110 according to an embodiment of the present disclosure. The information processing system 110 may include a memory 210, a processor 220, a communication module 230, and an input / output interface 240. As shown in Fig. 2, the information processing system 110 may be configured to communicate information and / or data over a network using the communication module 230.
[0067] The memory 210 may include any non-transitory computer-readable recording medium. According to an embodiment, the memory 210 may include a permanent mass storage device such as a read only memory (ROM), a disk drive, a solid state drive (SSD), and a flash memory. As another example, a permanent mass storage device such as a ROM, an SSD, a flash memory, and a disk drive may be included in the information processing system 110 as a separate permanent storage device separate from the memory. In addition, the memory 210 may store an operating system and at least one program code (e.g., code for computation, pre / post processing, securities order transfer, etc. of a machine learning model installed and operated in the information processing system 110). In FIG. 2, the memory 210 is illustrated as a single memory, but this is for convenience of explanation, and the memory 210 may include multiple memories. For example, if the processor 220 includes multiple processors, the memory 210 may include one or more memories coupled to and processed by each of the multiple processors. As another example, if processor 220 includes multiple processors, it may include multiple memories coupled to and operated by the multiple processors.
[0068] Such software components may be loaded from a computer-readable recording medium separate from the memory 210. Such separate computer-readable recording medium may include a recording medium directly connectable to such information processing system 110, and may include computer-readable recording media such as a floppy drive, a disk, a tape, a DVD / CD-ROM drive, and a memory card. As another example, the software components may be loaded into the memory 210 via the communication module 230, rather than a computer-readable recording medium. For example, at least one program may be loaded into the memory 210 based on a computer program (e.g., a program for market data analysis, future market forecast, securities order generation and transfer, etc.) installed by a file provided via the communication module 230 by a developer or a file distribution system that distributes application installation files.
[0069] The processor 220 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input / output operations. The instructions may be provided to a user terminal (not shown) or other external system via the memory 210 or the communication module 230. For example, the processor 220 may receive context information including at least one of market data traffic for one or more target items or computational complexity using a machine learning model performed based on the market data, and may determine whether to change the processing performance of the hardware based on the received context information. Furthermore, the processor 220 may change resources provided to the hardware based on the determination result of changing the processing performance. The processor 220 may also determine a workload for an inference operation of the machine learning model based on an allowable time until the operation is completed and available resources of the hardware, and may extract at least one input data from a plurality of input data based on the determined workload. Here, the available resources of the hardware may be resources that can be used to process the workload among the total resources. For example, the available resources may be remaining resources remaining after providing resources to the hardware among the total resources. The processor 220 may also apply the extracted at least one input data to a machine learning model. The processor 220 may further determine hardware resources for processing the workload based on an allowable time and available resources of the hardware, and provide the determined resources to the hardware.
[0070] The communication module 230 may provide a configuration or function for a user terminal (not shown) and the information processing system 110 to communicate with each other via a network, and may provide a configuration or function for the information processing system 110 to communicate with an external system (e.g., a separate cloud system, etc.). As an example, a control signal, command, data, etc. provided under the control of the processor 220 of the information processing system 110 may be transferred to the user terminal and / or an external system via the communication module of the user terminal and / or the external system via the communication module of the user terminal and / or the external system through the communication module 230 and the network. For example, the external system (e.g., a stock exchange system) may receive order data, etc. from the information processing system 110.
[0071] In addition, the input / output interface 240 of the information processing system 110 may be a means for interfacing with a device (not shown) for input or output that may be connected to the information processing system 110 or may be included in the information processing system 110. For example, the input / output interface 240 may include at least one of a PCI express interface or an ethernet interface. In FIG. 2, the input / output interface 240 is illustrated as an element configured separately from the processor 220, but is not limited thereto, and the input / output interface 240 may be configured to be included in the processor 220. The information processing system 110 may include more components than those shown in FIG. 2.
[0072] The processor 220 of the information processing system 110 may be configured to manage, process, and / or store information and / or data received from a plurality of user terminals and / or a plurality of external systems. According to an embodiment, the processor 220 may receive context information, determine whether or not to change the processing performance of the hardware based on the context information, and change resources provided to the hardware based on the determination result of changing the processing performance. Here, the processor 220 may include a central processing unit. In addition, the hardware may include the processor 220 and / or the memory 210 included in the information processing system 110, and for example, the processor 220 may further include at least one processor embodied in an FPGA for pre-processing and post-processing, one or more dedicated accelerators embodied in an ASIC for the machine learning model, and a processor for resource control. In addition, the memory 210 may include one or more memories accessible by each of the central processing unit, the FPGA, and the dedicated accelerator. In FIG. 2, the information processing system 110 is shown as having the memory 210, the processor 220, and the communication module 230 embodied separately, but this is not limited thereto, and at least a portion of the memory 210 and / or at least a portion of the communication module 230 may be embodied to be included in the processor 220.
[0073] Fig. 3 is a diagram showing an internal configuration of a processor 300 according to an embodiment of the present disclosure. In Fig. 3, the processor 300 is embodied in a board form. For example, the processor 220 of the information processing system 110 may include the processor 300 of Fig. 3. In addition, a central processing unit (CPU) may be further included in the processor 220 of the information processing system 110.
[0074] According to one embodiment, the processor 300 may include at least one processor 320 for pre / post data processing, a dedicated accelerator (e.g., a dedicated accelerator implemented in an ASIC) 340 for the machine learning model, and at least one memory 360. For convenience of explanation, in FIG. 3, the at least one processor 320 for pre / post data processing is an FPGA (320), and the dedicated accelerator 340 for the machine learning model is an NPU (340).
[0075] The FPGA (320) may include a data receiving unit 322, a data preprocessing unit 324, and an order generating unit 326. The NPU (340) may include a loading module 342, a calculation module 344, and a transfer module 346. In FIG. 3, the internal configuration of the processor 300 is described by dividing it into different functions, but this does not necessarily mean a physical division. The internal configurations of the FPGA (320) and the NPU (340) shown in FIG. 3 are merely examples, and do not only show the essential configurations.
[0076] According to one embodiment, the data receiver 322 of the FPGA 320 can receive market data for one or more target securities from one or more stock exchanges (e.g., a primary stock exchange, a secondary stock exchange, etc.), websites, applications, etc. In one embodiment, the one or more stock exchanges can include a target stock exchange, where the target stock exchange is a destination to which order data is forwarded and which can proceed with buying or selling securities based on the order data.
[0077] The market data may include data regarding instruments traded on one or more exchanges. For example, the market data may include order books for (at least a portion of) the instruments traded on the exchanges, and additionally, the market data may include data regarding a target instrument. For example, the market data may include a top of the order book for the target instrument, a list of (active) orders for the target instrument, responses of the target exchange to previous orders for the target instrument, etc.
[0078] The data receiving unit 322 may receive market data from a stock exchange or a website. Meanwhile, when the fluctuation range of the securities market and / or the target securities is large, the number of times that market data is received may increase, or the size of the market data may increase. When the fluctuation range of the securities market and / or the target securities is small, the number of times that market data is received may decrease, or the size of the market data may decrease. For example, when the price fluctuation range of the target securities is large, the data receiving unit 322 may receive market data including the order book of the target securities more times per unit time. Conversely, when the price fluctuation range of the target securities is small, the data receiving unit 322 may receive market data including the order book of the target securities less times per unit time. That is, when the price fluctuation range of the target securities is large, the reception traffic of market data for the target securities may increase.
[0079] Because rapid data processing is important in high frequency securities trading, market data may be received via the User Datagram Protocol (UDP), which provides fast data transfer rates, although in some embodiments other communication protocols (e.g., TCP / IP) may be used to receive market data if desired (e.g., to ensure data reliability).
[0080] The data pre-processing unit 324 may generate input data for the machine learning model based on the received one or more market data. According to an embodiment, the data pre-processing unit 324 may select one or more input features for one or more items of market data to configure the input data. That is, the data pre-processing unit 324 may pre-process one or more market data, and configure the input data based on the pre-processed market data. For example, the data pre-processing unit 324 may include a feature extraction unit for extracting or selecting input features included in the input data. The input data generated by the data pre-processing unit 324 may be stored in a queue.
[0081] In one embodiment, one or more items included in the input data may include items that are leading indicators of market status fluctuations of the target item. For example, if the target item to be ordered is the stock (spot) item of Company A, data on futures items associated with Company A stock, options items associated with Company A stock, items related to Company A included in other exchanges, futures items related to commodities associated with Company A (e.g., crude oil, etc.) may be included in the input data. In addition, in one embodiment, one or more input features included in the input data may include information that is meaningful for predicting the market status of the target item. For example, the input features may include various information that can be extracted from the order books of one or more items, such as the market price (transaction price), the price and quantity at the top of the buyer's order book, the price and quantity at the top of the seller's order book, the number of buyers, the number of sellers, the bid price of the next step at the top of the order book, the ask price of the next step at the top of the order book, and the variance of the bid prices included in the order book, information processed from the information, and / or the reliability of the information. The configuration of the input data will be described in detail below with reference to FIG. 5.
[0082] The input data generated by the data preprocessing unit 324 may be transferred to the NPU (340), which is a dedicated accelerator for the machine learning model, and input to the machine learning model (e.g., DNN). According to an embodiment, the NPU (340) may be embodied as an application specific semiconductor (ASIC) specialized for driving the machine learning model. In the NPU (340), prediction data regarding the target item is obtained in response to inputting the input data to the machine learning model. For example, the NPU (340) may input the input data to the machine learning model to derive output data predicting the price (e.g., market price) of the target item at one or more future times. The machine learning model for deriving output data associated with an order for the target item will be described in detail below with reference to FIGS. 4 to 6. In FIG. 3, the accelerator for the machine learning model is shown as a dedicated accelerator (NPU), but is not limited thereto, and any accelerator for the machine learning model (e.g., GPU, etc.) may be used.
[0083] The order generator 326 may receive the forecast data output from the machine learning model and generate order data at the target stock exchange based on the forecast data. For example, the order generator 326 may generate order data for the target item according to a predefined policy based on the price fluctuation forecast and / or forecast price of the target item at a future time inferred from the machine learning model. As a specific example, if the price of the target item is predicted to increase, the order generator 326 may immediately generate a new buy order or amend the bid price of an existing sell order. According to one embodiment, the order data may include information regarding the type of order (new order, order cancellation, amendment order) for the target item, whether to buy or sell, price (bid price), quantity, etc.
[0084] The memory 360 may be a memory shared by multiple processors. For example, the memory 360 may be a memory shared by multiple NPUs (340). Additionally or alternatively, the memory 360 may be shared by the FPGA (320) and the NPU (340). The memory 360 may be shared by multiple processors using direct memory access (DMA). A DMA controller (not shown) may be mounted on the board to share the memory 360 based on DMA. According to an embodiment, a given number of NPUs (340) may share one memory 360, and when the number of NPUs (340) increases, a number of memories 360 proportional to the increased number may be mounted. The memory 360 may store (load) a part or all of the input data. The memory 360 may also load a plurality of parameters used in the computation of the machine learning model. The plurality of parameters may be replaced or updated during the computation process of the machine learning model. Although FIG. 3 illustrates an example in which the memory 360 is external to the NPU (340), the memory 360 may be implemented in the form of a single chip together with the NPU (340).
[0085] The loading module 342 of the NPU (340) may load some or all of the input data received from the data pre-processing unit 324 of the FPGA (320) into the memory 360. For example, the loading module 342 may obtain data required for the operation of the machine learning model from the input data, and load the obtained data into the memory 360. According to an embodiment, some or all of the input data stored in a queue may be loaded into the memory 360. The loading module 342 may extract at least one input data corresponding to a batch size assigned to the NPU (340) from the queue, and load the extracted input data into the memory 360.
[0086] The calculation module 344 can input the data loaded into the memory 360 into the machine learning model to perform calculations of the machine learning model to generate predictive data for the target event.
[0087] When there are multiple NPUs (340), each NPU (340) may be partitioned into multiple processing regions associated with multiple layers included in the machine learning model. In such a case, the computation module 344 may perform a portion of the overall computation of the machine learning model. For example, when the machine learning model includes an artificial neural network model having multiple layers, a first computation module included in the first NPU may perform computation for the first layer, and a second computation module included in the second NPU may perform computation for the second layer. The computation module 344 may include a computing unit included in the NPU (340).
[0088] The transfer module 346 of the NPU (340) can provide the calculation result (e.g., forecast data for a target item) output from the calculation module 344 to the order generation unit 326 of the FPGA (320). A communication line having a predetermined input / output bandwidth is formed between the FPGA (320) and the NPU (340), and input data can be provided from the FPGA (320) to the NPU (340) and forecast data can be provided from the NPU (340) to the FPGA (320) using the communication line.
[0089] In the processor 300 having such a structure, a delay time may occur until order data is generated based on market data. The delay time until order data is generated may increase as the received traffic of market data increases, the amount of calculation of the machine learning model increases, or the batch size input to the machine learning model increases. That is, the delay time until order data is generated may increase as the traffic of market data increases or the computational complexity of the machine learning model increases. In high-frequency securities trading, the delay time may act as a fatal disadvantage. Therefore, in high-frequency securities trading, it can be said that it is important to reduce the delay time and generate order data quickly.
[0090] In the present disclosure, as described below, when it is predicted that the hardware load will increase or that the performance of the hardware needs to be improved based on the context information, more resources than usual are allocated to the hardware, and the performance of the hardware is temporarily increased, so that loading / calculation / transfer of data can be performed faster. Here, the resource may refer to any resource that can be provided to the hardware, and may include, for example, at least one of a voltage or a clock source, but is not limited thereto. A method for adjusting the performance of the hardware will be described in detail below with reference to FIGS. 7 to 14.
[0091] Hereinafter, a learning method for a machine learning model and output data obtained from the machine learning model will be described with reference to FIGS.
[0092] FIG. 4 illustrates an example of a machine learning model according to an embodiment of the present disclosure outputting output data 420 based on input data 410. According to an embodiment, the machine learning model 400 can output output data 420 associated with an order for a target item based on the input data 410. According to an embodiment, the machine learning model can output a forecasted price (e.g., a market price or a midpoint price) of the target item at a particular future time point based on the input data 410. According to another embodiment, the machine learning model can output forecasted prices of the target item at multiple future times based on the input data 410. In this case, the machine learning model 400 can be used to forecast the price of the target item at each of multiple future times based on multi-horizon forecasting.
[0093] According to one embodiment, the input data 410 input to the machine learning model 400 may include an input feature map that includes one or more input features for one or more events at one or more time points. The input data 410 for the machine learning model 400 is described in more detail below with reference to FIG.
[0094] According to one embodiment, the machine learning model 400 can be trained to infer reference output data associated with a securities order on a target securities exchange using reference input data generated based on reference market data of one or more securities exchanges. For example, the machine learning model 400 can be trained to infer a midpoint price of the target securities at a next time point based on the input data in a time interval including a total of M consecutive time points using reference input data from time point (t) to time point (t+M-1) generated based on a first reference market data of a first securities exchange and a second reference market data of a second securities exchange, and midpoint price data of the target securities at time point (t+1). Here, t and M can be natural numbers.
[0095] According to an embodiment, the machine learning model 400 can learn to infer forecast data for a specific item at a plurality of future points in time from a specific point in time based on a training set including market data for the specific item at a specific point in time and ground truth data. Here, the ground truth data can be the price for the specific item at each of a plurality of future points in time. A difference (loss) between the inferred price for the specific item at a specific future point in time output from the machine learning model 400 and the price for the specific item at a specific future point in time included in the ground truth data is calculated, and the calculated difference can be fed back to the machine learning model 400 to adjust the weight value of each node included in the artificial neural network.
[0096] The output data 420 output by the machine learning model 400 may include information associated with securities orders on the target securities exchange, and a processor (e.g., a processor of an information processing system) may generate order data for the target securities based on the output data 420 and predefined policies.
[0097] Here, the predetermined policy may define stock selling, buying, trading volume, etc., according to the prediction result included in the output data 420. According to an embodiment, the machine learning model 400 of the present disclosure may be an artificial neural network model, which will be described in detail below with reference to FIG.
[0098] 5 is a diagram illustrating an example of a configuration of input data 510 for a machine learning model according to an embodiment of the present disclosure. The information processing system can generate the input data 510 based on market data received from one or more stock exchanges. According to one embodiment, the input data 510 can include an input feature map having one or more input features for one or more instruments at one or more time points.
[0099] For example, as shown in FIG. 5, the input feature map may include N (where N is a natural number) input features for K (where K is a natural number) items at M (where M is a natural number) time points. In the illustrated example, data 520 at a specific time point (time point (m) in FIG. 5) of the input feature map included in the input data may include one or more input features (such as the price and quantity at the top of the buyer's order book and the price and quantity at the top of the seller's order book in FIG. 5) for one or more items (such as the first item, the second item, and the third item in FIG. 5) at the specific time point. Also, data 530 for a specific input feature (the n-th input feature in FIG. 5) of the input feature map included in the input data may include a specific input feature for one or more items at one or more time points (from time point (t-M+1) to time point (t) in FIG. 5). In one embodiment, the input feature map may be generated such that one or more input features for different items intersect with each other.
[0100] According to an embodiment, one or more items included in the input data 510 may be items that are leading indicators of the market state of the target item that is the subject of the order. For example, if the target item that is the subject of the order is the stock (spot) item of Company A, at least one of a futures item associated with Company A's stock, an option item associated with Company A's stock, an item related to Company A included in another exchange, and a futures item for a product related to Company A may be the leading indicator. In one embodiment, the one or more items may include the target item. That is, the information processing system may predict the future market state of the target item based on the input data including data on the target item. Also, in one embodiment, information about each input item may be included as a code (symbol) associated with each input item.
[0101] According to one embodiment, one or more input features included in the input data 510 may include information that is meaningful for predicting the market situation of the target item. For example, the input features may include various information that can be extracted from the order books of one or more items, such as the market price (transaction price), the price and quantity at the top of the buyer's order book, the price and quantity at the top of the seller's order book, the number of buyers, the number of sellers, the bid price of the next step at the top of the order book, the ask price of the next step at the top of the order book, the variance of the bid prices included in the order book, information processed therefrom, and / or the reliability of the information. In one embodiment, such one or more input features may be extracted from each of the one or more items.
[0102] The input data 510 configured as described above can be transmitted by a processor (e.g., an FPGA, etc.) to a dedicated accelerator for the machine learning model and input to the machine learning model.
[0103] 6 is a diagram illustrating an example of an artificial neural network model 600 according to an embodiment of the present disclosure. The artificial neural network model 600 is an example of a machine learning model, which is a statistical learning algorithm embodied based on the structure of a biological neural network in machine learning technology and cognitive science, or a structure for executing the algorithm.
[0104] According to an embodiment, the artificial neural network model 600 may be referred to as a machine learning model having a problem-solving ability, in which nodes, which are artificial neurons forming a network by synaptic connections like a biological neural network, repeatedly adjust the weights of the synapses to learn to reduce the error between a correct output corresponding to a specific input and an inferred output. For example, the artificial neural network model 600 may include any probability model, neural network model, etc. used in artificial intelligence learning methods such as machine learning and deep learning.
[0105] According to one embodiment, the artificial neural network model 600 may include an artificial neural network model configured to infer data associated with securities orders (e.g., data related to prices, price movements, etc.) on a target securities exchange at a future time point using input data generated based on market data for one or more securities exchanges. According to another embodiment, the artificial neural network model 600 may include a multi horizon forecasting model to forecast data associated with securities orders (e.g., data related to prices, price movements, etc.) on a target securities exchange at multiple future time points.
[0106] The artificial neural network model 600 is realized by a multilayer perceptron (MLP) composed of multiple nodes and connections between them. The artificial neural network model 600 according to the present embodiment can be realized using one of various artificial neural network model structures including MLP. As shown in FIG. 6, the artificial neural network model 600 includes an input layer 620 that receives an input signal or data 610 from the outside, an output layer 640 that outputs an output signal or data 650 corresponding to the input data, and n hidden layers 630_1 to 630_n (where n is a positive integer) that are located between the input layer 620 and the output layer 640 and receive signals from the input layer 620, extract characteristics, and transmit them to the output layer 640. Here, the output layer 640 receives signals from the hidden layers 630_1 to 630_n and outputs them to the outside.
[0107] The learning method of the artificial neural network model 600 includes a supervised learning method in which the artificial neural network model learns to optimize the solution of a problem by inputting a teacher signal (correct answer), and an unsupervised learning method in which a teacher signal is not required. In one embodiment, the artificial neural network model 600 can perform supervised learning and / or unsupervised learning to infer data associated with securities orders at a target stock exchange. For example, the artificial neural network model 600 can perform supervised learning to infer reference prices of a target item at one or more future times from reference input data.
[0108] The artificial neural network model 600 thus trained can be stored in a memory (not shown) of the information processing system and can infer data associated with securities orders at the target securities exchange in response to inputs of data received from the communications module and / or the memory.
[0109] According to one embodiment, input data of the artificial neural network model for inferring data associated with a securities order at a target exchange may include one or more input features for one or more instruments at one or more time points. For example, the input data input to the input layer 620 of the artificial neural network model 600 may be a vector, with each vector data element comprising data containing information about one or more input features for one or more instruments at one or more time points. In response to the input data, the output data output from the output layer 640 of the artificial neural network model 600 may be a vector indicative of or characterizing data associated with a securities order at a target exchange. That is, the output layer 640 of the artificial neural network model 600 may be configured to output a vector indicative of or characterizing data associated with a securities order at a target exchange at one or more future time points. In the present disclosure, the output data of the artificial neural network model 600 is not limited to the types described above and may include any information / data indicative of data associated with a securities order at a target exchange at one or more future time points.
[0110] In this way, the input layer 620 and the output layer 640 of the artificial neural network model 600 are matched with a plurality of input data and a plurality of corresponding output data, and the synapse values between the nodes included in the input layer 620, the hidden layers 630_1 to 630_n, and the output layer 640 are adjusted, so that the artificial neural network model 600 can learn to extract a correct output corresponding to a specific input. Through this learning process, the artificial neural network model 600 can grasp the hidden characteristics of the input data, and adjust the synapse values (or weights) between the nodes of the artificial neural network model 600 so that the error between the output data calculated based on the input data and the target output is reduced. The artificial neural network model 600 thus trained can output data associated with a securities order at a target stock exchange in response to the input data.
[0111] An internal configuration of an information processing system in which hardware performance is dynamically adjusted according to an embodiment of the present disclosure will be described with reference to Figures 7 and 8. For convenience of explanation, in the description based on Figures 7 and 8, a processor that performs data pre-processing and post-processing will be described as an FPGA. Also, in the embodiments described below, a dedicated accelerator for a machine learning model will be described as an NPU.
[0112] FIG. 7 is a diagram showing an example of an internal configuration of an information processing system 700 according to an embodiment of the present disclosure. As shown in FIG. 7, the information processing system 700 may include a plurality of resources 710, 720, a processor 740, an NPU (760), and an FPGA (780). For example, the processor 740 may be a central processing unit. Although not shown in the figure, the information processing system 700 may further include a memory. In FIG. 7, solid lines indicate lines through which resources are supplied, and dotted lines indicate communication paths. The information processing system 700 may be included in at least a part of the information processing system 110 in FIG. 2. The processor 740, the NPU (760), and / or the FPGA (780) may include a PLL (Phase-Locked Loop) and may operate by appropriately converting an input signal supplied from the first resource 710.
[0113] The processor 740 may receive context information including at least one of market data traffic for one or more target items or computational complexity using a machine learning model performed based on the market data. The processor 740 may determine whether to change the processing performance of the hardware based on the received context information, and may change resources provided to the hardware based on the determination result of changing the processing performance. Here, the hardware may include an FPGA (780), an NPU (760), a processor 740, a memory (not shown), an input traffic monitoring module (not shown), etc. The input traffic monitoring module may be included in the information processing system 700 and may measure or monitor traffic such as the size or number of data input to the FPGA (780). Alternatively, the input traffic monitoring module may be embodied to be included in the FPGA (780). The traffic of market data measured or monitored by the input traffic monitoring module may be included in the context information and provided to the processor 740.
[0114] The first resource 710 may include multiple clock sources 712-1 to 712-n (n is a natural number). The frequencies of each of the multiple clock sources 712-1 to 712-n may be the same as or different from each other. Alternatively, the frequencies of at least some of the multiple clock sources 712-1 to 712-n may be the same as each other. For example, the first clock source 712-1 may be 200 MHz, and the second clock source 712-2 may be 1 GHz. As another example, the first clock source 712-1 and the second clock source 712-2 may all be 2 GHz.
[0115] In one embodiment, a plurality of clock sources 712-1 to 712-n having different frequencies (speeds) according to a predetermined performance grade may be included in the first resource 710. For example, a clock source of a first frequency corresponding to a first performance grade, a clock source of a second frequency corresponding to a second performance grade, and a clock source of a third frequency corresponding to a third performance grade may be included in the first resource 710. Here, the first performance grade may be a grade associated with the fastest operation, the third performance grade may be a grade associated with the slowest operation, and the second performance grade may be a grade associated with an intermediate operation. Also, the first frequency may be a frequency with the fastest speed, the third frequency may be a frequency with the slowest speed, and the second frequency may be a frequency with an intermediate speed.
[0116] At least one of the multiple clock sources 712-1 to 712-n may be activated to supply a clock signal at a target speed to the hardware of the information processing system 700. Here, the hardware may include an FPGA (780), an NPU (760), a processor 740, a memory (not shown), etc. As shown in FIG. 7, multiple clock signal supply lines are formed between the first resource 710 and the hardware, and a clock signal having a target speed may be supplied to the hardware through each clock signal supply line. The clock source to be activated among the multiple clock sources 712-1 to 712-n may be determined by the processor 740.
[0117] The second resource 720 may include a plurality of voltage sources 722-1 to 722-n (n is a natural number). The voltages of the plurality of voltage sources 722-1 to 722-n may be different from each other. Alternatively, the voltages of at least some of the plurality of voltage sources may be the same as each other. For example, the first voltage source 722-1 may be 0.7V, and the second voltage source 722-2 may be 1V. As another example, the first voltage source 722-1 and the second voltage source 722-2 may all be 5V.
[0118] Also, voltage sources 722-1 to 722-n having different voltages according to the predetermined performance grades may be included in the second resource 720. For example, a first voltage source corresponding to a first performance grade, a second voltage source corresponding to a second performance grade, and a third voltage source corresponding to a third performance grade may be included in the second resource 720. Here, the first performance grade may be a grade associated with the fastest operation, the third performance grade may be a grade associated with the slowest operation, and the second performance grade may be a grade associated with an intermediate level of operation. Also, the first voltage source may be a voltage source that supplies the strongest voltage, the third voltage source may be a voltage source that supplies the weakest voltage, and the second voltage source may be a voltage source that supplies a voltage of intermediate strength.
[0119] At least one voltage source may be activated to supply a target voltage of a target strength to the hardware of the information processing system 700. As shown in Fig. 7, a plurality of voltage signal supply lines may be formed between the second resource 720 and the hardware, and a target voltage may be supplied to the hardware via each of the voltage signal supply lines. The strength of the voltage supplied to the hardware may be determined by the processor 740.
[0120] The FPGA (780) can pre-process the market data to generate input data for the machine learning model, and then provide the generated input data to the NPU (760). The FPGA (780) can also generate order data for buying or selling securities for the target item based on the prediction data of the machine learning model received from the NPU (760), and transmit the order data to the target stock exchange.
[0121] The NPU (760) may perform computations on the machine learning model based on input data received from the FPGA (780). The NPU (760) may transmit output data of the machine learning model to the FPGA (780).
[0122] The FPGA (780) and the NPU (760) are supplied with a clock signal from the first resource 710 and with a voltage from the second resource 720. The FPGA (780) and the NPU (760) are supplied with voltages of the same or different strengths and / or clock signals of the same speed. The faster the clock signal is supplied, the faster the operation speed of the FPGA (780) and the NPU (760). Also, the higher the voltage strength is supplied, the faster the operation speed of the FPGA (780) and the NPU (760). Also, although not shown in the figure, the memory is supplied with a clock signal from the first resource 710 and with a voltage from the second resource 720.
[0123] The processor 740 may dynamically adjust the performance of the hardware by controlling the supply of resources. The processor 740 may determine whether to change the processing performance of the hardware based on the context information, and may change the resources provided to the hardware based on the determination result of changing the processing performance. Here, the context information may include at least one of the traffic of market data for one or more target items, or the computational complexity of a machine learning model performed based on the market data. The processor 740 may determine the processing performance required by the hardware based on the context information, and may determine a target voltage and / or a target clock based on the result of the determination.
[0124] According to one embodiment, market data traffic may be measured based on the amount of market data received by the FPGA 780 per unit time or the number of times the market data is received.
[0125] The computational complexity of the machine learning model may be measured based on at least one of the load of the hardware or the size of the parameters used in the computation of the machine learning model. Here, the load of the hardware may be measured based on at least one of the availability of the FPGA (780), the availability of the NPU (760), or the availability of the memory. The size of the parameters may be measured based on the size of the parameters loaded in a memory (e.g., the memory of the NPU) used in the computation of the machine learning model.
[0126] According to one embodiment, the processor 740 may control one or more of the clock sources 712-1 through 712-n included in the first resource 710 to be active and one or more of the voltage sources 722-1 through 722-n included in the second resource 720 to be active. The active one or more clock sources may provide a clock signal at a target speed to the hardware, and the active one or more voltage sources may provide a target voltage to the hardware.
[0127] According to an embodiment, components included in the hardware may be divided according to processing regions. For example, one or more memories may be included in a first group divided in a first processing region, one or more NPUs may be included in a second group divided in a second processing region, and one or more FPGAs may be included in a third group divided in a third processing region. As another example, a first memory and a first FPGA may be included in a first group divided in a first processing region, a second memory and a second FPGA may be included in a second group divided in a second processing region, and a first NPU may be included in a third group.
[0128] In addition, components included in each processor may be divided according to processing areas. For example, the data preprocessing unit 324 and the data receiving unit 322 included in the FPGA and the loading module 342 included in the NPU may be included in a first group divided into a first processing area, the calculation module 344 included in the NPU may be included in a second group divided into a second processing area, and the transfer module 346 included in the NPU and the order generating unit 326 included in the FPGA (320) may be included in a third group divided into a third processing area. The division of such processing areas may be set based on physical areas or data processing flows.
[0129] In this way, when a plurality of processing regions are partitioned, a dedicated clock source and / or a voltage source are assigned in advance to each group. For example, the first group is assigned the first to third clock sources and / or the first to third voltage sources, the second group is assigned the fourth to sixth clock sources and / or the fourth to sixth voltage sources, and the third group is assigned the seventh to ninth clock sources and / or the seventh to ninth voltage sources.
[0130] When a clock source and / or a voltage source are pre-assigned to each group, the processor 740 may identify a group for which a performance change is desired to be performed and adjust the strength of the voltage and / or the clock speed supplied to the hardware included in the identified group. For example, when it is determined that the traffic of market data is equal to or greater than a predetermined threshold, the processor 740 may identify a group including a data pre-processing unit of an FPGA and control the first resource 710 and / or the second resource 720 so that more resources are provided to the identified group in order to improve the performance of the pre-processing of the market data. As another example, when the computational complexity of a machine learning model is equal to or greater than a predetermined threshold, the processor 740 may identify a group including a computation module of an NPU and control the first resource 710 and / or the second resource 720 so that more resources are provided to the identified group in order to improve the computational speed of the machine learning model. In one embodiment, the processor can activate one or more of the voltage sources and / or clock sources associated with the identified group, or deactivate already activated voltage sources and / or clock sources, to provide a clock signal at the target speed and / or the target voltage.
[0131] Meanwhile, according to another embodiment of the present disclosure, a plurality of NPUs may be included in the information processing system.
[0132] Fig. 8 is a diagram showing an example of an internal configuration of an information processing system 800 according to another embodiment of the present disclosure. In the following description based on Fig. 8, parts that overlap with the description based on Fig. 7 will be omitted or summarized, and differences will be described in detail. The information processing system 800 can be included in at least a part of the information processing system 110 in Fig. 2.
[0133] 8, the information processing system 800 may include a plurality of resources 810, 820, a processor 840, an NPU cluster 860, and an FPGA (880). Although not shown in the figure, the information processing system 800 may further include a memory, an input traffic monitoring module, and the like.
[0134] The FPGA (880) may pre-process market data, generate input data for the machine learning model, and provide the input data to the NPU cluster 860. At this time, the generated at least one input data may be stored in a memory, and the at least one input data stored in the memory may be provided to the NPU cluster 860. For example, the memory may include a queue, and the at least one input data may be stored in the queue, and the at least one input data may be provided to the NPU cluster 860 based on the priority of the input data stored in the queue.
[0135] According to an embodiment, at least one input data stored in the memory may be extracted based on a batch size determined by the processor 840, and the extracted input data may be provided to the NPU cluster 860. In addition, the FPGA (880) may generate order data for buying or selling securities for a target item based on prediction data (output data) of the machine learning model received from the NPU cluster 860, and transfer the order data to the target stock exchange.
[0136] The first resource 810 may include a number of clock sources 812-1 through 812-n, one or more of which may be active to provide a clock signal at a target speed to the hardware of the information processing system 800.
[0137] The second resource 820 may include multiple voltage sources 822-1 through 822-n, one or more of which may be activated to provide a target voltage to the hardware of the information processing system 800.
[0138] The processor 840 can dynamically adjust the performance of the hardware by controlling the supply of resources. The processor 840 can determine whether to change the processing performance of the hardware based on the context information, and adjust the resources supplied to the hardware based on the result of the determination. According to another embodiment, the processor 840 can monitor the load on each of the multiple NPUs (862-1 to 862-n) included in the NPU cluster 860, and when an NPU whose load exceeds a threshold is identified, the processor 840 can control the first resource 810 and / or the second resource 820 so that more resources are supplied to the identified NPU.
[0139] The NPU cluster 860 may include a plurality of NPUs (862-1 to 862-n). At least one of the plurality of NPUs (862-1 to 862-n) may perform a machine learning model operation based on input data preprocessed by the FPGA (880) and transmit output data of the machine learning model to the FPGA (880). At least one of the plurality of NPUs (862-1 to 862-n) may extract input data from a queue. For example, the FPGA (880) may store at least one input data obtained by preprocessing market data in a queue, and at least one of the plurality of NPUs (862-1 to 862-n) may extract the input data from the queue.
[0140] According to one embodiment, each of the NPUs (862-1 to 862-n) is associated with a machine learning model that operates independently of each other. For example, NPU_1 (862-1) is associated with a first machine learning model, NPU_2 (862-2) is associated with a second machine learning model, and NPU_3 (862-3) is associated with a third machine learning model.
[0141] In some embodiments, the NPUs (862-1 to 862-n) may be partitioned into a plurality of processing regions associated with a plurality of layers included in the machine learning model. For example, when the machine learning model is embodied in the form of an artificial neural network having a plurality of layers, the NPU_1 (862-1) may perform operations on a processing region associated with a first layer of the artificial neural network, and the NPU_2 (862-2) may perform operations on a processing region associated with a second layer of the artificial neural network. As another example, a plurality of NPUs may be associated with one layer. For example, the NPU_1 (862-1) and the NPU_2 (862-2) may perform operations on a processing region associated with a first layer of the artificial neural network. As another example, a single NPU may be associated with a plurality of layers.
[0142] Each of the multiple NPUs (862-1 to 862-n) included in the NPU cluster 860 is supplied with a clock signal from the first resource 810 and a voltage from the second resource 820. Each of the multiple NPUs (862-1 to 862-n) included in the NPU cluster 860 is supplied with a clock signal of the same or different voltage strength and / or the same speed. The faster the clock signal is supplied, the faster the operation speed of the NPUs (862-1 to 862-n). Additionally or alternatively, the higher the voltage strength is supplied, the faster the operation speed of the NPUs (862-1 to 862-n). Although not shown in the figure, the memory is also supplied with a clock signal from the first resource 810 and a voltage from the second resource 820.
[0143] A certain number of NPUs may share one memory (not shown), and the memory may be shared by a certain number of NPUs. At this time, parameters for the operation of the machine learning model may be loaded into the memory. For example, a first parameter associated with an output result for a first layer of the artificial neural network operated by NPU_1 (862-1) may be stored in the memory, and after the operation of the second layer is performed by NPU_2 (862-2) based on the first parameter stored in the memory, a second parameter associated with the operation result may be stored in the memory.
[0144] According to another embodiment, the clock sources 862-1 to 862-n and / or the voltage sources 822-1 to 822-n may be partitioned according to each processing domain, i.e., one or more clock sources and / or one or more voltage sources corresponding to a first processing domain are pre-assigned, and one or more clock sources and / or one or more voltage sources corresponding to a second processing domain are pre-assigned.
[0145] The processor 840 may dynamically adjust the performance of the hardware by controlling the supply of resources. The processor 840 may also determine at least one of the NPUs (862-1 to 862-n) included in the NPU cluster 860 as a target NPU and determine a workload to be assigned to the target NPU. For such control, the processor 840 may include a scheduler 842 and a resource control unit 844.
[0146] The scheduler 842 may receive market data traffic for one or more target items from the FPGA (880) and dynamically determine the allowable time based on the received market data traffic. According to one embodiment, the market data traffic may be measured based on the size of market data received from the FPGA (880) during a unit time or the number of times the market data is received. The allowable time may be the time allowed for order data to be generated or the time allowed for an inference result to be obtained by a machine learning model. According to one embodiment, the scheduler 842 may set the allowable time relatively short when the market data traffic is high and set the allowable time relatively long when the market data traffic is low. That is, the allowable time is inversely proportional to the market traffic.
[0147] The scheduler 842 may determine a workload assigned to each NPU (862-1 to 862-n). According to an embodiment, the scheduler 842 may determine a target NPU to which a task is to be performed based on an allowable time for completing the task and available hardware resources, and may determine a workload for an inference operation of a machine learning model to be performed through the target NPU. The scheduler 842 may select at least one input data from among a plurality of input data based on the determined workload, and provide information associated with the selected at least one input data to the target NPU. For example, the scheduler 842 may transmit an index for each of the selected at least one input data to the target NPU, and the target NPU may extract at least one input data from a memory based on the index. Here, the index may be identification information associated with a priority of the input data stored in a queue in the memory. As another example, the scheduler 842 may extract the selected at least one input data from a memory, and transfer the extracted at least one input data to the target NPU. Thus, the target NPU may apply at least one input data selected based on the workload to the machine learning model to perform an inference operation using the machine learning model. Various methods for allocating workloads by the scheduler 842 will be described below with reference to FIGS. 12 and 13.
[0148] The resource controller 844 controls resources provided to the hardware to dynamically adjust the performance of the hardware. According to an embodiment, the resource controller 844 may control one or more of the clock sources 812-1 to 812-n included in the first resource 810 to be activated, and may control one or more of the voltage sources 822-1 to 822-n included in the second resource 820 to be activated. The activated one or more clock sources may provide a clock signal at a target speed to the hardware, and the activated one or more voltage sources may provide a target voltage to the hardware. In the present disclosure, the number of clock sources, the number of voltage sources, and the number of NPU clusters are all expressed as n, but each n may be different from each other or at least a part of n may be the same.
[0149] According to one embodiment, the resource control unit 844 can determine whether to change the processing performance of the hardware based on the context information, and adjust the resources provided to the hardware based on the result of the determination. According to another embodiment, the resource control unit 844 can monitor the load on each of the multiple NPUs (862-1 to 862-n) included in the NPU cluster 860, and when an NPU whose load exceeds a threshold is identified, control the first resource 810 and / or the second resource 820 so that more resources are provided to the identified NPU.
[0150] On the other hand, when the sources are pre-allocated for each processing domain, the resource controller 844 may identify a processing domain for which a performance change is desired, and adjust the strength of the voltage and / or the clock speed supplied to one or more NPUs performing operations for the identified processing domain. In this case, the resource controller 844 may activate one or more of the one or more voltage sources and / or one or more clock sources associated with the identified processing domain, or deactivate an already activated voltage source and / or clock source.
[0151] According to some embodiments, the resource controller 844 may determine hardware resources for processing a workload based on the allowable time and available resources of the hardware, and may provide the determined resources to the hardware. In this case, the resource controller 844 may provide the determined resources to a target NPU to which the workload is assigned.
[0152] FIG. 9 illustrates an example of various lookup tables 910, 920 used for hardware resource control according to an embodiment of the present disclosure. As illustrated in FIG. 9, a plurality of lookup tables 910, 920 may be stored in a memory of an information processing system. The resources recorded in the tables illustrated in FIG. 9 are associated with clock frequencies and voltages. For example, a first resource (RES_#1) may include a first clock frequency and a first voltage, a second resource (RES_#2) may include a first clock frequency and a second voltage, and a third resource (RES_#3) may include a second clock frequency and a first voltage. Here, the frequency is associated with a frequency provided by a clock source, and the voltage is associated with a voltage provided by a voltage source.
[0153] The first lookup table 910 may include data to which consumed power, batch size, and resources are mapped. The consumed power recorded in the first lookup table 910 may increase in proportion to the batch size and resources. That is, the larger the batch size, the faster the clock frequency, and / or the higher the voltage, the greater the consumed power. Here, the consumed power should be understood as the required power in a workload, which will be described later.
[0154] The second lookup table 920 may include data that maps inference time, batch size, and resources. Here, inference time should be understood as a delay time that occurs in processing a workload, which will be described later. The inference times included in the second lookup table 920 are proportional to the batch size and / or inversely proportional to the amount of resources. That is, the smaller the batch size, the shorter the inference time, and the larger the amount of resources, the shorter the inference time.
[0155] At least one of the tables shown in FIG. 9 is used when allocating workload to the NPUs and when adjusting resources provided to the hardware.
[0156] 10 is a flow chart illustrating a method 1000 for dynamically adjusting hardware performance for high frequency securities trading according to an embodiment of the present disclosure. The method illustrated in FIG. 10 is merely an embodiment for achieving the object of the present disclosure, and it is obvious that some steps may be added or deleted as necessary. In addition, the method illustrated in FIG. 10 may be performed by at least one processor included in an information processing system. For convenience of explanation, each step illustrated in FIG. 10 will be described as being performed by a processor included in the information processing system illustrated in FIG. 8.
[0157] Resources can be provided to hardware of the information processing system under the control of the processor (S1010). Here, the hardware can include at least one of a memory, an FPGA, an input traffic monitoring module, a dedicated accelerator for machine learning, or a central processing unit included in the information processing system. Also, the resources can include at least one of a voltage or a clock signal.
[0158] The processor may receive context information (S1020). The context information may include at least one of market data traffic for one or more target items or computational complexity using a machine learning model performed based on the market data. According to an embodiment, the market data traffic may be identified based on at least one of the number of times market data is received per unit time or the volume of market data received per unit time, and the processor may receive the market data traffic thus identified. For example, the volume of market data received per unit time or the number of times market data is received per unit time may be measured by a processor (e.g., FPGA, etc.) performing data pre-processing / post-processing to identify the market data traffic, and the processor may receive the market data traffic from the processor performing data pre-processing / post-processing.
[0159] According to an embodiment, the computational complexity may be measured based on at least one of the load of the hardware or the magnitude of a parameter used in the computation of the machine learning model, and the processor may receive the thus measured computational complexity. Here, the load of the hardware may be measured based on the usage rate of the hardware. Also, the magnitude of the parameter may be measured based on the magnitude of the parameter loaded into the memory in the computation process of the machine learning model. The larger the magnitude of the parameter, the higher the computational complexity, and the larger the load of the hardware, the higher the computational complexity. The computational complexity may be measured by a processor (e.g., FPGA, etc.) that performs data pre-processing / post-processing and transferred to the processor, or may be measured by a dedicated accelerator and transferred to the processor. In some embodiments, the processor may directly measure the computational complexity of the machine learning model or the traffic of market data.
[0160] Then, the processor may determine a performance grade required by the hardware based on the received context information (S1030). The performance grade may be predefined into a plurality of grades, and different grades may be predefined according to the range of computational complexity and / or the range of market data traffic. When both computational complexity and market traffic are used, different weights may be applied to the computational complexity and the market traffic, and different grades may be predefined according to the range of the sum of the computational complexity and the market traffic to which the weights are applied. In addition, the amount of resources (e.g., target voltage and / or target speed) provided according to each performance grade may be predefined.
[0161] The processor can then determine whether the determined performance class has changed compared to the previously determined performance class (S1040), i.e., whether the currently determined performance class is different or the same as the previously determined performance class.
[0162] If it is determined that the performance grade has not changed, the processor may decide not to change the resources provided to the hardware, so that the resources provided to the hardware are not changed and the hardware may be provided with the same voltage strength and / or clock signal speed as before.
[0163] If it is determined that the performance grade has been changed, the processor may determine a change in resources provided to the hardware based on the changed performance grade (S1050). In one embodiment, the processor may identify an amount of resources corresponding to the determined performance grade (i.e., the changed performance grade), where the amount of resources may be a target voltage and / or a target clock speed.
[0164] Then, the processor may control one or more voltage sources and / or one or more clock sources to be activated, thereby supplying resources corresponding to the identified amount of resources to the hardware (S1060). Depending on the identified amount of resources, the amount of resources supplied to the hardware may be decreased or increased. For example, if the changed performance grade is higher than the previous performance grade, more resources may be supplied to the hardware, thereby improving the processing speed of the hardware. In this case, the processor may control a voltage source having a higher voltage than the previously activated voltage source to be activated, and / or a clock source having a faster speed than the previously activated clock source to be activated. In this case, the processor may deactivate the previously activated clock source and / or voltage source.
[0165] As another example, if the changed performance grade is lower than the previous performance grade, fewer resources may be provided to the hardware to reduce the processing speed of the hardware. At this time, the processor may control a voltage source having a lower voltage than the previously activated voltage source to be activated and / or a clock source having a slower speed than the previously activated clock source to be activated. At this time, the processor may deactivate the previously activated clock source and / or voltage source.
[0166] The process shown in Figure 10 corresponds to one cycle of receiving context information and may be repeated each time new context information is received. If the performance grade required for the hardware has not changed, the resources provided in the previous cycle may continue to be provided to the hardware without change.
[0167] Meanwhile, the processor can determine a performance grade equal to or higher than the threshold at which the hardware can perform maximum performance. If resources equal to or higher than the threshold are supplied to the hardware as a result of the determination of a performance grade equal to or higher than the threshold, the operating time of the hardware due to the supply of resources equal to or higher than the threshold is limited. More specifically, if the hardware operates at a performance equal to or higher than the threshold, the hardware may be physically damaged and its lifespan may be reduced. For example, if the processor can operate temporarily by overclocking, but continues to operate beyond a certain time, the processor may be physically damaged. To prevent such a situation, the processor can measure the time during which resources equal to or higher than the threshold are supplied, and if the measured time reaches the threshold time, the processor can control the resources to be supplied to the hardware such that resources lower than the threshold are supplied. For example, the processor can change the performance grade of the hardware from the maximum performance grade to a performance grade one step lower, and control the hardware to be supplied with resources lower than the threshold based on the changed performance grade.
[0168] Hereinafter, a method for scheduling work and / or adjusting resources for high frequency securities trading will be described with reference to FIGS. 11 to 14. The methods shown in FIGS. 11 to 14 are merely examples for achieving the object of the present disclosure, and it is obvious that some steps can be added or deleted as necessary. Also, the methods shown in FIGS. 11 to 14 can be performed by at least one processor included in an information processing system. For example, the methods shown in FIGS. 11 to 14 can be performed by the scheduler 842 and / or the resource control unit 844 included in the processor 840 of FIG. 8. For convenience of explanation, the steps shown in FIGS. 11 to 14 will be described as being performed by the processor 840 included in the information processing system 800 of FIG. 8.
[0169] Fig. 11 is a flow chart illustrating a method 1100 for providing minimal resources to hardware according to an embodiment of the present disclosure. The method illustrated in Fig. 11 may be performed by the resource control unit 844 included in the processor 840 of Fig. 8. Also, the method 1100 associated with Fig. 11 may be performed before starting work scheduling. For example, if a preparation trigger or a preparation command associated with work scheduling occurs, the process illustrated in Fig. 11 may be performed.
[0170] The processor may identify resources being supplied to each of the one or more NPUs (S1110), where the NPUs may be an example of a dedicated accelerator for machine learning models, and the resources may include at least one of a voltage or a clock signal, and the processor may identify the resources including at least one of a clock frequency or a magnitude of the voltage supplied to each NPU.
[0171] The processor may then determine the minimum resources that can be provided to each of the one or more NPUs (S1120). According to an embodiment, the processor may identify a batch size for at least one input data to be input to each NPU, and may select and register a plurality of candidate resources to be provided to each NPU in a candidate resource list. Here, a plurality of candidate resources may be selected in a range that is less than the resources currently provided to the NPU and greater than a predetermined lower limit. For example, if the resource provided to NPU_1 is RES_#1, the plurality of candidate resources targeted for NPU_1 may be less than RES_#1 and greater than the lower limit. Also, the candidate resource lists for each of the one or more NPUs may be the same or different from each other. For example, if the same resources are currently provided to NPU_1 and NPU_2, a first candidate resource list targeted for NPU_1 may be the same as a second candidate resource list targeted for NPU_2. As another example, if NPU_1 and NPU_3 are currently provisioned with different resources, a first candidate resource list intended for NPU_1 may be different from a third candidate resource list intended for NPU_3.
[0172] The processor can calculate the operation delay time for each of the multiple candidate resources based on the batch size for the input data input to each of the multiple NPUs and the candidate resources included in the candidate resource list for each of the NPUs. Here, the operation delay time is the inference time of the machine learning model, and can be calculated using the second reference table 920 shown in Figure 9. For example, when the batch size is BZ_#1 and the resource is RES_#1, the processor can calculate that the operation delay time is INT_#1 by referring to the second reference table 920 shown in Figure 9.
[0173] Then, the processor may identify a candidate resource having the least resources among at least one candidate resource for which the calculated operation delay time is less than the allowable time for each NPU, and determine the identified candidate resource for each NPU as the least resource to be supplied to each NPU. Meanwhile, the resources may include a voltage and a clock frequency, and in this case, a first weighting value may be applied to the voltage and a second weighting value may be applied to the clock frequency, and a candidate resource having the least weighting value may be determined as the least resource.
[0174] Thereafter, the processor may adjust resources so that the minimum resources are provided to each of the determined NPUs (S1130). The processor may supply clocks and / or voltages corresponding to the minimum resources to the NPUs by controlling the first resource 810 and / or the second resource 820 shown in FIG.
[0175] 12 is a flow chart illustrating a method 1200 for scheduling work for high frequency securities trading in accordance with one embodiment of the present disclosure. Each method illustrated in FIG. 12 may be performed by a scheduler 842 included in a processor 840 of the information processing system 800 of FIG.
[0176] A plurality of input data for high frequency securities trading is obtained at the processor (S1210). The plurality of input data may be pre-processed market data.
[0177] Thereafter, the processor may determine a workload for an inference operation of the machine learning model based on the allowable time to complete the operation and the available resources of the hardware (S1220). Here, the allowable time may be dynamically determined as the time allowed until the order data is generated. According to an embodiment, the processor may acquire market data traffic for one or more target items and determine the allowable time to complete the operation based on the acquired traffic. The size of the workload may be determined based on the length of the allowable time and the amount of available resources. A method for determining the workload based on the allowable time and the available resources of the hardware will be described in detail with reference to FIG. 13.
[0178] According to an embodiment, a processor may determine hardware resources for processing a workload and provide the determined resources to the hardware. Here, the hardware may include at least one NPU, memory, FPGA, etc. The processor may adjust at least one of a frequency or a voltage of a clock provided to the hardware based on the determined resources. According to an embodiment, the hardware may include a plurality of NPUs, and the processor may assign the determined workload to at least one NPU of the plurality of NPUs. In this case, the processor may identify at least one NPU to which the workload is assigned, and adjust at least one of a speed or a voltage of a clock provided to the identified at least one NPU based on the determined resources.
[0179] The processor may then select at least one input data of the plurality of input data based on the determined workload (S1230).
[0180] Then, the processor may apply the selected at least one input data to the machine learning model (S1240). According to an embodiment, the hardware may include a plurality of NPUs for the operation of the machine learning model. In this case, the processor may determine a target NPU that is responsible for the workload and provide the selected at least one input data to the target NPU. The target NPU may input the selected at least one input data to the machine learning model to perform inference operations for high frequency securities trading.
[0181] FIG. 13 is a flowchart for explaining step S1220 shown in FIG. 12 in more detail. The processor may select a target resource to be verified from the resource list (S1302). Here, the target resource may be a candidate resource to be assigned to the NPU. The resource list may be generated in advance to include a plurality of resources that are different from each other. The resource may include a voltage and / or a clock frequency, and the plurality of resources included in the resource list may include a voltage and / or a clock frequency that are different from each other.
[0182] Thereafter, the processor may select a target batch size to be verified from the batch size list (S1304). Here, the target batch size may be a candidate batch size to be assigned to the NPU. The batch size list may be generated in advance to include a plurality of different batch sizes. The resource list and the batch size list may be generated by an administrator, stored in the information processing system, and updated by the administrator. As described below, candidate workloads including resources and batch sizes that have passed verification may be registered in a first candidate work list.
[0183] Next, the processor can calculate the required power amount and the delay time based on the target resource and the target batch size (S1306). According to an embodiment, the processor can calculate the required power amount using a first table 910 shown in FIG. 9, and can calculate the delay time using a second table 920 shown in FIG. 9. For example, the processor can obtain the required power amount corresponding to the target resource and the target batch size from the first table 910 shown in FIG. 9, and can obtain the delay time corresponding to the target resource and the target batch size from the second table 920 shown in FIG. 9. In the first table 910 shown in FIG. 9, the required power amount is illustrated as consumed power, and in the second table 920 shown in FIG. 9, the delay time is illustrated as inference time of the machine learning model.
[0184] The processor may then determine whether the calculated delay time is less than the allowable time (S1308). If the delay time is equal to or greater than the allowable time, the processor may reselect a target batch size from the batch size list or reselect a target resource from the resource list (S1320). That is, the processor may determine that verification of the combination of the target batch size and the target resource has failed, and may reselect a target batch size from the batch size list or reselect a target resource from the resource list so that a new combination of the target batch size and the target resource is generated. If the target batch size or target resource is reselected, the process may proceed again from step S1306.
[0185] On the other hand, if the delay time is less than the allowable time as a result of the determination in step S1308, the processor may determine whether the calculated required power amount is equal to or less than the available power amount (S1310). Here, the available power amount may be measured by subtracting the amount of power currently being supplied (i.e., the amount of power already used) from the total power amount. If the required power amount exceeds the available power amount, the processor may reselect a target batch size from the batch size list or reselect a target resource from the resource list (S1320). That is, the processor may determine that verification of the combination of the target batch size and the target resource has failed, and may reselect a target batch size from the batch size list or reselect a target resource from the resource list so that a new combination of the target batch size and the target resource is generated.
[0186] On the other hand, if it is determined in step S1310 that the required power is equal to or less than the available power, the processor may generate candidate workloads including the target resource and the target batch size, and register the generated candidate workloads in a first candidate list (S1312). That is, the candidate workloads having the combination of the target resource and the target batch size that have been successfully verified may be registered in the first candidate list.
[0187] Thereafter, the processor may determine whether or not all the resources included in the resource list and the batch sizes included in the batch size list have been verified in combination according to the number of cases (S1314). That is, the processor may determine whether or not the verification process has been performed a number of times corresponding to the number of combination cases based on the number of resources included in the resource list and the number of batch sizes included in the batch size list. For example, when three resources are registered in the resource list and three batch sizes are registered in the batch size list, the processor may determine whether or not the verification process has been performed for each of the nine combined target resources and target batch sizes.
[0188] If it is determined that the resources included in the resource list and the batch sizes included in the batch size list have not been fully combined and verified by the number of cases, the processor may reselect a target resource or a target batch size so as to combine the resources and batch sizes that are not combined (S1320). Then, the process may proceed from step S1306 based on the newly combined target resource and target batch size.
[0189] Through the above process, the combination of resources and batch sizes that have passed the verification can be registered in a first candidate list. Through the verification, the delay time of each of the candidate workloads registered in the first candidate list can be within the allowable time, and the required power amount of each of the candidate workloads registered in the first candidate list can be within the available power amount.
[0190] Meanwhile, when it is determined that the resources included in the resource list and the batch sizes included in the batch size list have been verified in combination according to the number of cases, the processor may determine a workload for the inference operation of the machine learning model from among the candidate workloads included in the first candidate list (S1316). The target resources included in the determined workload may be resources to be allocated to hardware (e.g., an NPU) for the inference operation. The processor may provide resources to the NPU in charge of the workload based on the target resources (allocated resources) included in the determined workload. Thus, only the target resources are provided to the NPU performing the inference operation of the machine learning model.
[0191] According to an embodiment, the processor may determine a workload for an inference operation of a machine learning model based on at least one of a performance index, a resource size, a delay time, or a batch size. As an example of the performance index, PPW (Performance Per Watt) may be used. The present disclosure is not limited thereto, and various indices other than PPW may be used as the performance index.
[0192] When PPW is used as a performance metric, the processor can calculate PPW based on batch size, delay time, and required power. The following formula is used to calculate PPW:
[0193]
number
[0194] The processor can calculate the delay time and the required power based on the batch size and resources included in the candidate workload. At this time, the processor can calculate the required power using a first lookup table 910 shown in Fig. 9, and calculate the delay time using a second lookup table 920 shown in Fig. 9. In addition, the processor can substitute the calculated required power, delay time, and batch size into the formula (1) to calculate the PPW of the candidate workload as a performance index.
[0195] When the performance index of each candidate workload included in the first candidate list is calculated, the processor can determine the candidate workload with the highest performance index as the workload for the inference operation of the machine learning model.
[0196] As another example, the processor may determine a candidate workload having the fewest target resources as a workload for an inference operation of the machine learning model based on the target resources included in each of the one or more candidate workloads registered in the first candidate list, i.e., the processor may determine a candidate workload requiring the fewest resources as a workload for an inference operation of the machine learning model.
[0197] As another example, the processor may calculate a delay time for each of the one or more candidate workloads registered in the first candidate list based on the allocated resources and batch sizes associated with each of the one or more candidate workloads, and then determine the candidate workload having the shortest calculated delay time as the workload for the inference operation. That is, the processor may determine the candidate workload that can be inferred the fastest as the workload for the inference operation.
[0198] As another example, the processor may determine a candidate workload having a largest batch size as a workload for the inference operation based on batch sizes associated with each of the one or more candidate workloads registered in the first candidate list, i.e., the processor may determine a candidate workload capable of processing input data corresponding to the largest batch size as a workload for the inference operation.
[0199] On the other hand, the target resource and batch size may not be registered in the first candidate list. That is, since all combinations of the target resource and batch size do not pass the verification process, no candidate workload may be registered in the first candidate list. In this case, the processor may extract the earliest input data from among the multiple input data, and apply a rule-based ordering model that generates order data based on a rule from the extracted input data. The input data to which the rule-based ordering model has been applied may be deleted from the queue in the memory.
[0200] Here, the rule-based order model may be a model that automatically generates order data based on predefined rules without using a machine learning model. For example, the rule-based order model may be a model including rule information (e.g., a formula, modeling, etc.) in which input rules and output rules correspond one-to-one. The rule-based order model may obtain input rules from input data and generate order data based on output rules corresponding to the input rules. Here, the input rules may include item, quote price, composite stock price index, trading volume, etc., and the output rules may include buy or sell, order volume, price, etc. A plurality of pairs of input rules and output rules may be predefined by an administrator.
[0201] Meanwhile, the remaining available resources can be further provided to at least one NPU among the plurality of NPUs performing inference calculations upon input of at least one input data associated with the workload.
[0202] 14 is a flowchart illustrating a method 1400 for additionally providing available resources to an NPU according to an embodiment of the present disclosure. Each step illustrated in FIG 14 may be performed by a resource control unit 844 included in a processor 840 of an information processing system 800 illustrated in FIG 8. Also, the method 1400 illustrated in FIG 14 may be performed after the method 1200 illustrated in FIG 12.
[0203] The processor may measure remaining available resources remaining after supplying at least one NPU (S1410), where the remaining available resources may include voltage and / or clock signals remaining after supplying at least one NPU.
[0204] Next, the processor may measure the remaining available power remaining after supplying the power to at least one NPU (S1420). For example, the processor may measure the remaining available power by subtracting the amount of power being provided from the maximum amount of power that can be supplied.
[0205] Next, the processor may register candidate resources for each of one or more NPUs in a second candidate list (S1430). In this case, the processor may identify an NPU on which an inference operation is being performed, and register candidate resources for each of the identified at least one NPU in the second candidate list. Here, the candidate resources may have increased resources compared to the resources provided to the NPU. That is, since an NPU to which additional resources are provided must be selected to process the inference operation faster, the candidate resources may have increased resources compared to the resources provided to the NPU. Here, the amount of increase in resources may be predetermined.
[0206] Then, the processor may identify at least one NPU registered in the second candidate list and identify a batch size for input data to be input to each of the NPUs. The processor may also calculate a first amount of power, which is a required amount of power, for each NPU based on the candidate resources for each NPU included in the second candidate list and the batch size for each NPU (S1440). The processor may calculate the first amount of power using a first lookup table 910 shown in FIG. 9.
[0207] Next, the processor may calculate a second amount of power being supplied to each NPU (S1450). For example, the processor may calculate the second amount of power using a first lookup table 910 illustrated in FIG 9. As another example, the processor may measure the second amount of power being supplied to each NPU using a voltage sensor and / or a current sensor.
[0208] Thereafter, the processor may calculate a third amount of power for each NPU by subtracting the second amount of power from the first amount of power (S1460). Here, the third amount of power should be understood to be an amount of power to be additionally supplied.
[0209] The processor may then filter the second candidate list by determining whether the third amount of power exceeds the remaining available power amount and removing candidate resources from the second candidate list that have the third amount of power that exceeds the remaining available power amount (S1470).
[0210] Thereafter, the processor may determine a target NPU to which the remaining available resources are to be provided among the NPUs associated with at least one candidate resource included in the second candidate list (S1480). According to one embodiment, the processor may determine a target NPU among the NPUs associated with at least one candidate resource included in the second candidate list based on at least one of the performance index, the third power budget, or the batch size.
[0211] For example, the processor may identify a batch size for at least one input data input to each of the NPUs registered in the second candidate list, and calculate an additional performance index for each NPU based on the identified batch size for each NPU and the candidate resources included in the second candidate list. In this case, the processor may calculate the additional performance index for each NPU using the formula of Equation 1. Specifically, the processor may calculate a delay time and a required power amount based on the batch size and resources included in the workload already assigned to each NPU, and apply the calculated delay time and required power amount to the formula of Equation 1 to calculate a current first performance index for each NPU. In addition, the processor may calculate a delay time and a required power amount based on the identified batch size for each NPU and the candidate resources included in the second candidate list, and apply the calculated delay time and required power amount to the formula of Equation 1 to calculate a second performance index expected for each NPU when the remaining resources are supplied. Then, the processor may calculate an additional performance index for each NPU by subtracting the first performance index from the second performance index. The processor can determine the NPU with the highest additional performance index as the target NPU to which the remaining available resources will be provided.
[0212] As another example, the processor may calculate an amount of power to be added to each of one or more NPUs registered in the second candidate list based on the candidate resources included in the second candidate list. The processor may calculate an amount of power to be added for each NPU by referring to a first lookup table 910 illustrated in FIG. 9. Specifically, the processor may calculate a fourth amount of power based on a batch size and resources included in a workload already assigned to each NPU. Here, the fourth amount of power may be an amount of power currently supplied to the NPU. The processor may also calculate a fifth amount of power for each NPU based on a batch size for each identified NPU and the candidate resources included in the second candidate list. Here, the fifth amount of power may be an amount of power required when supplying the candidate resources. Then, the processor may calculate an additional amount of power for each NPU by subtracting the fourth amount of power from the fifth amount of power. The processor may determine an NPU with the least amount of additional power as a target NPU to which the remaining available resources are to be supplied.
[0213] As another example, the processor can identify a batch size for at least one input data to be input to each of the NPUs registered in the second candidate list, and determine the NPU having the largest batch size among the identified batch sizes as the target NPU to which the remaining available resources will be provided.
[0214] In response to determining the target NPU, the processor may provide some or all of the remaining available resources to the target NPU (S1490). In one embodiment, the processor may determine an amount of resources to provide to the target NPU based on the candidate resources associated with the target NPU, and provide the remaining available resources to the target NPU in the determined amount of resources. For example, the processor may control the first resource 810 and / or the second resource 820 shown in FIG. 8 to provide a clock signal and / or a voltage to the target NPU.
[0215] FIG. 15 is a block diagram of any computing device 1500 associated with securities exchange generation according to an embodiment of the present disclosure. For example, the computing device 1500 may be associated with the information processing system 110 and / or a user terminal (not shown). As shown in the figure, the computing device 1500 may include one or more processors 1520, a bus 1510, a communication interface 1530, a memory 1540 for loading a computer program 1560 executed by the processor 1520, and a storage 1550 for storing the computer program 1560. However, FIG. 15 shows only components associated with the embodiment of the present disclosure. Therefore, a person skilled in the art to which the present disclosure pertains will understand that the computing device 1500 may further include general components other than the components shown in FIG. 15.
[0216] The processor 1520 controls the overall operation of each component of the computing device 1500. The processor 1520 may include a central processing unit (CPU), a micro processor unit (MPU), a micro controller unit (MCU), a graphic processing unit (GPU), a neural processing unit (NPU), or any other type of processor known in the technical field of the present disclosure. The processor 1520 may also perform calculations for at least one application or program for executing a method according to the embodiments of the present disclosure. The computing device 1500 may include one or more processors. For example, the computing device 1500 may include a processor implemented in an FPGA, and a dedicated accelerator (NPU ASIC) for machine learning models implemented in an ASIC.
[0217] The memory 1540 may store various data, instructions, and / or information. The memory 1540 may load one or more computer programs 1560 from the storage 1550 to perform methods / operations according to various embodiments of the present disclosure. The memory 1540 may be embodied in a volatile memory such as a RAM, although the scope of the present disclosure is not limited in this respect.
[0218] The bus 1510 can provide a communication function between components of the computing device 1500. The bus 1510 can be embodied in various types of buses, such as an address bus, a data bus, and a control bus.
[0219] The communication interface 1530 may support wired or wireless Internet communication of the computing device 1500. The communication interface 1530 may also support various communication methods other than Internet communication. To this end, the communication interface 1530 may be configured to include a communication module known in the technical field of the present disclosure.
[0220] Storage 1550 can non-temporarily store one or more computer programs 1550. Storage 1550 can include a non-volatile memory such as a read only memory (ROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, a hard disk, a removable disk, or any other form of computer-readable recording medium known in the technical field to which the present disclosure pertains.
[0221] The computer program 1560, when loaded into the memory 1540, may include one or more instructions that cause the processor 1520 to perform operations / methods according to various embodiments of the present disclosure. That is, the processor 1520 may execute the one or more instructions to perform operations / methods according to various embodiments of the present disclosure. For example, the processor 1520 may be configured to execute the one or more instructions in the memory 1540 to receive context information including at least one of market data traffic for one or more target items or computational complexity using a machine learning model performed based on the market data, determine whether to change processing performance for hardware based on the received context information, and change resources provided to the hardware based on the determination to change the processing performance. As another example, the processor 1520 may be configured to execute one or more instructions from the memory 1540 to obtain a plurality of input data for high frequency securities trading, determine a workload for an inference operation of a machine learning model based on an allowable time for completion of the operation and available resources of hardware, select at least one input data from the plurality of input data based on the determined workload, and apply the selected at least one input data to the machine learning model.
[0222] The above flow charts and descriptions are merely examples and may be implemented differently in some embodiments, for example, the order of steps may be changed, some steps may be repeated, some steps may be omitted, or some steps may be added.
[0223] The above-mentioned method may be provided as a computer program stored in a computer-readable recording medium for execution by a computer. The medium may be a medium for continuously storing a computer-executable program or a medium for temporarily storing the program for execution or download. The medium may be various recording means or storage means in the form of a single or multiple hardware components combined, and may be distributed over a network without being limited to a medium directly connected to a computer system. Examples of the medium include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, ROMs, RAMs, flash memories, etc., configured to store program instructions. Other examples of the medium include recording media or storage media managed by app stores that distribute applications, and other sites, servers, etc. that supply or distribute various software.
[0224] The methods, operations, or techniques of the present disclosure may be embodied in a variety of ways. For example, such techniques may be embodied in hardware, firmware, software, or a combination thereof. Those skilled in the art will appreciate that the various exemplary logical blocks, modules, circuits, and algorithmic steps described in the present disclosure may be embodied in electronic hardware, computer software, or a combination of both. To clearly illustrate such interchangeability between hardware and software, the various exemplary components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is embodied as hardware or software will vary depending on the particular application and design requirements imposed on the overall system. Those skilled in the art may also embody the described functionality in a variety of ways for each particular application, but such embodying should not be interpreted as departing from the scope of the present disclosure.
[0225] In a hardware implementation, the processing units used to perform the techniques may be embodied as one or more ASICs, DSPs, digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, electronic devices, other electronic units, computers designed to perform the functions described in this disclosure, or any combination thereof.
[0226] Thus, the various example logic blocks, modules, and circuits described in this disclosure may be embodied or performed with a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination designed to perform the functions described herein. A general purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be embodied with a combination of computing devices, such as a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other configuration.
[0227] In a firmware and / or software implementation, the techniques may be embodied with instructions stored on a computer-readable medium, such as random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable PROM (EEPROM), flash memory, compact disc (CD), magnetic or optical data storage devices, etc. The instructions are executable by one or more processors to cause the processors or others to perform certain aspects of the functions described in this disclosure.
[0228] If embodied as software, the techniques may be stored on or transferred via a computer-readable medium as one or more instructions or code. A computer-readable medium includes any medium that facilitates transfer of a computer program from one place to another, and includes both computer storage media and communication media. A storage medium may be any available medium that can be accessed by a computer. By way of non-limiting example, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to transport or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Additionally, any connection may be suitably utilized as a computer-readable medium.
[0229] For example, if the software is transferred from a website, server, or other remote source using coaxial cable, fiber optic cable, lead wire, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, lead wire, digital subscriber line, or wireless technologies such as infrared, radio, and microwave are included within the definition of medium. As used herein, disk and disc include CDs, laser discs, optical disks, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically while discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0230] A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any different forms of storage medium known in the art. An exemplary storage medium may be coupled to the processor such that the processor reads information from, and writes information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
[0231] Although the above embodiments are described as utilizing aspects of the presently disclosed subject matter on one or more stand-alone computer systems, the present disclosure is not limited thereto and may be embodied in any computing environment, such as a network or distributed computing environment. Moreover, aspects of the subject matter in the present disclosure may be embodied in multiple processing chips or devices, and storage may be affected across multiple devices as well. Such devices may include PCs, network servers, and handheld devices.
[0232] Although the present disclosure has been described in the present specification by way of some embodiments, various modifications and alterations can be made within the scope of the present disclosure that can be understood by those of ordinary skill in the art to which the present disclosure pertains. In addition, such modifications and alterations should be understood to fall within the scope of the claims attached hereto. [Explanation of symbols]
[0233] 110 Information Processing Systems 120 First Stock Exchange 130 Second Stock Exchange
Claims
1. 1. A method for adjusting performance of hardware for high frequency securities trading, performed by at least one processor, comprising: receiving context information comprising at least one of market data traffic for one or more target items or computational complexity using a machine learning model performed on the market data; determining whether to change processing performance for the hardware based on the received context information; and changing resources provided to the hardware based on a result of the determination to change the processing performance, determining whether to change the processing performance includes determining a processing performance required for the hardware based on the received context; The step of changing the resource includes a step of adjusting at least one of a speed or a voltage of a clock supplied to the hardware according to the determined processing performance of the hardware; the hardware includes a plurality of dedicated accelerators for computing the machine learning model; The step of adjusting at least one of the speed or voltage of the clock comprises: identifying one or more dedicated accelerators among the plurality of dedicated accelerators based on the determined processing capabilities; adjusting at least one of a speed or a voltage of a clock provided to the identified one or more dedicated accelerators.
2. The hardware includes at least one of a dedicated accelerator, a memory, or a processor, the dedicated accelerator, the memory, or the processor being partitioned into a plurality of processing regions associated with a plurality of layers included in the machine learning model; The step of adjusting at least one of the speed or voltage of the clock comprises: identifying one or more processing regions among a plurality of processing regions based on the determined processing performance; and adjusting at least one of a speed or a voltage of a clock supplied to the identified one or more processing domains.
3. 2. The hardware performance adjusting method of claim 1, wherein adjusting at least one of the clock speed or voltage includes controlling one or more voltage sources of a plurality of voltage sources to be activated to supply a target voltage to the hardware corresponding to the determined processing performance.
4. After the step of modifying the resource, determining whether the changed resource is greater than or equal to a predefined threshold; if the changed resource is equal to or greater than a predefined threshold, measuring the time for which the changed resource is provided; 2. The method of claim 1, further comprising the step of: if the measured time reaches a threshold time, controlling so that resources lower than the threshold are supplied to the hardware.
5. 1. A method for adjusting performance of hardware for high frequency securities trading, performed by at least one processor, comprising: obtaining a plurality of input data for high frequency securities trading; determining a workload for an inference operation of the machine learning model based on an allowable time for completing the operation and available resources of the hardware; selecting at least one input data of the plurality of input data based on the determined workload; and applying the selected at least one input data to the machine learning model.
6. The step of determining a workload comprises: determining resources of the hardware for processing the workload based on the allowed time and available resources of the hardware; and providing said determined resources to said hardware.
7. 7. The hardware performance adjusting method of claim 6, wherein the step of providing the determined resources to the hardware includes the step of adjusting at least one of a speed or a voltage of a clock provided to the hardware based on the determined resources.
8. the hardware includes a plurality of dedicated accelerators for computing the machine learning model; The step of adjusting at least one of the speed or voltage of the clock comprises: identifying at least one dedicated accelerator among the plurality of dedicated accelerators to which the workload is assigned; and adjusting at least one of a speed or a voltage of a clock supplied to the identified at least one dedicated accelerator.
9. The step of determining a workload for an inference operation of the machine learning model includes: registering one or more candidate workloads that can be completed within the permissible time in a candidate list; determining a candidate workload from the candidate list as the workload for the inference operation; The hardware performance tuning method of claim 5 , wherein at least one input data having a batch size included in the determined workload is input to the machine learning model.
10. determining a candidate workload from the candidate list as a workload for the inference operation, calculating a performance metric for each of the one or more candidate workloads based on allocated resources and batch sizes associated with each of the one or more candidate workloads; and determining the candidate workload having the highest calculated performance index as the workload for the speculation operation.
11. determining a candidate workload from the candidate list as a workload for the inference operation, calculating a delay time for each of the one or more candidate workloads based on allocated resources and a batch size associated with each of the one or more candidate workloads; and determining the candidate workload having the shortest calculated delay time as the workload for the speculation operation.
12. the hardware includes a plurality of dedicated accelerators for computing the machine learning model; each of the plurality of dedicated accelerators is provided with resources; The method comprises: After the step of inputting the at least one selected input data into the machine learning model, measuring the remaining available resources remaining after provisioning each of the plurality of dedicated accelerators; determining a target dedicated accelerator among the plurality of dedicated accelerators for providing the measured remaining available resources; The method of claim 5 , further comprising the step of: providing some or all of the remaining available resources to the determined target dedicated accelerator.
13. The step of determining a target dedicated accelerator comprises: registering candidate resources for each of one or more dedicated accelerators in a candidate list, the candidate resources having increased resources over resources provided to the dedicated accelerators; determining a dedicated accelerator associated with one of the one or more candidate resources registered in the candidate list as the target dedicated accelerator; The step of providing some or all of the remaining available resources comprises: The method of claim 12 , further comprising providing some or all of the available resources to the target dedicated accelerator based on a candidate resource associated with the target dedicated accelerator.
14. The step of registering the candidate resource in a candidate list includes: measuring an amount of remaining power remaining after being delivered to each of the plurality of dedicated accelerators; calculating a first amount of power required at each of the one or more dedicated accelerators when providing each of the one or more dedicated accelerators with a candidate resource; calculating a third amount of electric power for each of the one or more dedicated accelerators by subtracting a second amount of electric power being supplied to each of the one or more dedicated accelerators from the calculated first amount of electric power; identifying a dedicated accelerator for which the calculated third amount of power exceeds the remaining amount of power; and removing a candidate resource associated with the identified dedicated accelerator from the candidate list.
15. determining a dedicated accelerator associated with the one candidate resource as the target dedicated accelerator, calculating an additional performance metric for each of the one or more dedicated accelerators based on a batch size for at least one input data input to each of the one or more dedicated accelerators and the candidate resources included in the candidate list; and determining the dedicated accelerator having the highest calculated additional performance index as the target dedicated accelerator.
16. determining a dedicated accelerator associated with the one candidate resource as the target dedicated accelerator, calculating an amount of power to be added to each of the one or more dedicated accelerators based on the candidate resources included in the candidate list; and determining, as the target dedicated accelerator, a dedicated accelerator having a minimum amount of power among the calculated amounts of power.
17. An information processing system, a memory for storing one or more instructions; and a processor configured to execute one or more instructions from the memory to obtain a plurality of input data for high frequency securities trading, determine a workload for an inference operation of a machine learning model based on an allowable time for completion of the operation and available resources of hardware, select at least one input data from the plurality of input data based on the determined workload, and apply the selected at least one input data to the machine learning model.
Citation Information
Patent Citations
Traffic monitoring device of security system
JP2007265245A
Automatic ordering and concluding system of inputtingstock dealing condition via internet
KR1020010016454A
Information processing device, information processing method, and program
WO2022009542A1
