data, and Freebase's internal properties, is
represented as a node. Each node has a type
property, which lets us know which type(s) that
particular node belongs to. We do basic pruning
when we first obtain data in order to get rid of
irrelevant nodes, such as images, community portals,
Freebase's user information, and Freebase's internal
properties. Nevertheless, many nodes, such as
country nodes, still have more than a thousand of
connections left. Thus, we use a series of heuristics
to cut down the number of nodes to be passed into
the search algorithm. First, when we get all the
neighbors of a node, we scan through all the
"relationship type", and downplay the relationship
types that are too abundant. For example, the
relationship type /location/location/contains has
more than 1,000 connections for United States,
implying that this relationship type is likely to not be
very important (as opposed to the relationship type
/location/country/capitals, which contains only 1
connection
3.2 Artificial Ants
In this work an artificial ant is an agent which moves
from information
1
to information on a heuristic
graph. With each information we assign randomly
attractive_value based on user’s Interestingness.
Interestingness means how interesting the paths are.
It chooses the attractiveness
2
of information using a
probabilistic function both of a trail accumulated on
edges and of a heuristic value, which was chosen
here to be a function of the edge attractiveness.
Artificial ants probabilistically prefer information
that are connected by edges with a lot of pheromone
trail and which are close-by. Initially, m artificial
ants are placed on randomly selected information. At
each time step they move to new information and
modify the pheromone trail on the edges used –this
is termed local trail updating. When all the ants
have completed a tour the ant that has made the
shortest tour modifies the edges belonging to its tour
–termed as global trail updating– by adding an
amount of pheromone trail that is inversely
proportional to the attractive_value of information.
Artificial ants can determine how attractive the
information are, and they are endowed with a
working memory M
k
used to memorize information
already visited (the working memory is emptied at
the beginning of each new tour, and is updated after
1
Information may be defined as a set of data values that
is extracted from freebase database.
2
Attractiveness is the measure of attractive_value
each time step by adding the new visited city).
In our ant colony system (ACS) an artificial ant k
of information r chooses the information s to move
to among those which do not belong to its working
memory M
k
by applying the following probabilistic
formula(1):
s =
arg max{ [
r,u)] [
r,u)
β
]
}
if q <
q
0
(1)
S otherwise
where τ(r,u) is the amount of pheromone trail on
edge (r,u). η(r,u) is a heuristic function, which was
chosen to be the inverse of the attractive_value of
information between database r and u, β is a
parameter which weighs the relative importance of
pheromone trail and of closeness, q is a value chosen
randomly with uniform probability in [0,1], q
0
is a
parameter, and S is a random variable selected
according to the following probability distribution,
which favors edges which are shorter and have a
higher level of pheromone trail
:
p
k
(r,s) =
[
r,s
] [
r,s
]
β
∑ [τ(r,u)] [η(r,u)]
β
uɆM
k
if s Ɇ M
(2)
0 otherwise
where p
k
(r,s) is the probability with which ant k
chooses to move from information r to information
s. Pheromone trail is changed both locally and
globally. Global updating is intended to reward
edges belonging to shorter tours. Once artificial ants
have completed their tours, the best ant deposits
pheromone on visited edges; that is, on those edges
that belong to its tour. (The other edges remain
unchanged.) The amount of pheromone Δϕ(r,
s) deposited on each visited edge (r,s) by the best ant
is inversely proportional to the sum of all
attractive_value in a tour: Minimum the
attractive_value greater the amount of pheromone
deposited on edges and is shortest_route. This
manner of depositing pheromone is intended to
emulate the property of differential pheromone trail
accumulation, which in the case of real ants was due
to the interplay between length of the path and
continuity of time. The global trail updating formula
is
ϕ(r, s) (1-α )∗ϕ(r, s) +α ∗ ϕ(r, s)
where ϕ(r, s)=(shortest_tour)-1. Global trail
updating is similar to a reinforcement learning
scheme
in which better solutions get a higher
ECTA 2011 - International Conference on Evolutionary Computation Theory and Applications
348